:root {
    --glass-surface: rgba(255, 255, 255, 0.38);
    --glass-surface-strong: rgba(255, 255, 255, 0.56);
    --glass-stroke: rgba(255, 255, 255, 0.62);
    --glass-shadow:
        0 18px 48px rgba(34, 53, 45, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --glass-blur: blur(24px) saturate(155%);
}

body.storefront {
    background:
        radial-gradient(
            ellipse at 5% 8%,
            rgba(249, 224, 224, 0.18),
            transparent 32rem
        ),
        linear-gradient(145deg, #f8f8f9 0%, #f1f2f4 52%, #f7f7f8 100%);
    background-attachment: fixed;
}

/* Mobile: disable fixed background attachment to prevent CLS */
@media (max-width: 768px) {
    body.storefront {
        background-attachment: scroll !important;
    }
}

.header-inner {
    width: min(calc(100% - 2.5rem), 1720px);
    min-height: 3.35rem;
}

.header-logo {
    width: 8rem;
    height: auto;
    aspect-ratio: 1380 / 530;
}

@media (max-width: 960px) {
    .header-logo {
        width: 7.1rem;
    }
}

@media (min-width: 961px) {
    .header-inner {
        position: relative;
    }

    .header-brand-nav {
        display: contents;
    }

    .header-brand-nav > a {
        flex: 0 0 auto;
    }

    .desktop-nav {
        position: static;
        align-self: stretch;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
        margin: 0 1.5rem;
        transform: none;
        white-space: nowrap;
    }

    .header-tools {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

.desktop-nav {
    gap: 0;
}

.nav-menu-item {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3.35rem;
    padding: 0 0.9rem;
    color: aliceblue !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    transition:
        background 160ms ease,
        color 160ms ease;
}

.desktop-nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    padding: 0 0.9rem;
    color: aliceblue !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    transition:
        background 160ms ease,
        color 160ms ease;
}

.desktop-nav > a:hover,
.nav-menu-trigger:hover,
.nav-menu-item:focus-within .nav-menu-trigger {
    color: #ff0000 !important;
    background: rgba(38, 49, 41, 0.06);
    border-radius: 999px;
}

.nav-menu-trigger svg,
.mobile-submenu-toggle svg {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 160ms ease;
}

.nav-menu-item[x-data] .nav-menu-trigger[aria-expanded="true"] svg,
.mobile-submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nav-menu-item:focus-within .nav-menu-trigger,
.nav-menu-trigger:focus-visible,
.nav-submenu-link:focus-visible,
.mobile-nav a:focus-visible,
.mobile-submenu-toggle:focus-visible {
    outline: 2px solid rgba(29, 54, 134, 0.65);
    outline-offset: 3px;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    min-width: 13rem;
}

.nav-submenu-panel {
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem;
    border: 1px solid var(--glass-stroke);
    border-radius: 1rem;
    background: rgba(247, 251, 247, 0.48);
    box-shadow:
        0 18px 48px rgba(34, 53, 45, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.desktop-nav .nav-submenu-link {
    display: block;
    padding: 0.72rem 0.85rem;
    border-radius: 0.65rem;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
}

.desktop-nav .nav-submenu-link:hover,
.desktop-nav .nav-submenu-link:focus-visible {
    color: #ff0000;
    background: rgba(255, 255, 255, 0.58);
}

.header-tools {
    gap: 0.35rem;
}

.header-search-control {
    position: relative;
}

.header-search-popover {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 60;
    width: 17rem;
}

.header-search-popover .search-input {
    height: 2.6rem;
    border-color: rgba(30, 40, 34, 0.14);
    color: #252a26;
    background: rgba(255, 255, 255, 0.94);
}

.header-search-popover .search-input::placeholder {
    color: rgba(35, 43, 37, 0.55);
}

.header-search-popover .search-input:focus {
    border-color: rgba(29, 54, 134, 0.36);
    background: rgba(255, 255, 255, 0.98);
}

.header-search-popover .search-submit {
    color: #29332c;
}

.header-icon-button {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #292d2a;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.header-icon-button:hover,
.header-icon-button:focus-visible {
    color: #292d2a;
    background: rgba(255, 255, 255, 0.15);
}

.header-icon-button svg {
    width: 1.35rem;
    height: 1.35rem;
}

.search-input {
    border-color: rgba(30, 40, 34, 0.14);
    color: #252a26;
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 2px rgba(34, 53, 45, 0.04),
        0 4px 14px rgba(34, 53, 45, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.search-input:focus {
    border-color: rgba(29, 54, 134, 0.36);
    background: rgba(255, 255, 255, 0.92);
}

.header-actions > div:first-child > button,
.menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    color: #292d2a;
    background: transparent;
    box-shadow: none;
}

.header-actions > div:first-child > button:hover,
.menu-toggle:hover {
    transform: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.header-actions {
    gap: 0.15rem;
}

.header-actions > .account-link {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 0.15rem;
    display: none;
}

.header-actions > div:first-child > button {
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.header-actions > div:first-child > button svg {
    width: 1.35rem;
    height: 1.35rem;
}

.header-actions > div:first-child > button > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.header-actions > div:first-child > button > span:last-child {
    display: grid;
    place-items: center;
}

.mobile-nav,
.nav-submenu-panel {
    border: 1px solid var(--glass-stroke);
    background: rgba(247, 251, 247, 0.48);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    /* Above the announcement bar (z-index 60) so the drawer's own header and
       close button are never painted over by it. Below the cart drawer (1000). */
    z-index: 66;
    width: min(25rem, 88vw);
    max-height: none;
    padding: 1.25rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 1.5rem 0 0 1.5rem;
    background: rgba(106, 106, 106, 0.78);
    box-shadow:
        -18px 0 60px rgba(24, 37, 33, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    visibility: hidden;
    transform: translateX(100%);
}

.mobile-nav.is-open {
    visibility: visible;
    transform: translateX(0);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(18, 31, 25, 0.3);
    visibility: hidden;
    opacity: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-nav-backdrop.is-open {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.25rem 1.1rem;
    border-bottom: 1px solid rgba(29, 54, 134, 0.12);
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.mobile-nav-close {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.5);
}

.mobile-nav-close svg {
    width: 1.15rem;
    height: 1.15rem;
}

.mobile-nav > ul {
    margin: 0;
    padding-top: 0.65rem;
    padding-right: 0;
    padding-left: 0;
    list-style: none;
}

.mobile-nav li + li {
    border-top: 1px solid rgba(29, 54, 134, 0.1);
}

.mobile-nav .mobile-submenu {
    margin-bottom: 0.6rem;
}

.mobile-nav a {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.88rem;
}

.mobile-submenu-toggle {
    width: 3rem;
    height: 3rem;
    cursor: pointer;
}

.mobile-nav-close:focus-visible,
.mobile-submenu-toggle:focus-visible {
    outline: 2px solid rgba(29, 54, 134, 0.65);
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .header-tools {
        flex: 0 0 auto;
        gap: 0.35rem;
    }

    .header-actions > .account-link {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-logo {
        width: 7.25rem;
    }

    .header-tools {
        gap: 0.15rem;
    }

    .header-actions > div:first-child > button,
    .menu-toggle,
    .header-icon-button {
        width: 2.3rem;
        height: 2.3rem;
    }
}

.mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-row > a {
    flex: 1;
}

.mobile-submenu-toggle {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 0.75rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.34);
}

.mobile-nav .mobile-submenu {
    margin: 0 0 0.4rem 0.75rem;
    padding-left: 0.65rem;
    border-left: 1px solid rgba(29, 54, 134, 0.2);
}

.mobile-nav .mobile-submenu a {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    color: #fff;
    font-size: 0.75rem;
}

.hero-carousel {
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow:
        0 30px 80px rgba(23, 45, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.hero-carousel-copy {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: clamp(1.2rem, 2vw, 1.8rem);
    background:
        linear-gradient(
            140deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.08)
        ),
        rgba(16, 35, 29, 0.12);
    box-shadow:
        0 20px 52px rgba(8, 20, 15, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.hero-carousel-controls,
.hero-carousel-copy .button {
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow:
        0 12px 30px rgba(8, 20, 15, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.hero-carousel-copy .button {
    background: rgba(255, 255, 255, 0.78);
}

.hero-carousel-copy .button:hover {
    background: rgba(255, 255, 255, 0.96);
}

.store-content {
    position: relative;
}

.sale-feature {
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--glass-shadow);
}

.sale-copy {
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.collection-heading,
.empty-catalog {
    border: 1px solid var(--glass-stroke);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.52),
            rgba(255, 255, 255, 0.2)
        ),
        rgba(238, 244, 238, 0.34);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.collection-heading-image {
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 10px 28px rgba(34, 53, 45, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.product-card-swatches {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1rem;
    margin-top: 0.55rem;
}

.product-card-swatch {
    width: 0.85rem;
    height: 0.85rem;
    padding: 0;
    border: 1px solid rgba(38, 41, 46, 0.16);
    border-radius: 50%;
    background: var(--swatch-color);
    box-shadow: 0 0 0 1px #fff inset;
    cursor: pointer;
    transition:
        box-shadow 160ms ease,
        transform 160ms ease;
}

.product-card-swatch[aria-pressed="true"] {
    box-shadow:
        0 0 0 2px #fff inset,
        0 0 0 2px #ff0000;
    transform: scale(1.08);
}

.product-card-swatch:focus-visible {
    outline: 2px solid rgba(29, 54, 134, 0.7);
    outline-offset: 3px;
}

.product-card-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.product-card-prices {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.product-card-price {
    min-width: 0;
    margin: 0;
    color: #ff0000;
    font-size: clamp(1.5rem, 1.35vw, 1.2rem);
    font-weight: 850;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.product-card-original-price {
    margin: 0;
    color: #85878c;
    font-size: 0.76rem;
    text-decoration: line-through;
    white-space: nowrap;
}

.product-card-add-button {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
    border: 1px solid #ff0000;
    border-radius: 0.65rem;
    color: #fff;
    background: #ff0000;
    box-shadow: 0 5px 12px rgba(29, 54, 134, 0.22);
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.product-card-cart {
    flex: 0 0 auto;
}

/* ==========================================
   PRODUCT PAGE
   ========================================== */

.product-detail-page {
    --pd-ink: #0b0f14;
    --pd-muted: #5f656c;
    --pd-line: #e7e9ec;
    --pd-red: #e4001b;
    --pd-red-2: #ef0041;
    width: min(calc(100% - 2rem), 1800px);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(0.75rem, 2vw, 2.25rem);
    border: 1px solid var(--pd-line);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(27, 31, 37, 0.05);
}

/* ---------- Gallery ---------- */

.product-gallery {
    min-width: 0;
}

/* Main image on the left, vertical thumbnail rail on the right
   (same shape as the interlinkcap.com product page). */
.product-gallery-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.2rem;
    gap: 1rem;
    align-items: start;
    outline: none;
}

.product-gallery-main {
    position: relative;
    min-width: 0;
    /* Slides are stacked so the stage never grows during the fade between
       two images (otherwise the page jumps down for ~200ms). */
    display: grid;
    grid-template-areas: "stack";
}

.product-gallery-main > * {
    grid-area: stack;
}

.product-gallery-main .product-gallery-slide {
    grid-area: stack;
    align-self: start;
}

/* Only the active slide defines the stage height; the hidden ones are
   taken out of the grid flow so they can never add height. */
.product-gallery-main .product-gallery-slide:not(.is-active) {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    visibility: hidden;
    pointer-events: none;
}

.product-gallery-shell:focus-within .product-gallery-main {
    outline: 2px solid var(--pd-ink);
    outline-offset: 4px;
    border-radius: 1.5rem;
}

.product-gallery-stage {
    position: relative;
}

/* Horizontal, swipeable rail: one image per slide. */
.product-gallery-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.product-gallery-track::-webkit-scrollbar {
    display: none;
}

.product-gallery-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}

.product-gallery-track:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 2px;
}

.product-gallery-slide {
    display: grid;
    width: 100%;
    min-height: clamp(18rem, 46vw, 37rem);
    padding: clamp(0.75rem, 2vw, 1.75rem);
    place-items: center;
    border: 1px solid #eef0f2;
    border-radius: 1rem;
    background: #fbfbfd;
}

.product-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 34rem;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

.product-gallery-placeholder {
    display: grid;
    width: 100%;
    min-height: 20rem;
    place-items: center;
    color: var(--pd-red);
    background: #fafafa;
    font-size: 5rem;
    font-weight: 800;
}

.product-gallery-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    place-items: center;
    border: 1px solid #eceef0;
    border-radius: 50%;
    color: var(--pd-ink);
    background: #fff;
    box-shadow: 0 4px 14px rgba(27, 31, 37, 0.12);
    transform: translateY(-50%);
    cursor: pointer;
    transition:
        box-shadow 160ms ease,
        transform 160ms ease;
}

.product-gallery-arrow:hover {
    box-shadow: 0 6px 18px rgba(27, 31, 37, 0.2);
    transform: translateY(-50%) scale(1.06);
}

.product-gallery-arrow:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 2px;
}

.product-gallery-arrow svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-gallery-arrow-prev {
    left: 0.9rem;
}

.product-gallery-arrow-next {
    right: 0.9rem;
}

/* Mobile dots: shown when the thumbnail rail is hidden / scrolled away */
.product-gallery-dots {
    position: absolute;
    right: 0;
    bottom: 0.9rem;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    pointer-events: none;
}

.product-gallery-dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 15, 20, 0.22);
    cursor: pointer;
    pointer-events: auto;
    transition:
        width 160ms ease,
        background-color 160ms ease;
}

.product-gallery-dot.is-active {
    width: 1.2rem;
    background: var(--pd-ink);
}

.product-gallery-dot:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 2px;
}

.product-gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: clamp(20rem, 46vw, 38rem);
    margin: 0;
    padding: 0 0.2rem 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    border-top: 0;
}

.product-gallery-thumbnail {
    flex: 0 0 auto;
    width: 100%;
    padding: 0.2rem;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: 0.65rem;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.product-gallery-thumbnail.is-active {
    border-color: var(--pd-ink);
    box-shadow: 0 0 0 1px var(--pd-ink);
}

.product-gallery-thumbnail:hover {
    border-color: #9aa0a6;
}

.product-gallery-thumbnail[aria-pressed="true"] {
    border-color: var(--pd-ink);
    box-shadow: 0 0 0 1px var(--pd-ink);
}

.product-gallery-thumbnail:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 2px;
}

.product-gallery-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------- Details column ---------- */

.product-detail-content {
    position: sticky;
    top: 6.5rem;
    min-width: 0;
    padding: 0.25rem 0;
}

.product-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.9rem;
    padding: 0;
    color: var(--pd-muted);
    font-size: 0.74rem;
    list-style: none;
}

.product-breadcrumb li + li::before {
    content: ">";
    margin-right: 0.35rem;
}

.product-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--pd-ink);
    text-decoration: underline;
}

.product-breadcrumb li[aria-current="page"] {
    color: var(--pd-ink);
    font-weight: 600;
}

.product-detail-title {
    margin: 0;
    color: var(--pd-ink);
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-wrap: balance;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.7rem;
    padding: 0 0 1rem;
    border: 0;
    border-bottom: 1px solid var(--pd-line);
    color: var(--pd-ink);
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
}

.product-detail-rating:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 2px;
}

.product-detail-stars {
    display: inline-flex;
    gap: 0.1rem;
}

.product-detail-stars svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: #c3c8ce;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.product-detail-stars svg.is-filled {
    fill: #f5b301;
    stroke: #f5b301;
}

.product-detail-review-count {
    color: var(--pd-muted);
    font-size: 0.78rem;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.product-detail-sale-price {
    color: var(--pd-ink);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.product-detail-original-price {
    color: #8a8f95;
    font-size: 1.05rem;
    font-weight: 500;
}

.product-detail-sale-label {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    background: var(--pd-red);
    font-size: 0.7rem;
    font-weight: 700;
}

.product-detail-summary {
    max-width: 38rem;
    margin: 0.9rem 0 0;
    color: var(--pd-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-detail-sku {
    margin: 0.6rem 0 0;
    color: #777c83;
    font-size: 0.75rem;
}

/* ---------- Options ---------- */

.product-detail-options {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.4rem;
}

.product-detail-option {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.product-detail-option legend {
    padding: 0;
    color: var(--pd-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.product-detail-option legend span {
    color: var(--pd-muted);
    font-weight: 500;
}

.product-detail-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.product-variant-button {
    min-height: 2.65rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid #d5d9de;
    border-radius: 0.6rem;
    color: var(--pd-ink);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.product-variant-button:hover {
    border-color: var(--pd-ink);
}

.product-variant-button[aria-pressed="true"] {
    border-color: var(--pd-ink);
    color: #fff;
    background: var(--pd-ink);
}

.product-variant-button:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 2px;
}

/* ---------- Rounded Color Swatches ---------- */

.product-detail-color-values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.product-color-swatch-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.product-color-swatch-button:hover {
    transform: scale(1.08);
}

.product-color-swatch-button[aria-pressed="true"] {
    border-color: var(--pd-ink, #111827);
    box-shadow: 0 0 0 1px var(--pd-ink, #111827);
}

.product-color-swatch-circle {
    display: block;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    background-color: var(--swatch-color, #e5e7eb);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.product-color-swatch-button:hover .product-color-swatch-circle {
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.18),
        0 3px 6px rgba(0, 0, 0, 0.12);
}

.product-color-swatch-button[aria-pressed="true"] .product-color-swatch-circle {
    transform: scale(0.92);
}

.product-color-swatch-button:focus-visible {
    outline: 2px solid var(--pd-ink, #111827);
    outline-offset: 3px;
}

/* ---------- Cart ---------- */

.product-detail-cart {
    max-width: none;
    margin-top: 1.5rem;
}

.product-detail-cart-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.product-detail-cart-actions > div:first-child {
    display: flex;
    align-items: center;
    align-self: flex-start;
}

.product-quantity-control,
.cart-quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5d9de;
    border-radius: 0.6rem;
    background: #fff;
}

.product-quantity-control {
    min-height: 2.9rem;
    padding: 0.15rem;
}

.product-quantity-control input,
.cart-quantity-control input {
    width: 2.5rem;
    padding: 0.35rem 0.1rem;
    border: 0;
    border-radius: 0.35rem;
    color: var(--pd-ink);
    background: transparent;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: none;
}

.product-quantity-control input {
    min-height: 2.6rem;
}

.product-quantity-control input:focus,
.cart-quantity-control input:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

.quantity-stepper-button {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    color: #5e6269;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition:
        color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.quantity-stepper-button:hover {
    color: var(--pd-ink);
    background: #f1f2f4;
}

.quantity-stepper-button:active {
    transform: scale(0.92);
}

.quantity-stepper-button:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 1px;
}

.product-quantity-control:focus-within,
.cart-quantity-control:focus-within {
    border-color: var(--pd-ink);
}

.product-detail-cart input:focus-visible {
    outline: none;
}

.product-detail-cart-buttons {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.7rem;
}

.product-detail-cart-buttons button {
    display: inline-flex;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.75rem 1rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        filter 160ms ease,
        transform 160ms ease;
}

.product-detail-buy-now {
    order: -1;
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, var(--pd-red), var(--pd-red-2));
    box-shadow: 0 6px 16px rgba(228, 0, 27, 0.25);
}

.product-detail-add-button {
    border: 1px solid #000;
    color: #fff;
    background: #000;
}

.product-detail-cart-buttons button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.product-detail-cart-buttons button:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 3px;
}

/* ---------- Assurances strip ---------- */

.product-assurances {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--pd-ink);
    border-radius: 0.7rem;
    list-style: none;
}

.product-assurances li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--pd-ink);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
}

.product-assurances svg {
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-detail-content .product-card-tags {
    margin-top: 1rem;
}

/* ---------- Information tabs ---------- */

.product-information {
    margin-top: clamp(1.5rem, 4vw, 3rem);
}

.product-information-tabs {
    display: flex;
    gap: clamp(1rem, 4vw, 2.5rem);
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
    scrollbar-width: none;
}

.product-information-tabs::-webkit-scrollbar {
    display: none;
}

.product-information-tab {
    flex: 0 0 auto;
    min-height: 3.25rem;
    padding: 0.5rem 0.15rem;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--pd-muted);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.product-information-tab[aria-selected="true"] {
    border-bottom-color: var(--pd-red);
    color: var(--pd-ink);
}

.product-information-tab:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 2px;
}

.product-information-panel {
    min-height: 8rem;
    padding: clamp(1rem, 3vw, 2rem) 0;
}

.product-explore-artwork,
.product-explore-artwork img,
.product-explore-fallback {
    display: block;
    width: 100%;
}

.product-explore-artwork img,
.product-explore-fallback {
    max-height: fit-content;
    border-radius: 1rem;
    object-fit: cover;
}

.product-explore-placeholder {
    min-height: 15rem;
}

.product-information-empty {
    color: var(--pd-muted);
}

.product-detail-description {
    max-width: 52rem;
    color: #555b62;
    font-size: 0.95rem;
    line-height: 1.75;
    white-space: pre-line;
}

.product-detail-reviews {
    margin-top: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail-content {
        position: static;
    }

    /* Stacked layout: thumbnails move below the image and run horizontally. */
    .product-gallery-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-gallery-thumbnails {
        flex-direction: row;
        gap: 0.6rem;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.15rem 0;
    }

    .product-gallery-thumbnail {
        width: 4.4rem;
        flex: 0 0 auto;
    }
}

@media (max-width: 560px) {
    .product-detail-page {
        width: min(calc(100% - 1rem), 1800px);
        padding-top: 0.6rem;
    }

    .product-detail-layout {
        padding: 0.6rem;
        border-radius: 1rem;
    }

    .product-gallery-slide {
        min-height: 18rem;
    }

    .product-gallery-arrow {
        width: 2.3rem;
        height: 2.3rem;
    }

    .product-gallery-thumbnail {
        width: 4.2rem;
    }

    .product-gallery-dots {
        bottom: 0.6rem;
    }

    .product-assurances {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-gallery-arrow,
    .product-detail-cart-buttons button,
    .product-variant-button,
    .product-gallery-thumbnail {
        transition: none;
    }
}

.product-reviews {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(224, 226, 230, 0.9);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 32px rgba(27, 31, 37, 0.06);
}

.product-reviews-heading,
.product-review-summary,
.product-review-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-reviews-heading {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-reviews-heading h2 {
    margin: 0;
    color: #24272c;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.product-review-summary {
    flex-wrap: wrap;
    justify-content: flex-end;
    color: #666b72;
    font-size: 0.8rem;
}

.product-review-summary strong {
    color: #24272c;
    font-size: 1rem;
}

.product-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
    gap: clamp(1.5rem, 4vw, 3rem);
}

.product-review-list {
    display: grid;
    align-content: start;
}

.product-review {
    padding: 1rem 0;
    border-bottom: 1px solid #eceef0;
}

.product-review:first-child {
    padding-top: 0;
}

.product-review-meta {
    flex-wrap: wrap;
    color: #666b72;
    font-size: 0.75rem;
}

.product-review-meta time {
    margin-left: auto;
}

.product-review h3 {
    margin: 0.55rem 0 0;
    color: #24272c;
    font-size: 0.95rem;
    font-weight: 700;
}

.product-review > p,
.product-review-empty {
    margin: 0.5rem 0 0;
    color: #5f646b;
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre-line;
}

.product-review-images,
.product-review-upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.product-review-images img,
.product-review-upload-preview img {
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    border: 1px solid #e2e5e9;
    border-radius: 0.6rem;
    background: #fff;
    object-fit: cover;
}

.product-review-upload-preview {
    display: grid;
    justify-items: start;
    gap: 0.3rem;
}

.product-review-upload-preview button {
    border: 0;
    color: #a91f25;
    background: transparent;
    font-size: 0.7rem;
    cursor: pointer;
}

.product-review-form {
    padding: 1.15rem;
    border: 1px solid #eceef0;
    border-radius: 0.9rem;
    background: #fafbfc;
}

.product-review-form > h3 {
    margin: 0 0 1rem;
    color: #24272c;
    font-size: 1rem;
    font-weight: 700;
}

.product-review-fields {
    display: grid;
    gap: 0.8rem;
}

.product-review-fields label {
    display: grid;
    gap: 0.35rem;
    color: #444950;
    font-size: 0.75rem;
    font-weight: 650;
}

.product-review-fields input,
.product-review-fields select,
.product-review-fields textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #dfe2e6;
    border-radius: 0.55rem;
    color: #24272c;
    background: #fff;
    font: inherit;
    font-weight: 400;
}

.product-review-fields input:focus,
.product-review-fields select:focus,
.product-review-fields textarea:focus {
    border-color: #ff0000;
    outline: 2px solid rgba(29, 54, 134, 0.13);
}

.product-review-fields label small,
.product-review-error {
    color: #b4232a;
    font-size: 0.72rem;
}

.product-review-submit {
    min-height: 2.7rem;
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.6rem;
    color: #fff;
    background: #ff0000;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.product-review-submit:hover {
    background: #a91f25;
}

.product-review-moderation {
    margin: 0.65rem 0 0;
    color: #767b82;
    font-size: 0.68rem;
    line-height: 1.5;
}

.product-review-success {
    margin: 0 0 0.8rem;
    color: #276342;
    font-size: 0.8rem;
    line-height: 1.5;
}
.product-card-purchase {
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1rem;
}

.product-card-prices {
    gap: 0.5rem;
}

.product-card-price {
    font-size: clamp(1.45rem, 1.8vw, 1.8rem);
    font-weight: 900;
    line-height: 1.15;
}

.product-card-original-price {
    font-size: 0.88rem;
}

.product-card-cart {
    width: 100%;
}

.product-card-cart .product-card-add-button,
.product-card-add-button {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0.85rem 1.1rem;
    justify-content: center;
    gap: 0.55rem;
    border-width: 1px;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    box-shadow: 0 7px 16px rgba(29, 54, 134, 0.24);
}

.product-card-add-button span {
    font-size: 1rem;
    font-weight: 850;
}

.product-card-add-button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.product-card-add-button:hover,
.product-card-cart .product-card-add-button:hover {
    background: #982124;
    border-color: #982124;
    box-shadow: 0 9px 20px rgba(29, 54, 134, 0.3);
}

.product-card-sale-badge {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 850;
}

/* Extra-large product titles */

/* first collection-tile block removed — unified styles live below */

.brand-note {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--glass-stroke);
    border-radius: 1.5rem;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.46),
            rgba(255, 255, 255, 0.18)
        ),
        rgba(238, 244, 238, 0.3);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.site-footer {
    margin: 0 0.75rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.checkout-storefront {
    background:
        radial-gradient(
            ellipse at 8% 8%,
            rgba(249, 224, 224, 0.44),
            transparent 30rem
        ),
        radial-gradient(
            ellipse at 96% 48%,
            rgba(245, 229, 220, 0.32),
            transparent 28rem
        ),
        linear-gradient(145deg, #f8faf7, #f1f5f1 55%, #f8f6f1);
    background-attachment: fixed;
}

.checkout-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 8px 28px rgba(34, 53, 45, 0.06);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.checkout-card,
.checkout-summary {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.checkout-summary {
    background: rgba(246, 249, 245, 0.48);
}

.checkout-progress-number {
    border-color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.checkout-footer {
    border-top-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.home-collections {
    width: min(calc(100% - 2rem), 1600px);
    margin: clamp(2.5rem, 5vw, 4.5rem) auto;
}

.home-blogs {
    width: min(calc(100% - 2rem), 1600px);
    margin: clamp(3rem, 6vw, 5.5rem) auto;
}

.home-blogs-heading {
    margin-bottom: 1.5rem;
}

.home-blogs-heading .eyebrow {
    margin-bottom: 0.4rem;
}

.home-blogs-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 650;
    letter-spacing: -0.045em;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.home-blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(224, 226, 230, 0.9);
    border-radius: 1rem;
    background: #fff;
    /* box-shadow: 0 12px 32px rgba(24, 28, 34, 0.07); */
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.home-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(24, 28, 34, 0.12);
}

/* ---------- Blog card image ---------- */
.home-blog-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f5;
}

.home-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms cubic-bezier(0.22, 0.9, 0.25, 1);
}

.home-blog-card:hover .home-blog-image img {
    transform: scale(1.06);
}

/* Composed surface for posts with no header image. */
.home-blog-image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    font-family: var(--font-heading, "Inter", Arial, sans-serif);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Category chip sits over the image. */
.home-blog-chip {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 18, 25, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Card body ---------- */
.home-blog-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    /* No forced min-height: it added ~110px of dead space under the link.
       Cards hug their content and stretch to the tallest in the row via the
       track's align-items: stretch. */
    padding: clamp(0.9rem, 2vw, 1.35rem);
}

/* Date • reading time on one line. */
.home-blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: #747a82;
    font-size: 0.72rem;
    font-weight: 600;
}

.home-blog-date,
.blog-article-date {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.home-blog-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.home-blog-title {
    margin: 0.55rem 0 0;
    font-family: var(--font-heading, "Inter", Arial, sans-serif);
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.22rem);
    font-weight: 700;
    line-height: 1.32;
    /* Consistent card heights without a hard min-height on the box. */
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-blog-title a {
    color: #24272c;
    text-decoration: none;
    transition: color 160ms ease;
}

.home-blog-title a:hover {
    color: #a91f25;
}

.home-blog-excerpt {
    margin: 0.5rem 0 1rem;
    color: #626870;
    font-size: clamp(0.82rem, 0.8rem + 0.15vw, 0.9rem);
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ---------- Footer link ---------- */
.home-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.25rem;
    color: #a91f25;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    transition: gap 180ms ease;
}

.home-blog-link svg {
    width: 0.8rem;
    height: 0.8rem;
    transition: transform 180ms ease;
}

.home-blog-link:hover {
    gap: 0.55rem;
}

.home-blog-link:hover svg {
    transform: translate(2px, -2px);
}

.home-blog-link:focus-visible,
.home-blog-content h3 a:focus-visible,
.blog-article-back:focus-visible {
    border-radius: 0.2rem;
    outline: 2px solid #ff0000;
    outline-offset: 3px;
}

.blog-article {
    width: min(calc(100% - 2rem), 1100px);
    margin: clamp(1rem, 3vw, 2.5rem) auto 5rem;
}

.blog-article-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: #a91f25;
    font-weight: 700;
    text-decoration: none;
}

.blog-article-header-image {
    display: block;
    width: 100%;
    max-height: 42rem;
    aspect-ratio: 16 / 8;
    border-radius: clamp(0.8rem, 2vw, 1.4rem);
    background: #f3f4f5;
    object-fit: cover;
}

.blog-article-content {
    width: min(100%, 760px);
    margin: clamp(1.5rem, 4vw, 3rem) auto 0;
}

.blog-article-content h1 {
    margin: 0.5rem 0 0;
    color: #24272c;
    font-family: var(--font-heading, "Inter", Arial, sans-serif);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 750;
    letter-spacing: -0.05em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.blog-article-excerpt {
    margin: 1rem 0 0;
    color: #535a62;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.65;
}

.blog-article-body {
    margin-top: 1.5rem;
    color: #454b52;
    font-size: 1rem;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (min-width: 641px) and (max-width: 1024px) {
    .home-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   TABLET / DESKTOP TABLET (641px to 1024px)
   Single column, scrollable left/right (one blog per view).
   ========================================== */
@media (min-width: 641px) and (max-width: 1024px) {
    .home-blog-grid {
        display: flex;
        gap: 1.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .home-blog-grid > * {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

.home-collections-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
}

.home-collections-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.home-collections-heading .eyebrow {
    margin-bottom: 0.4rem;
}

.home-collections-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 550;
    letter-spacing: -0.045em;
}

.home-collections-all {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-bottom: 0.25rem;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
}

.home-collections-all:hover {
    color: #ff0000;
}

.collection-carousel-controls {
    display: flex;
    gap: 0.45rem;
}

.collection-carousel-controls button {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid rgba(29, 54, 134, 0.18);
    border-radius: 50%;
    color: #162248;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 4px 14px rgba(34, 53, 45, 0.06);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.collection-carousel-controls button:hover {
    color: #fff;
    background: #ff0000;
    transform: translateY(-1px);
}

.collection-carousel-controls button:focus-visible {
    outline: 2px solid rgba(29, 54, 134, 0.65);
    outline-offset: 3px;
}

.collection-carousel {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 2%,
        #000 98%,
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 2%,
        #000 98%,
        transparent
    );
    touch-action: pan-x;
}

.collection-carousel-track {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    -ms-overflow-style: none;
}

.collection-carousel-track::-webkit-scrollbar {
    display: none;
}

.collection-carousel.is-dragging .collection-carousel-track {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.collection-carousel-group {
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
    padding: 0.25rem 1rem 0.75rem;
}

/* ==========================================
   COLLECTION TILE - simple category card

   Light grey card, thin border, portrait photo (top-aligned crop), name
   centred underneath. Same class names as before, no HTML changes needed.

   .collection-tile-image is flattened with display: contents, so it works
   whether the name/count sit inside it or beside it.
   ========================================== */
.collection-tile {
    --tile-accent: #ff0000;

    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: clamp(9rem, 12vw, 12rem);
    padding: 0.75rem;
    overflow: hidden;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f3f4f6;
    scroll-snap-align: start;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        border-color 200ms ease,
        transform 250ms ease;
}

.collection-tile-image {
    display: contents;
}

.collection-tile-image::before,
.collection-tile-image::after,
.collection-tile-details::before,
.collection-tile-details::after {
    content: none;
}

/* Portrait photo, cropped from the top so heads/products stay in frame */
.collection-tile img {
    position: static;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 205 / 273;
    padding: 0;
    object-fit: cover;
    object-position: top center;
    border-radius: 0.375rem;
    background: #e5e7eb;
    transform: none;
    transition: none;
}

/* Name centred under the photo, no panel */
.collection-tile-details {
    position: static;
    display: block;
    min-width: 0;
    min-height: 0;
    margin-top: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
    isolation: auto;
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.collection-tile-name {
    display: block;
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-tile-count {
    display: block;
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.1;
}

/* Not used in this design */
.collection-tile-arrow {
    display: none;
}

@media (hover: hover) {
    .collection-tile:hover {
        border-color: #cbd5e1;
        transform: translateY(-2px);
    }
}

.collection-tile:active {
    transform: scale(0.98);
}

.collection-tile:focus-visible {
    outline: 2px solid var(--tile-accent);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .collection-tile {
        width: clamp(8rem, 40vw, 10rem);
        padding: 0.5rem;
    }

    .collection-tile-details {
        margin-top: 0.55rem;
    }

    .collection-tile-name {
        font-size: 0.8rem;
    }
}

@media (min-width: 1441px) {
    .collection-tile {
        width: clamp(11rem, 10vw, 13rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .collection-tile {
        transition: none;
    }

    .collection-tile:hover {
        transform: none;
    }
}

/* Tighter gap between the smaller cards */
.collection-carousel-group {
    gap: 0.75rem;
}

:root {
    --font-body: "Inter", Arial, sans-serif;
    --font-heading: "Inter", Arial, sans-serif;
}

body.storefront,
body.storefront button,
body.storefront input,
body.storefront select,
body.storefront textarea {
    font-family: var(--font-body);
}

body.storefront h1,
body.storefront h2,
body.storefront h3,
body.storefront h4,
body.storefront h5,
body.storefront h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

body.storefront .product-card-price,
body.storefront .product-card-original-price,
body.storefront .product-detail-sale-price,
body.storefront .product-detail-original-price,
body.storefront .cart-drawer-item-price,
body.storefront .cart-drawer-line-total,
body.storefront .cart-drawer-subtotal dd,
body.storefront .checkout-summary dd,
body.storefront .checkout-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums;
}

body.storefront .product-card-price,
body.storefront .product-detail-sale-price {
    font-weight: 800;
}

@media (max-width: 640px) {
    .product-card {
        padding: 0.35rem 0.35rem 0.6rem;
        border-radius: 0.85rem;
    }

    .product-card-image {
        aspect-ratio: 1;
    }

    .product-card-title {
        min-height: 2.5em;
        margin: 0.7rem 0.1rem 0;
        font-size: 0.74rem;
    }

    .product-card-description {
        min-height: 2.7em;
        margin-right: 0.1rem;
        margin-left: 0.1rem;
        font-size: 0.64rem;
    }

    .product-card-purchase {
        align-items: flex-start;
        flex-direction: column;
        margin: 0.55rem 0.1rem 0;
    }

    .product-card-cart,
    .product-card-cart .product-card-add-button {
        width: 100%;
    }

    .product-card-cart .product-card-add-button {
        min-width: 0;
    }

    .product-card-price {
        font-size: 1rem;
    }

    .product-card-purchase {
        gap: 0.45rem;
    }

    .product-card-add-button {
        min-height: 2.3rem;
        padding: 0.45rem 0.55rem;
        font-size: 0.66rem;
    }

    .site-footer {
        margin-right: 0.5rem;
        margin-left: 0.5rem;
        border-radius: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .header-actions > div:first-child > button,
    .menu-toggle {
        transition: none;
    }
}

@supports not (
    (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
    .mobile-nav,
    .nav-submenu-panel,
    .hero-carousel-copy,
    .hero-carousel-controls,
    .product-card,
    .collection-heading,
    .empty-catalog,
    .brand-note,
    .site-footer,
    .checkout-header,
    .checkout-card,
    .checkout-summary {
        background-color: rgba(247, 250, 247, 0.94);
    }

    /* No backdrop-filter available: every other glass surface above gets a
       solid fallback, so the header needs one too or its white nav text
       sits over page content with no background. */
    .site-header {
        background-color: rgba(34, 38, 50, 0.94);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .hero-carousel-copy {
        background-color: rgba(16, 35, 29, 0.82);
    }
}

.cart-drawer {
    position: relative;
}

.cart-drawer-trigger {
    position: relative;
}

.cart-drawer-count {
    position: absolute;
    top: 0.05rem;
    right: 0;
    display: grid;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ff0000;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
}

.cart-drawer-layer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 260ms ease;
}

.cart-drawer-layer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 25, 28, 0.48);
    opacity: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 260ms ease;
}

.cart-drawer-layer.is-open .cart-drawer-backdrop {
    opacity: 1;
}

.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(100%, 30rem);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    color: #24272b;
    background: #fff;
    box-shadow: -18px 0 56px rgba(18, 24, 30, 0.2);
    transform: translateX(102%);
    transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.cart-drawer-layer.is-open .cart-drawer-panel {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.5rem 1.1rem;
    border-bottom: 1px solid #ececef;
}

.cart-drawer-header h2,
.cart-drawer-header p {
    margin: 0;
}

.cart-drawer-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cart-drawer-header p {
    margin-top: 0.2rem;
    color: #777b82;
    font-size: 0.75rem;
}

.cart-drawer-close {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid #ececef;
    border-radius: 50%;
    color: #4e5156;
    background: #fff;
    cursor: pointer;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.cart-drawer-close:hover {
    border-color: rgba(29, 54, 134, 0.2);
    color: #ff0000;
    background: #f3f6fb;
}

.cart-drawer-close svg {
    width: 1.15rem;
    height: 1.15rem;
}

.cart-drawer-items {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 1.5rem;
}

.cart-drawer-items ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.9rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #efeff1;
}

.cart-drawer-item > img,
.cart-drawer-item-placeholder {
    display: grid;
    width: 5.25rem;
    height: 5.25rem;
    place-items: center;
    border-radius: 0.75rem;
    color: #ff0000;
    background: #f7f5f5;
    font-size: 1.5rem;
    font-weight: 800;
    object-fit: cover;
}

.cart-drawer-item-details {
    min-width: 0;
}

.cart-drawer-item-details h3,
.cart-drawer-item-options,
.cart-drawer-item-price {
    margin: 0;
}

.cart-drawer-item-details h3 {
    display: -webkit-box;
    overflow: hidden;
    color: #25282d;
    font-size: 0.83rem;
    font-weight: 750;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cart-drawer-item-options {
    margin-top: 0.25rem;
    color: #777b82;
    font-size: 0.69rem;
}

.cart-drawer-item-price {
    margin-top: 0.45rem;
    color: #ff0000;
    font-size: 0.78rem;
    font-weight: 750;
}

.cart-drawer-item-price span {
    color: #777b82;
    font-size: 0.68rem;
    font-weight: 500;
}

.cart-drawer-item-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.55rem;
}

.cart-quantity-control {
    min-height: 2.35rem;
    padding: 0.15rem;
}

.cart-quantity-control input {
    width: 2.25rem;
    font-size: 0.76rem;
}

.cart-quantity-control .quantity-stepper-button {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.05rem;
}

.cart-drawer-remove {
    padding: 0;
    border: 0;
    color: #777b82;
    background: transparent;
    font-size: 0.7rem;
    cursor: pointer;
}

.cart-drawer-remove:hover {
    color: #ff0000;
    text-decoration: underline;
}

.cart-drawer-line-total {
    margin: 0;
    color: #25282d;
    font-size: 0.76rem;
    font-weight: 750;
    white-space: nowrap;
}

.cart-drawer-error {
    margin: 0.4rem 0 0;
    color: #b42318;
    font-size: 0.68rem;
}

.cart-drawer-footer {
    flex: 0 0 auto;
    padding: 1.1rem 1.5rem max(1.25rem, env(safe-area-inset-bottom));
    border-top: 1px solid #ececef;
    background: #fff;
}

.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    color: #25282d;
    font-size: 0.95rem;
    font-weight: 800;
}

.cart-drawer-subtotal dd {
    margin: 0;
    color: #ff0000;
    font-variant-numeric: tabular-nums;
}

.cart-drawer-note {
    margin: 0.35rem 0 1rem;
    color: #777b82;
    font-size: 0.69rem;
}

.cart-drawer-update,
.cart-drawer-checkout {
    display: flex;
    width: 100%;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    font-size: 0.82rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.cart-drawer-update {
    min-height: 2.25rem;
    margin-bottom: 0.5rem;
    border: 1px solid #dedfe2;
    color: #45494f;
    background: #fff;
}

.cart-drawer-update:hover {
    border-color: #ff0000;
    color: #ff0000;
}

.cart-drawer-checkout {
    border: 1px solid #ff0000;
    color: #fff;
    background: #ff0000;
}

.cart-drawer-checkout:hover {
    color: #fff;
    background: #982124;
    transform: translateY(-1px);
}

.cart-drawer-continue {
    display: block;
    margin: 0.85rem auto 0;
    color: #45494f;
    font-size: 0.76rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-drawer-continue:hover {
    color: #ff0000;
}

.cart-drawer-empty {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.cart-drawer-empty-icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border-radius: 50%;
    color: #ff0000;
    background: #e1edf5;
}

.cart-drawer-empty-icon svg {
    width: 2rem;
    height: 2rem;
}

.cart-drawer-empty h3 {
    margin: 1rem 0 0;
    color: #25282d;
    font-size: 1rem;
    font-weight: 800;
}

.cart-drawer-empty p {
    max-width: 18rem;
    margin: 0.4rem 0 1.25rem;
    color: #777b82;
    font-size: 0.8rem;
    line-height: 1.5;
}

.cart-drawer-empty .cart-drawer-checkout {
    max-width: 18rem;
}

.home-product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-featured-products .collection-carousel-controls {
    display: none;
}

.home-featured-products .collection-carousel-controls {
    margin: 0;
}

.home-product-track:focus-visible {
    outline: 2px solid rgba(29, 54, 134, 0.55);
    outline-offset: 4px;
}

.cart-drawer-close:focus-visible,
.cart-drawer-trigger:focus-visible,
.cart-drawer-update:focus-visible,
.cart-drawer-checkout:focus-visible,
.cart-drawer-continue:focus-visible,
.cart-drawer-remove:focus-visible {
    outline: 2px solid rgba(29, 54, 134, 0.7);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .cart-drawer-header {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .cart-drawer-items {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .cart-drawer-item {
        grid-template-columns: 4.25rem minmax(0, 1fr) auto;
        gap: 0.65rem;
    }

    .cart-drawer-item > img,
    .cart-drawer-item-placeholder {
        width: 4.25rem;
        height: 4.25rem;
    }

    .product-quantity-control .quantity-stepper-button {
        width: 2rem;
    }

    .cart-drawer-footer {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 640px) {
    .home-featured-products .section-heading {
        align-items: flex-end;
        gap: 0.75rem;
    }

    .home-product-actions {
        gap: 0.55rem;
    }

    .home-product-actions .section-link {
        gap: 0.25rem;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .home-featured-products .collection-carousel-controls {
        display: flex;
        gap: 0.3rem;
    }

    .home-featured-products .collection-carousel-controls button {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }

    .home-product-track {
        display: flex;
        gap: 0.8rem;
        margin-right: -0.75rem;
        padding: 0.35rem 0.85rem 0.75rem 0.15rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 0.15rem;
        scroll-snap-type: x mandatory;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }

    .home-product-track.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        user-select: none;
    }

    .home-product-track > .product-card {
        width: min(76vw, 18rem);
        min-width: min(76vw, 18rem);
        flex: 0 0 min(76vw, 18rem);
        scroll-snap-align: start;
    }

    .home-product-track::-webkit-scrollbar {
        display: none;
    }
}

/* Tablet mode (641px-1024px): single-column, swipeable product track.
   Overrides the static 4-up product-grid used at this width. */
@media (min-width: 641px) and (max-width: 1024px) {
    .home-featured-products .home-product-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        margin-right: 0;
        padding: 0.35rem 0.25rem 0.9rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 0.25rem;
        scroll-snap-type: x mandatory;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
        scroll-behavior: smooth;
    }

    .home-featured-products .home-product-track.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        user-select: none;
        scroll-behavior: auto;
    }

    .home-featured-products .home-product-track::-webkit-scrollbar {
        display: none;
    }

    .home-featured-products .home-product-track > .product-card {
        flex: 0 0 auto;
        width: min(72%, 20rem);
        min-width: min(72%, 20rem);
        max-width: 20rem;
        scroll-snap-align: start;
    }

    .home-featured-products .collection-carousel-controls {
        display: flex;
        gap: 0.4rem;
    }

    .home-featured-products .collection-carousel-controls button {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-drawer-layer,
    .cart-drawer-backdrop,
    .cart-drawer-panel,
    .cart-drawer-close,
    .cart-drawer-update,
    .cart-drawer-checkout {
        transition: none;
    }

    .product-detail-cart-buttons button {
        transition: none;
    }

    .quantity-stepper-button {
        transition: none;
    }

    .home-product-track {
        scroll-behavior: auto;
    }
}

/* ==========================================
   STORE BENEFITS - 5 items
   Desktop: 5 in a row
   Laptop:  5 in a row (compact)
   Tablet:  3 on top, 2 centered below
   Mobile:  2 + 2, last one centered full width
   ========================================== */
.store-benefits {
    --sb-gap: clamp(0.75rem, 1.5vw, 1.25rem);
    --sb-icon: clamp(2.1rem, 1.6rem + 1vw, 2.75rem);
    --sb-font: clamp(0.72rem, 0.66rem + 0.2vw, 0.9rem);

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sb-gap);
    box-sizing: border-box;
    width: min(100% - clamp(1.5rem, 4vw, 3rem), 1800px);
    margin: clamp(1rem, 2vw, 1.5rem) auto;
    padding: clamp(0.9rem, 2.5vw, 1.5rem);
    border: 1px solid #eceef0;
    border-radius: clamp(2rem, 4vw, 3rem);
    background: #fff;
    box-shadow: 0 10px 30px rgba(24, 28, 34, 0.05);
}

.store-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    min-width: 0;
    color: #282b30;
    font-size: var(--sb-font);
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.store-benefit-icon {
    display: grid;
    flex: 0 0 var(--sb-icon);
    width: var(--sb-icon);
    height: var(--sb-icon);
    place-items: center;
    border-radius: 50%;
    color: #ff0000;
    background: #e1edf5;
}

.store-benefit-icon svg {
    display: block;
    width: 52%;
    height: 52%;
}

.store-benefit-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ==========================================
   LAPTOP (961px to 1200px): keep 5 in a row, tighter
   ========================================== */
@media (min-width: 961px) and (max-width: 1200px) {
    .store-benefits {
        --sb-gap: 0.6rem;
        padding-inline: 1rem;
    }

    .store-benefit {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
}

/* ==========================================
   TABLET (641px to 960px): 3 + 2 centered
   Uses 6 columns; each item spans 2.
   ========================================== */
@media (min-width: 641px) and (max-width: 960px) {
    .store-benefits {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.1rem 0.75rem;
        padding: 1.25rem 1.5rem;
    }

    .store-benefit {
        grid-column: span 2;
        justify-content: flex-start;
    }

    /* Center the 2 items on the second row */
    .store-benefit:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .store-benefit:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* ==========================================
   MOBILE (up to 640px): 2 columns, last item centered
   ========================================== */
@media (max-width: 640px) {
    .store-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 0.65rem;
        width: calc(100% - 2rem);
        margin: 1rem auto;
        padding: 1rem 0.85rem;
        border-radius: 2rem;
    }

    .store-benefit {
        justify-content: flex-start;
        gap: 0.5rem;
        font-size: 0.72rem;
    }

    /* 5th item spans both columns and centers itself */
    .store-benefit:nth-child(5) {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

/* ==========================================
   VERY SMALL PHONES (up to 360px)
   ========================================== */
@media (max-width: 360px) {
    .store-benefits {
        width: calc(100% - 1rem);
        padding: 0.85rem 0.6rem;
    }

    .store-benefit {
        font-size: 0.68rem;
        gap: 0.4rem;
    }
}

/* ==========================================
   PRODUCT CARD - neutralize legacy glass card styles
   (glassmorphism.css loads after app.css, so the old card rules above
   would otherwise beat the new pop-out design. This block restores the
   new design's transparent shell / borderless image / hidden tags.)
   ========================================== */
.product-card {
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.collection-heading-image,
.product-card-image {
    border: 0;
    box-shadow: none;
}

.product-card-media {
    position: relative;
    z-index: 2;
}

.product-card-image {
    overflow: visible;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-card:hover .product-card-image {
    background: transparent;
}

.product-card-image > img {
    padding: 0;
    background: transparent;
}

.product-card:hover .product-card-image > img {
    transform: translateY(-8px) scale(1.04);
}

.product-card-image:focus-visible,
.product-card-copy:focus-visible,
.product-card-add-button:focus-visible,
.product-card-wishlist:focus-visible,
.product-card-swatch:focus-visible {
    outline: 2px solid var(--pc-accent, #ff0000);
    outline-offset: 3px;
}

.product-card-description,
.product-card-tags,
.product-card-sale-badge {
    display: none;
}

/* ==========================================
   HOME BLOG ROW — responsive + horizontal scroll
   Overrides the static grid in app.css so the
   journal row scrolls on every breakpoint.
   ========================================== */
.home-blogs-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.home-blogs-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.home-blog-carousel {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 1.5%,
        #000 98.5%,
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 1.5%,
        #000 98.5%,
        transparent
    );
    touch-action: pan-x;
}

.home-blog-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.35rem 0.25rem 0.9rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.home-blog-grid::-webkit-scrollbar {
    display: none;
}

.home-blog-grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

.home-blog-grid:focus-visible {
    outline: 2px solid rgba(29, 54, 134, 0.55);
    outline-offset: 4px;
}

/* Card sizing — fixed flex-basis so the row scrolls instead of wrapping.
   Widths are based on the GRID's own width (container-relative) rather than
   vw, so scrollbars and page padding can't make a "3-up" row overflow. */
.home-blog-card {
    flex: 0 0 auto;
    /* mobile: one card plus a sliver of the next, hinting at the scroll */
    flex-basis: calc(78% - 0.75rem);
    width: calc(78% - 0.75rem);
    max-width: 22rem;
    scroll-snap-align: start;
}

.home-blog-card:hover {
    transform: none;
}

/* Tablet and up: two-up peek */
@media (min-width: 640px) {
    .home-blog-grid {
        gap: 1.5rem;
    }

    .home-blog-card {
        flex-basis: calc(45% - 0.75rem);
        width: calc(45% - 0.75rem);
        max-width: 24rem;
    }
}

/* Desktop: three-up, more breathing room */
@media (min-width: 1024px) {
    .home-blog-grid {
        gap: 1.75rem;
        padding-bottom: 1rem;
    }

    .home-blog-card {
        flex-basis: calc(33.333% - 1.2rem);
        width: calc(33.333% - 1.2rem);
        max-width: 26rem;
    }
}

@media (max-width: 640px) {
    .home-blogs-heading {
        align-items: flex-end;
        gap: 0.75rem;
    }

    .home-blogs-actions {
        gap: 0.4rem;
    }

    .home-blogs-actions .collection-carousel-controls {
        display: flex;
        gap: 0.3rem;
    }

    .home-blogs-actions .collection-carousel-controls button {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-blog-grid {
        scroll-behavior: auto;
    }
}

/* ==========================================
   FOOTER — red background, white text/logo
   Overrides the glass .site-footer above and
   expands the link grid to four columns.
   ========================================== */
.site-footer {
    margin: 0 0.75rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1.5rem;
    background: #e11d2e;
    box-shadow:
        0 18px 48px rgba(127, 29, 29, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: #fff;
}

.footer-main {
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

/* White logo (PNG rendered as a solid white silhouette) */
.footer-logo {
    filter: brightness(0) invert(1);
    width: 8rem;
    height: auto;
    aspect-ratio: 1380 / 530;
}

.footer-about > p {
    color: rgba(255, 255, 255, 0.82);
}

.footer-label {
    color: #fff;
    opacity: 0.92;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.78);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.78);
}

/* Tablet: two columns */
@media (max-width: 960px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile: single column */
@media (max-width: 560px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Solid red-600 fallback where backdrop-filter is unsupported */
@supports not (
    (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
    .site-footer {
        background: #dc2626;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-right: 0.5rem;
        margin-left: 0.5rem;
        border-radius: 1.2rem;
    }
}

/* ==========================================
   MEGA DROPDOWN MENU — desktop & tablet
   Left: collection products | Middle: hoverable
   collections | Right: sub-collection image tiles
   ========================================== */
.nav-mega-controller {
    position: static;
    align-self: stretch;
    display: flex;
    align-items: center;
    height: 100%;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: min(calc(100% - 1.5rem), var(--header-max, 1700px));
    margin: 0 auto;

    z-index: 50;
    display: grid;
    /* Responsive fallback for columns so it doesn't break on mid-size screens */
    grid-template-columns: minmax(15rem, 20rem) minmax(11rem, 15rem) 1fr;
    max-height: min(72vh, 42rem);
    box-sizing: border-box;

    /* Enhanced frosted glass styling */
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px #0000001f;
    background: #0000008f; /* Slightly higher opacity for a richer frost */
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);

    color: #fff;
    overflow: hidden;
}

/* Fallback for smaller screens to stack or condense the grid safely */
@media (max-width: 1024px) {
    .mega-menu {
        grid-template-columns: 1fr;
        max-height: 80vh;
        overflow-y: auto;
    }
}

.mega-products,
.mega-collections,
.mega-subs {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* --- Left: products of the active collection --- */
.mega-products {
    padding: 1.1rem 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.mega-product {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.4rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 140ms ease;
}

.mega-product:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mega-product-thumb {
    flex: 0 0 3.4rem;
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: 0.7rem;
    background: #fff;
    overflow: hidden;
}

.mega-product-thumb img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.mega-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mega-product-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-product-off {
    color: #ff7a7e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mega-product-prices {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.mega-product-prices strong {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 750;
}

.mega-product-prices s {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
}

.mega-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.6rem;
    padding: 0.45rem 0.4rem;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 650;
    text-decoration: none;
}

.mega-view-all:hover {
    color: #ff7a7e;
}

/* --- Middle: hoverable collection list --- */
.mega-collections {
    padding: 1.1rem 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-content: start;
}

.mega-collection {
    padding: 0.6rem 0.95rem;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 140ms ease,
        color 140ms ease;
}

.mega-collection:hover,
.mega-collection.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* --- Right: sub-collection image tiles --- */
.mega-subs {
    padding: 1.1rem 1.25rem;
}
.mega-sub-grid {
    display: block;
    width: 100%;
}
.mega-sub-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 1rem;
    align-content: start;
    width: 100%;
}
.mega-sub {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.mega-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.mega-sub:hover img {
    transform: scale(1.05);
}
.mega-sub-title {
    position: absolute;
    bottom: 0.8rem; /* Positioned at the bottom */
    top: auto; /* Clears the top positioning */
    left: 0;
    right: 0;
    padding: 0 0.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    z-index: 2; /* Ensures text sits cleanly above the gradient */
}

/* --- Tablet: show desktop nav + mega, hide hamburger ---
   Declared after app.css's max-width:960px block would otherwise re-show the
   hamburger, so this needs to win here rather than fight by load order. */
@media (min-width: 768px) and (max-width: 960px) {
    /* Anchor the absolutely-positioned mega menu to the header bar. Without
       this it resolves against a further ancestor and lands detached from
       the trigger it belongs to. */
    .site-header .header-inner {
        position: relative;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .site-header .header-brand-nav {
        flex: 0 1 auto;
        min-width: 0;
        gap: 0.5rem;
    }

    .desktop-nav {
        display: flex;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
        margin: 0 0.5rem;
        white-space: nowrap;
    }

    /* Keep the header tools on-screen: they must never be pushed past the bar. */
    .site-header .header-tools {
        flex: 0 0 auto;
        margin-left: auto;
        gap: 0.25rem;
    }

    /* Keep the hamburger available on tablet so the side menu is reachable
       alongside the desktop nav (the user asked for both). */
    .site-header .menu-toggle {
        display: grid;
        order: -1;
    }

    .mega-menu {
        grid-template-columns: minmax(13rem, 17rem) minmax(9rem, 12rem) 1fr;
        max-height: min(70vh, 34rem);
    }

    /* Target the panel instead of the grid wrapper */
    .mega-sub-panel {
        grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    }

    /* Tablet mode: nav icons stay thin and compact (inline SVG stroke), and the
       labels/triggers keep the light 400 weight so the bar never looks bold
       when the desktop nav is shown between 768px and 960px. */
    .site-header .desktop-nav .nav-icon {
        width: 1.25rem;
        height: 1.25rem;
        stroke-width: 1.25;
    }

    .desktop-nav .nav-menu-trigger,
    .desktop-nav > a,
    .desktop-nav .nav-label {
        font-weight: 400 !important;
    }
}

@media (max-width: 767px) {
    .mega-menu {
        display: none;
    }
}

/* ---------- Breadcrumbs ---------- */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #8b8f96;
}

.product-breadcrumb a {
    color: #1c1c20;
    text-decoration: none;
    font-weight: 600;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #c0c4cc;
}

.breadcrumb-current {
    color: #8b8f96;
    font-weight: 500;
}

/* ---------- Rating Stars ---------- */
.product-detail-rating-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 1rem;
}

.product-stars {
    display: flex;
    color: #ffe600;
}

.star-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.rating-score {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1c1c20;
}

.rating-divider {
    color: #d0d2d6;
}

.rating-count {
    font-size: 0.85rem;
    color: #6f7278;
    font-weight: 600;
}

/* ---------- Circular Color Swatches ---------- */
.product-swatches-grid {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.product-color-swatch {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: var(--swatch-bg);
    border: 2px solid #e2e4e8;
    cursor: pointer;
    position: relative;
    transition:
        transform 180ms ease,
        border-color 180ms ease;
    padding: 0;
}

.product-color-swatch:hover {
    transform: scale(1.12);
}

.product-color-swatch.is-selected,
.product-color-swatch[aria-pressed="true"] {
    border-color: #0b0b0c;
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px #0b0b0c;
}

/* ---------- Trust Badges Grid ---------- */
.product-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.25rem 1rem;
    background: #f8f9fa;
    border-radius: 1.2rem;
    border: 1px solid #eceeed;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.trust-icon {
    flex: 0 0 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #0b0b0c;
}

.trust-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.trust-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.trust-info strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0b0b0c;
}

.trust-info span {
    font-size: 0.68rem;
    color: #8b8f96;
    font-weight: 600;
}

@media (max-width: 640px) {
    .product-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
/* ==========================================
MODERN PRODUCT PAGE ENHANCEMENTS
========================================== */

/* --- Modern Accordion for Product Options --- */
.product-detail-options-accordion {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.product-option-group {
    border: 1px solid #eef0f2;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.product-option-group[open] {
    border-color: #d5d9de;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.product-option-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 150ms ease;
}

.product-option-summary::-webkit-details-marker {
    display: none;
}

.product-option-summary:hover {
    background: #fafbfc;
}

.option-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1c1c20;
}

.option-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6f7278;
}

.selected-color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 1px #fff inset;
}

.chevron-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #8b8f96;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.product-option-group[open] .chevron-icon {
    transform: rotate(180deg);
}

.product-option-values-container {
    padding: 0 1.25rem 1.25rem;
    animation: slideDown 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.product-variant-button {
    min-height: 2.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid #e2e4e8;
    border-radius: 999px;
    color: #4a4d52;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 180ms ease;
}

.product-variant-button:hover {
    border-color: #1c1c20;
    color: #1c1c20;
}

.product-variant-button.is-selected,
.product-variant-button[aria-pressed="true"] {
    border-color: #1c1c20;
    color: #fff;
    background: #1c1c20;
    box-shadow: 0 4px 10px rgba(28, 28, 32, 0.15);
}

/* --- Modern Review Cards --- */
.review-card {
    padding: 1.5rem;
    border: 1px solid #eef0f2;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
    margin-bottom: 1rem;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.review-author-avatar {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #eef0f2);
    color: #1c1c20;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #eef0f2;
}

.review-author-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c1c20;
}

.review-date {
    display: block;
    font-size: 0.75rem;
    color: #8b8f96;
    margin-top: 0.15rem;
}

.review-stars {
    display: flex;
    gap: 0.15rem;
    color: #f5b301;
}

.review-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1c1c20;
    margin-bottom: 0.5rem;
}

.review-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a4d52;
}

/* --- Modern Pill Tabs --- */
.product-information-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    background: #f4f5f7;
    border-radius: 999px;
    border-bottom: none;
    width: fit-content;
    margin-bottom: 2rem;
}

.product-information-tab {
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #6f7278;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 200ms ease;
}

.product-information-tab[aria-selected="true"] {
    background: #fff;
    color: #1c1c20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

.product-information-tab:hover:not([aria-selected="true"]) {
    color: #1c1c20;
    background: rgba(255, 255, 255, 0.5);
}

/* --- Trust Badges Modernization --- */
.product-trust-badges {
    background: linear-gradient(135deg, #fafbfc 0%, #f4f5f7 100%);
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.trust-icon {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    color: #1c1c20;
}

/* --- Star Icons Fix --- */
.star-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.star-icon.is-filled {
    color: #f5b301;
}

.star-icon.is-empty {
    color: #d5d9de;
}

.star-icon.is-half {
    color: #f5b301;
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .product-information-tabs {
        width: 100%;
        justify-content: center;
    }

    .product-information-tab {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }

    .review-card {
        padding: 1.25rem;
    }

    .review-author-avatar {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.85rem;
    }
}

/* ==========================================
   PRODUCT PAGE — DESKTOP LAYOUT (mock match)
   ========================================== */
@media (min-width: 901px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: clamp(1.75rem, 4vw, 4rem);
        padding: clamp(1rem, 2.5vw, 2.5rem);
    }
}

/* ==========================================
   SHORT LAPTOPS — 1366x768 class

   The gallery slide is clamped to 37rem (592px) and sits under a ~70px
   sticky header plus the page padding, so on a 768px-tall screen the image
   bottom and the price/CTA column drift past the fold. Cap the slide height
   against the real viewport so the whole product hero — image, title, price
   and Add to Cart — stays visible without scrolling on a 1366x768 laptop.
   ========================================== */
@media (min-width: 901px) and (max-height: 820px) {
    .product-detail-page {
        padding-top: clamp(0.75rem, 2vw, 1.25rem);
        padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
    }

    .product-detail-layout {
        gap: clamp(1.5rem, 3vw, 2.75rem);
        padding: clamp(1rem, 2vw, 1.75rem);
    }

    .product-gallery-slide {
        min-height: clamp(20rem, 52vh, 30rem);
    }

    .product-gallery-slide img {
        max-height: 28rem;
    }

    .product-detail-title {
        font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    }

    .product-detail-content {
        top: 5.5rem;
    }
}

.product-gallery-slide {
    border-radius: 1.5rem;
    background: #f7f7f8;
}

.product-gallery-thumbnail {
    border-radius: 0.9rem;
}

.product-detail-eyebrow {
    margin: 0 0 0.7rem;
    color: var(--pd-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-transform: none;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.product-detail-tag {
    padding: 0.3rem 0.7rem;
    border: 1px solid #e4e6ea;
    border-radius: 999px;
    color: #4a4f56;
    background: #f8f9fa;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Benefits chips inside the details column */
.product-detail-content .store-benefits {
    --sb-icon: 2.3rem;
    --sb-font: 0.72rem;

    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.85rem 0.75rem;
    width: 100%;
    margin: 1.6rem 0 0;
    padding: 1rem;
    border: 1px solid #eceef0;
    border-radius: 1.1rem;
    background: #f8f9fa;
    box-shadow: none;
}

.product-detail-content .store-benefit {
    justify-content: flex-start;
    gap: 0.55rem;
}

.product-detail-content .store-benefit-icon {
    color: #ff0000;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 18, 24, 0.06);
}

@media (max-width: 1200px) {
    .product-detail-content .store-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .product-detail-layout {
        gap: 1.5rem;
    }
}

/* ==========================================
   UNIFIED GLASS HEADER  (light, heavily frosted)
   One pale frosted-glass surface for header, mega menu and
   mobile drawer at every breakpoint. Heavy blur + saturation
   does the "frosted" work; a see-through ronin.pk-style frosted glass
   (40% white, 32px blur, brightened backdrop). A hairline ring + soft shadow keep it visible on
   white pages; the white tint keeps dark text readable over dark pages. Ink is dark for contrast.
   ========================================== */
.site-header {
    --hdr-bg: rgba(34, 38, 50, 0.52);
    --hdr-bg-strong: rgba(34, 38, 50, 0.64);
    --hdr-stroke: rgba(255, 255, 255, 0.3);
    --hdr-ink: #fff;
    --hdr-ink-soft: rgba(255, 255, 255, 0.78);
    --hdr-accent: #d43134; /* ronin red, used for hover */
    --hdr-blur: blur(40px) saturate(180%);
    /* fine white grain: gives the glass a frosted, matte texture */
    --hdr-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");

    border: 1px solid var(--hdr-stroke) !important;
    /* soft top sheen over the tint = frosted-glass look */
    background:
        var(--hdr-grain),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.02)
        ),
        var(--hdr-bg) !important;
    /* outer hairline + shadow keep the bar visible on white pages;
       the inner white edge keeps it visible on dark ones */
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        0 10px 34px rgba(10, 14, 28, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: var(--hdr-blur);
    -webkit-backdrop-filter: var(--hdr-blur);
    color: var(--hdr-ink);
}

@supports not (backdrop-filter: blur(1px)) {
    body.storefront .site-header,
    body.storefront .site-header:not(.site-header--scrolled) {
        background: rgba(34, 38, 50, 0.94) !important;
    }
}

/* ---------- Auto-hide: hidden on scroll down, shown on scroll up ----------
   The .site-header--hidden class is toggled by navbar-autohide.js.
   `translate` (not `transform`) is used so it never fights any transform the
   header or its children already use. */
.site-header {
    transition:
        translate 340ms cubic-bezier(0.22, 0.9, 0.25, 1),
        background 200ms ease;
}

.site-header.site-header--hidden {
    translate: 0 calc(-100% - 2.5rem);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: none;
    }
}

.site-header--scrolled {
    background:
        var(--hdr-grain),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.03)
        ),
        var(--hdr-bg-strong) !important;
}

/* Force the glass on every storefront page, scrolled or not.
   Out-ranks any `transparent` header rule from other stylesheets, and works
   over the body.storefront gradient and the white product page alike. */
body.storefront .site-header,
body.storefront .site-header:not(.site-header--scrolled) {
    border: 1px solid var(--hdr-stroke) !important;
    background:
        var(--hdr-grain),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.02)
        ),
        var(--hdr-bg) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        0 10px 34px rgba(10, 14, 28, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: var(--hdr-blur) !important;
    -webkit-backdrop-filter: var(--hdr-blur) !important;
}

body.storefront .site-header.site-header--scrolled {
    background:
        var(--hdr-grain),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.03)
        ),
        var(--hdr-bg-strong) !important;
}

/* white logo on the smoky glass */
.header-logo,
.site-header .brand-lockup {
    filter: brightness(0) invert(1);
}

/* Nav links + triggers: identical type/color at every breakpoint */
.desktop-nav a,
.desktop-nav > a,
.nav-menu-trigger,
.nav-mega-controller .nav-menu-trigger {
    color: var(--hdr-ink) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

.desktop-nav > a:hover,
.desktop-nav > a:focus-visible,
.nav-menu-trigger:hover,
.nav-mega-controller:focus-within .nav-menu-trigger,
.nav-mega-controller .nav-menu-trigger[aria-expanded="true"] {
    color: var(--hdr-accent) !important;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
}

/* Hover shape: a compact rounded-rectangle behind the item, not a
   full-height bar. Items are centred in the bar; the mega controller still
   spans the full bar height so the hover area (and menu bridge) is unchanged. */
.site-header .desktop-nav > a,
.site-header .desktop-nav .nav-menu-trigger {
    min-height: 2.5rem;
    border-radius: 30px;
    transition:
        background 160ms ease,
        color 160ms ease;
}

.site-header .desktop-nav > a {
    align-self: center;
}

/* Collection labels: white, medium weight */
.site-header .desktop-nav > a,
.site-header .desktop-nav .nav-menu-trigger,
.site-header .desktop-nav .nav-label {
    color: #fff !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Hover: soft grey pill, text stays white */
.site-header .desktop-nav > a:hover,
.site-header .desktop-nav > a:focus-visible,
.site-header .desktop-nav .nav-menu-trigger:hover,
.site-header .nav-mega-controller:hover .nav-menu-trigger,
.site-header .nav-mega-controller:focus-within .nav-menu-trigger,
.site-header .nav-mega-controller .nav-menu-trigger[aria-expanded="true"] {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    text-shadow: none;
}

/* Icon buttons: search, cart, account, hamburger */
.header-icon-button,
.header-icon-button:hover,
.header-icon-button:focus-visible,
.menu-toggle,
.menu-toggle:hover,
.header-actions > div:first-child > button,
.header-actions > div:first-child > button:hover {
    color: var(--hdr-ink);
    background: transparent;
}

.header-icon-button:hover,
.header-icon-button:focus-visible,
.menu-toggle:hover,
.header-actions > div:first-child > button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.header-icon-button:hover,
.header-icon-button:focus-visible,
.menu-toggle:hover,
.header-actions > div:first-child > button:hover {
    color: #fff;
}

.mega-product:hover .mega-product-name {
    color: #ff7a7e;
}

.cart-drawer-count {
    border-color: #fff;
    color: #fff;
    background: #ff0000;
}

/* Mega menu: same smoky frosted glass as the header bar */
.mega-menu {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background:
        var(--hdr-grain),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.02)
        ),
        rgba(34, 38, 50, 0.6);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        0 26px 60px rgba(10, 14, 28, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

/* Dropdown submenu panel (simple dropdowns): same glass */
.nav-submenu-panel {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(34, 38, 50, 0.6);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        0 20px 50px rgba(10, 14, 28, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

.desktop-nav .nav-submenu-link {
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.desktop-nav .nav-submenu-link:hover,
.desktop-nav .nav-submenu-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

/* Mobile drawer: same smoky glass, white text */
.mobile-nav {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.02)
        ),
        rgba(34, 38, 50, 0.72);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        -20px 0 60px rgba(10, 14, 28, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    color: #fff;
}

.mobile-nav-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.mobile-nav-close,
.mobile-submenu-toggle {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-close:hover,
.mobile-submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
}

.mobile-nav a,
.mobile-nav .mobile-submenu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible,
.mobile-nav .mobile-submenu a:hover {
    color: #fff;
}

.mobile-nav li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav .mobile-submenu {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-nav-backdrop {
    background: rgba(10, 14, 28, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Phones: same glass, a touch denser and lighter blur for paint cost.
   Stops at 767px so iPad mini portrait (768px) is treated as tablet,
   matching the tablet band in hero-carousel.css. */
@media (max-width: 767px) {
    .site-header {
        --hdr-blur: blur(24px) saturate(180%);
        --hdr-bg: rgba(34, 38, 50, 0.7);
        --hdr-bg-strong: rgba(34, 38, 50, 0.78);
        backdrop-filter: var(--hdr-blur) !important;
        -webkit-backdrop-filter: var(--hdr-blur) !important;
    }

    .mobile-nav {
        background: rgba(34, 38, 50, 0.86);
    }
}

@media (min-width: 768px) {
    .site-header {
        backdrop-filter: var(--hdr-blur) !important;
        -webkit-backdrop-filter: var(--hdr-blur) !important;
    }
}

/* ==========================================
   STOREFRONT REDESIGN: header (mobile + desktop icon nav)
   ========================================== */
/* ---------- 3. MOBILE HEADER (<= 767px): hamburger left, logo EXACTLY centred, search+cart right ---------- */
@media (max-width: 767px) {
    /* glassmorphism.css sets width: calc(100% - 2.5rem) + min-height 3.35rem, which pushes content left */
    .site-header .header-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        width: 100%;
        min-height: 2.75rem;
        margin: 0;
    }

    /* Your markup nests the hamburger 3 levels deep:
       .header-tools > .header-actions > .mobile-menu-controller > .menu-toggle
       display:contents makes hamburger / search / cart direct flex items of .header-inner. */
    .site-header .header-tools,
    .site-header .header-actions,
    .site-header .mobile-menu-controller {
        display: contents;
    }

    .site-header .menu-toggle {
        order: -1;
    } /* hamburger first = left */

    /* brand wrapper = empty spacer in the middle; the logo itself is centred on the pill */
    .site-header .header-brand-nav {
        position: static;
        order: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header .header-brand-nav > a {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        z-index: 1;
    }

    .site-header .header-logo {
        width: 6.25rem;
        height: auto;
        display: block;
    }

    /* equal-size icon buttons so the left and right sides look balanced */
    .site-header .menu-toggle,
    .site-header .header-icon-button {
        width: 2.5rem;
        height: 2.5rem;
        display: grid;
        place-items: center;
    }
}

/* ---------- DESKTOP HEADER (>= 961px): always-frosted bar ----------
   (the old transparent-until-scrolled state was removed; the light glass
   above applies at every scroll position. .site-header--scrolled still
   toggles a slightly denser tint.) */

/* ---------- 6. DESKTOP ICON NAV (like ronin.pk): icon per category, label on wide screens ---------- */
/* Category icons: thin, stroke-based inline SVGs.
   The icons are rendered as <svg class="nav-icon"> with stroke-width 1.25, so
   they are genuinely thin at every breakpoint (mobile, tablet, desktop).
   The size is kept compact so the light stroke reads as thin. */
.nav-icon {
    flex: none;
    stroke-width: 1.25;
}

.site-header .desktop-nav .nav-icon {
    width: 1.55rem;
    height: 1.55rem;
    stroke-width: 1.25;
}

/* Icons keep the same size from laptop (1024px) upward so the nav looks
   identical on a 1366x768 laptop and on larger desktops. */
@media (max-width: 1023px) {
    .site-header .desktop-nav .nav-icon {
        width: 1.4rem;
        height: 1.4rem;
        stroke-width: 1.25;
    }
}

/* Search / account / cart / hamburger: thin stroke to match the icon nav */
.site-header .header-icon-button svg,
.site-header .menu-toggle svg {
    width: 1.6rem;
    height: 1.6rem;
    stroke-width: 1.25;
}

/* Tablet + desktop: keep the icon nav and its labels light, not bold.
   Applies across the whole tablet band (768px–960px) as well as desktop. */
@media (min-width: 768px) {
    .desktop-nav .nav-chevron {
        display: none;
    }

    /* label hidden visually (kept for screen readers + tooltip via title="") */
    .desktop-nav .nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .desktop-nav .nav-menu-trigger,
    .desktop-nav > a,
    .desktop-nav .nav-label {
        font-weight: 400; /* thin, not bold */
    }

    .desktop-nav .nav-menu-trigger,
    .desktop-nav > a {
        gap: 0.45rem;
        padding: 0 0.7rem;
    }

    /* Thin the category icons in tablet mode too (inline SVG stroke stays light). */
    .desktop-nav .nav-icon {
        stroke-width: 1.25;
    }
}

@media (min-width: 961px) {
    .desktop-nav {
        justify-content: flex-end; /* icons sit next to search / cart, logo stays left */
        margin: 0 1rem;
    }
}

/* Laptop/desktop and up: show the text label next to each icon.
   Starts at 1024px so a 1366x768 laptop gets the full desktop nav
   (icon + label), matching the layout on larger resolutions.
   The 1023px-and-below band keeps the compact icon-only nav so the bar
   never overflows on tablets. */
@media (min-width: 1024px) {
    .desktop-nav .nav-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        font-size: 0.79rem;
        font-weight: 400;
        white-space: nowrap;
    }

    /* Keep the full desktop nav from ever being squeezed on laptop widths
       (1024px-1279px) where the search box and nav compete for space. */
    .site-header .desktop-nav {
        gap: 0.9rem;
        margin: 0 0.75rem;
    }

    .site-header .desktop-nav .nav-menu-trigger,
    .site-header .desktop-nav > a {
        gap: 0.4rem;
        padding: 0 0.45rem;
    }
}

/* ==========================================
   LAPTOP BAND (1024px-1439px) — 1366x768 laptops

   The full icon+label nav shares the bar with the search popover and the
   cart/account tools. On a 1366px laptop the widest category names plus the
   gaps can overflow the pill and push the cart off the right edge. Tighten
   the gaps/padding and trim the label type so every item fits with room to
   spare, while staying identical on larger desktops.
   ========================================== */
@media (min-width: 1024px) and (max-width: 1439px) {
    .site-header .header-inner {
        gap: 0.5rem;
        min-width: 0;
    }

    .site-header .desktop-nav {
        gap: 0.35rem;
        margin: 0 0.5rem;
        min-width: 0;
        /* NOTE: no overflow:hidden here — the mega dropdown is an absolutely
           positioned child of a nav item and would be clipped by it. Flex
           shrinking + min-width:0 keep the row inside the pill instead. */
    }

    .site-header .desktop-nav .nav-menu-trigger,
    .site-header .desktop-nav > a {
        gap: 0.35rem;
        padding: 0 0.5rem;
        min-width: 0;
    }

    .site-header .desktop-nav .nav-label {
        font-size: 0.76rem;
        letter-spacing: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 9.5rem;
    }

    .site-header .desktop-nav .nav-icon {
        width: 1.35rem;
        height: 1.35rem;
    }

    .site-header .header-tools {
        gap: 0.2rem;
        flex: 0 0 auto;
        margin-left: auto;
    }

    /* Brand block must never push the nav past the pill on laptop widths. */
    .site-header .header-brand-nav > a {
        flex: 0 0 auto;
    }

    .site-header .header-logo {
        width: 7rem;
    }
}

/* Very tight laptop widths (1024px-1199px): the label + icon set can still be
   wide, so drop to a slightly smaller label and a more compact search trigger. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .site-header .desktop-nav .nav-label {
        font-size: 0.72rem;
        max-width: 7.5rem;
    }

    .site-header .desktop-nav {
        gap: 0.25rem;
        margin: 0 0.35rem;
    }
}

/* ==========================================
   MEGA MENU — CSS-ONLY HOVER FALLBACK (desktop/laptop)
   The mega dropdown is normally opened by Alpine's x-on:mouseenter + x-show.
   That leaves it dead whenever the JS bundle has not hydrated yet (or at all),
   and it means the hover affordance is invisible until scripts run.
   These rules make .nav-mega-controller genuinely hoverable in pure CSS at the
   desktop band (>= 1024px, e.g. a 1366x768 laptop) so hovering the trigger opens
   the panel immediately, with or without Alpine.
   Alpine still owns aria-expanded and the click/focus path; display is forced
   here with !important so the fallback also beats Alpine's inline display:none.
   Kept to >= 1024px so tablets keep the compact icon-only nav untouched.
   ========================================== */
@media (min-width: 1024px) and (hover: hover) {
    /* NOTE: .nav-mega-controller stays position: static on purpose. The .mega-menu
       is absolutely positioned with left:0/right:0 against the header, so it spans
       the full header width. Making the controller relative would re-anchor the
       panel to the small trigger box and collapse the mega layout. */

    /* Open on hover or keyboard focus */
    .nav-mega-controller:hover .mega-menu,
    .nav-mega-controller:focus-within .mega-menu {
        display: grid !important;
        pointer-events: auto;
    }

    /* Trigger reads as active while its panel is open */
    .nav-mega-controller:hover .nav-menu-trigger,
    .nav-mega-controller:focus-within .nav-menu-trigger {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.22);
        border-radius: 30px;
    }

    /* Show the chevron rotated while open, matching the JS state.
       The chevron is display:none from the >=768px rule above, so it must be
       re-shown here for the hover affordance to read. */
    .nav-mega-controller:hover .nav-chevron,
    .nav-mega-controller:focus-within .nav-chevron {
        display: block;
        transform: rotate(180deg);
    }

    /* Hover bridge: the panel sits 0.5rem below the header. An invisible strip
       pinned under the header fills that gap, so the pointer can travel from the
       trigger down into the panel without leaving the hover area and closing the
       menu. It spans the header width and only exists while a mega controller is
       hovered, so it never blocks clicks on the page when the menu is closed. */
    .site-header:has(.nav-mega-controller:hover)::after,
    .site-header:has(.nav-mega-controller:focus-within)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 0.6rem;
        pointer-events: auto;
        z-index: 49;
    }
}


/* ==========================================
   GLOBAL PILL-SHAPED BUTTONS & ARROW FIXES
   ========================================== */
.product-detail-cart-buttons button,
.product-card-add-button,
.product-card-cart .product-card-add-button,
.cart-drawer-checkout,
.cart-drawer-update,
.cart-drawer-empty .cart-drawer-checkout,
.checkout-primary-button,
.checkout-edit-button,
.product-review-submit,
.button,
.button-primary,
.hero-carousel-copy .button,
.hero-carousel-copy a.button,
a.button,
a.button-primary {
    border-radius: 999px !important;
}

/* Arrow slider buttons - ensure perfect centering and crisp icons */
.collection-carousel-controls button,
.related-products-controls button,
.banner-coverflow-arrow,
.hero-carousel-arrow {
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    padding: 0 !important;
}

.collection-carousel-controls button svg,
.related-products-controls button svg,
.banner-coverflow-arrow svg,
.hero-carousel-arrow svg {
    display: block !important;
    margin: auto !important;
    flex-shrink: 0 !important;
}

/* ==========================================================
   Careers page
   ========================================================== */
.careers-page {
    width: min(calc(100% - 2.5rem), 1200px);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.careers-header {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.careers-header h1 {
    margin: 0.5rem 0 0;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--ink, #182521);
}

.careers-lede {
    margin: 1rem 0 0;
    max-width: 38rem;
    color: var(--muted, #59665e);
    font-size: 1rem;
    line-height: 1.75;
}

.careers-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
    padding: 0.7rem 1.1rem;
    max-width: 26rem;
    border: 1px solid var(--line, rgba(24, 37, 33, 0.12));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.careers-search svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: var(--muted, #59665e);
}

.careers-search input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 0.95rem;
    color: var(--ink, #182521);
    outline: none;
}

.careers-empty {
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--line, rgba(24, 37, 33, 0.18));
    border-radius: 1.25rem;
    color: var(--muted, #59665e);
    text-align: center;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.career-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line, rgba(24, 37, 33, 0.1));
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #ffffff, #f7f5ef);
    box-shadow: 0 10px 30px -18px rgba(24, 37, 33, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -22px rgba(24, 37, 33, 0.45);
}

.career-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eceae2;
}

.career-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.career-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b9c0b6;
    background: radial-gradient(ellipse at 30% 20%, rgba(225, 29, 46, 0.08), transparent 60%), #eceae2;
}

.career-card-placeholder svg {
    width: 3rem;
    height: 3rem;
}

.career-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.career-badge-warning {
    color: #7a2e12;
    background: rgba(255, 214, 170, 0.92);
    border: 1px solid rgba(196, 110, 40, 0.35);
}

.career-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem 1.4rem 1.5rem;
}

.career-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 640;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink, #182521);
}

.career-card-excerpt {
    margin: 0.65rem 0 0;
    color: var(--muted, #59665e);
    font-size: 0.92rem;
    line-height: 1.7;
}

.career-card-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.15rem 0 0;
}

.career-card-dates dt {
    font-size: 0.68rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a948c;
}

.career-card-dates dd {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    font-weight: 550;
    color: var(--ink, #182521);
}

.career-card-dates dd.is-warning {
    color: #c2410c;
}

.career-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.4rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: #e11d2e;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 620;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.career-apply-button:hover {
    background: #c4162a;
    transform: translateY(-1px);
}

.career-apply-button span {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .careers-grid {
        grid-template-columns: 1fr;
    }
}
