/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Colors */
    --bg-page:       #ffffff;
    --bg-specs:      #ffffff;
    --clr-black:     #000000;
    --clr-dark:      #1a1a1a;
    --clr-body:      #666666;
    --clr-muted:     #999999;
    --clr-border:    #e5e5e5;
    --clr-hover-bg:  #f5f5f5;

    /* Limited Edition */
    --clr-limited:       #c8a43a;
    --clr-limited-light: #f9f3e0;

    /* Typography */
    --font-main: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* Layout */
    --max-width: 1400px;
    --grid-gap:  2px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-page);
    color: var(--clr-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden;
}

/* ============================================
   STORE CONTAINER
   ============================================ */
.store-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============================================
   STORE HEADER
   ============================================ */
.store-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10; /* Ultra low z-index to guarantee Snipcart UI overlaps it */
    text-align: center;
    padding: 16px 24px;
    background: transparent;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.store-header.scrolled {
    background: var(--bg-page);
    border-bottom: 1px solid var(--clr-border);
}

.store-logo {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.store-logo img {
    height: 32px;
    width: auto;
    transition: opacity 0.3s ease;
}

.store-logo .logo-transparent {
    opacity: 1;
}

.store-logo .logo-scrolled {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.store-header.scrolled .logo-transparent {
    opacity: 0;
}

.store-header.scrolled .logo-scrolled {
    opacity: 1;
}

.cart-button {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart-button.cart-open-slide {
    transform: translate(calc(-100vw + 48px), -50%); /* Mobile slide */
}

@media (min-width: 768px) {
    .cart-button.cart-open-slide {
        transform: translate(-450px, -50%); /* Snipcart desktop width approx */
    }
}

.store-brand {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-bottom: 4px;
}

.store-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--clr-black);
}

/* ============================================
   COLLECTION DIVIDER
   ============================================ */
.collection-divider {
    padding: 28px 24px 16px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    scroll-margin-top: 120px;
}

.collection-divider__title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--clr-black);
}

.collection-divider__count {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--clr-muted);
}

.collection-divider--limited .collection-divider__title {
    color: var(--clr-limited);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-parallax {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    background: var(--bg-page);
    margin-bottom: 24px;
}

.hero-parallax__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.1s ease-out;
}

.hero-cta {
    position: absolute;
    bottom: 150px;
    left: 125px;
    z-index: 5;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
    background: #fff;
    color: var(--clr-black);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--grid-gap);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0 24px 24px 24px;
}

.products-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ============================================
   PRODUCT CARD (minimal — Pull&Bear style)
   ============================================ */
.product-card {
    cursor: pointer;
    position: relative;
    background: var(--bg-page);
    overflow: hidden;
    /* 5 items per row perfectly via percentages */
    flex: 0 0 calc(20% - var(--grid-gap) * 0.8);
    scroll-snap-align: start;
    min-width: 150px;
}

.product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5; /* Premium soft gray */
    padding: 16px; /* Inner margin so image doesn't touch edges */
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image fits the padded area perfectly */
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.product-card:hover .product-card__image img {
    opacity: 0.92;
}

/* Limited edition ribbon */
.product-card__ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--clr-black);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 2;
}

/* Hover overlay — size + add */
.product-card__hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.product-card:hover .product-card__hover {
    opacity: 1;
}

.product-card__hover-size,
.product-card__hover-add {
    flex: 1;
    padding: 10px;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-align: center;
}

.product-card__hover-size {
    background: rgba(255, 255, 255, 0.95);
    color: var(--clr-black);
}

.product-card__hover-add {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

/* Card info bar */
.product-card__info {
    padding: 12px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.product-card__name {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--clr-dark);
    line-height: 1.35;
    flex: 1;
}

.product-card__price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-black);
    white-space: nowrap;
}

.price-decimal {
    font-size: 0.7em;
    font-weight: 500;
    margin-left: 1px;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-page {
    display: none;
    width: 100%;
    background: var(--bg-page);
    animation: fadeIn 0.25s ease;
    min-height: 100vh;
    padding-top: 20px;
}

.product-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Back Button ── */
.product-page__back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--clr-dark);
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.product-page__back:hover {
    color: var(--clr-black);
}

/* ── Top Detail Area (3-col grid) ── */
.product-page__detail {
    display: grid;
    grid-template-columns: 300px 1fr 340px;
    gap: 48px;
    min-height: 600px;
    padding: 0 40px 0px;
    max-width: 1400px;
    margin: 0 auto;
}

/* LEFT: Specs panel */
.product-page__specs {
    background: var(--bg-page);
    padding: 0;
}

.modal-ref {
    font-size: 0.75rem;
    color: var(--clr-muted);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.modal-accordion {
    border-top: 1px solid var(--clr-border);
    position: relative;
}

.modal-accordion[open]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 14px);
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
    pointer-events: none;
}

.modal-accordion:last-of-type {
    border-bottom: 1px solid var(--clr-border);
}

.modal-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-dark);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.modal-accordion summary::-webkit-details-marker {
    display: none;
}

.modal-accordion summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-right: 4px;
}

.modal-accordion[open] summary::after {
    transform: rotate(45deg);
    margin-top: -4px;
}

.modal-accordion summary:hover {
    color: var(--clr-black);
}

.modal-accordion__content {
    padding: 8px 12px 24px 0;
    font-size: 0.8rem;
    color: var(--clr-body);
    line-height: 1.6;
    max-height: 360px;
    overflow-y: auto;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #000 transparent;
}

/* Chrome/Safari */
.modal-accordion__content::-webkit-scrollbar {
    width: 2px;
}
.modal-accordion__content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-accordion__content::-webkit-scrollbar-thumb {
    background-color: #000;
}

/* Specs Sections inside Accordion */
.specs-section {
    margin-bottom: 24px;
}

.specs-section:last-child {
    margin-bottom: 0;
}

.specs-section__title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-black);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.specs-section__intro {
    font-size: 0.75rem;
    color: var(--clr-body);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Composition list */
.specs-section__composition-list {
    margin-bottom: 8px;
}

.specs-section__composition-list p {
    margin-bottom: 12px;
}

.specs-section__composition-list .comp-label {
    font-size: 0.72rem;
    color: var(--clr-muted);
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.specs-section__composition-list .comp-value {
    font-size: 0.8rem;
    color: var(--clr-black);
    text-transform: uppercase;
    display: block;
}

/* Care List */
.specs-section__care-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.care-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.care-item img {
    height: 20px;
    width: 20px;
    object-fit: contain;
    opacity: 0.85;
}

.care-item span {
    font-size: 0.75rem;
    color: var(--clr-dark);
}

/* Certifications List */
.specs-section__certs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.specs-section__certs-list img {
    height: 28px;
    object-fit: contain;
}

/* CENTER: Gallery */
.product-page__gallery {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.product-page__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 64px;
    flex-shrink: 0;
}

.product-page__thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.product-page__thumbs img.active,
.product-page__thumbs img:hover {
    opacity: 1;
}

.product-page__thumbs img.active {
    box-shadow: 0 0 0 1px var(--clr-black);
}

.product-page__main-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.product-page__main-image img {
    width: 100%;
    max-height: 800px;
    object-fit: contain;
    transition: transform 0.3s ease-out;
}

/* RIGHT: Purchase Info Panel */
.product-page__info-panel {
    display: flex;
    flex-direction: column;
}

.product-page__info-header {
    margin-bottom: 20px;
}

.product-page__name {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--clr-black);
    line-height: 1.3;
    margin-bottom: 8px;
}

.product-page__price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-black);
}

.product-page__description {
    font-size: 0.82rem;
    color: var(--clr-body);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Tags */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.modal-tag {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid var(--clr-border);
    border-radius: 50px;
    color: var(--clr-dark);
    background: transparent;
}

.modal-tag--limited {
    border-color: var(--clr-limited);
    color: var(--clr-limited);
    background: var(--clr-limited-light);
}

.modal-stock {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--clr-limited);
    margin-bottom: 24px;
}

/* Purchase Actions */
.product-page__purchase-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-page__size-header {
    display: flex;
    justify-content: flex-end;
}

.product-page__size-guide {
    font-size: 0.75rem;
    color: var(--clr-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.product-page__size-guide:hover {
    color: var(--clr-black);
}

.modal-size-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--clr-dark);
    background: var(--bg-page);
    border: 1px solid var(--clr-black);
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1.41.59L6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s ease;
}

.modal-size-select:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--clr-black);
}

.product-page__buy-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn-add {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    background: var(--clr-black);
    color: #fff;
    border: none;
    letter-spacing: 1px;
}

.modal-btn-add:hover {
    opacity: 0.85;
}

/* ── Other Products Grid ── */
.product-page__others {
    padding: 30px 40px 64px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-page__others-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--clr-black);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-page__others-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.product-page__others-grid .product-card {
    cursor: pointer;
}

/* ============================================
   ANNOUNCEMENT BAR (PRÉ-VENDA)
   ============================================ */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--clr-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

.announcement-bar__icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.announcement-bar__text {
    white-space: normal;
}

/* Push the header down when announcement bar is present */
body:has(.announcement-bar) .store-header {
    top: 36px;
}

/* ============================================
   STORE FOOTER (Updated)
   ============================================ */
.store-footer {
    text-align: center;
    padding: 48px 24px 32px;
    border-top: 1px solid var(--clr-border);
    margin-top: 0;
    background: var(--bg-page);
}

.store-footer__container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.store-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.store-footer__links a {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--clr-dark);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    padding: 4px 0;
    position: relative;
}

.store-footer__links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-black);
    transition: width 0.3s ease;
}

.store-footer__links a:hover {
    color: var(--clr-black);
}

.store-footer__links a:hover::after {
    width: 100%;
}

.store-footer__legal {
    max-width: 600px;
}

.store-footer__legal p {
    font-size: 0.72rem;
    color: var(--clr-muted);
    line-height: 1.6;
}

.store-footer__legal a {
    color: var(--clr-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.store-footer__legal a:hover {
    color: var(--clr-black);
}

.store-footer__complaints {
    margin-top: -10px;
    margin-bottom: -10px;
}

.store-footer__complaints-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.store-footer__complaints-link:hover {
    opacity: 0.8;
}

.store-footer__complaints-icon {
    font-size: 1.1rem;
}

.store-footer__copy p {
    font-size: 0.7rem;
    color: var(--clr-muted);
    letter-spacing: 0.3px;
}

/* ============================================
   COOKIE BANNER (RGPD)
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: var(--clr-dark);
    color: #fff;
    padding: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 32px;
}

.cookie-banner__text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

.cookie-banner__text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.cookie-banner__btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.cookie-banner__btn--accept {
    background: #fff;
    color: var(--clr-dark);
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cookie-banner__btn--reject:hover {
    border-color: #fff;
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, Shipping)
   ============================================ */
.legal-page__nav {
    padding: 24px 40px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.legal-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--clr-dark);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.legal-page__back:hover {
    color: var(--clr-black);
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 64px;
}

.legal-page__container {
    width: 100%;
}

.legal-page__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-black);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.legal-page__updated {
    font-size: 0.75rem;
    color: var(--clr-muted);
    margin-bottom: 48px;
    letter-spacing: 0.3px;
}

.legal-page__content h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-black);
    margin-top: 40px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--clr-border);
}

.legal-page__content h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-dark);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-page__content p {
    font-size: 0.82rem;
    color: var(--clr-body);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-page__content ul,
.legal-page__content ol {
    margin: 8px 0 16px 20px;
    font-size: 0.82rem;
    color: var(--clr-body);
    line-height: 1.75;
}

.legal-page__content li {
    margin-bottom: 6px;
}

.legal-page__content a {
    color: var(--clr-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.legal-page__content a:hover {
    color: var(--clr-black);
}

/* Shipping page — highlight box */
.shipping-highlight-box {
    background: #fafafa;
    border: 1px solid var(--clr-border);
    padding: 24px 28px;
    margin: 16px 0 24px;
}

.shipping-highlight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.shipping-highlight-label {
    font-size: 0.82rem;
    color: var(--clr-body);
    font-weight: 400;
}

.shipping-highlight-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-black);
    letter-spacing: 0.3px;
}

.shipping-highlight-row--free .shipping-highlight-value {
    color: #2d8a4e;
}

.shipping-highlight-divider {
    height: 1px;
    background: var(--clr-border);
    margin: 4px 0;
}

/* Shipping page — warning box */
.shipping-warning-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff8f0;
    border: 1px solid #f0dcc0;
    border-left: 4px solid #d4940a;
    padding: 20px 24px;
    margin: 24px 0;
}

.shipping-warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.shipping-warning-content {
    font-size: 0.82rem;
    color: var(--clr-dark);
    line-height: 1.6;
}

.shipping-warning-content strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-black);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shipping-warning-content p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--clr-body);
}

/* ============================================
   ABOUT / MANIFESTO PAGE
   ============================================ */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-dark);
    overflow: hidden;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(26,26,26,0.7) 100%);
    z-index: 1;
}

.about-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 32px;
    max-width: 700px;
}

.about-hero__label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.about-hero__title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.about-hero__line {
    width: 48px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 24px;
}

.about-hero__subtitle {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* About Body */
.about-body {
    padding: 64px 40px 48px;
}

.about-body__container {
    max-width: 700px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 48px;
}

.about-block__number {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--clr-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.about-block__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.about-block__text {
    font-size: 0.85rem;
    color: var(--clr-body);
    line-height: 1.85;
    margin-bottom: 12px;
}

/* Dividers */
.about-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
}

.about-divider__line {
    flex: 1;
    height: 1px;
    background: var(--clr-border);
}

.about-divider__icon {
    font-size: 0.55rem;
    color: var(--clr-muted);
}

/* Closing Statement */
.about-closing {
    text-align: center;
    margin-top: 56px;
    padding-top: 48px;
}

.about-closing__line {
    width: 48px;
    height: 2px;
    background: var(--clr-black);
    margin: 0 auto 32px;
}

.about-closing__text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-dark);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 16px;
}

.about-closing__signature {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-black);
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .product-page__detail {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0 24px 24px;
        gap: 32px;
    }

    .product-page__specs {
        order: 3;
    }

    .product-page__gallery {
        order: 1;
        flex-direction: column-reverse;
    }

    .product-page__thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-top: 12px;
    }

    .product-page__thumbs img {
        width: 64px;
        height: 64px;
    }

    .product-page__info-panel {
        order: 2;
    }

    .product-page__buy-buttons {
        flex-direction: column;
    }

    .product-page__others {
        padding: 24px;
    }

    .product-page__others-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-page__back {
        padding: 16px 24px;
    }
}

@media (max-width: 960px) {
    .product-card {
        flex: 0 0 calc(33.333% - var(--grid-gap) * 0.66);
    }
}

@media (max-width: 620px) {
    .product-card {
        flex: 0 0 calc(65%);
        min-width: 240px;
    }
    
    .product-page__others-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--grid-gap);
        scrollbar-width: none;
        padding-bottom: 24px;
    }
    .product-page__others-grid::-webkit-scrollbar {
        display: none;
    }
    .product-page__others-grid .product-card {
        flex: 0 0 75%;
        scroll-snap-align: start;
    }

    .product-card__info {
        padding: 10px 10px 16px;
    }

    .product-card__name {
        font-size: 0.75rem;
    }

    .product-card__price {
        font-size: 0.75rem;
    }

    .store-header {
        padding: 24px 16px 16px;
    }

    .hero-cta {
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }

    /* Announcement bar mobile */
    .announcement-bar {
        font-size: 0.62rem;
        padding: 8px 16px;
        letter-spacing: 0.8px;
    }

    /* Cookie banner mobile */
    .cookie-banner__content {
        flex-direction: column;
        padding: 16px 20px;
        gap: 16px;
        text-align: center;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        flex: 1;
        padding: 12px 16px;
    }

    /* Legal pages mobile */
    .legal-page__nav {
        padding: 20px 20px;
    }

    .legal-page {
        padding: 0 20px 48px;
    }

    .legal-page__title {
        font-size: 1.5rem;
    }

    /* About page mobile */
    .about-hero__title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .about-hero__content {
        padding: 56px 24px;
    }

    .about-body {
        padding: 40px 20px 32px;
    }

    /* Footer mobile */
    .store-footer__links {
        flex-direction: column;
        gap: 6px;
    }

    .shipping-highlight-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ============================================
   SNIPCART — BAREEN-STYLE CART OVERRIDES
   ============================================ */
.snipcart-limit-warning {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-error, #fcedec);
    color: #d32f2f;
    border: 1px solid #f5c2c1;
    padding: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    pointer-events: none; /* Allows hover on footer */
}

.snipcart-limit-warning.show {
    opacity: 1;
    visibility: visible;
}

.snipcart-limit-warning strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.snipcart-limit-warning p {
    margin-bottom: 6px;
}
.snipcart-limit-warning p:last-child {
    margin-bottom: 0;
}

.snipcart-checkout-disabled,
#snipcart .snipcart-checkout-disabled,
#snipcart button.snipcart-checkout-disabled,
#snipcart .snipcart-base-button.snipcart-checkout-disabled,
#snipcart .snipcart-cart-button.snipcart-checkout-disabled,
#snipcart .snipcart-button-primary.snipcart-checkout-disabled,
#snipcart .snipcart-cart__checkout-button.snipcart-checkout-disabled {
    background-color: #d1d5db !important;
    background: #d1d5db !important;
    color: #000 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    border: none !important;
    --bgColor-buttonPrimary: #d1d5db !important;
    --color-buttonPrimary: #000 !important;
}

/* Hide View Detailed Cart link / button */
.snipcart-cart-header__option,
.snipcart-cart-button--secondary,
.snipcart-button-link {
    display: none !important;
}

/* Global: force our font, kill all rounded corners */
#snipcart {
    --color-default: #000;
    --bgColor-default: #fff;
    --bgColor-alt: #fff;
    --color-buttonPrimary: #fff;
    --bgColor-buttonPrimary: #000;
    --bgColor-buttonPrimary-hover: #222;
    --radius-default: 0px;
    --radius-button: 0px;
    --radius-badge: 0px;
}
#snipcart * {
    font-family: var(--font-main) !important;
}

/* ── Side panel width ── */
.snipcart-modal__container,
.snipcart-modal__container--tablet-up {
    width: 420px !important;
    max-width: 100vw !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
}

/* Force all inner containers to use full width */
.snipcart-layout,
.snipcart-layout__content,
.snipcart-layout__main-container,
.snipcart-cart {
    width: 100% !important;
    max-width: 100% !important;
}

/* ── Cart header ── */
.snipcart-cart-header {
    border-bottom: none !important;
    padding: 32px 24px 8px !important;
}
.snipcart-cart-header__title {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
}
.snipcart-cart-header__count {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #555 !important;
}
/* Hide account/sign-in links in header */
.snipcart-cart-header__options {
    display: none !important;
}

/* ── Make cart a flex column so footer sticks ── */
.snipcart-cart {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* ── Scrollable product list ── */
.snipcart-cart__content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    padding: 0 24px !important;
}

/* ── Each item: bordered card ── */
.snipcart-item-line {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 16px !important;
    padding-left: 96px !important; /* 16px base padding + 64px image + 16px gap */
    padding-bottom: 40px !important; /* Space for price & remove button */
    margin-bottom: 12px !important;
    background: #fff !important;
    position: relative !important;
    min-height: 104px !important;
    display: block !important;
    width: 100% !important;
}

/* Unwrap internal wrappers so absolute positioning anchors to .snipcart-item-line */
.snipcart-item-line__item,
.snipcart-item-line__container,
.snipcart-item-line__header,
.snipcart-item-line__content,
.snipcart-item-line__body,
.snipcart-item-line__product,
.snipcart-item-line__info,
.snipcart-item-line__actions {
    display: contents !important;
}

/* ── Image ── */
.snipcart-item-line__media {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    width: 64px !important;
    height: 64px !important;
    border: 1px solid #000 !important;
    padding: 4px !important;
    background: #fff !important;
    margin: 0 !important;
}
.snipcart-item-line__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* ── Title ── */
.snipcart-item-line__title {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #000 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    text-indent: 0 !important;
}

/* ── Hide description ── */
.snipcart-item-description,
.snipcart-item-line__description {
    display: none !important;
}

/* ── Variants area (size) ── */
.snipcart-item-line__variants {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    color: #333 !important;
    text-align: left !important;
}

/* Size dropdown as plain text */
.snipcart-form__select {
    pointer-events: none !important;
    appearance: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    color: #333 !important;
    height: auto !important;
    min-height: 0 !important;
}
.snipcart-form__select-wrapper svg {
    display: none !important;
}
.snipcart-form__select-wrapper {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}
.snipcart-item-custom-fields__field {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.snipcart-custom-field-wrapper__label {
    display: none !important;
}

/* ── Quantity ── */
.snipcart-item-quantity {
    display: contents !important;
}
.snipcart-item-quantity__quantity-price-container {
    display: contents !important;
}
.snipcart-item-quantity__label {
    display: none !important;
}

/* Size + Quantity row wrapper (injected by JS) */
.size-qty-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: calc(100% + 16px) !important;
    margin-right: -16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
}

/* Quantity text - right side of the size row */
.snipcart-item-quantity__quantity,
.snipcart-item-line__quantity {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin-left: auto !important;
}
.snipcart-item-quantity__quantity button {
    display: none !important;
}
.snipcart-item-quantity__quantity span {
    font-size: 0.85rem !important;
    color: #333 !important;
}
/* Remove the "un." suffix */
.snipcart-item-quantity__quantity span::after {
    content: "" !important;
}
/* Remove the "|" separator */
.snipcart-item-quantity__quantity::after {
    content: "" !important;
}

/* ── Price (bottom-left) ── */
.snipcart-item-quantity__total-price,
.snipcart-item-line__price {
    position: absolute !important;
    left: 96px !important;
    bottom: 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #000 !important;
    margin: 0 !important;
}

/* ── Trash / Remove button (bottom-right) ── */
.snipcart-button-icon.is-danger {
    position: absolute !important;
    right: 16px !important;
    bottom: 16px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}
.snipcart-button-icon.is-danger svg,
.snipcart-button-icon.is-danger path {
    display: none !important;
}
.snipcart-button-icon.is-danger::before {
    content: "Remove" !important;
    font-family: var(--font-main) !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #000 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* ── Footer: sticky at bottom ── */
.snipcart-cart__footer,
.snipcart-cart__footer--large,
.snipcart-cart__footer--tablet-up {
    flex-shrink: 0 !important;
    background: #fff !important;
    border-top: 1px solid #000 !important;
    padding: 24px !important;
    text-align: center !important;
}

/* Hide "Shipping and taxes will be calculated at checkout" */
.snipcart-summary-fees__notice,
.snipcart-summary-fees__tax-notice {
    display: none !important;
}

/* Subtotal row */
.snipcart-cart__footer-col,
.snipcart-cart__footer-col--large {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}

/* Summary fees (Subtotal, Shipping, Total lines) */
.snipcart-summary-fees {
    width: 100% !important;
}

.snipcart-summary-fees__item {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 4px 0 !important;
    font-size: 0.9rem !important;
}

.snipcart-summary-fees__title {
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.snipcart-summary-fees__amount {
    font-weight: 700 !important;
}

/* Checkout button: full width, black, centered */
.snipcart-cart__footer-buttons {
    width: 100% !important;
}
.snipcart-cart__checkout-button {
    width: 100% !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 16px !important;
    font-size: 0.85rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Hide discount box in cart footer */
.snipcart-cart__footer-discount-box,
.snipcart-cart__discount-box {
    display: none !important;
}

/* Payment methods: centered */
.snipcart-cart__featured-payment-methods-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: 16px !important;
}
.snipcart-cart__featured-payment-methods-title {
    text-align: center !important;
}

/* ── Fullscreen when entering checkout flow ── */
body.snipcart-checkout-full .snipcart-modal__container,
body.snipcart-checkout-full .snipcart-modal__container--tablet-up {
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Make checkout use more space efficiently */
body.snipcart-checkout-full .snipcart-layout {
    max-width: 1200px !important; /* Expand from default 960px */
    width: 100% !important;
    margin: 0 auto !important;
}

body.snipcart-checkout-full .snipcart-layout__content {
    gap: 40px !important; /* Add more breathing room between columns */
}

/* Align checkout header (Continue shopping) and add top spacing */
body.snipcart-checkout-full .snipcart-cart-header {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 20px 20px 20px !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    text-align: left !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background-color: #f3f4f6 !important; /* Match Snipcart's checkout background */
}

body.snipcart-checkout-full .snipcart-cart-header__close-button {
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-content: flex-start !important;
}

body.snipcart-checkout-full .snipcart-cart-header__option {
    display: none !important;
}

/* Custom Snipcart Progress Banners */
.custom-snipcart-banners {
    padding: 16px 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 10px;
    position: relative;
    z-index: 9999999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Constrain banner width to align with billing/shipping boxes in checkout */
body.snipcart-checkout-full .custom-snipcart-banners {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto 20px auto !important;
    box-sizing: border-box !important;
    padding: 0 20px 16px 20px !important;
    background-color: #f3f4f6 !important; /* Match Snipcart's checkout background */
    box-shadow: none !important;
    border-bottom: none !important;
    position: sticky !important;
    top: 80px !important; /* header height is approx 80px */
    z-index: 99 !important;
}

.snipcart-progress-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.snipcart-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.snipcart-progress-labels > span {
    flex: 1;
}

.snipcart-progress-labels > span:first-child {
    text-align: left;
}

.progress-title {
    text-align: center !important;
    color: #999;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-goal {
    text-align: right;
}

.snipcart-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.snipcart-progress-fill {
    height: 100%;
    background: var(--clr-dark, #111);
    border-radius: 4px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* Force Snipcart items to stick to the top under our custom banners */
.snipcart-cart__content {
    justify-content: flex-start !important;
}

.snipcart-item-list {
    margin-top: 0 !important;
    margin-bottom: auto !important;
    flex-grow: 0 !important;
    width: 100% !important;
}
