/* ============================================
   BARS&BEARD - Modern Website Styles
   ============================================ */

/* Modesto Text – brand font (Parkinson Type Design / Fontspring). Add your webfont files to content/fonts/ and match filenames below. */
@font-face {
    font-family: 'Modesto Text';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('content/fonts/modesto-text-medium.woff2') format('woff2'),
         url('content/fonts/modesto-text-medium.woff') format('woff');
}
@font-face {
    font-family: 'Modesto Text';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('content/fonts/modesto-text-bold.woff2') format('woff2'),
         url('content/fonts/modesto-text-bold.woff') format('woff');
}

/* CSS Variables for Easy Customization */
:root {
    --primary-color: #C9A646;
    --secondary-color: #f8f9f9;
    --accent-color: #C9A646;
    --orange: #C9A646;
    --orange-dark: #a8862e;
    --orange-light: #e0c970;
    /* Dark background base */
    --bg-dark: #1c1c1c;
    --bg-darker: #141414;
    --bg-card: #252525;
    --bg-card-hover: #2a2a2a;
    --text-dark: #1c1c1c;
    --text-light: #a9abb8;
    --text-lighter: #d0d0e0;
    --text-white: #ffffff;
    --bg-light: #252525;
    --bg-white: #252525;
    --border-color: #30313a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
    --transition: all 0.3s ease;
    --transition-fast: 0.15s ease;
    /* Typography: Modesto Text for brand/hero/product names; Montserrat for body/subheads; Oswald Bold for CTAs */
    --font-heading: 'Montserrat', sans-serif;
    --font-subhead: 'Montserrat', sans-serif;
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Oswald', sans-serif;
    --font-bold: 'Montserrat', sans-serif;
    /* Hero: Modesto Text Bold; tagline: Modesto Text Medium; product names: Oswald bold uppercase (display style) */
    --font-logo: 'Modesto Text', Georgia, serif;
    --font-tagline: 'Modesto Text', Georgia, serif;
    --font-product-name: var(--font-display);
    /* Type scale – readable, modern hierarchy */
    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-hero: clamp(2rem, 5vw, 3.5rem);
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 1.75;
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.03em;
    --tracking-wider: 0.08em;
    /* Mobile / touch */
    --touch-target: 44px;
    --container-padding-mobile: 16px;
    /* Header clearance: nav only (no promo) / nav + promo on home */
    /* Promo bar (36px) + navbar (~110px) – promo is on all pages */
    --header-height: 146px;
    --header-height-with-promo: 146px;
}

@media (max-width: 768px) {
    /* Taller promo bar when wrapped → navbar at 44px, total header 44 + ~110 */
    :root {
        --header-height-with-promo: 154px;
    }
}

/* Hero: brand logo font (Hybrid Bold–like) for title; tagline uses same family, Medium weight */
.hero-title {
    font-family: var(--font-logo);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-tight);
}

/* Page titles: Oswald – on-brand, consistent with section titles */
.account-title,
.cargo-title,
.checkout-title,
.checkout-empty-title,
.content-page-title,
.page-404 .content-page-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: var(--leading-tight);
}

/* Sub-headlines: Montserrat Semi-Bold, all-caps, wide letter spacing */
.section-title,
h2, h3,
.nav-link,
.nav-menu a,
.account-card-title,
.cargo-subtitle {
    font-family: var(--font-subhead);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .brand-element {
        animation: none !important;
    }
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    letter-spacing: 0.01em;
    color: var(--text-lighter);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    font-weight: 400;
}

/* Skip-to-content link: visually hidden until focused */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 0.75rem 1rem;
    background: var(--orange);
    color: var(--text-dark);
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--orange-light);
    outline-offset: 2px;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--orange);
}

/* Subtle smooth background – soft gold tint, no pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201, 166, 70, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }

    .btn,
    .btn-primary {
        min-height: var(--touch-target);
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
}

/* ============================================
   Top promo banner (mobile-first, safe-area aware)
   ============================================ */

.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem max(1rem, env(safe-area-inset-left, 0)) 0.5rem max(1rem, env(safe-area-inset-right, 0));
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0));
    min-height: calc(36px + env(safe-area-inset-top, 0));
    overflow: hidden;
    background: var(--secondary-color);
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-size: clamp(0.8125rem, 2.5vw + 0.5rem, 0.9375rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.promo-banner-messages {
    position: relative;
    min-height: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: min(100%, 1200px);
    padding: 0 0.5rem;
}

.promo-banner-msg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
    max-width: 100%;
}
.promo-banner a.promo-banner-msg {
    color: inherit;
    text-decoration: none;
}
.promo-banner a.promo-banner-msg:hover {
    text-decoration: underline;
}

.promo-banner-msg--1 {
    animation: promo-show-1 8s ease-in-out infinite;
}

.promo-banner-msg--2 {
    animation: promo-show-2 8s ease-in-out infinite;
}

@keyframes promo-show-1 {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes promo-show-2 {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

/* Tablet: allow wrapping so long text doesn’t overflow */
@media (max-width: 768px) {
    .promo-banner {
        min-height: calc(44px + env(safe-area-inset-top, 0));
        padding: 0.5rem max(var(--container-padding-mobile), env(safe-area-inset-left, 0)) 0.5rem max(var(--container-padding-mobile), env(safe-area-inset-right, 0));
        padding-top: calc(0.5rem + env(safe-area-inset-top, 0));
    }
    .promo-banner-msg {
        white-space: normal;
        max-width: 95%;
        padding: 0 0.25rem;
    }
}

/* Mobile: ensure touch-friendly height and readable text */
@media (max-width: 480px) {
    .promo-banner {
        min-height: calc(var(--touch-target) + env(safe-area-inset-top, 0));
        padding: 0.5rem max(var(--container-padding-mobile), env(safe-area-inset-left, 0)) 0.5rem max(var(--container-padding-mobile), env(safe-area-inset-right, 0));
        padding-top: calc(0.5rem + env(safe-area-inset-top, 0));
    }
    .promo-banner-msg {
        font-size: clamp(0.8125rem, 3vw + 0.5rem, 0.9375rem);
    }
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: calc(36px + env(safe-area-inset-top, 0));
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: none;
    z-index: 1100;
    transition: top 0.25s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

@media (max-width: 768px) {
    .navbar,
    .navbar.scrolled-top {
        top: calc(44px + env(safe-area-inset-top, 0));
    }
}

/* When menu is open, don't clip the dropdown so the links are visible */
.navbar:has(.nav-menu.active) {
    overflow: visible;
}

/* When menu is open: hamburger (close) on top, menu above account/cart */
.navbar:has(.nav-menu.active) .hamburger,
.navbar:has(.nav-menu-popup-wrap.active) .hamburger {
    position: relative;
    z-index: 10010;
    background: var(--bg-dark);
}

.navbar:has(.nav-menu.active) .nav-actions,
.navbar:has(.nav-menu-popup-wrap.active) .nav-actions {
    z-index: 1;
}

.navbar:has(.nav-menu.active) .nav-menu {
    z-index: 10005;
}

/* Desktop: popup wrap is layout-only, heading hidden */
.nav-menu-popup-wrap {
    display: contents;
}

.nav-menu-popup-heading {
    display: none;
}

.nav-menu-popup-inner {
    display: contents;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Nav stays below promo bar on all pages */
.navbar.scrolled-top {
    top: calc(36px + env(safe-area-inset-top, 0));
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 1.1rem 20px 1.1rem 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
    justify-self: start;
}

.nav-logo {
    justify-self: center;
    min-width: 0;
}

.nav-logo a {
    display: flex;
    justify-content: center;
}

.nav-menu {
    justify-self: start;
}

.nav-actions {
    justify-self: end;
    min-width: 0;
}

.nav-logo a {
    display: inline-block;
    text-decoration: none;
}

.nav-logo-img {
    height: 76px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10002;
}

.nav-search-wrapper {
    position: relative;
    z-index: 10010;
    order: 0;
    display: flex;
    align-items: center;
}

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    color: var(--text-white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    font: inherit;
}

.nav-search-btn:hover,
.nav-search-btn:focus,
.nav-search-btn:focus-visible {
    color: var(--orange);
}

.nav-search-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.nav-search-icon {
    font-size: 1.25rem;
    width: 1em;
    height: 1em;
}

.nav-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(env(safe-area-inset-top), 1rem) max(env(safe-area-inset-right), 1rem) 2rem max(env(safe-area-inset-left), 1rem);
    padding-top: calc(var(--header-height, 72px) + 1rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-search-panel--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-search-panel-inner {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.nav-search-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-search-input {
    flex: 1;
    min-height: var(--touch-target);
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
}

.nav-search-input::placeholder {
    color: var(--text-dim);
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(201, 166, 70, 0.25);
}

.nav-search-close {
    flex-shrink: 0;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.nav-search-close:hover,
.nav-search-close:focus-visible {
    color: var(--orange);
}

.nav-search-close:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.nav-search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem 1rem 0.5rem 1rem;
}

.nav-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text);
    transition: background 0.15s ease;
}

.nav-search-result:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-search-result-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.nav-search-result-link:hover,
.nav-search-result-link:focus-visible {
    color: var(--text-white);
}

.nav-search-result-link:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.nav-search-result-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.nav-search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.nav-search-result-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-search-result-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-search-result-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-search-result-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.nav-search-result-heart:hover,
.nav-search-result-heart:focus-visible {
    color: var(--primary-color);
}

.nav-search-result-heart:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.nav-search-result-heart i {
    font-size: 1.1rem;
}

.nav-search-result-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.nav-search-result-qty .quantity-btn {
    min-width: 36px;
    min-height: 36px;
    flex: 0 0 36px;
}

.nav-search-result-qty .quantity-value {
    min-width: 2rem;
    text-align: center;
}

.nav-search-status {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}

body.nav-search-open {
    overflow: hidden;
}

/* So the fixed full-screen search panel isn't clipped by the navbar */
body.nav-search-open .navbar {
    overflow: visible;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-favourites-wrapper {
    position: relative;
    z-index: 10002;
    order: 1;
    display: flex;
    align-items: center;
}

.nav-favourites-wrapper--hidden {
    display: none !important;
}

.nav-favourites {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    color: var(--text-white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    box-sizing: content-box;
    text-decoration: none;
}

.nav-favourites:hover,
.nav-favourites:focus,
.nav-favourites:focus-visible {
    color: var(--orange);
}

.nav-favourites--current {
    color: var(--primary-color);
}

.nav-favourites:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.nav-favourites-icon {
    font-size: 1.25rem;
    width: 1em;
    height: 1em;
}

/* Favourites dropdown (same pattern as cart dropdown) */
.favourites-dropdown {
    display: none;
    position: fixed;
    z-index: 10003;
    min-width: 280px;
    max-width: 90vw;
    max-height: 70vh;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.favourites-dropdown.active {
    display: flex;
    flex-direction: column;
}

.favourites-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.favourites-dropdown-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0;
    color: var(--text-white);
}

.favourites-dropdown-close {
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
}

.favourites-dropdown-close:hover,
.favourites-dropdown-close:focus-visible {
    color: var(--text-white);
}

.favourites-dropdown-close svg {
    width: 20px;
    height: 20px;
}

.favourites-dropdown-content {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.favourites-empty {
    color: var(--text-light);
    font-size: var(--text-sm);
    padding: 0.5rem 0;
}

.favourites-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.favourites-loading {
    color: var(--text-light);
    font-size: var(--text-sm);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.favourites-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.favourites-item:last-child {
    border-bottom: none;
}

.favourites-item-image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}

.favourites-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favourites-item-info {
    flex: 1;
    min-width: 0;
}

.favourites-item-name {
    display: block;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    font-size: var(--text-sm);
}

.favourites-item-name:hover {
    color: var(--primary-color);
}

.favourites-item-price {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: 0.15rem;
}

.favourites-item-add {
    margin-top: 0.35rem;
    min-height: var(--touch-target);
    padding: 0.35rem 0.6rem;
    font-size: var(--text-xs);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
    background: var(--primary-color);
    color: var(--text-dark);
    border: 1px solid var(--orange-dark);
    border-radius: 4px;
    cursor: pointer;
}

.favourites-item-add:hover {
    background: var(--orange-light);
}

.favourites-manage-link {
    display: block;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--primary-color);
    margin-top: 0.75rem;
}

.favourites-manage-link:hover {
    color: var(--orange-light);
}

.nav-cart-wrapper {
    position: relative;
    z-index: 10002;
    order: 2;
    display: flex;
    align-items: center;
}

.nav-account-wrapper {
    position: relative;
    z-index: 10002;
    order: 3;
    display: flex;
    align-items: center;
}

.nav-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    color: var(--text-white);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    box-sizing: content-box;
}

.nav-cart-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cart-icon {
    font-size: 1.25rem;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cart-count {
    position: absolute;
    bottom: -4px;
    right: -10px;
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    /* Nudge number down and right for optical centering in circle */
    transform: translate(0.5px, 1px);
}

.nav-cart-count.nav-cart-count--has-items {
    color: var(--text-dark);
    background: var(--primary-color);
    border-color: #1c1c1c;
}

.nav-cart:hover,
.nav-cart:focus,
.nav-cart:focus-visible,
.nav-cart:active {
    color: var(--orange);
}

.nav-cart:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.nav-cart:hover .nav-cart-icon {
    transform: translateY(-1px);
}

.nav-account-wrapper {
    position: relative;
    z-index: 10002;
    order: 3;
    display: flex;
    align-items: center;
}

.nav-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    color: var(--text-white);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    box-sizing: content-box;
}

.nav-account-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.nav-account:hover .nav-account-icon-wrap {
    transform: translateY(-1px);
}

.nav-account-icon {
    font-size: 1.25rem;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.nav-account:hover,
.nav-account-trigger:hover {
    color: var(--orange);
}

.nav-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    color: var(--text-white);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    box-sizing: content-box;
    font: inherit;
}

.nav-account-trigger:hover .nav-account-icon-wrap {
    transform: translateY(-1px);
}

.nav-account:focus-visible,
.nav-account-trigger:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.nav-account-avatar {
    display: block;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Account dropdown – fixed, high z-index so it paints above all content */
.nav-account-dropdown {
    position: fixed;
    top: 72px;
    right: max(1rem, env(safe-area-inset-right));
    left: auto;
    min-width: 240px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 99999;
    pointer-events: none;
}

.nav-account-dropdown.active {
    pointer-events: auto;
}

.nav-account-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.nav-account-dropdown-content {
    position: relative;
    padding: 2rem 1.5rem 1.2rem;
}

.nav-account-dropdown-signout {
    margin: 0;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    text-align: center;
    width: 100%;
}

.nav-account-dropdown-signout:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-account-dropdown-greeting {
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-account-dropdown-greeting strong {
    color: var(--text-white);
    font-weight: 800;
}

.nav-account-dropdown-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-account-dropdown-cta {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.nav-account-dropdown-cta--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--orange);
}

.nav-account-dropdown-cta--secondary:hover {
    color: var(--orange-light);
    border-color: rgba(201, 166, 70, 0.3);
    background: rgba(201, 166, 70, 0.05);
}

/* Cart right sidebar – on-brand dark panel, gold accents */
.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.cart-dropdown.active {
    transform: translateX(0);
}

.cart-dropdown.filled {
    max-width: 380px;
}

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-sidebar-title {
    margin: 0;
    font-family: var(--font-subhead);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-lighter);
}

.cart-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    min-width: var(--touch-target);
    height: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0;
    border: none;
    background: none;
    color: var(--text-lighter);
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease;
}

.cart-sidebar-close:hover,
.cart-sidebar-close:focus-visible {
    background: rgba(201, 166, 70, 0.12);
    color: var(--orange);
}

.cart-sidebar-close:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.cart-sidebar-close svg {
    width: 20px;
    height: 20px;
}

.cart-dropdown-content {
    position: relative;
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-empty {
    text-align: left;
    padding: 1.5rem 0;
}

.cart-empty p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    margin: 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-section-title {
    margin-top: 0.25rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.cart-cta-row {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.cart-cta {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: var(--text-sm);
    flex: 1;
    padding: 0.65rem 1rem;
    min-height: var(--touch-target);
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    display: block;
}

.cart-cta--secondary {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cart-cta--secondary:hover {
    color: var(--orange-light);
    border-color: var(--orange-light);
    background: rgba(201, 166, 70, 0.08);
}

.cart-cta--primary {
    background: var(--orange);
    border: 2px solid var(--orange);
    color: var(--text-dark);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.cart-cta--primary:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--text-dark);
}

.cart-clear {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.06em;
    font-size: var(--text-xs);
    margin: 1rem 0 0;
    padding: 0.5rem 0;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    text-align: left;
    transition: color 0.2s ease;
    cursor: pointer;
}

.cart-clear:hover {
    color: var(--orange);
}

/* Out-of-stock toast (when user clicks + on out-of-stock item) – on brand */
.out-of-stock-toast {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--orange-dark);
    border-radius: 2px;
    color: var(--orange-light);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-md);
    animation: out-of-stock-toast-in 0.2s ease;
}

@keyframes out-of-stock-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Confirm clear cart modal (in-page) – above cart dropdown (z-index 99999) */
.confirm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 1rem;
}
.confirm-modal[hidden] {
    display: none !important;
}
.confirm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}
.confirm-modal-inner {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 1.5rem 1.75rem;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.confirm-modal-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.confirm-modal-text {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}
.confirm-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.confirm-modal-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
.confirm-modal-cancel {
    background: transparent;
    border: 1px solid var(--orange);
    color: var(--orange);
}
.confirm-modal-cancel:hover {
    background: rgba(201, 166, 70, 0.1);
    color: var(--orange-light);
    border-color: var(--orange-light);
}
.confirm-modal-confirm {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: var(--text-white);
}
.confirm-modal-confirm:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--bg-dark);
}

.cart-summary {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.cart-summary-label {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.cart-summary-value {
    color: var(--orange);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

/* Free shipping progress (shown when cart has items) */
.cart-free-shipping {
    margin-top: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-free-shipping-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.cart-free-shipping-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange-dark) 0%, var(--orange) 100%);
    transition: width 0.35s ease;
    min-width: 0;
}

.cart-free-shipping--unlocked .cart-free-shipping-fill {
    background: var(--orange);
}

.cart-free-shipping-text {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 2vw + 0.5rem, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    line-height: 1.3;
}

.cart-free-shipping--unlocked .cart-free-shipping-text {
    color: var(--orange);
}

@media (max-width: 768px) {
    .cart-dropdown {
        max-width: 100%;
    }
    .cart-free-shipping {
        margin-top: 0.6rem;
        padding: 0.5rem 0;
    }
    .cart-free-shipping-bar {
        min-height: 6px;
    }
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
}

.cart-item-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.cart-item-image--placeholder {
    background: rgba(201, 166, 70, 0.15);
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-category {
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cart-item-name {
    color: var(--text-lighter);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 300px;
}

.cart-item-meta {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Bundle items: use grid so name+description get full width, controls below */
.cart-item--bundle {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    align-items: start;
}

.cart-item--bundle .cart-item-image {
    grid-column: 1;
    grid-row: 1 / -1;
}

.cart-item--bundle .cart-item-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.cart-item--bundle .cart-item-name {
    -webkit-line-clamp: 1;
    max-width: none;
}

.cart-item--bundle .cart-item-meta {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: 0.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cart-item--bundle .cart-item-controls {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
}

.cart-item--bundle .cart-item-price {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    justify-self: end;
}

/* Match main quantity-selector (products/home) so cargo bar looks the same */
.cart-item-controls {
    display: inline-flex;
    align-items: center;
    width: 120px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.cart-item--bundle .cart-item-controls {
    flex-shrink: 0;
    min-height: var(--touch-target, 44px);
}

.cart-item--bundle .cart-item-price {
    flex-shrink: 0;
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
    white-space: nowrap;
}

.cart-qty-btn {
    flex: 0 0 35px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-lighter);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.cart-qty-btn:hover {
    background: rgba(201, 166, 70, 0.15);
    color: var(--orange);
}

.cart-qty-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.cart-qty-value {
    flex: 1;
    min-width: 30px;
    text-align: center;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
}

.logo-line1,
.logo-line2 {
    display: block;
    line-height: 0.85;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    font-family: var(--font-logo);
    font-weight: 700;
}

.logo-line1 {
    margin-bottom: 0.05em;
}

.logo-line2 {
    text-indent: 0;
}

.logo-amp {
    color: var(--orange);
    font-weight: 400;
    font-size: 0.75em;
    position: relative;
    display: inline-block;
    vertical-align: baseline;
}

/* Align & with D - "Bars" is 4 chars, "Beard" D is at position 4, so & needs to align */
.nav-logo .logo-amp {
    margin-left: 0.05em;
    transform: translateX(-0.02em);
}

.hero-title .logo-amp {
    margin-left: 0.08em;
    transform: translateX(0em);
}

.footer-section h4 .logo-amp {
    margin-left: 0.05em;
    transform: translateX(-0.02em);
}

.nav-menu {
    list-style: none;
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-dark);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    padding-top: calc(var(--header-height-with-promo) + 1rem);
    border-right: 1px solid var(--border-color);
    transition: left 0.3s ease, visibility 0.3s ease;
    z-index: 1200;
    display: flex;
    gap: 0;
    visibility: hidden;
}

.navbar.scrolled-top .nav-menu {
    padding-top: calc(var(--header-height) + 1rem);
}

.nav-menu.active {
    left: 0;
    visibility: visible;
}

/* Backdrop when menu is open (below navbar so burger stays clickable) */
.nav-menu.active::before {
    content: '';
    position: fixed;
    top: var(--header-height-with-promo);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.navbar.scrolled-top .nav-menu.active::before {
    top: var(--header-height);
}

.nav-menu li {
    margin: 0;
    flex-shrink: 0;
}

.nav-menu .nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    color: var(--text-lighter) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu .nav-link:hover {
    color: var(--orange) !important;
    background: rgba(255, 255, 255, 0.06);
}

/* Mobile (768px): hamburger menu as pop-up (same style as "Added to bag" modal) */
@media (max-width: 768px) {
    body.nav-menu-open {
        overflow: hidden;
    }

    .nav-menu-popup-wrap {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10005;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-menu-popup-wrap::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .nav-menu-popup-wrap.active {
        pointer-events: auto;
        opacity: 1;
    }

    /* Card anchored to bottom of viewport (matches cart sidebar / modals: bg-dark, subtle border) */
    .nav-menu-popup-inner {
        display: block;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 100%);
        width: 100%;
        max-width: 420px;
        max-height: 85vh;
        overflow-y: auto;
        background: var(--bg-dark);
        border: 1px solid var(--border-color);
        border-radius: 12px 12px 0 0;
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
        transition: transform 0.3s ease;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    }

    .nav-menu-popup-wrap.active .nav-menu-popup-inner {
        transform: translate(-50%, 0);
    }

    .nav-menu-popup-heading {
        display: block;
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-white);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin: 0 0 1rem;
    }

    /* Menu list inside popup: no fixed left panel, just stacked links */
    .nav-menu-popup-wrap .nav-menu {
        position: static;
        left: auto;
        width: 100%;
        max-width: none;
        height: auto;
        padding: 0;
        padding-top: 0;
        box-shadow: none;
        border: none;
        visibility: visible;
        transform: none;
    }

    .nav-menu-popup-wrap .nav-menu.active {
        left: auto;
    }

    .nav-menu-popup-wrap .nav-menu::before {
        display: none;
    }

    .nav-menu-popup-wrap .nav-menu .nav-link {
        min-height: var(--touch-target);
        display: flex;
        align-items: center;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu-popup-wrap .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
}

.nav-link {
    font-family: var(--font-subhead);
    color: var(--text-lighter);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-base);
    letter-spacing: 0.04em;
    transition: color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition-fast);
    transform: skewX(-20deg);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--orange);
    transform: translateY(-2px);
}

.nav-link--current {
    color: var(--orange);
}

.nav-link--current::after {
    width: 100%;
}

.nav-link:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
    color: var(--orange);
}

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

.btn-nav {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    border: none;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 4px 15px rgba(201, 166, 70, 0.4),
        0 0 0 1px rgba(201, 166, 70, 0.3);
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-nav:hover::before {
    transform: scale(1);
}

.btn-nav:hover::after {
    opacity: 1;
}

.btn-nav:hover {
    transform: translateY(-4px) rotateX(5deg);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 12px 40px rgba(201, 166, 70, 0.7),
        0 0 30px rgba(201, 166, 70, 0.5),
        0 0 0 2px rgba(201, 166, 70, 0.4);
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0;
    border: none;
    background: none;
    color: inherit;
}

.hamburger:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    height: 58vh;
    min-height: 420px;
    max-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
    box-sizing: border-box;
    /* forge / longhouse atmosphere */
    background:
        radial-gradient(circle at top, rgba(201, 166, 70, 0.22) 0, transparent 52%),
        radial-gradient(circle at bottom, rgba(0, 0, 0, 0.9) 0, var(--bg-darker) 60%);
    color: var(--text-white);
    text-align: center;
    /* visible so "Welcome To" is never clipped by the hero box */
    overflow: visible;
    z-index: 0;
}

/* Push hero below fixed promo + nav. No top padding so the video reaches the navbar. */
.home-page .hero {
    margin-top: calc(var(--header-height-with-promo) + env(safe-area-inset-top, 0px));
    padding-top: 0;
    scroll-margin-top: calc(var(--header-height-with-promo) + env(safe-area-inset-top, 0px));
}

/* Extend video upward so it sits under the navbar and removes any visible gap. */
.home-page .hero-media {
    top: -20px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100% + 20px);
}

/* Extend overlays into the overlap strip. Top 20px is a dark band matching the navbar so no gold tint shows. */
.home-page .hero::before,
.home-page .hero::after {
    top: -20px;
    height: calc(100% + 20px);
}

.home-page .hero::after {
    background:
        linear-gradient(to bottom, #1c1c1c 0, #1c1c1c 30px, transparent 30px),
        linear-gradient(135deg, transparent 15%, rgba(28, 28, 28, 0.9) 55%, transparent 85%),
        radial-gradient(circle at 15% 18%, rgba(201, 166, 70, 0.16) 0, transparent 55%),
        radial-gradient(circle at 85% 78%, rgba(201, 166, 70, 0.1) 0, transparent 55%);
    /* Lock the hero overlay in place on the home page so it doesn't animate/scale and reveal a line under the navbar */
    animation: none;
    transform: none;
}

/* Mobile/tablet: even larger overlap and taller dark band to cover variable header height and safe areas on small devices */
@media (max-width: 768px) {
    .home-page .hero-media {
        top: -80px;
        height: calc(100% + 80px);
    }
    .home-page .hero::before,
    .home-page .hero::after {
        top: -80px;
        height: calc(100% + 80px);
    }
    .home-page .hero::after {
        background:
            linear-gradient(to bottom, #1c1c1c 0, #1c1c1c 80px, transparent 80px),
            linear-gradient(135deg, transparent 15%, rgba(28, 28, 28, 0.9) 55%, transparent 85%),
            radial-gradient(circle at 15% 18%, rgba(201, 166, 70, 0.16) 0, transparent 55%),
            radial-gradient(circle at 85% 78%, rgba(201, 166, 70, 0.1) 0, transparent 55%);
    }
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video,
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-welcome {
    font-family: var(--font-subhead);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-white);
    margin: 0 0 0.5rem;
    padding-top: 0.25em;
    line-height: 1.35;
    opacity: 0.95;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, transparent 15%, rgba(28, 28, 28, 0.9) 55%, transparent 85%),
        radial-gradient(circle at 15% 18%, rgba(201, 166, 70, 0.16) 0, transparent 55%),
        radial-gradient(circle at 85% 78%, rgba(201, 166, 70, 0.1) 0, transparent 55%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 18s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
}

/* Gold gradient line at bottom of hero (video) */
.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(201, 166, 70, 0.4) 50%, transparent 90%);
    pointer-events: none;
}

/* Mobile: hide the thin gold separator line at the bottom of the hero so the video flows cleanly into the next section without a visible stripe */
@media (max-width: 768px) {
    .hero-overlay::after {
        display: none;
    }
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    padding: 0 20px;
    z-index: 2;
    animation: fadeInUpHero 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 0;
}

/* Keep vertical centre on all viewports; only adjust padding and typography */
@media (max-width: 968px) {
    .hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .home-page .hero {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .home-page .hero {
        padding-top: 0;
    }
    .hero-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    .home-page .hero {
        padding-top: 0;
    }
    .hero-welcome {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
        padding-top: 0.35em;
    }
}

/* Short viewports (e.g. landscape): keep centred, reduce vertical padding */
@media (max-height: 500px) {
    .hero {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .home-page .hero {
        padding-top: 0;
    }
}

@media (max-height: 420px) {
    .hero {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    .home-page .hero {
        padding-top: 0;
    }
}

.hero-welcome + .hero-title {
    margin-top: 0.25rem;
}


/* Subtle Brand Elements - Rune Symbols */
.brand-element {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-element .rune-symbol {
    width: 100%;
    height: 100%;
    color: rgba(201, 166, 70, 0.4);
    filter: drop-shadow(0 0 4px rgba(201, 166, 70, 0.3));
}

.brand-element-1 {
    width: 50px;
    height: 50px;
    top: 18%;
    left: 8%;
    animation: brandFloat1 20s ease-in-out infinite;
}

.brand-element-2 {
    width: 45px;
    height: 45px;
    bottom: 25%;
    right: 10%;
    animation: brandFloat2 22s ease-in-out infinite;
    animation-delay: -5s;
}

.brand-element-3 {
    width: 55px;
    height: 55px;
    top: 30%;
    right: 15%;
    animation: brandFloat3 18s ease-in-out infinite;
    animation-delay: -3s;
}

.brand-element-4 {
    width: 40px;
    height: 40px;
    bottom: 35%;
    left: 12%;
    animation: brandFloat4 16s ease-in-out infinite;
    animation-delay: -7s;
}

.brand-element-5 {
    width: 48px;
    height: 48px;
    top: 50%;
    left: 5%;
    animation: brandFloat5 24s ease-in-out infinite;
    animation-delay: -4s;
}

.brand-element-6 {
    width: 42px;
    height: 42px;
    bottom: 20%;
    right: 8%;
    animation: brandFloat6 19s ease-in-out infinite;
    animation-delay: -6s;
}

.brand-element-7 {
    width: 38px;
    height: 38px;
    top: 12%;
    right: 20%;
    animation: brandFloat1 25s ease-in-out infinite;
    animation-delay: -8s;
}

.brand-element-8 {
    width: 52px;
    height: 52px;
    bottom: 40%;
    left: 20%;
    animation: brandFloat2 21s ease-in-out infinite;
    animation-delay: -10s;
}

.brand-element-9 {
    width: 44px;
    height: 44px;
    top: 60%;
    right: 25%;
    animation: brandFloat3 23s ease-in-out infinite;
    animation-delay: -12s;
}

.brand-element-10 {
    width: 46px;
    height: 46px;
    top: 25%;
    left: 25%;
    animation: brandFloat4 17s ease-in-out infinite;
    animation-delay: -9s;
}

.brand-element-11 {
    width: 40px;
    height: 40px;
    bottom: 15%;
    left: 30%;
    animation: brandFloat5 26s ease-in-out infinite;
    animation-delay: -11s;
}

.brand-element-12 {
    width: 48px;
    height: 48px;
    top: 45%;
    right: 30%;
    animation: brandFloat6 20s ease-in-out infinite;
    animation-delay: -13s;
}

/* Subtle floating animations for runes */
@keyframes brandFloat1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-25px, -35px) rotate(-5deg);
    }
    75% {
        transform: translate(35px, -15px) rotate(3deg);
    }
}

@keyframes brandFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-30px, 25px) rotate(-4deg);
    }
    66% {
        transform: translate(25px, 40px) rotate(4deg);
    }
}

@keyframes brandFloat3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(25px, -30px) rotate(6deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, -45px) rotate(-6deg) scale(0.9);
    }
    75% {
        transform: translate(30px, -20px) rotate(3deg) scale(1.05);
    }
}

@keyframes brandFloat4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-25px, 30px) rotate(-5deg) scale(1.15);
    }
    66% {
        transform: translate(20px, 45px) rotate(5deg) scale(0.85);
    }
}

@keyframes brandFloat5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -15px) rotate(8deg);
    }
    50% {
        transform: translate(-15px, -25px) rotate(-8deg);
    }
    75% {
        transform: translate(25px, -10px) rotate(4deg);
    }
}

@keyframes brandFloat6 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, 25px) rotate(-5deg);
    }
    66% {
        transform: translate(15px, 40px) rotate(5deg);
    }
}

.hero-title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1;
}

.hero-logo-img {
    max-width: 720px;
    width: auto;
    height: auto;
    max-height: 260px;
    display: block;
    filter: drop-shadow(0 0 30px rgba(201, 166, 70, 0.3));
    animation: fadeInUp 1s ease;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    margin-bottom: 0;
}

.hero-subtitle {
    font-family: var(--font-tagline);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    opacity: 0.95;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-white);
    line-height: var(--leading-snug);
}

.hero-description {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    margin-top: 0;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    color: var(--text-lighter);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Hero CTA: solid button so it reads as a button, not plain text */
.hero-buttons .btn-primary {
    background: var(--orange);
    color: var(--text-dark);
    padding: 0.85rem 2rem;
    border-radius: 2px;
    font-family: var(--font-subhead);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: var(--touch-target);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary::after {
    display: none;
}

.hero-buttons .btn-primary:hover {
    background: var(--orange-light);
    color: var(--text-dark);
}

.btn {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0;
    border: none;
    border-radius: 0;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all 0.25s ease-out;
    display: inline-block;
    background: transparent;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: visible;
}

.btn-primary {
    color: var(--text-white);
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: width 0.3s ease;
}

.btn-primary:hover {
    color: var(--orange);
}

.btn-primary:hover::after {
    width: 100%;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.btn-secondary {
    color: rgba(255, 255, 255, 0.75);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease;
}

.btn-secondary:hover {
    color: var(--text-white);
}

.btn-secondary:hover::after {
    width: 100%;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    color: var(--text-white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero content: same as fadeInUp but keeps translate(-50%, -50%) for centering */
@keyframes fadeInUpHero {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 30px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

/* Tighter spacing between Features, Ritual and Contact for smoother flow */
.features + .about,
.about + .contact {
    padding-top: 2.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header .section-title {
    margin: 0 auto 1rem;
}

.section-title {
    font-family: var(--font-subhead);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: var(--leading-tight);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--orange);
    box-shadow: 0 0 12px rgba(201, 166, 70, 0.6);
}

/* Full-width gold gradient line under section titles (New Products, The Ritual, Get in Touch) */
.products .section-header .section-title,
.about-header .section-title,
.contact-header .section-title {
    display: block;
}

.products .section-header .section-title::after,
.about-header .section-title::after,
.contact-header .section-title::after {
    left: 0;
    width: 100%;
    height: 1px;
    bottom: -0.5rem;
    background: linear-gradient(90deg, transparent 10%, rgba(201, 166, 70, 0.4) 50%, transparent 90%);
    box-shadow: none;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-light);
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ============================================
   Products Section
   ============================================ */

.products {
    background: var(--bg-dark);
}

/* Mobile: nudge products section up by 1px to hide any sub-pixel seam between the hero and products backgrounds on small screens */
@media (max-width: 768px) {
    .home-page .products {
        margin-top: -1px;
    }
}

.product-category {
    margin-bottom: 5rem;
}

.product-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.8rem);
    color: var(--text-white);
    margin-bottom: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    line-height: var(--leading-tight);
    position: relative;
    display: inline-block;
    width: 100%;
}

.category-shop-more {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-shop-more:hover {
    color: var(--orange-light);
}

.category-title::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    box-shadow: 0 0 10px rgba(201, 166, 70, 0.5);
}

/* Products Carousel */
.products-carousel {
    position: relative;
    overflow: visible;
    margin: 0 -20px;
    padding: 0 60px;
}

.carousel-container {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
    user-select: none;
    scroll-snap-type: x mandatory;
    padding: 15px 0 10px 0;
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-container.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.shop-more-row {
    display: flex;
    gap: 2rem;
    padding: 0 20px;
    margin-top: 1rem;
    width: max-content;
    max-width: 100%;
}

.shop-more-spacer {
    flex: 0 0 350px;
    min-width: 300px;
}

.shop-more-row .category-shop-more {
    flex: 0 0 350px;
    min-width: 300px;
    justify-content: flex-end;
    text-align: right;
    padding-right: 4rem;
    box-sizing: border-box;
}

.products-grid {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 0 20px;
    margin-top: 0;
}

/* Carousel: ensure flex items (links) don't shrink; cards keep proper width */
.products-carousel .products-grid .product-card-link {
    flex: 0 0 auto;
    min-width: 0; /* overridden by child; link sizes to card */
}

.products-carousel .product-card {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 350px;
    width: 300px;
    scroll-snap-align: start;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--orange);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
    outline: none;
    box-shadow: none;
}

.carousel-btn:focus {
    outline: none;
    box-shadow: none;
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.carousel-btn:hover {
    opacity: 1;
    color: var(--orange-light);
    transform: translateY(-50%) scale(1.1);
    z-index: 11;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: transparent;
}

.product-card {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03) 0, transparent 55%), var(--bg-card);
    border-radius: 2px;
    overflow: visible;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--orange);
    background: radial-gradient(circle at top, rgba(201, 166, 70, 0.1) 0, transparent 60%), var(--bg-card-hover);
    border-color: var(--orange);
    outline: none;
}

.product-image {
    position: relative;
    width: 100%;
    height: 380px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0, transparent 55%),
        var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.98;
    filter: contrast(1.05) saturate(1.05);
}

.product-img--broken {
    opacity: 0;
    height: 0;
    min-height: 0;
    position: absolute;
}

.product-image:has(.product-img--broken) {
    background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center no-repeat;
}

.product-placeholder {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--orange);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 100%, 6px 100%);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(201, 166, 70, 0.4);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-product-name);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-white);
    margin: 0;
    letter-spacing: 0.06em;
    line-height: var(--leading-snug);
    font-family: var(--font-display);
}

.product-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-family: var(--font-display);
}

.product-tag--new {
    color: var(--text-dark);
    background: var(--orange);
}

.product-card-stars {
    margin-bottom: 0.5rem;
}

.product-card-stars-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.product-card-stars-inner .fas.fa-star {
    color: var(--orange);
}

.product-card-stars-inner .far.fa-star {
    color: var(--text-light);
}

.product-description {
    font-family: var(--font-primary);
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-favourite-btn {
    display: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    color: rgba(201, 166, 70, 0.6);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-favourite-btn i {
    font-size: 1rem;
}

body.user-logged-in .product-favourite-btn {
    display: inline-flex;
}

.product-favourite-btn:hover,
.product-favourite-btn:focus-visible {
    color: var(--primary-color);
    background: rgba(201, 166, 70, 0.15);
    border-color: rgba(201, 166, 70, 0.35);
}

.product-favourite-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.product-favourite-btn i.fas.fa-heart {
    color: var(--primary-color);
}

.product-favourite-btn--image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: none;
    border: none;
    border-radius: 0;
    color: rgba(201, 166, 70, 0.6);
}

.product-favourite-btn--image:hover,
.product-favourite-btn--image:focus-visible {
    background: none;
    color: var(--primary-color);
}

.product-favourite-btn--image i.fas.fa-heart {
    color: var(--primary-color);
}

.product-detail-gallery .product-favourite-btn--detail {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
}

/* ============================================
   Features Section
   ============================================ */

.features {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
    background: var(--bg-dark) url('content/features/features-section-bg.jpg') center / cover no-repeat;
}

/* Overlay: push image back so it feels like mood, not a literal scene */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(18, 18, 18, 0.88) 0%, rgba(24, 24, 24, 0.92) 50%, rgba(20, 20, 20, 0.9) 100%),
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 166, 70, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Gradient gold lines above and below (same as Ritual) */
.features::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, transparent 10%, rgba(201, 166, 70, 0.4) 50%, transparent 90%),
        linear-gradient(90deg, transparent 10%, rgba(201, 166, 70, 0.4) 50%, transparent 90%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 0, 0 100%;
    pointer-events: none;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02) 0, transparent 70%), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 1.5rem 1.5rem;
    padding-left: 1.75rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Left accent bar – brand gold */
.feature-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 166, 70, 0.25);
    background: radial-gradient(circle at top, rgba(201, 166, 70, 0.06) 0, transparent 70%), var(--bg-card-hover);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 166, 70, 0.12);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-family: var(--font-display);
    line-height: 1.3;
    transition: color 0.3s ease, border-color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-item:hover h4 {
    color: var(--orange);
    border-bottom-color: rgba(201, 166, 70, 0.35);
}

.feature-item p {
    color: var(--text-lighter);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-carousel-wrap {
        position: relative;
    }

    .features-grid {
        display: flex;
        grid-template-columns: unset;
        gap: 0;
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 1rem;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .features-grid .feature-item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }

    .feature-item {
        padding: 1.5rem 1.25rem;
    }
    
    .feature-item h4 {
        font-size: 1.05rem;
    }

    .features-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.25rem;
    }

    .features-carousel-dot {
        width: 10px;
        height: 10px;
        min-width: var(--touch-target, 44px);
        min-height: var(--touch-target, 44px);
        padding: 17px;
        margin: 0;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.25);
        background-clip: content-box;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .features-carousel-dot:hover {
        background: rgba(255, 255, 255, 0.4);
    }

    .features-carousel-dot.is-active {
        background-color: var(--orange);
    }
}

/* Dots under feature tiles: mobile only (desktop shows all 4 tiles, no carousel) */
.features-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-bottom: 0.25rem;
}

@media (min-width: 769px) {
    .features-carousel-dots {
        display: none;
    }
}

/* ============================================
   About Section (The Ritual)
   ============================================ */

.about {
    background: var(--bg-dark);
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* Soft transition: thin gold line above and below Ritual */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(201, 166, 70, 0.4) 50%, transparent 90%);
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(201, 166, 70, 0.4) 50%, transparent 90%);
    pointer-events: none;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-header .section-title {
    margin-top: 0;
    margin-bottom: 0;
}

.about-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Card matches feature tiles: same language, so Ritual feels like the next beat */
.about-text {
    max-width: 42rem;
    width: 100%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02) 0, transparent 70%), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 2.5rem 2.5rem 2.5rem 2.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0.6;
}

.about-text::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    opacity: 0.6;
    z-index: 1;
}

.about-text p {
    color: var(--text-lighter);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-tagline {
    font-size: 1rem;
    color: var(--orange);
    font-style: italic;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-weight: 500;
}

.about-values {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.about-values .value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-item i {
    color: var(--orange);
    font-size: 1.1rem;
}

.value-item span {
    font-weight: 500;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .about-text {
        padding: 2rem 1.5rem 2rem 1.75rem;
    }
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    --contact-gap: 1.5rem;
    --contact-block-padding: 1.5rem 1.75rem;
    --contact-icon-size: 48px;
    background: var(--bg-dark);
    position: relative;
    overflow: visible;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* Viking voyage map background – extends into footer so it bleeds past the section */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -120px;
    background-image: url('content/contact-voyage-map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Gold gradient line at top of Contact (same as Features and Ritual) */
.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(201, 166, 70, 0.4) 50%, transparent 90%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .contact::before {
        opacity: 0.1;
    }
}

.contact-header {
    margin-bottom: 2.5rem;
}


.contact-header .section-subtitle {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 6rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--contact-gap);
}

/* Single item (e.g. homepage email only): compact, centred box */
.contact-list:has(li:only-child) {
    justify-content: center;
}
.contact-list:has(li:only-child) .contact-item {
    flex: 0 0 auto;
    max-width: 380px;
    width: 100%;
}

.contact-item {
    display: flex;
    flex: 1 1 280px;
    min-width: 0;
    gap: 1.25rem;
    align-items: center;
    padding: var(--contact-block-padding);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02) 0, transparent 70%), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: rgba(201, 166, 70, 0.2);
    background: radial-gradient(circle at top, rgba(201, 166, 70, 0.05) 0, transparent 70%), var(--bg-card-hover);
    transform: translateY(-4px);
}

.contact-icon {
    width: var(--contact-icon-size);
    height: var(--contact-icon-size);
    min-width: var(--contact-icon-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.05);
}

.contact-label,
.contact-details h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    font-family: var(--font-display);
}

.contact-details p {
    color: var(--text-lighter);
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0;
}

.contact-details a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--orange-light);
}

/* ============================================
   Contact page – same as homepage Get in Touch (on brand)
   ============================================ */

.contact-page .content-page .container {
    max-width: 720px;
}

.contact-page .content-page-lead {
    margin-bottom: 1.5rem;
}

/* Full-width contact section with voyage map (breaks out of content container) */
.contact--page {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    margin-top: 0.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* Voyage map and gold line stay – same as homepage */
.contact--page .container {
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
}

@media (min-width: 769px) {
    .contact--page .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* No section header on Contact page – page title and lead are enough */
.contact--page .contact-header {
    display: none;
}

/* Match homepage: push content down so it sits centered in the map area */
.contact--page .contact-content {
    margin-top: 5rem;
}

/* Three cards in one row – wide enough so email fits on one line inside box */
.contact--page .contact-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(360px, 1fr));
    gap: var(--contact-gap);
}

.contact--page .contact-item {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 100px;
    box-sizing: border-box;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

/* Keep email, phone, location on one line; wide min column so email doesn’t spill */
.contact--page .contact-details {
    min-width: 0;
    flex: 1;
}

.contact--page .contact-details p,
.contact--page .contact-details a {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .contact--page .contact-list {
        grid-template-columns: 1fr;
    }

    .contact--page .contact-details p,
    .contact--page .contact-details a {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .contact--page .contact-list {
        grid-template-columns: 1fr;
    }

    .contact--page .contact-item {
        min-height: 0;
    }
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-link:hover {
    color: var(--orange);
    transform: translateY(-2px);
}

.social-link .social-icon-x {
    width: 1.1rem;
    height: 1.1rem;
}

/* Contact page: social icons same as homepage (light, not content-page orange) */
.contact--page .social-link {
    color: var(--text-light);
}
.contact--page .social-link:hover {
    color: var(--orange);
}

/* ============================================
   Content pages (Shipping, Returns, FAQ, Privacy)
   ============================================ */

.content-page {
    padding: calc(var(--header-height) + 2rem) 0 3rem;
    position: relative;
    min-height: 50vh;
}

.content-page .container {
    max-width: 720px;
}

.content-page-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: var(--leading-tight);
    margin: 0 0 0.5rem;
    position: relative;
    display: inline-block;
}

.content-page-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--orange);
    box-shadow: 0 0 12px rgba(201, 166, 70, 0.5);
}

.content-page-lead {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    color: var(--text-light);
    margin: 0 0 2rem;
    line-height: var(--leading-relaxed);
}

.content-page-body h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 2rem 0 0.75rem;
}

.content-page-body h2:first-of-type {
    margin-top: 0;
}

.content-page-body p {
    font-family: var(--font-primary);
    color: var(--text-lighter);
    margin: 0 0 1rem;
    line-height: var(--leading-relaxed);
    font-size: var(--text-base);
}

.content-page-body ul,
.content-page-body ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    color: var(--text-lighter);
    line-height: 1.65;
}

.content-page-body li {
    margin-bottom: 0.35rem;
}

.content-page-body strong {
    color: var(--text-white);
    font-weight: 600;
}

/* All links on content pages (lead + body) use brand orange */
.content-page a,
.content-page-body a {
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.content-page a:hover,
.content-page-body a:hover {
    color: var(--orange-light);
    border-bottom-color: var(--orange);
}

.content-page a:focus-visible,
.content-page-body a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* 404 page – orange background (brand colour), sticky footer */
.page-404-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--orange);
}

.page-404-body::before {
    display: none;
}

.page-404-body main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 404 page – on brand (Lost at sea, Viking tone): same bg, fonts, orange accent, CTAs as rest of site */
.page-404 {
    text-align: center;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.page-404 .container {
    max-width: 560px;
}

/* Shipwreck Viking longship as semi-transparent background */
.page-404 {
    position: relative;
}

.page-404::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('content/shipwreck-404.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.page-404 .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .page-404::before {
        opacity: 0.18;
    }
}

/* Centered underline under "LOST AT SEA" – white so it reads on orange */
.page-404 .content-page-title::after {
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
}

.page-404 .content-page-title {
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 404 watermark – white with opacity so it stands out but stays soft */
.page-404-code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
    user-select: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-404-title {
    display: block;
}

.page-404-lead {
    margin-bottom: 2.5rem;
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.page-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* CTAs on orange background: dark primary, outline secondary for contrast */
.page-404-btn {
    min-height: var(--touch-target, 44px);
    padding: 0.65rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: var(--transition);
}

.page-404-btn.btn-primary {
    background: var(--text-dark);
    border: 1px solid var(--text-dark);
    color: var(--text-white);
}

.page-404-btn.btn-primary:hover {
    background: var(--bg-darker);
    border-color: var(--bg-darker);
    color: var(--text-white);
}

.page-404-btn.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.page-404-btn.btn-secondary:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.page-404-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .page-404-actions {
        flex-direction: column;
        width: 100%;
    }

    .page-404-btn {
        width: 100%;
        min-width: 0;
    }
}

.content-page-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* FAQ accordion-style on content page */
.content-page-faq-item {
    border-bottom: 1px solid var(--border-color);
}

.content-page-faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.content-page-faq-q {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    padding: 1rem 0;
    letter-spacing: 0.02em;
}

.content-page-faq-a {
    color: var(--text-lighter);
    margin: 0 0 1rem;
    padding: 0 0 1rem;
    line-height: 1.65;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: linear-gradient(to bottom, transparent 0, transparent 120px, var(--bg-darker) 120px);
    color: var(--text-white);
    padding: 0 0 1.5rem;
    padding-top: calc(var(--header-height-with-promo) + 2rem);
    position: relative;
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
    z-index: 0;
}

.footer-wave-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}


@media (max-width: 768px) {
    .contact::before {
        bottom: -80px;
    }

    .footer {
        padding-top: 116px;
        background: linear-gradient(to bottom, transparent 0, transparent 80px, var(--bg-darker) 80px);
    }
    
    .footer-waves {
        height: 80px;
    }

    .footer-content {
        gap: 2rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 3rem;
    margin-bottom: 2rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-display);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.footer-logo-img {
    max-width: 250px;
    width: auto;
    height: auto;
    max-height: 80px;
    display: block;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.footer-section:first-child p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0;
    text-align: center;
    width: 100%;
    align-self: center;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-section ul li a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    color: var(--orange);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.03);
}

.newsletter-consent {
    flex: 1 1 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.newsletter-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: var(--touch-target);
    height: var(--touch-target);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    accent-color: var(--orange);
}
.newsletter-consent input[type="checkbox"]:checked {
    background: var(--orange);
    border-color: var(--orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.newsletter-consent a {
    color: var(--orange-light);
    text-decoration: underline;
}

.newsletter-consent a:hover {
    color: var(--orange);
}

.newsletter-form-row {
    display: flex;
    flex: 1 1 100%;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}

.newsletter-form input[type="email"] {
    flex: 1 1 12rem;
    min-width: 0;
    min-height: var(--touch-target);
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus,
.newsletter-form input:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--orange);
}

.btn-newsletter {
    min-height: var(--touch-target);
    min-width: 9rem;
    padding: 0.85rem 1.25rem;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    flex: 0 0 auto;
    overflow: visible;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--text-dark);
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-family: var(--font-display);
}

.btn-newsletter:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.btn-newsletter:hover {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    box-shadow: 0 2px 12px rgba(201, 166, 70, 0.35);
}

.newsletter-form-message {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.newsletter-form-message--success {
    color: var(--orange-light);
}

.newsletter-form-message--error {
    color: #e57373;
}

/* Newsletter: desktop refinements – smaller checkbox, cleaner alignment */
@media (min-width: 769px) {
    .newsletter-consent {
        align-items: center;
        padding: 1rem 1.25rem;
    }
    .newsletter-consent input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        margin-top: 0;
    }
    .newsletter-consent input[type="checkbox"]:checked {
        background-size: 70%;
    }
    .newsletter-form-row {
        flex-wrap: nowrap;
        align-items: center;
    }
    .newsletter-form input[type="email"] {
        flex: 1 1 10rem;
    }
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 769px) {
    .cookie-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 1rem 2rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        max-width: 1200px;
    }
    .cookie-banner--hidden {
        transform: translateY(100%);
    }
    .cookie-banner-text {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }
    .cookie-banner-heading {
        margin-bottom: 0.25rem;
    }
    .cookie-banner-desc {
        margin-bottom: 0;
    }
    .cookie-banner-actions {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
}

.cookie-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-text {
    margin-bottom: 1rem;
}

.cookie-banner-heading {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.cookie-banner-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.cookie-banner-desc a {
    color: var(--orange);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner-btn {
    min-height: var(--touch-target);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-banner-btn--accept {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.cookie-banner-btn--accept:hover {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    box-shadow: 0 2px 12px rgba(201, 166, 70, 0.35);
}

.cookie-banner-btn--essential {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.cookie-banner-btn--essential:hover {
    background: rgba(201, 166, 70, 0.15);
}

.cookie-banner-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }
    .cookie-banner-btn {
        width: 100%;
    }
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .nav-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding-left: max(var(--container-padding-mobile), env(safe-area-inset-left, 0));
        padding-right: max(var(--container-padding-mobile), env(safe-area-inset-right, 0));
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .nav-left {
        order: 3;
        flex-shrink: 0;
    }

    .nav-logo {
        order: 1;
        margin-right: auto;
        min-width: 0;
    }

    .nav-logo a {
        justify-content: flex-start;
    }

    .nav-actions {
        order: 2;
        gap: 0.35rem;
        flex-shrink: 0;
        min-width: 0;
    }

    .nav-logo-img {
        max-height: 64px;
        max-width: min(45vw, 180px);
        height: auto;
    }

    .nav-menu {
        text-align: center;
    }

    .nav-cart-count {
        right: -4px;
        bottom: -2px;
        font-size: 0.6rem;
        padding: 2px 4px;
    }

    .btn-nav {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .contact-content {
        max-width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-list {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        align-items: stretch;
    }

    .contact-list:has(li:only-child) {
        align-items: center;
    }

    .contact-list:has(li:only-child) .contact-item {
        width: 100%;
        max-width: 380px;
    }

    .contact-item {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        padding: 1.25rem 1.5rem;
        box-sizing: border-box;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-logo-img {
        max-width: min(88vw, 380px);
        max-height: 160px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Carousel mobile: one card at a time, compact, reduced padding */
    .products .product-category {
        margin-bottom: 3rem;
    }
    .products-carousel {
        margin: 0 -16px;
        padding: 0 44px;
    }

    .carousel-container {
        scroll-snap-type: x mandatory;
        scroll-snap-stop: always;
    }

    .products-carousel .products-grid {
        gap: 1rem;
        padding: 0 16px;
    }

    .products-carousel .product-card {
        min-width: min(260px, calc(100vw - 100px));
        max-width: min(300px, calc(100vw - 100px));
        width: min(280px, calc(100vw - 100px));
    }

    /* Carousel cards: compact on mobile so section doesn't dominate */
    .products-carousel .product-image {
        height: 200px;
    }
    .products-carousel .product-info {
        padding: 1rem;
    }
    .products-carousel .product-name {
        font-size: 0.95rem;
    }
    .products-carousel .product-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .products-carousel .product-footer {
        margin-top: auto;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        min-width: var(--touch-target, 44px);
        min-height: var(--touch-target, 44px);
    }

    .carousel-prev {
        left: 2px;
    }

    .carousel-next {
        right: 2px;
    }

    /* Shop all: centered below carousel on mobile (spacers hidden so it's visible) */
    .shop-more-row {
        width: 100%;
        justify-content: center;
        margin-top: 1.25rem;
        padding: 0 16px;
    }
    .shop-more-row .shop-more-spacer {
        display: none;
    }
    .shop-more-row .category-shop-more {
        flex: none;
        min-width: 0;
        padding: 0.5rem 0;
        min-height: var(--touch-target, 44px);
        font-size: 0.9rem;
        letter-spacing: 0.08em;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Newsletter: stack email + button at 600px so they don't overlap in narrow footer columns */
@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form-row {
        flex-direction: column;
    }
    .btn-newsletter {
        width: 100%;
        border-left: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 380px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-logo-img {
        max-width: min(92vw, 320px);
        max-height: 120px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Carousel: fit one card on narrow screens, keep compact */
    .products-carousel {
        padding: 0 36px;
    }

    .products-carousel .product-card {
        min-width: min(240px, calc(100vw - 90px));
        max-width: min(280px, calc(100vw - 90px));
        width: min(260px, calc(100vw - 90px));
    }

    .products-carousel .product-image {
        height: 180px;
    }
}

@media (max-width: 360px) {
    .hero-logo-img {
        max-width: 85vw;
        max-height: 100px;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }
}

/* ============================================
   Quantity Selector
   ============================================ */

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    width: 120px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.quantity-btn {
    flex: 0 0 35px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-lighter);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.quantity-btn:hover {
    background: rgba(201, 166, 70, 0.15);
    color: var(--orange);
}

.quantity-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.quantity-btn:active {
    background: rgba(201, 166, 70, 0.25);
}

.quantity-btn--out-of-stock {
    background: rgba(198, 73, 31, 0.35) !important;
    color: var(--orange-light) !important;
}

.quantity-value {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    user-select: none;
    -webkit-user-select: none;
    min-width: 30px;
}

@media (max-width: 768px) {
    .quantity-selector {
        width: 100px;
        height: 36px;
    }

    .product-favourite-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .product-favourite-btn i {
        font-size: 0.9rem;
    }
    
    .quantity-btn {
        flex: 0 0 30px;
        font-size: 1rem;
    }
    
    .quantity-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 380px;
        height: 56vh;
    }
}

/* ============================================
   Products Page (listing)
   ============================================ */

/* Products page: dark base + on-brand image (like 404), subtle opacity */
body.products-page::before {
    display: none;
}

body.products-page {
    background-color: var(--bg-dark);
}

.products-page-bg {
    display: none;
}

/* On-brand background image – forge warmth, low opacity so it doesn’t distract */
.products-page-main {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 4rem;
    min-height: 100vh;
    overflow-x: hidden;
}

.products-page-main::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201, 166, 70, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.products-page-main .products-layout {
    position: relative;
    z-index: 1;
}

.products-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
    min-width: 0;
}

.products-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--orange);
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) rgba(255, 255, 255, 0.06);
}

.products-sidebar::-webkit-scrollbar {
    width: 8px;
}

.products-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.products-sidebar::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 4px;
}

.products-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--orange-light);
}

.products-filters-overlay {
    display: none;
}

.products-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.products-toolbar-filters-btn {
    display: none;
}

.products-sidebar-header .products-filters-sheet-close {
    display: none;
}

.products-filters-apply-row {
    display: none;
}

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

.products-sidebar-header .products-sidebar-title {
    margin: 0;
}

.products-sidebar-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.products-filter-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.products-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.products-filter-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text-white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.products-filter-heading:hover {
    color: var(--orange);
}

.products-filter-heading .fa-chevron-up,
.products-filter-heading .fa-chevron-down {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* Collapse filter options when heading is collapsed */
.products-filter-heading[aria-expanded="false"] + .products-filter-options {
    display: none;
}

.products-filter-options {
    padding-top: 0.5rem;
}

.products-filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.35rem 0;
}

.products-filter-option:hover {
    color: var(--text-lighter);
}

.products-filter-option input[type="checkbox"] {
    accent-color: var(--orange);
    width: 1rem;
    height: 1rem;
}

/* Soap Bars row with down arrow – grit is an option when expanded */
.products-filter-option--soap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0;
    padding-bottom: 0.1rem; /* tight to Grit row below */
}

.products-filter-option-soap-label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    padding: 0.35rem 0;
}

.products-filter-soap-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target, 44px);
    min-height: var(--touch-target, 44px);
    padding: 0;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.products-filter-soap-arrow:hover {
    color: var(--text-white);
}

.products-filter-soap-arrow:focus {
    outline: none;
    color: var(--orange);
}

.products-filter-soap-arrow .fa-chevron-down,
.products-filter-soap-arrow .fa-chevron-up {
    font-size: 0.75rem;
}

.products-filter-price {
    display: block;
}

.products-price-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.products-price-range-display {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    color: var(--text-white);
    margin: 0 0 0.125rem;
}

/* Single track: one bar with two thumbs overlaid */
.products-price-single-track {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.products-price-single-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    pointer-events: none;
}

.products-price-single-track .products-price-slider {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
}

.products-price-single-track .products-price-slider:first-of-type {
    z-index: 1;
}

.products-price-single-track .products-price-slider:last-of-type {
    z-index: 2;
}

.products-price-single-track .products-price-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.products-price-single-track .products-price-slider::-moz-range-track {
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.products-price-single-track .products-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    border-radius: 50%;
    background: var(--bg-card);
    cursor: pointer;
    border: 2px solid var(--orange);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.products-price-single-track .products-price-slider::-webkit-slider-thumb:hover {
    border-color: var(--orange-light);
    box-shadow: 0 0 8px rgba(201, 166, 70, 0.35);
}

.products-price-single-track .products-price-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-card);
    cursor: pointer;
    border: 2px solid var(--orange);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.products-price-single-track .products-price-slider::-moz-range-thumb:hover {
    border-color: var(--orange-light);
    box-shadow: 0 0 8px rgba(201, 166, 70, 0.35);
}

.products-price-single-track .products-price-slider:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .products-price-single-track {
        height: 32px;
    }

    .products-price-single-track::before {
        height: 6px;
    }

    .products-price-single-track .products-price-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        border-width: 2px;
    }

    .products-price-single-track .products-price-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
        border-width: 2px;
    }

    .products-price-single-track .products-price-slider::-webkit-slider-runnable-track,
    .products-price-single-track .products-price-slider::-moz-range-track {
        height: 6px;
    }
}

/* Grit options under Soap Bars (checkboxes when arrow expanded) */
.products-filter-grit-dropdown {
    margin-top: 0;
    margin-left: 1.5rem;
    padding-bottom: 0.5rem;
}

.products-filter-option--grit-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
    margin-bottom: 0.25rem;
}

.products-filter-grit-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

.products-filter-grit-arrow {
    flex-shrink: 0;
}

.products-filter-grit-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.products-filter-grit-row-label {
    cursor: pointer;
    flex-shrink: 0;
    min-height: var(--touch-target, 44px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-filter-grit-chevron-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target, 44px);
    min-height: var(--touch-target, 44px);
    color: var(--text-light);
    font-size: 0.75rem;
    transition: color 0.2s ease;
}
.products-filter-grit-row-label:hover .products-filter-grit-chevron-wrap {
    color: var(--text-white);
}
.products-filter-grit-chevron {
    font-size: 0.75rem;
}

/* Grit options: show/hide and chevron via CSS (no JS) so CSP cannot block */
.products-filter-grit-options {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 1rem;
    margin-top: 0.25rem;
}
#gritToggleCheckbox:checked ~ #gritOptionsWrap.products-filter-grit-options {
    display: flex;
}
.products-filter-grit-chevron--open {
    display: none !important;
}
#gritToggleCheckbox:checked ~ .products-filter-grit-row-label .products-filter-grit-chevron--closed {
    display: none !important;
}
#gritToggleCheckbox:checked ~ .products-filter-grit-row-label .products-filter-grit-chevron--open {
    display: inline-block !important;
}

.products-filter-grit-options .products-filter-option {
    padding-left: 0;
}

.products-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.products-breadcrumb a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.products-breadcrumb a:hover {
    color: var(--orange-light);
}

.products-breadcrumb-sep {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.products-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--orange);
}

.products-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.products-subtitle-link {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.products-subtitle-link:hover,
.products-subtitle-link:focus-visible {
    color: var(--orange-light, #e0c970);
}

.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.products-search-wrap {
    position: relative;
    flex: 0 1 auto;
    max-width: 280px;
    min-width: 160px;
}

.products-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
}

.products-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.products-search::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.products-search:focus {
    outline: none;
    border-color: var(--orange);
}

.products-search:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.products-sort-wrap {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.products-sort-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-lighter);
}

.products-sort-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.products-sort-arrow {
    font-size: 0.65rem;
    opacity: 0.8;
}

.products-sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 0.25rem 0 0;
    padding: 0.35rem 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid var(--orange);
    border-radius: 2px;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.products-sort-option {
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.products-sort-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--orange);
}

.products-sort-option--active {
    color: var(--orange);
    font-weight: 600;
}

.products-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.products-pill {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.products-pill:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.products-pill--active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--text-white);
}

.products-pill--active:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--text-white);
}

.products-view-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.products-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target, 44px);
    min-height: var(--touch-target, 44px);
    padding: 0 0.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.products-view-btn:hover,
.products-view-btn:focus {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--orange);
}

.products-view-btn:focus {
    outline: none;
}

.products-view-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.products-view-btn[aria-pressed="true"] {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(201, 166, 70, 0.12);
}

.products-size-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: var(--touch-target, 44px);
    min-height: var(--touch-target, 44px);
    padding: 0 0.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.products-size-toggle[aria-pressed="true"] {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(201, 166, 70, 0.12);
}

.products-size-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: inherit;
}

.products-size-toggle:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--orange);
}

.products-size-toggle:focus {
    outline: none;
    border-color: var(--orange);
}

.products-size-toggle:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.products-grid--page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 0;
    padding: 0;
}

.products-grid--page.products-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.products-grid--page.products-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* List view: single column, each product as a row (image left, info right) */
.products-grid--page.products-grid--list {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.products-grid--page.products-grid--list .product-category--grid {
    display: contents;
}

.products-grid--page.products-grid--list .product-card-link .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
}

.products-grid--page.products-grid--list .product-card-link .product-image {
    width: 180px;
    min-width: 180px;
    height: 160px;
    flex-shrink: 0;
}

.products-grid--page.products-grid--list .product-card-link .product-info {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    justify-content: center;
}

.products-grid--page.products-grid--list .product-card-link .product-name {
    font-size: 1.15rem;
}

.products-grid--page.products-grid--list .product-card-link .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .products-grid--page.products-grid--list .product-card-link .product-card {
        flex-direction: column;
    }

    .products-grid--page.products-grid--list .product-card-link .product-image {
        width: 100%;
        min-width: 0;
        height: 220px;
    }
}

.products-grid--page .product-category--grid {
    display: contents;
}

.products-grid--page .product-category--grid .category-title--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.products-grid--page .product-card {
    flex: none;
    min-width: 0;
    max-width: none;
}

@media (max-width: 900px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-layout > * {
        min-width: 0;
    }

    .products-sidebar {
        position: static;
    }

    .products-toolbar-filters-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.75rem 1rem;
        min-height: var(--touch-target, 44px);
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        color: var(--text-light);
        font-family: var(--font-display);
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: var(--transition);
    }

    .products-toolbar-filters-btn:hover,
    .products-toolbar-filters-btn:focus-visible {
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--orange);
    }

    .products-toolbar-filters-btn:focus-visible {
        outline: 2px solid var(--orange);
        outline-offset: 2px;
    }

    .products-view-wrap {
        display: none;
    }

    .products-filters-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s;
    }

    .products-page-main.products-filters-open .products-filters-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        bottom: 80vh;
    }

    .products-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 80vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        border-radius: 12px 12px 0 0;
        overflow: hidden;
    }

    .products-page-main.products-filters-open .products-sidebar {
        transform: translateY(0);
    }

    .products-sidebar-body {
        max-height: calc(80vh - 120px);
        overflow-y: auto;
        padding-bottom: 0.5rem;
    }

    .products-sidebar-header .products-filters-sheet-close {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: var(--touch-target, 44px);
        min-height: var(--touch-target, 44px);
        padding: 0;
        background: none;
        border: none;
        color: var(--text-light);
        cursor: pointer;
    }

    .products-sidebar-header .products-filters-sheet-close:hover,
    .products-sidebar-header .products-filters-sheet-close:focus-visible {
        color: var(--orange);
    }

    .products-filters-apply-row {
        display: block;
        padding: 1rem 1.5rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: var(--bg-card);
    }

    .products-filters-apply-btn {
        width: 100%;
        padding: 1rem;
        min-height: var(--touch-target, 44px);
        background: var(--orange);
        color: var(--text-dark);
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
    }

    .products-filters-apply-btn:hover,
    .products-filters-apply-btn:focus-visible {
        background: var(--orange-light);
    }
}

@media (max-width: 768px) {
    .products-grid--page.products-grid--cols-2,
    .products-grid--page.products-grid--cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .products-title {
        font-size: 2rem;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .products-search-wrap {
        min-width: 0;
        max-width: 100%;
    }

    .products-toolbar-actions {
        margin-left: 0;
        justify-content: flex-start;
    }

    .products-grid--page,
    .products-grid--page.products-grid--cols-2,
    .products-grid--page.products-grid--cols-3 {
        grid-template-columns: 1fr;
    }

    .products-main {
        min-width: 0;
    }

    .products-page-main .product-image {
        height: 280px;
    }

    .products-page-main .product-info {
        padding: 1rem;
    }

    .products-page-main .product-name {
        font-size: 1.15rem;
    }
}

/* ============================================
   Product detail page
   ============================================ */

.product-detail-page .product-detail-main {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 4rem;
    min-height: 60vh;
}

.products-grid-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-light);
    min-height: 120px;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.product-detail-loading,
.product-detail-error {
    text-align: center;
    color: var(--text-light);
    padding: 3rem 1rem;
}

.product-detail-error {
    color: var(--orange-light);
}

.product-detail-breadcrumb {
    margin-bottom: 1.5rem;
}

.product-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.product-detail-hero--no-gallery {
    grid-template-columns: 1fr;
}

.product-detail-hero--no-gallery .product-detail-info-top,
.product-detail-hero--no-gallery .product-detail-info-rest {
    grid-column: 1;
    max-width: 100%;
}

.product-detail-info-top,
.product-detail-info-rest {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail-hero--no-gallery .product-detail-info-rest {
    gap: 1rem;
    align-items: center;
}
.product-detail-hero--no-gallery .product-detail-info-rest .bundle-configurator-wrap {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.product-detail-gallery {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    min-width: 0;
    grid-column: 1;
    grid-row: 1 / -1;
}

.product-detail-image--broken {
    opacity: 0;
    height: 0;
    min-height: 0;
    position: absolute;
}

.product-detail-gallery:has(.product-detail-image--broken) {
    min-height: 280px;
    background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center no-repeat;
}

.product-detail-info-top {
    grid-column: 2;
    grid-row: 1;
}

.product-detail-info-rest {
    grid-column: 2;
    grid-row: 2;
}

.product-detail-gallery--carousel {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    overflow: hidden;
    width: 100%;
}

.product-detail-gallery-track {
    display: flex;
    transition: transform 0.3s ease;
    width: calc(100% * var(--slide-count, 1));
}

.product-detail-gallery-slide {
    flex: 0 0 calc(100% / var(--slide-count, 1));
    width: calc(100% / var(--slide-count, 1));
    min-width: 0;
}

.product-detail-gallery-slide[aria-hidden="true"] {
    visibility: hidden;
}

.product-detail-gallery-slide:has(.product-detail-image--broken) {
    min-height: 200px;
    background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center no-repeat;
}

.product-detail-gallery-prev,
.product-detail-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--touch-target, 44px);
    height: var(--touch-target, 44px);
    min-width: var(--touch-target, 44px);
    min-height: var(--touch-target, 44px);
    border: 1px solid var(--border-color);
    background: rgba(37, 37, 37, 0.9);
    color: var(--text-lighter);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.product-detail-gallery-prev {
    left: 0.5rem;
}

.product-detail-gallery-next {
    right: 0.5rem;
}

.product-detail-gallery-prev:hover,
.product-detail-gallery-next:hover {
    color: var(--orange);
    background: var(--bg-card);
    border-color: var(--orange);
}

.product-detail-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-detail-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.product-detail-gallery-dot.is-active {
    background: var(--orange);
}

.product-detail-gallery-dot:hover {
    background: var(--text-light);
}

.product-detail-image {
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: contain;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}


.product-detail-sku {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-detail-sku:hover {
    color: var(--orange);
}

.product-detail-name {
    font-family: var(--font-product-name);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-detail-bundle-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.product-detail-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 0;
}

.product-detail-price-size {
    font-size: 1.1rem;
    margin: 0;
}

.product-detail-rating {
    display: inline-flex;
    align-items: center;
}

.product-detail-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.95rem;
}

.product-detail-rating-stars .fas.fa-star {
    color: var(--orange);
}

.product-detail-rating-stars .far.fa-star {
    color: var(--text-light);
}

.product-detail-long-description {
    font-family: var(--font-primary);
    margin: 0;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-light);
    white-space: pre-line;
}

.product-detail-description-wrap {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.product-detail-description-wrap .product-detail-profile-heading {
    margin-bottom: 0.5rem;
}

.product-detail-description-para {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

.product-detail-description-para:last-child {
    margin-bottom: 0;
}

.product-detail-price {
    font-family: var(--font-display);
    color: var(--text-lighter);
    font-weight: 600;
}

.product-detail-size {
    color: var(--text-light);
    font-weight: 400;
    margin-left: 0.25rem;
}

.product-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.product-detail-row-label {
    color: var(--text-lighter);
    font-weight: 500;
}

/* Specs strip: badges first, minimal BARS&BEARD style (no light box) */
.product-detail-specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.25rem;
    margin-top: 0.5rem;
    padding-left: 0;
    list-style: none;
}

.product-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    background: none;
    border: none;
    border-radius: 0;
    border-left: 3px solid var(--orange);
    padding-left: 0.5rem;
    margin-left: 0;
}

.product-detail-badge:first-child {
    padding-left: 0.5rem;
}

.product-detail-badge .fa {
    color: var(--orange);
    font-size: 0.9em;
}

.product-detail-badge--muted .fa {
    color: var(--text-light);
}

.product-detail-badge--muted {
    opacity: 0.8;
    border-left-color: var(--orange);
}

/* Profile block: Scent & Feel with distinct layout */
.product-detail-profile {
    margin-top: 1rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--border-color);
}

.product-detail-profile-heading {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-detail-profile-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.product-detail-profile-row:last-child {
    margin-bottom: 0;
}

.product-detail-profile-label {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--text-lighter);
}

.product-detail-scent {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
}

.product-detail-scent-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-light);
}

.product-detail-scent-chip .fa {
    color: var(--orange);
    font-size: 0.85em;
}

.product-detail-scent-chip + .product-detail-scent-chip::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.9em;
    background: var(--border-color);
    margin: 0 0.5rem 0 0.25rem;
    vertical-align: middle;
}

.product-detail-feel {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-light);
}

.product-detail-feel .fa {
    color: var(--orange);
    font-size: 0.75em;
}

.product-detail-profile-link {
    font-size: 0.8rem;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.product-detail-profile-link:hover {
    color: var(--orange-light);
    border-bottom-color: var(--orange-light);
}

/* Help icon: orange circle with ? – opens Aura Breakdown / Grit Guide (on brand) */
.product-detail-profile-help {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 8px rgba(201, 166, 70, 0.2);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-detail-profile-help:hover {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 12px rgba(201, 166, 70, 0.35);
    transform: scale(1.06);
}

.product-detail-profile-help:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.product-detail-profile-help-icon {
    display: block;
    font-style: normal;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.product-detail-what-link {
    font-size: 0.85rem;
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 0.5rem;
}

.product-detail-what-link:hover {
    color: var(--orange-light);
}

.product-detail-stock-wrap {
    margin-bottom: 1.5rem;
}

.product-detail-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin: 0;
}

.product-detail-stock-dot {
    font-size: 0.5rem;
    flex-shrink: 0;
}

.product-detail-stock--in .product-detail-stock-dot {
    color: var(--orange);
}

.product-detail-stock--low,
.product-detail-stock--low .product-detail-stock-dot {
    color: var(--orange-light);
}

.product-detail-stock--out,
.product-detail-stock--out .product-detail-stock-dot {
    color: var(--orange-dark);
    opacity: 1;
}

/* Notify when back in stock (out-of-stock only) – matches Profile + Add to cargo */
.product-detail-notify-wrap {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    max-width: 20rem;
}

.product-detail-notify-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

.product-detail-notify-btn {
    display: inline-block;
    min-height: var(--touch-target, 44px);
    padding: 0.6rem 1.5rem;
    background: var(--orange);
    border: 1px solid var(--orange);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-detail-notify-btn:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--text-dark);
}

.product-detail-notify-btn:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 2px;
}

.product-detail-notify-btn:disabled {
    opacity: 0.8;
    cursor: wait;
}

.product-detail-notify-message {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    font-family: var(--font-primary);
    color: var(--text-light);
}

.product-detail-notify-message--success {
    color: var(--orange-light);
}

.product-detail-notify-message--error {
    color: var(--orange-dark);
}

/* Grit Guide – overlay modal (hidden by default, open on "Grit Guide" click) */
.product-detail-grit-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-detail-grit-modal.is-open {
    display: flex;
}

.product-detail-grit-modal[hidden] {
    display: none !important;
}

.product-detail-grit-modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.75);
}

.product-detail-grit-modal-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--orange);
    border-radius: 2px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 166, 70, 0.08);
}

.product-detail-grit-modal-header {
    flex-shrink: 0;
    position: relative;
    padding: 1rem 1rem 0;
}

.product-detail-grit-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    min-width: var(--touch-target, 44px);
    min-height: var(--touch-target, 44px);
    transition: color 0.2s ease;
}

.product-detail-grit-modal-close:hover {
    color: var(--orange);
}

.product-detail-grit-modal-close:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.product-detail-grit-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem 2rem;
}

.product-detail-grit-modal-content .product-detail-grit-guide-heading {
    margin-top: 0;
}

/* Grit Guide – cards (image, title, subtitle, separator, line1, separator, line2) */
.product-detail-grit-guide {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.product-detail-grit-guide-heading {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-white);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--orange);
}

.product-detail-grit-guide-empty {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.product-detail-grit-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 520px) {
    .product-detail-grit-cards {
        grid-template-columns: 1fr;
    }
}

.product-detail-grit-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--orange);
    border-radius: 2px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-detail-grit-card:hover {
    border-left-color: var(--orange-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.product-detail-grit-card-image-wrap {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    margin: 0 0 1rem;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--border-color);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-detail-grit-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--orange);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.product-detail-grit-card-subtitle {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-white);
    margin: 0 0 0.75rem;
}

.product-detail-grit-card-hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

.product-detail-grit-card-line {
    font-size: 0.95rem;
    color: var(--text-white);
    margin: 0;
    line-height: 1.55;
}

/* Aura Breakdown – overlay modal (same pattern as Grit Guide) */
.product-detail-aura-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-detail-aura-modal.is-open {
    display: flex;
}

.product-detail-aura-modal[hidden] {
    display: none !important;
}

.product-detail-aura-modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.75);
}

.product-detail-aura-modal-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--orange);
    border-radius: 2px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 166, 70, 0.08);
}

.product-detail-aura-modal-header {
    flex-shrink: 0;
    position: relative;
    padding: 1rem 1rem 0;
}

.product-detail-aura-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    min-width: var(--touch-target, 44px);
    min-height: var(--touch-target, 44px);
}

.product-detail-aura-modal-close:hover {
    color: var(--orange);
}

.product-detail-aura-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem 2rem;
}

.product-detail-aura-modal-content .product-detail-aura-guide-heading {
    margin-top: 0;
}

@media (max-width: 900px) {
    .product-detail-grit-modal,
    .product-detail-aura-modal {
        align-items: flex-end;
        padding: 0;
    }

    .product-detail-grit-modal-overlay,
    .product-detail-aura-modal-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .product-detail-grit-modal-inner,
    .product-detail-aura-modal-inner {
        max-width: none;
        width: 100%;
        max-height: 75vh;
        border-radius: 12px 12px 0 0;
    }

    .product-detail-grit-modal-content,
    .product-detail-aura-modal-content {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

.product-detail-aura-guide-heading {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-white);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--orange);
}

.product-detail-aura-guide-empty {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Scale columns by aura count: 1 = full width, 2 = two cols, 3+ = max 3 per row */
.product-detail-aura-cards {
    display: grid;
    gap: 1.75rem;
    align-items: stretch;
}

.product-detail-aura-cards.aura-cards-count-1 {
    grid-template-columns: 1fr;
}

.product-detail-aura-cards.aura-cards-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-detail-aura-cards.aura-cards-count-3,
.product-detail-aura-cards.aura-cards-count-4 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
    .product-detail-aura-cards {
        grid-template-columns: 1fr !important;
    }
}

.product-detail-aura-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--orange);
    border-radius: 2px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    min-width: 0;
    min-height: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-detail-aura-card:hover {
    border-left-color: var(--orange-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.product-detail-aura-card-icon {
    font-size: 2.25rem;
    color: var(--orange);
    margin-bottom: 1rem;
}

.product-detail-aura-card-icon i {
    display: block;
}

.product-detail-aura-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--orange);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.product-detail-aura-card-description {
    font-size: 0.95rem;
    color: var(--text-white);
    margin: 0;
    line-height: 1.55;
}

.product-detail-aura-card-description--empty {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
}

/* Accordion */
.product-detail-accordion {
    border-top: 2px solid var(--orange);
    margin-bottom: 2rem;
}

.product-detail-accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.product-detail-accordion-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: none;
    border: none;
    color: var(--text-lighter);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.product-detail-accordion-head:hover {
    color: var(--orange);
}

.product-detail-accordion-head:hover .product-detail-accordion-icon,
.product-detail-accordion-head:focus-visible .product-detail-accordion-icon {
    color: var(--orange);
}

.product-detail-accordion-head:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.product-detail-accordion-title {
    flex: 1;
}

.product-detail-accordion-icon {
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    color: var(--text-light);
}

.product-detail-accordion-icon--open {
    transform: rotate(180deg);
}

.product-detail-accordion-panel {
    padding-bottom: 1rem;
}

.product-detail-accordion-body {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    white-space: pre-line;
}

/* Reviews (non–gift-card products only) */
.product-detail-reviews {
    margin-top: 0;
    margin-bottom: 2rem;
    padding-top: 0.75rem;
}

.product-detail-reviews .product-detail-profile-heading {
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

.product-detail-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail-reviews-empty {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: var(--leading-relaxed);
    color: var(--text-light);
    margin: 0;
    opacity: 0.9;
}

.product-detail-review-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-primary);
}

.product-detail-review-item:last-child {
    border-bottom: none;
}

.product-detail-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    margin-bottom: 0.25rem;
}

.product-detail-review-avatar {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.9;
}

.product-detail-review-stars {
    color: rgba(201, 166, 70, 0.75);
    font-size: 0.75rem;
}

.product-detail-review-stars .far {
    color: rgba(255, 255, 255, 0.2);
}

.product-detail-review-author {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-light);
}

.product-detail-review-date {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.75;
}

.product-detail-review-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: var(--leading-relaxed);
    color: var(--text-light);
    opacity: 0.9;
}

.product-detail-reviews-write {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-detail-review-write-details {
    max-width: 28rem;
}

.product-detail-review-write-trigger {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange);
    cursor: pointer;
    list-style: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.product-detail-review-write-trigger::-webkit-details-marker {
    display: none;
}

.product-detail-review-write-trigger::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    margin-right: 0.4rem;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.product-detail-review-write-details[open] .product-detail-review-write-trigger::before {
    transform: rotate(180deg);
}

.product-detail-review-write-trigger:hover {
    color: var(--orange-light);
}

.product-detail-review-write-panel {
    padding-top: 0.75rem;
}

.product-detail-reviews-gate {
    font-size: var(--text-base);
    color: var(--text-light);
    margin: 0;
}

.product-detail-reviews-gate a {
    color: var(--orange);
    text-decoration: underline;
}

.product-detail-reviews-gate a:hover {
    text-decoration: none;
}

.product-detail-review-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 26rem;
}

.product-detail-review-form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    opacity: 0.9;
}

.product-detail-review-form-stars {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.product-detail-review-star-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.25);
    font-size: 1rem;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-detail-review-star-btn:hover,
.product-detail-review-star-btn:focus {
    color: rgba(201, 166, 70, 0.8);
}

.product-detail-review-star-btn i.fas {
    color: rgba(201, 166, 70, 0.75);
}

.product-detail-review-form-text {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: var(--leading-relaxed);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-white);
    resize: vertical;
    min-height: 4.5rem;
    transition: border-color 0.2s ease;
}

.product-detail-review-form-text::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.product-detail-review-form-text:focus {
    outline: none;
    border-color: rgba(201, 166, 70, 0.4);
}

.product-detail-review-form-error {
    margin: 0;
    font-size: 0.85rem;
    color: var(--error, #c00);
}

.product-detail-review-form-submit {
    align-self: flex-start;
    min-height: var(--touch-target);
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--orange);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    border: 1px solid rgba(201, 166, 70, 0.35);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-detail-review-form-submit:hover {
    background: rgba(201, 166, 70, 0.08);
    border-color: rgba(201, 166, 70, 0.5);
}

.product-detail-review-form-submit:focus-visible {
    outline: 2px solid rgba(201, 166, 70, 0.5);
    outline-offset: 2px;
}

/* Add to cargo block (cart sync) – same row as badges, toggle design */
.product-detail-cart-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.product-detail-cart-wrap .product-detail-cart-label {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 0;
}

.product-detail-gift-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.product-detail-amount-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
}

.product-detail-amount-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.product-detail-amount-btn.is-selected {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--text-dark);
}

.product-detail-amount-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* Gift card: hide price (X) and quantity selector (- +), show amount buttons + Add to cargo */
.product-detail-cart-wrap--gift-card .product-card--gift-card,
.product-detail-cart-wrap--gift-card .product-detail-gift-card-qty {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}
.product-detail-gift-add-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--orange);
    color: var(--text-dark);
    border: 1px solid var(--orange);
    border-radius: 2px;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.product-detail-gift-add-btn:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--text-dark);
}
.product-detail-gift-add-btn:active,
.product-detail-gift-add-btn:focus {
    color: var(--text-dark);
}
.product-detail-gift-add-btn:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 2px;
}

.product-detail-cart-wrap .product-card--detail-sync {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
    max-width: none;
    flex: none;
    background: none;
    border: none;
    box-shadow: none;
}

.product-detail-cart-wrap .product-card--detail-sync .product-name,
.product-detail-cart-wrap .product-card--detail-sync .product-price {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Product detail quantity selector: same style as product card toggle (light gray, rounded) */
.product-detail-cart-wrap .quantity-selector--toggle,
.product-detail-cart-wrap .quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 120px;
    height: 40px;
    border: none;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.product-detail-cart-wrap .quantity-selector--toggle .quantity-btn,
.product-detail-cart-wrap .quantity-selector .quantity-btn {
    flex: 0 0 35px;
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-lighter);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-detail-cart-wrap .quantity-selector--toggle .quantity-btn:hover,
.product-detail-cart-wrap .quantity-selector .quantity-btn:hover {
    background: rgba(201, 166, 70, 0.15);
    color: var(--orange);
}

.product-detail-cart-wrap .quantity-selector--toggle .quantity-btn:focus-visible,
.product-detail-cart-wrap .quantity-selector .quantity-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.product-detail-cart-wrap .quantity-selector--toggle .quantity-value,
.product-detail-cart-wrap .quantity-selector .quantity-value {
    flex: 1;
    min-width: 2.25rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-lighter);
    padding: 0;
    user-select: none;
}

/* Product card link (listing → detail) */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover {
    color: inherit;
}

.product-card-link .product-card {
    height: 100%;
}

@media (max-width: 768px) {
    .product-detail-hero {
        display: block;
    }

    .product-detail-info-top {
        margin-bottom: 1.5rem;
    }

    .product-detail-gallery {
        display: block;
        position: relative !important;
        top: auto !important;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .product-detail-info-rest {
        /* flows after gallery in block layout */
    }

    .product-detail-gallery--carousel {
        position: relative !important;
        top: auto !important;
        overflow: hidden;
    }

    .product-detail-name {
        font-size: 1.65rem;
    }
}

/* Product detail: mobile sticky add-to-cart banner */
.product-detail-mobile-banner {
    display: none;
}

@media (max-width: 768px) {
    .product-detail-mobile-banner {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 0.75rem var(--container-padding-mobile, 16px);
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
        background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
        border-top: 1px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    .product-detail-mobile-banner[hidden] {
        display: none !important;
    }
    .product-detail-mobile-banner-btn {
        display: block;
        width: 100%;
        min-height: var(--touch-target, 44px);
        padding: 0.75rem 1.5rem;
        background: transparent;
        border: none;
        color: var(--text-dark);
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .product-detail-mobile-banner-btn:hover {
        background: rgba(0, 0, 0, 0.1);
        color: var(--text-dark);
    }
}

/* Product detail: add-to-bag popup (slides up from bottom) */
.product-detail-added-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-detail-added-popup.is-visible {
    pointer-events: auto;
    opacity: 1;
}

.product-detail-added-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.product-detail-added-popup-inner {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--bg-card, #252525);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.product-detail-added-popup.is-visible .product-detail-added-popup-inner {
    transform: translateY(0);
}

.product-detail-added-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-added-popup-close:hover {
    color: var(--text-white);
}

.product-detail-added-popup-heading {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem;
}

.product-detail-added-popup-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.product-detail-added-popup-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail-added-popup-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.product-detail-added-popup-qty-btn {
    width: 40px;
    min-width: 40px;
    min-height: var(--touch-target, 44px);
    padding: 0;
    background: transparent;
    border: none;
    color: var(--orange);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-added-popup-qty-btn:hover {
    background: rgba(201, 166, 70, 0.15);
}

.product-detail-added-popup-qty-value {
    flex: 1;
    min-width: 2.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-white);
}

.product-detail-added-popup-img-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-dark);
}

.product-detail-added-popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-added-popup-name {
    font-weight: 500;
    color: var(--text-white);
}

.product-detail-added-popup-actions {
    display: flex;
    gap: 0.75rem;
}

.product-detail-added-popup-actions .btn {
    flex: 1;
    min-height: var(--touch-target, 44px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-detail-added-popup-view {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
}

.product-detail-added-popup-view:hover {
    background: rgba(201, 166, 70, 0.15);
}

.product-detail-added-popup-checkout {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

.product-detail-added-popup-checkout:hover {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
}

/* ===== Cargo (cart) page ===== */
body.cargo-page::before {
    display: none;
}

body.cargo-page {
    background-color: var(--bg-dark);
}

.cargo-page .cargo-main::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('content/cargo-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.cargo-page .cargo-main {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 4rem;
    min-height: 60vh;
}

@media (max-width: 768px) {
    .cargo-page .cargo-main::before {
        opacity: 0.14;
    }
}

.cargo-header {
    margin-bottom: 2rem;
}

.cargo-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-white);
    margin: 0 0 0.5rem;
    position: relative;
    display: inline-block;
}

.cargo-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--orange);
    box-shadow: 0 0 12px rgba(201, 166, 70, 0.6);
}

.cargo-subtitle {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-lighter);
    font-size: 1.1rem;
    margin: 0;
    max-width: 560px;
}

.cargo-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.cargo-empty-text {
    font-family: var(--font-primary);
    color: var(--text-light);
    margin: 0 0 1rem;
    font-size: 1rem;
}

.cargo-empty-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--orange);
    color: var(--text-dark);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.cargo-empty-btn:hover {
    background: var(--orange-light);
}

/* Favourites page – main uses .products-page-main padding-top for clearance below fixed nav */
.favourites-page .favourites-main {
    padding-bottom: 3rem;
}

.favourites-header {
    margin-bottom: 2rem;
}

.favourites-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-top: 0;
}

.favourites-empty-message {
    font-family: var(--font-primary);
    color: var(--text-light);
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.favourites-empty-btn {
    min-height: var(--touch-target);
}

.favourites-grid-wrap {
    margin-top: 0;
}

.favourites-page-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.favourites-page-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.favourites-page-card-image-wrap {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    text-decoration: none;
}

.favourites-page-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.favourites-page-card-heart {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
}

.favourites-page-card-heart:hover,
.favourites-page-card-heart:focus-visible {
    color: var(--orange-light);
}

.favourites-page-card-heart:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.favourites-page-card-info {
    padding: 1rem;
}

.favourites-page-card-name {
    display: block;
    font-family: var(--font-product-name);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--text-lighter);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.favourites-page-card-name:hover {
    color: var(--primary-color);
}

.favourites-page-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.favourites-page-card-price {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0;
}

.favourites-page-qty {
    margin: 0;
    flex-shrink: 0;
}

.favourites-page-qty .quantity-value {
    color: var(--text-white);
}

.favourites-page-loading {
    grid-column: 1 / -1;
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    list-style: none;
    margin: 0;
}

.cargo-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.cargo-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cargo-item:last-child {
    border-bottom: none;
}

.cargo-item-media {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-darker);
}

.cargo-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cargo-item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cargo-item-category {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-light);
}

.cargo-item-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cargo-item-name:hover {
    color: var(--orange);
}

.cargo-item-price {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Bundle description on cargo page: show more lines, avoid truncation */
.cargo-item--bundle .cargo-item-body {
    min-width: 0;
}
.cargo-item--bundle .cargo-item-price {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Match product page / homepage quantity selector (2px radius, same border and hover) */
.cargo-item-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    width: 120px;
    height: 40px;
}

/* Bundle quantity controls: match product controls, clear visual style */
.cargo-item--bundle .cargo-item-controls {
    min-height: var(--touch-target, 44px);
    width: 120px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

.cargo-qty-btn {
    flex: 0 0 35px;
    width: 35px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-lighter);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.cargo-qty-btn:hover {
    background: rgba(201, 166, 70, 0.15);
    color: var(--orange);
}

.cargo-qty-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.cargo-qty-btn:active {
    background: rgba(201, 166, 70, 0.25);
}

.cargo-qty-value {
    flex: 1;
    min-width: 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    user-select: none;
    -webkit-user-select: none;
}

.cargo-item-total {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--orange);
    white-space: nowrap;
}

.cargo-summary-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.cargo-total-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-light);
}

.cargo-total-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
}

.cargo-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: stretch;
}

.cargo-actions .btn {
    flex: 1;
    min-width: 0;
    min-height: var(--touch-target);
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cargo-btn-secondary {
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-lighter);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--text-sm);
    border-radius: 2px;
    text-align: center;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cargo-btn-secondary:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(201, 166, 70, 0.06);
}

.cargo-btn-secondary:focus-visible,
.cargo-claim-btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.cargo-claim-btn {
    padding: 0.85rem 1.5rem;
    background: var(--orange);
    border: 1px solid var(--orange);
    color: var(--text-dark);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--text-sm);
    border-radius: 2px;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cargo-claim-btn:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--text-dark);
}

.cargo-loading {
    font-family: var(--font-primary);
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .cargo-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem;
    }

    .cargo-item-media {
        width: 60px;
        height: 60px;
    }

    .cargo-item-controls {
        grid-column: 1;
        grid-row: 2;
    }

    .cargo-item-total {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
}

/* ===== Checkout page ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.checkout-page::before {
    display: none;
}

body.checkout-page {
    background-color: var(--bg-dark);
}

.checkout-page .checkout-main::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('content/checkout-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.checkout-page .checkout-main {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .checkout-page .checkout-main::before {
        opacity: 0.14;
    }
}

.checkout-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.checkout-empty-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.checkout-empty-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.checkout-empty-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--orange);
    color: var(--text-dark);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.checkout-empty-btn:hover {
    background: var(--orange-light);
}

.checkout-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.checkout-left {
    min-width: 0;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Override global section { padding: 5rem 0 } so checkout sections stay compact */
.checkout-form .checkout-section {
    padding: 0 0 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-section:last-of-type {
    border-bottom: none;
}

.checkout-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
    margin: 0 0 0.35rem 0;
}

.checkout-field {
    margin-bottom: 0.5rem;
}

.checkout-field:last-child {
    margin-bottom: 0;
}

.checkout-field label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.checkout-field input {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-white);
    line-height: var(--leading-normal);
}

.checkout-field input:focus {
    outline: none;
    border-color: var(--orange);
}

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-shipping-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.checkout-shipping-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.checkout-shipping-option input:checked + .checkout-shipping-label {
    color: var(--orange);
}

.checkout-shipping-option input {
    margin: 0;
}

.checkout-shipping-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-white);
}

.checkout-shipping-price {
    font-weight: 600;
    color: var(--orange);
}

.checkout-shipping-option--free .checkout-shipping-price {
    color: var(--text-light);
}

.checkout-field--inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.checkout-field--inline input {
    flex: 1;
    min-width: 0;
}

.checkout-apply-btn {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.checkout-discount-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

.checkout-discount-hint.checkout-discount-success {
    color: var(--orange);
}

.checkout-payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.checkout-payment-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.checkout-payment-option input {
    margin: 0;
}

.checkout-payment-icon {
    width: 2rem;
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
}

.checkout-payment-icon--paypal {
    color: #003087;
}

.checkout-payment-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-back-btn {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.checkout-back-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.checkout-submit-btn {
    padding: 0.6rem 1.5rem;
    background: var(--orange);
    color: var(--text-dark);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-submit-btn:hover {
    background: var(--orange-light);
}

.checkout-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.checkout-right {
    position: sticky;
    top: 1rem;
}

.checkout-summary-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
}

.checkout-summary-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.checkout-summary-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.checkout-summary-discount-wrap {
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-summary-discount-row {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-dark);
}

.checkout-summary-discount-wrap .checkout-summary-discount-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
}

.checkout-summary-discount-wrap .checkout-summary-discount-input:focus {
    outline: none;
}

.checkout-summary-discount-wrap .checkout-summary-discount-input::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.checkout-summary-apply-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: var(--orange);
    color: var(--text-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-summary-apply-btn:hover {
    background: var(--orange-light);
}

@media (max-width: 480px) {
    .checkout-summary-discount-row {
        flex-direction: column;
        align-items: stretch;
    }
    .checkout-summary-discount-wrap .checkout-summary-discount-input {
        min-height: var(--touch-target, 44px);
    }
    .checkout-summary-apply-btn {
        min-height: var(--touch-target, 44px);
    }
}

.checkout-summary-discount-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0.35rem 0 0;
}

.checkout-summary-discount-hint.checkout-discount-success {
    color: var(--orange);
}

.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-summary-item:last-child {
    border-bottom: none;
}

.checkout-summary-item-media {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-dark);
}

.checkout-summary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-summary-item-body {
    flex: 1;
    min-width: 0;
}

.checkout-summary-item-name {
    display: block;
    font-weight: 500;
    color: var(--text-white);
    font-size: 0.9rem;
}

.checkout-summary-item-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkout-summary-item-total-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-summary-item-original {
    text-decoration: line-through;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkout-summary-item-total {
    font-weight: 600;
    color: var(--orange);
}

.checkout-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkout-summary-line--total {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.checkout-summary-line--total span:last-child {
    color: var(--orange);
}

.checkout-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.checkout-confirmed-wrap {
    max-width: 32rem;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    text-align: center;
}

.checkout-confirmed-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    color: var(--orange);
    font-size: 3.5rem;
    line-height: 1;
}

.checkout-confirmed-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
}

.checkout-confirmed-message {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--text-lighter, #d0d0e0);
}

.checkout-confirmed-note {
    margin: 0 0 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.checkout-confirmed-items {
    text-align: left;
    background: var(--bg-card, #252525);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.checkout-confirmed-items-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-white);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-confirmed-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.checkout-confirmed-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-confirmed-item:last-of-type {
    border-bottom: none;
}

.checkout-confirmed-item-main {
    font-weight: 500;
    color: var(--text-white);
}

.checkout-confirmed-item-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 1rem;
    width: 100%;
}

.checkout-confirmed-item-price {
    font-weight: 600;
    color: var(--orange);
}

.checkout-confirmed-totals {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-confirmed-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.checkout-confirmed-total-row--main {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
}

.checkout-confirmed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target, 44px);
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.checkout-confirmed-btn:hover {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    box-shadow: 0 2px 12px rgba(201, 166, 70, 0.35);
}

/* Legacy class for compatibility */
.checkout-confirmed {
    max-width: 32rem;
    padding: 1.5rem 0;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-right {
        position: static;
        order: -1;
    }
}

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

/* ===== Account page (login / create account) ===== */
body.account-page::before {
    display: none;
}

body.account-page {
    background-color: var(--bg-dark);
}

/* On-brand background image – same treatment as products/contact */
.account-page .account-main::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('content/account-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.account-page .account-main {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .account-page .account-main::before {
        opacity: 0.14;
    }
}

.account-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.account-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--orange);
}

.account-title::after {
    display: none;
}

.account-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 480px;
    margin: 0.75rem auto 0;
}

.account-subtitle--below {
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 900px;
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 400;
    line-height: var(--leading-relaxed);
    letter-spacing: 0.02em;
    color: var(--text-lighter);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    position: relative;
}

.account-subtitle--below::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--orange);
    border-radius: 0 0 1px 1px;
}

.account-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--orange);
    border-radius: 2px;
    padding: 2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
    border-left-color: var(--orange-light);
    box-shadow: var(--shadow-md);
}

.account-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-card-icon {
    color: var(--orange);
    font-size: 1.1rem;
}

.account-card-icon--create {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.account-card-icon-user {
    font-size: 1.35rem;
    color: var(--orange);
}

.account-card-icon-plus {
    color: var(--orange);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-left: -0.25rem;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.account-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.account-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
}

.account-input {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: var(--touch-target);
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 2px;
    transition: border-color 0.2s ease;
}

.account-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.account-input:focus {
    outline: none;
    border-color: var(--orange);
}

.account-input:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.account-submit {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    min-height: var(--touch-target);
    width: 100%;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--text-dark);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.account-submit:hover {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    color: var(--text-dark);
    transform: translateY(-1px);
}

.account-submit:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.account-error {
    color: var(--red, #c0392b);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.account-logged-in {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--orange);
    border-radius: 2px;
    text-align: center;
}

.account-logged-in-text {
    margin-bottom: 1rem;
}

.account-logged-in .btn {
    min-width: 10rem;
}

.account-verify-sent,
.account-verify-result {
    max-width: 28rem;
    margin: 0 auto 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--orange);
    border-radius: 2px;
    text-align: center;
}

.account-verify-sent-text,
.account-verify-result-text {
    margin: 0 0 0.5rem;
}

.account-verify-sent-note {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.account-verify-result-text--error {
    color: var(--red, #c0392b);
}

/* My Account page – same layout and style as Products page */
.my-account-sidebar .my-account-nav-link {
    display: block;
    padding: 0.35rem 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.my-account-sidebar .my-account-nav-link:hover {
    color: var(--text-lighter);
}

.my-account-sidebar .my-account-nav-link--active {
    color: var(--orange);
}

.my-account-sidebar .my-account-nav-link--heading {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.my-account-sidebar .my-account-nav-sublist .my-account-nav-link--sub {
    padding-left: 1rem;
    border-left: 2px solid rgba(201, 166, 70, 0.4);
    margin-left: 0.25rem;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.my-account-sidebar .my-account-nav-heading {
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    margin: 0;
    cursor: default;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.my-account-content-wrap .my-account-content {
    min-height: 200px;
    padding: 0;
    margin-top: 0;
}

.my-account-section {
    display: none;
    padding: 0;
}

.my-account-section--active {
    display: block;
}

.my-account-section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.my-account-placeholder {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.my-account-field {
    margin-bottom: 1rem;
}

.my-account-profile-picture-label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.my-account-profile-picture-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    max-width: 420px;
}

.my-account-profile-picture-area {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem;
}

.my-account-profile-picture-preview {
    flex-shrink: 0;
}

.my-account-profile-picture-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(201, 166, 70, 0.4);
}

.my-account-profile-picture-upload {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.my-account-profile-picture-file-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* Fully hide native file input – overrides .my-account-field input, prevents any box from showing */
.my-account-profile-picture-input,
.my-account-field input.my-account-profile-picture-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    background: none;
    max-width: none;
}

.my-account-profile-picture-upload label.my-account-profile-picture-choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target, 44px);
    min-width: 140px;
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dark);
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.my-account-profile-picture-upload label.my-account-profile-picture-choose:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
}

.my-account-profile-picture-upload label.my-account-profile-picture-choose:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 2px;
}

.my-account-profile-picture-filename {
    font-size: 0.9rem;
    color: var(--text-light);
}

.my-account-profile-picture-crop {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-account-profile-picture-crop[hidden] {
    display: none !important;
}

.my-account-profile-picture-crop-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    font-family: var(--font-primary);
}

.my-account-profile-picture-crop-preview-wrap {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 166, 70, 0.4);
    flex-shrink: 0;
}

.my-account-profile-picture-crop-preview-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-account-profile-picture-zoom-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.my-account-profile-picture-zoom-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    flex-shrink: 0;
}

.my-account-profile-picture-zoom-row input[type="range"] {
    flex: 1;
    min-width: 100px;
    min-height: var(--touch-target, 44px);
    accent-color: var(--orange);
}

.my-account-profile-picture-btns {
    display: flex;
    gap: 0.5rem;
}

.my-account-profile-picture-upload .my-account-btn {
    min-height: var(--touch-target, 44px);
}

.my-account-profile-picture-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    font-family: var(--font-primary);
}

.my-account-field label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.my-account-field input,
.my-account-field textarea {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    width: 100%;
    max-width: 360px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-white);
}

.my-account-field input:focus,
.my-account-field textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.my-account-field input::placeholder,
.my-account-field textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.my-account-field input:read-only {
    opacity: 0.9;
}

.my-account-phone-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    max-width: 360px;
}

.my-account-phone-country {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-white);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.my-account-phone-country:focus {
    outline: none;
    border-color: var(--orange);
}

.my-account-phone-input {
    flex: 1;
    min-width: 0;
}

.my-account-phone-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.my-account-fieldset {
    margin: 1.25rem 0;
    padding: 0;
    border: none;
}

.my-account-legend {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.my-account-fieldset-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.my-account-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0.4rem;
}

.my-account-checkbox input[type="checkbox"] {
    accent-color: var(--orange);
    width: 1rem;
    height: 1rem;
}

.my-account-actions {
    margin-top: 1rem;
}

.my-account-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.my-account-btn--primary {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: var(--text-dark);
}

.my-account-btn--primary:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
}

.my-account-btn--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--orange);
}

.my-account-btn--secondary:hover {
    color: var(--orange-light);
    border-color: rgba(201, 166, 70, 0.3);
    background: rgba(201, 166, 70, 0.05);
}

.my-account-add-delivery-trigger {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 0;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--orange);
    cursor: pointer;
    transition: color 0.2s ease;
}

.my-account-add-delivery-trigger:hover {
    color: var(--orange-light);
}

.my-account-add-delivery-trigger:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.my-account-delivery-form-wrap {
    margin-top: 1rem;
}

.my-account-delivery-form-wrap[hidden] {
    display: none !important;
}

.my-account-address-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    max-width: 400px;
}

.my-account-address-card p {
    margin: 0 0 0.25rem;
    color: var(--text-lighter);
    font-size: 0.95rem;
}

.my-account-address-card p:last-of-type {
    margin-bottom: 0;
}

.my-account-address-card--default {
    border-left: 3px solid var(--orange);
}

.my-account-address-actions {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.my-account-address-default-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--orange);
}

.my-account-profile-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--orange);
    border-radius: 0 8px 8px 0;
}
.my-account-profile-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(201,166,70,0.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.my-account-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.my-account-profile-info {
    flex: 1;
    min-width: 0;
}
.my-account-profile-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 0.35rem;
    letter-spacing: 0.02em;
}
.my-account-profile-meta {
    font-size: 0.95rem;
    color: var(--orange);
    margin: 0;
    font-weight: 500;
}
/* My Account page branding */
.my-account-page .products-subtitle {
    margin-bottom: 1.25rem;
}
.my-account-profile-summary-mobile .my-account-profile-card {
    margin-bottom: 0.5rem;
}

.my-account-empty {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.my-account-order-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.my-account-order-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.my-account-order-number {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-lighter);
}

.my-account-order-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.my-account-order-view-product {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--orange);
    text-decoration: none;
}

.my-account-order-view-product:hover {
    color: var(--orange-light);
}

.my-account-order-items {
    margin-bottom: 0.75rem;
}

.my-account-order-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.my-account-order-item:last-child {
    border-bottom: none;
}

.my-account-order-item-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.my-account-order-item-name {
    font-weight: 500;
    color: var(--text-lighter);
}

.my-account-order-item-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.my-account-order-item-review {
    margin-top: 0.5rem;
    padding: 0.5rem 0 0 1rem;
    border-left: 2px solid var(--orange);
    font-size: 0.9rem;
    color: var(--text-light);
}

.my-account-order-item-review-label {
    font-weight: 600;
    color: var(--text-lighter);
}

.my-account-order-item-review-text {
    font-style: italic;
}

.my-account-order-item-review-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 0.5rem 0.75rem 1rem;
    border-left: 2px solid var(--orange);
    font-size: 0.9rem;
    color: var(--orange);
    text-decoration: underline;
    min-height: var(--touch-target, 44px);
    line-height: 1.4;
    box-sizing: border-box;
}

.my-account-order-item-review-link:hover {
    color: var(--orange-light);
}

.my-account-order-item-review-edit {
    font-size: 0.85rem;
    color: var(--orange);
    text-decoration: underline;
    margin-left: 0.5rem;
}

.my-account-order-item-review-edit:hover {
    color: var(--orange-light);
}

.my-account-section-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.my-account-favourites-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.my-account-favourites-loading {
    color: var(--text-light);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.my-account-favourite-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.my-account-favourite-item:last-child {
    border-bottom: none;
}

.my-account-favourite-name {
    font-weight: 600;
    color: var(--text-lighter);
    text-decoration: none;
    flex: 1 1 100%;
}

@media (min-width: 500px) {
    .my-account-favourite-name {
        flex: 1 1 auto;
    }
}

.my-account-favourite-name:hover {
    color: var(--primary-color);
}

.my-account-favourite-price {
    font-size: 0.9rem;
    color: var(--text-light);
}

.my-account-favourite-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.my-account-favourite-add,
.my-account-favourite-remove {
    min-height: var(--touch-target);
}

.my-account-order-total {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--orange);
}

@media (max-width: 768px) {
    .my-account-content-wrap .my-account-content {
        padding: 0;
    }
}

/* My Account: desktop – sidebar visible, hide mobile profile summary */
@media (min-width: 769px) {
    .my-account-nav-mobile,
    .my-account-profile-summary-mobile {
        display: none;
    }
}

/* My Account: mobile – horizontal chip nav, hide sidebar */
@media (max-width: 900px) {
    .my-account-page .products-sidebar {
        position: static;
        transform: none;
        max-height: none;
        border-radius: 0;
    }
}
@media (max-width: 768px) {
    .my-account-page .products-layout {
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    .my-account-page .products-main {
        display: contents;
    }
    .my-account-page .products-title {
        order: -4;
    }
    .my-account-page .products-subtitle {
        order: -3;
    }
    .my-account-page .my-account-profile-summary-mobile {
        order: -2;
    }
    .my-account-page .my-account-nav-mobile {
        order: -1;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.25rem 0;
        margin: -0.25rem 0 0;
    }
    .my-account-page .my-account-nav-mobile .my-account-nav-link--mobile {
        flex: 1 1 auto;
        min-width: calc(50% - 0.2rem);
        max-width: 100%;
        padding: 0.5rem 0.6rem;
        font-family: var(--font-display);
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-lighter);
        text-decoration: none;
        background: rgba(255,255,255,0.02);
        border-radius: 0 6px 6px 0;
        border: 1px solid rgba(201,166,70,0.18);
        border-left: 3px solid rgba(201,166,70,0.4);
        min-height: var(--touch-target, 44px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .my-account-page .my-account-nav-mobile .my-account-nav-link--mobile:hover {
        background: rgba(201,166,70,0.06);
        border-color: rgba(201,166,70,0.35);
        border-left-color: var(--orange);
        color: var(--orange-light);
    }
    .my-account-page .my-account-nav-mobile .my-account-nav-link--mobile:active {
        background: rgba(201,166,70,0.1);
    }
    .my-account-page .my-account-nav-mobile .my-account-nav-link--mobile.my-account-nav-link--active {
        background: var(--orange);
        border-color: var(--orange);
        border-left-color: var(--orange);
        color: var(--text-dark);
    }
    .my-account-page .products-sidebar {
        display: none;
    }
    .my-account-page #profile .my-account-profile-card {
        display: none;
    }
    .my-account-page .my-account-content {
        order: 0;
    }
    .my-account-page .products-sidebar .products-sidebar-header {
        display: none;
    }
    .my-account-page .products-breadcrumb {
        display: none;
    }
    .my-account-page .products-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    .my-account-page .my-account-field input,
    .my-account-page .my-account-field textarea {
        min-height: var(--touch-target, 44px);
        max-width: 100%;
    }
    .my-account-page .my-account-btn {
        min-height: var(--touch-target, 44px);
        padding: 0.75rem 1.25rem;
    }
    .my-account-page .my-account-profile-picture-choose {
        min-height: var(--touch-target, 44px);
    }
    .my-account-page .my-account-phone-row {
        max-width: 100%;
    }
    .my-account-page .my-account-add-delivery-trigger {
        min-height: var(--touch-target, 44px);
        padding: 0.75rem 0;
    }
    .my-account-page .my-account-order-card {
        padding: 1rem;
    }
}

a.nav-account {
    cursor: pointer;
}

@media (max-width: 768px) {
    .account-panels {
        grid-template-columns: 1fr;
    }

    .account-main {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }

    .account-card {
        padding: 1.5rem;
    }

    .account-title {
        font-size: 1.75rem;
    }
}

/* Products page: touch-friendly filters on mobile */
@media (max-width: 768px) {
    .products-filter-option {
        min-height: var(--touch-target);
        padding: 0.5rem 0;
    }

    .products-filter-option input[type="checkbox"] {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Safe area for notched devices (e.g. iPhone) */
@supports (padding: env(safe-area-inset-bottom)) {
    .nav-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    @media (max-width: 968px) {
        .nav-container {
            padding-left: max(var(--container-padding-mobile), env(safe-area-inset-left));
            padding-right: max(var(--container-padding-mobile), env(safe-area-inset-right));
        }
    }

    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    @media (max-width: 768px) {
        .container {
            padding-left: max(var(--container-padding-mobile), env(safe-area-inset-left));
            padding-right: max(var(--container-padding-mobile), env(safe-area-inset-right));
        }
    }

    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Bundle configurator (product page when bundle has choice slots) */
.bundle-configurator-wrap {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bundle-configurator-wrap .bundle-configurator-content {
    width: 100%;
}
.bundle-configurator-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 1.5rem;
}
.bundle-configurator-step {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
    min-height: var(--touch-target, 44px);
}
.bundle-configurator-step:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.bundle-configurator-step.is-active {
    background: rgba(201,166,70,0.2);
    border-color: var(--orange, #C9A646);
    color: var(--orange, #C9A646);
}
.bundle-configurator-content {
    margin-bottom: 1.5rem;
    min-height: 120px;
}
.bundle-configurator-loading,
.bundle-configurator-error {
    color: var(--text-dim, #888);
    margin: 0;
}
.bundle-configurator-slot-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    letter-spacing: 0.04em;
    text-align: center;
}
.bundle-configurator-slot-instruction {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0 0 0.35rem;
    text-align: center;
}
.bundle-slot-status {
    font-size: 0.9rem;
    color: var(--text-dim, #888);
    margin: 0 0 1rem;
    text-align: center;
}
.bundle-slot-status--valid {
    color: #81c784;
}
.bundle-configurator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}
@media (max-width: 768px) {
    .bundle-configurator-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
.bundle-configurator-included-carousel {
    position: relative;
    margin-top: 1.25rem;
}
.bundle-configurator-grid--included {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #C9A646 rgba(255,255,255,0.06);
}
.bundle-configurator-grid--included .bundle-configurator-card {
    flex: 0 0 min(220px, 70vw);
    scroll-snap-align: start;
}
@media (max-width: 768px) {
    .bundle-configurator-grid--included .bundle-configurator-card {
        flex-basis: min(260px, 80vw);
    }
}
.bundle-configurator-included-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    z-index: 1;
}
.bundle-configurator-grid--included::-webkit-scrollbar {
    height: 6px;
}
.bundle-configurator-grid--included::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}
.bundle-configurator-grid--included::-webkit-scrollbar-thumb {
    background: #C9A646;
    border-radius: 999px;
}
.bundle-configurator-grid--included::-webkit-scrollbar-thumb:hover {
    background: #e0c068;
}
.bundle-configurator-included-nav--prev {
    left: -0.5rem;
}
.bundle-configurator-included-nav--next {
    right: -0.5rem;
}
.bundle-configurator-card {
    background: var(--card, #252525);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}
.bundle-configurator-card:hover {
    border-color: rgba(201,166,70,0.4);
}
.bundle-configurator-card-img {
    aspect-ratio: 1;
    background: rgba(0,0,0,0.2);
    overflow: hidden;
}
.bundle-configurator-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bundle-configurator-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bundle-configurator-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.bundle-configurator-card-attr {
    font-size: 0.75rem;
    color: var(--text-dim, #888);
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}
.bundle-configurator-card-price {
    font-size: 0.95rem;
    color: var(--orange, #C9A646);
    font-weight: 600;
    margin: 0 0 0.75rem;
}
.bundle-configurator-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}
.bundle-configurator-minus,
.bundle-configurator-plus {
    min-width: var(--touch-target, 44px);
    min-height: var(--touch-target, 44px);
    padding: 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
    border-radius: 4px;
}
.bundle-configurator-minus:hover:not(:disabled),
.bundle-configurator-plus:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--orange, #C9A646);
    color: var(--orange, #C9A646);
}
.bundle-configurator-minus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.bundle-configurator-card-actions .bundle-configurator-qty {
    min-width: 2rem;
    font-weight: 600;
    text-align: center;
}
.bundle-configurator-nav {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
@media (max-width: 768px) {
    .bundle-configurator-nav {
        flex-direction: column-reverse;
    }
}
.bundle-configurator-back-btn {
    min-height: var(--touch-target, 44px);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text);
}
.bundle-configurator-back-btn:hover {
    border-color: var(--orange, #C9A646);
    color: var(--orange, #C9A646);
}
.bundle-configurator-next-btn {
    min-height: var(--touch-target, 44px);
    padding: 0.9rem 2.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--orange, #C9A646);
    border: 1px solid var(--orange, #C9A646);
    color: #050505;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 14px 32px rgba(0,0,0,0.7);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.bundle-configurator-next-btn:hover:not(:disabled) {
    background: #e0c068;
    border-color: #e0c068;
    color: #050505;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 18px 40px rgba(0,0,0,0.85);
}
.bundle-configurator-next-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(201,166,70,0.16);
    border-color: var(--orange, #C9A646);
    color: rgba(255,255,255,0.9);
    box-shadow: none;
    transform: none;
}
.bundle-configurator-card--included .bundle-configurator-card-body {
    position: relative;
    text-align: center;
    align-items: center;
}
.bundle-configurator-card--included .bundle-configurator-included-badge {
    align-self: center;
}
.bundle-configurator-included-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--orange, #C9A646);
    margin-bottom: 0.35rem;
}
.bundle-configurator-card--included .bundle-configurator-card-price {
    font-size: 0.95rem;
    color: var(--orange, #C9A646);
    font-weight: 600;
    margin: 0 0 0.25rem;
}
.bundle-configurator-card--included .bundle-configurator-card-qty {
    font-size: 0.85rem;
    color: var(--text-dim, #888);
    margin: 0.25rem 0 0;
}
.bundle-configurator-savings {
    margin: 0;
    padding: 0.75rem 1rem;
    background: rgba(201, 166, 70, 0.08);
    border-radius: 4px;
    border-left: 3px solid var(--orange);
    color: var(--text-light);
    font-size: 0.9rem;
}
.bundle-configurator-savings s {
    color: var(--text-dim);
}
.bundle-no-products {
    color: var(--text-dim, #888);
    margin: 0;
}
.bundle-configurator-wrap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bundle-configurator-review {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}
.bundle-configurator-review .bundle-configurator-slot-heading {
    margin-top: 0;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-lighter);
}
.bundle-configurator-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-light);
    line-height: 1.8;
}
.bundle-configurator-review-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.bundle-configurator-review-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--orange);
    font-size: 1.1em;
}
.bundle-configurator-review-list .bundle-configurator-review-empty {
    color: var(--text-dim);
}
.bundle-configurator-review-list .bundle-configurator-review-empty::before {
    display: none;
}
.bundle-configurator-review-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.25rem;
}
.bundle-configurator-review-actions .bundle-configurator-add-btn {
    width: 100%;
}
.bundle-configurator-review-actions .bundle-configurator-nav {
    margin-top: 0;
    justify-content: flex-start;
}
.bundle-configurator-review-actions .bundle-configurator-back-btn {
    min-height: auto;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    background: none;
    border: none;
    color: var(--text-dim);
}
.bundle-configurator-review-actions .bundle-configurator-back-btn:hover {
    color: var(--orange);
    background: none;
}
.bundle-configurator-summary {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(201, 166, 70, 0.06);
    border: 1px solid rgba(201, 166, 70, 0.25);
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.bundle-configurator-total {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-lighter);
}
.bundle-configurator-total strong {
    color: var(--orange);
}
.bundle-configurator-add-btn {
    min-height: var(--touch-target, 44px);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--orange);
    color: var(--text-dark);
    border: 2px solid var(--orange);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.bundle-configurator-add-btn:hover:not(:disabled) {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--text-dark);
}
.bundle-configurator-add-btn:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 2px;
}
.bundle-configurator-add-btn:disabled {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border-color: rgba(201, 166, 70, 0.3);
    cursor: not-allowed;
}

/* Bundle added completion screen */
.bundle-configurator-added {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 166, 70, 0.3);
    border-radius: 6px;
}
.bundle-configurator-added-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 166, 70, 0.2);
    color: var(--orange);
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.bundle-configurator-added-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-white);
}
.bundle-configurator-added-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}
.bundle-configurator-added .bundle-configurator-add-btn,
.bundle-configurator-added .bundle-configurator-added-view {
    text-decoration: none;
    min-height: var(--touch-target, 44px);
    display: inline-block;
    text-align: center;
}
