/*
 * ================================================================
 * SODFA — LUXURY DARK THEME
 * ================================================================
 * Dark premium perfume store with GSAP animations,
 * scroll-triggered reveals, custom cursor, loading screen.
 * ================================================================
 */

/* ===================== CSS VARIABLES ===================== */
:root {
    --gold:           #c9a84c;
    --gold-light:     #e8d48b;
    --gold-dark:      #a68a3a;
    --gold-glow:      rgba(201, 168, 76, 0.3);

    --bg:             #0a0a0f;
    --bg-alt:         #0f0f18;
    --bg-card:        rgba(255, 255, 255, 0.03);
    --bg-card-hover:  rgba(255, 255, 255, 0.06);
    --bg-dark:        #050508;
    --bg-footer:      #06060a;
    --bg-glass:       rgba(255, 255, 255, 0.04);

    --text:           #c8c8d0;
    --text-light:     #777790;
    --text-heading:   #f0ece4;
    --text-white:     #ffffff;

    --border:         rgba(255, 255, 255, 0.06);
    --border-gold:    rgba(201, 168, 76, 0.2);

    --max-width:      1400px;
    --radius:         12px;
    --radius-sm:      6px;

    --font:           'Montserrat', sans-serif;
    --font-heading:   'Cormorant Garamond', serif;

    --success:        #2ecc71;
    --danger:         #e74c3c;

    --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:    cubic-bezier(0.76, 0, 0.24, 1);

    --card-bg:        rgba(255, 255, 255, 0.03);
    --text-muted:     #777790;
}

/* ===================== LIGHT MODE ===================== */
[data-theme="light"] {
    --gold:           #a68a3a;
    --gold-light:     #c9a84c;
    --gold-dark:      #8a7230;
    --gold-glow:      rgba(166, 138, 58, 0.15);

    --bg:             #fafaf8;
    --bg-alt:         #f2f1ed;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f7f6f3;
    --bg-dark:        #f0efe9;
    --bg-footer:      #1a1a22;
    --bg-glass:       rgba(0, 0, 0, 0.02);

    --text:           #3a3a42;
    --text-light:     #6a6a78;
    --text-heading:   #1a1a22;
    --text-white:     #1a1a22;
    --text-muted:     #8a8a98;

    --border:         rgba(0, 0, 0, 0.08);
    --border-gold:    rgba(166, 138, 58, 0.25);

    --card-bg:        #ffffff;
}
/* Auto light mode from system preference */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --gold:           #a68a3a;
        --gold-light:     #c9a84c;
        --gold-dark:      #8a7230;
        --gold-glow:      rgba(166, 138, 58, 0.15);

        --bg:             #fafaf8;
        --bg-alt:         #f2f1ed;
        --bg-card:        #ffffff;
        --bg-card-hover:  #f7f6f3;
        --bg-dark:        #f0efe9;
        --bg-footer:      #1a1a22;
        --bg-glass:       rgba(0, 0, 0, 0.02);

        --text:           #3a3a42;
        --text-light:     #6a6a78;
        --text-heading:   #1a1a22;
        --text-white:     #1a1a22;
        --text-muted:     #8a8a98;

        --border:         rgba(0, 0, 0, 0.08);
        --border-gold:    rgba(166, 138, 58, 0.25);

        --card-bg:        #ffffff;
    }
}

/* Light mode specific overrides */
[data-theme="light"] .navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .navbar {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .hero {
    background: radial-gradient(ellipse at 50% 80%, #ede9df 0%, #fafaf8 70%);
}
[data-theme="light"] .product-detail-image img {
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .size-btn {
    background: #f5f4f0;
    border-color: rgba(0, 0, 0, 0.1);
    color: #3a3a42;
}
[data-theme="light"] .size-btn.active {
    border-color: var(--gold);
    background: rgba(166, 138, 58, 0.08);
}
[data-theme="light"] .quantity-group input {
    background: #f5f4f0;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a22;
}
[data-theme="light"] .btn-buy-now {
    border-color: var(--gold);
    color: var(--gold);
}
[data-theme="light"] body::after {
    opacity: 0;
}
[data-theme="light"] .product-card,
[data-theme="light"] .pack-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .product-card:hover,
[data-theme="light"] .pack-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .search-overlay {
    background: rgba(250, 250, 248, 0.97);
}
[data-theme="light"] .loader {
    background: #fafaf8;
}
[data-theme="light"] .loader-brand,
[data-theme="light"] .loader-tagline {
    color: #1a1a22;
}
[data-theme="light"] .mobile-menu {
    background: #f5f5f2;
    border-left-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .mobile-menu-backdrop {
    background: rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .mm-section {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .mm-section-label {
    color: rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .mm-link {
    color: #2a2a32;
}
[data-theme="light"] .mm-icon {
    color: #8a8a98;
}
[data-theme="light"] .mm-chevron {
    color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .mm-close {
    color: #8a8a98;
}
[data-theme="light"] .mm-brand-name {
    color: #1a1a22;
}
[data-theme="light"] .mobile-lang-btn {
    color: #3a3a42;
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .toggle-bar {
    background: #1a1a22;
}
[data-theme="light"] .footer-col h3,
[data-theme="light"] .footer-col h4 {
    color: #f0ece4;
}
[data-theme="light"] .pack-product-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .pack-counter {
    background: rgba(166, 138, 58, 0.08);
    border-color: rgba(166, 138, 58, 0.2);
}
[data-theme="light"] .delivery-info-bar,
[data-theme="light"] .delivery-offer-bar,
[data-theme="light"] .delivery-detail-item {
    border-color: rgba(0, 0, 0, 0.06);
}
/* Theme toggle button style */
.theme-toggle-wrap {
    display: flex;
    align-items: center;
}
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}
.theme-toggle-btn:hover {
    color: var(--gold);
}
.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}
/* Hide the wrong icon */
[data-theme="light"] .theme-icon-moon,
[data-theme="dark"] .theme-icon-sun,
:root:not([data-theme]) .theme-icon-sun {
    display: none;
}
[data-theme="light"] .theme-icon-sun {
    display: block;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-icon-moon { display: none; }
    :root:not([data-theme="dark"]) .theme-icon-sun { display: block; }
}

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

html {
    scroll-behavior: auto; /* GSAP handles smooth scroll */
}

/* ===================== LOADING SCREEN ===================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}
.loader-inner {
    text-align: center;
}
.loader-crown {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
}
.loader-brand {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--gold);
    letter-spacing: 14px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
}
.loader-tagline {
    font-family: var(--font);
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0;
}
.loader-bar {
    width: 200px;
    height: 1px;
    background: var(--border);
    margin: 30px auto 0;
    overflow: hidden;
    opacity: 0;
}
.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gold);
    transition: width 0.3s ease;
}

/* ===================== CUSTOM CURSOR ===================== */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s;
    mix-blend-mode: difference;
}
.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}
.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===================== BASE ===================== */
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
    cursor: none;
}
a:hover {
    color: var(--gold-light);
}

@media (max-width: 768px) {
    a { cursor: auto; }
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
    transition: background 0.5s, backdrop-filter 0.5s, padding 0.5s;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.5s var(--ease-out);
}
.navbar.scrolled .navbar-inner {
    height: 65px;
}

/* Brand center */
.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.brand-crown {
    font-size: 1.4rem;
    color: var(--gold);
    line-height: 1;
    transition: transform 0.5s var(--ease-out);
}
.navbar-brand:hover .brand-crown {
    transform: translateY(-3px);
}
.brand-name {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-weight: 400;
    transition: color 0.3s;
}
.navbar-brand:hover .brand-name {
    color: var(--gold);
}

/* Nav links */
.navbar-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}
.nav-link {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    position: relative;
    transition: color 0.3s;
    cursor: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out), left 0.4s var(--ease-out);
}
.nav-link:hover {
    color: var(--gold);
}
.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* Cart badge */
.cart-link {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: var(--gold);
    color: var(--bg);
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Language Switcher */
.lang-switcher-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lang-toggle {
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 10px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: border-color 0.3s, background 0.3s;
    z-index: 1002;
}
.lang-toggle:hover {
    border-color: var(--gold);
    background: var(--bg-card);
}
.lang-current-code {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text);
}
.lang-toggle svg {
    color: var(--text-light);
    transition: transform 0.3s;
}
.lang-toggle:hover svg {
    color: var(--gold);
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 15, 24, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 160px;
    padding: 8px 0;
    z-index: 1001;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}
.lang-option:hover {
    background: var(--bg-card-hover);
    color: var(--gold);
}
.lang-option.active {
    color: var(--gold);
    font-weight: 500;
}
.lang-flag {
    font-size: 1.1rem;
}
.lang-name {
    letter-spacing: 0.5px;
}

/* Mobile Language Switcher */
/* ===================== MOBILE MENU DRAWER (TikTok-style) ===================== */

/* Hamburger toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
    position: relative;
}
.toggle-bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-white);
    transition: all 0.4s var(--ease-out);
    transform-origin: center;
}
.mobile-toggle.active .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}
.mobile-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}
.mobile-toggle.active .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -4px);
}

/* Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: none;
}
.mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

/* Drawer panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 290px;
    max-width: 82vw;
    z-index: 1050;
    background: #0d0d14;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Close button */
.mm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    z-index: 2;
    transition: color 0.3s;
}
.mm-close:hover { color: var(--text-white); }

/* Brand header */
.mm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mm-brand-crown {
    font-size: 1.3rem;
    color: var(--gold);
}
.mm-brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-white);
    letter-spacing: 4px;
    font-weight: 400;
}

/* Scrollable body */
.mm-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0 20px;
}

/* Sections */
.mm-section {
    padding: 0 0 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mm-section:last-child {
    border-bottom: none;
}
.mm-section-label {
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 22px 8px;
}

/* Menu links — TikTok spacing */
.mm-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 22px;
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s, color 0.2s;
}
.mobile-menu.open .mm-link {
    opacity: 1;
    transform: translateX(0);
}
/* Stagger per section — first section */
.mm-section:nth-child(1) .mm-link:nth-child(2) { transition-delay: 0.06s; }
.mm-section:nth-child(1) .mm-link:nth-child(3) { transition-delay: 0.10s; }
.mm-section:nth-child(1) .mm-link:nth-child(4) { transition-delay: 0.14s; }
.mm-section:nth-child(2) .mm-link:nth-child(2) { transition-delay: 0.16s; }
.mm-section:nth-child(2) .mm-link:nth-child(3) { transition-delay: 0.20s; }
.mm-section:nth-child(2) .mm-link:nth-child(4) { transition-delay: 0.24s; }
.mm-section:nth-child(2) .mm-link:nth-child(5) { transition-delay: 0.28s; }
.mm-section:nth-child(3) .mm-link:nth-child(2) { transition-delay: 0.30s; }
.mm-section:nth-child(3) .mm-link:nth-child(3) { transition-delay: 0.34s; }

.mm-link:active,
.mm-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--gold);
}
.mm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
}
.mm-link:hover .mm-icon,
.mm-link:active .mm-icon {
    color: var(--gold);
}
.mm-text {
    flex: 1;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1;
}
.mm-chevron {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
}
.mm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--bg);
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-left: 6px;
}

/* Language switcher in drawer */
.mobile-lang-switcher {
    display: flex;
    gap: 8px;
    padding: 8px 22px 4px;
    flex-wrap: wrap;
}
.mobile-lang-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}
.mobile-lang-btn.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}
.mobile-lang-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Footer social icons */
.mm-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.mm-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all 0.3s;
}
.mm-social:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 80%, #1a1535 0%, var(--bg) 70%);
}
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(100, 80, 200, 0.05) 0%, transparent 60%);
    z-index: 0;
}

/* Smoke / particle canvas */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 900px;
}
.hero-crown {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
    opacity: 0;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--text-white);
    letter-spacing: 16px;
    margin-bottom: 10px;
    font-weight: 300;
    line-height: 1.1;
    opacity: 0;
}
.hero-tagline {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0;
}
.hero-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0;
}
.hero-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 30px;
    opacity: 0;
}

/* CTA Button */
.btn-hero {
    display: inline-block;
    padding: 16px 50px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-white);
    border: 1px solid var(--gold);
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
    cursor: none;
    opacity: 0;
}
.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-out);
    z-index: -1;
}
.btn-hero:hover {
    color: var(--bg);
}
.btn-hero:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}
.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===================== SECTIONS ===================== */
.section {
    padding: 100px 0;
    position: relative;
}
.section-alt {
    background: var(--bg-alt);
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 6px;
    font-weight: 300;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 60px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}
.section-line {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 16px auto 20px;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
}

/* ===================== CATEGORY CARDS ===================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.category-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 30px;
    text-align: center;
    transition: all 0.5s var(--ease-out);
    display: block;
    position: relative;
    overflow: hidden;
    cursor: none;
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(201, 168, 76, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}
.category-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(201, 168, 76, 0.06);
    background: var(--bg-card-hover);
}
.category-card:hover::before {
    opacity: 1;
}
.category-card h3 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-size: 1.6rem;
    letter-spacing: 4px;
    margin-bottom: 12px;
    font-weight: 400;
    position: relative;
}
.category-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 300;
    position: relative;
}
.category-link {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    transition: letter-spacing 0.3s var(--ease-out);
}
.category-card:hover .category-link {
    letter-spacing: 5px;
}

/* ===================== PRODUCT GRID ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    cursor: none;
}
.product-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 168, 76, 0.05);
}
.product-image-link {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.product-image-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
}
.product-card:hover .product-image-link::after {
    opacity: 1;
}
.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.product-card:hover .product-image {
    transform: scale(1.08);
}
.product-info {
    padding: 24px;
}
.product-category {
    color: var(--gold);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}
.product-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 8px 0;
    font-weight: 400;
    letter-spacing: 1px;
}
.product-name a {
    color: var(--text-heading);
    transition: color 0.3s;
}
.product-name a:hover {
    color: var(--gold);
}
.product-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}
.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.product-price {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 500;
}

/* ===================== PRODUCT DETAIL ===================== */
.breadcrumb {
    padding: 16px 0;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.breadcrumb a {
    color: var(--text-light);
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--gold);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-top: 100px;
}
.product-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.product-detail-image img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.8s var(--ease-out);
}
.product-detail-image:hover img {
    transform: scale(1.03);
}
.product-detail-name {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-heading);
    margin: 12px 0 16px;
    font-weight: 300;
    letter-spacing: 4px;
    line-height: 1.2;
}
.product-detail-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 20px;
}
.product-detail-short {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.9;
    font-weight: 300;
}

/* ===================== SIZE SELECTOR ===================== */
.size-selector {
    margin-bottom: 20px;
}
.size-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 400;
}
.size-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    min-width: 100px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    color: var(--text);
    font-family: var(--font);
}
.size-btn:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}
.size-btn.active {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}
.size-ml {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.size-btn.active .size-ml {
    color: var(--gold);
}
.size-price {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 300;
}
.size-btn.active .size-price {
    color: var(--gold-light);
}

@media (max-width: 768px) {
    .size-btn {
        cursor: pointer;
    }
}

.stock-status {
    font-size: 0.85rem;
    margin-bottom: 24px;
    padding: 10px 0;
    letter-spacing: 1px;
}
.stock-status.in-stock {
    color: var(--success);
}
.stock-status.out-of-stock {
    color: var(--danger);
}

.add-to-cart-form {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: 16px;
}
.quantity-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.quantity-group input {
    width: 80px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    text-align: center;
    background: var(--bg-glass);
    color: var(--text-white);
    transition: border-color 0.3s;
}
.quantity-group input:focus {
    outline: none;
    border-color: var(--gold);
}

/* Delivery & Payment Info Bar */
.delivery-info-bar {
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.delivery-offer-bar {
    background: #c0392b;
    color: #fff;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}
.delivery-offer-bar .offer-icon {
    font-size: 1.1rem;
}
.delivery-offer-bar strong {
    color: #fff;
    font-weight: 700;
}
.delivery-details {
    padding: 14px 16px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.delivery-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text);
}
.delivery-detail-item .detail-icon {
    font-size: 1.1rem;
}
.delivery-detail-item strong {
    color: var(--gold-light);
    font-weight: 600;
}

.product-description-full {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}
.product-description-full h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-heading);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 3px;
}
.description-text {
    color: var(--text-light);
    line-height: 2;
    font-weight: 300;
}

/* Category header */
.category-header {
    margin-bottom: 40px;
    padding-top: 100px;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06), transparent 70%);
    pointer-events: none;
}
.cta-content h2 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 6px;
    margin-bottom: 16px;
    font-weight: 300;
    position: relative;
}
.cta-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
}

/* ===================== CART TABLE ===================== */
.cart-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    padding-top: 100px;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    background: var(--bg-alt);
    color: var(--text-light);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.cart-table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
    color: var(--text);
}
.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.cart-qty-input {
    width: 70px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    background: var(--bg-glass);
    color: var(--text-white);
    transition: border-color 0.3s;
}
.cart-qty-input:focus {
    outline: none;
    border-color: var(--gold);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.cart-actions {
    display: flex;
    gap: 12px;
}
.cart-total-box {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    min-width: 320px;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text);
}
.cart-total-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 500;
}

/* ===================== CHECKOUT ===================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    margin-top: 30px;
    padding-top: 100px;
}
.checkout-form-wrap h2,
.checkout-summary h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-bottom: 24px;
    font-weight: 300;
    letter-spacing: 3px;
}
.checkout-form .form-group {
    margin-bottom: 20px;
}
.checkout-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.checkout-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: var(--bg-glass);
    color: var(--text-white);
    font-family: var(--font);
}
.checkout-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.checkout-summary {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}
.summary-items {
    margin-bottom: 20px;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.summary-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.summary-item-info {
    flex: 1;
}
.summary-item-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-heading);
}
.summary-item-qty {
    font-size: 0.8rem;
    color: var(--text-light);
}
.summary-item-price {
    font-weight: 500;
    color: var(--gold);
    font-size: 0.9rem;
}
.summary-totals-breakdown {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 8px;
}
.summary-line.free-delivery span:last-child {
    color: var(--success);
}
.free-badge {
    background: #27ae60;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
}
.summary-free-note {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold);
}
.summary-payment-method {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    text-align: center;
}
.cod-badge {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.checkout-success {
    text-align: center;
    padding: 80px 20px;
    padding-top: 140px;
}
.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.08);
    color: var(--success);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.checkout-success h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-heading);
    margin-bottom: 16px;
    font-weight: 300;
    letter-spacing: 4px;
}
.checkout-success p {
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ===================== PUBLIC ALERTS ===================== */
.alert-public {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.alert-public-success {
    background: rgba(46, 204, 113, 0.06);
    border: 1px solid rgba(46, 204, 113, 0.15);
    color: var(--success);
}
.alert-public-danger {
    background: rgba(231, 76, 60, 0.06);
    border: 1px solid rgba(231, 76, 60, 0.15);
    color: var(--danger);
}
.alert-public-danger ul {
    margin: 0;
    padding-left: 18px;
}

/* ===================== EMPTY MESSAGE ===================== */
.empty-message {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-message h2,
.empty-message h3 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    margin-bottom: 12px;
    font-weight: 300;
    letter-spacing: 3px;
}
.empty-message p {
    margin-bottom: 24px;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: none;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    font-family: var(--font);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .btn { cursor: pointer; }
}

.btn-gold {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    color: var(--bg);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}
/* ===================== GYMSHARK-STYLE CART BUTTONS ===================== */
/* Cart buttons layout — stacked, full-width, generous spacing */
.cart-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}
.cart-buttons-group .btn {
    width: 100%;
    text-align: center;
    padding: 18px 28px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    border-radius: 50px;
    transition: all 0.35s var(--ease-out);
}
/* Add to Cart — solid gold pill */
.cart-buttons-group .btn-gold {
    background: var(--gold);
    color: var(--bg);
    border: 2px solid var(--gold);
    border-radius: 50px;
}
.cart-buttons-group .btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 6px 28px rgba(201, 168, 76, 0.35);
    transform: translateY(-2px);
}
/* Buy Now — outline pill */
.btn-buy-now {
    background: transparent !important;
    color: var(--text-heading);
    border: 2px solid var(--text-heading) !important;
    letter-spacing: 2.5px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-buy-now::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text-heading);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out);
    z-index: -1;
    border-radius: 50px;
}
.btn-buy-now:hover {
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.btn-buy-now:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn-buy-now:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
/* Light mode: invert for contrast */
[data-theme="light"] .btn-buy-now {
    color: #1a1a22;
    border-color: #1a1a22 !important;
}
[data-theme="light"] .btn-buy-now::before {
    background: #1a1a22;
}
[data-theme="light"] .btn-buy-now:hover {
    color: #ffffff;
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
    z-index: -1;
}
.btn-outline:hover {
    color: var(--bg);
}
.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: rgba(231, 76, 60, 0.3);
    font-size: 0.75rem;
}
.btn-danger:hover {
    background: rgba(231, 76, 60, 0.06);
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.7rem;
}
.btn-lg {
    padding: 16px 40px;
    font-size: 0.8rem;
    letter-spacing: 3px;
}
.btn-block {
    display: block;
    width: 100%;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: 80px 0 0;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}
.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin-bottom: 12px;
    font-weight: 300;
}
.footer-col h4 {
    color: var(--text-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 18px;
    font-weight: 500;
}
.footer-col p {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 8px;
    font-weight: 300;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 300;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 6px;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    .navbar-links {
        display: none !important;
    }
    .navbar-brand {
        position: relative;
        left: auto;
        transform: none;
    }
    .mobile-menu {
        display: none;
        flex-direction: column;
    }
    .hero-content h1 {
        letter-spacing: 8px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-image {
        height: 220px;
    }
    .product-info {
        padding: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        flex-direction: column;
    }
    .cart-total-box {
        min-width: 100%;
    }
    .section {
        padding: 60px 0;
    }
    .product-detail {
        padding-top: 80px;
    }
    .category-header {
        padding-top: 80px;
    }
    .cart-table-wrapper {
        padding-top: 80px;
    }
    .checkout-grid {
        padding-top: 80px;
    }
    .checkout-success {
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        letter-spacing: 4px;
    }
    .add-to-cart-form {
        flex-direction: column;
        align-items: stretch;
    }
    .product-detail-name {
        font-size: 2rem;
    }
}

/* ===================== MOBILE PRODUCT DETAIL POLISH ===================== */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 10px;
        margin-bottom: 20px;
    }
    .product-detail-image {
        max-height: 44vh;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }
    .product-detail-image img {
        max-height: 44vh;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        border-radius: 12px;
    }
    .breadcrumb {
        padding-top: 65px;
        margin-bottom: 0;
        font-size: 0.7rem;
        padding-bottom: 4px;
    }
    .product-detail-name {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
        margin: 6px 0 8px;
    }
    .product-detail-price {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    .product-detail-short {
        font-size: 0.85rem;
        margin-bottom: 16px;
        line-height: 1.7;
    }
    /* Size selector */
    .size-selector {
        margin-bottom: 14px;
    }
    .size-label {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }
    .size-options {
        gap: 8px;
    }
    .size-btn {
        padding: 10px 16px;
        min-width: 80px;
        border-radius: 6px;
    }
    .size-ml {
        font-size: 0.85rem;
    }
    .size-price {
        font-size: 0.7rem;
    }
    /* Stock */
    .stock-status {
        font-size: 0.75rem;
        margin-bottom: 14px;
        padding: 6px 0;
    }
    /* Quantity */
    .quantity-group label {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }
    .quantity-group input {
        width: 64px;
        padding: 10px;
        font-size: 0.9rem;
    }
    /* Cart buttons — Gymshark mobile style */
    .add-to-cart-form {
        gap: 10px;
        margin-top: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    .cart-buttons-group {
        gap: 12px;
    }
    .cart-buttons-group .btn {
        padding: 16px 20px;
        font-size: 0.75rem;
        letter-spacing: 2px;
        border-radius: 50px;
    }
    /* Delivery info bar */
    .delivery-info-bar {
        margin-top: 18px;
    }
    .delivery-offer-bar {
        font-size: 0.78rem;
        padding: 8px 12px;
    }
    .delivery-detail-item {
        font-size: 0.78rem;
        padding: 8px 12px;
    }
}

/* ===================== GRAIN / NOISE OVERLAY ===================== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ===================== SEARCH OVERLAY ===================== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 5, 10, 0.96);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}
.search-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.search-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}
.search-overlay-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}
.search-overlay-form {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 12px;
    width: 90%;
    max-width: 600px;
}
.search-overlay-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 2px;
}
.search-overlay-input::placeholder {
    color: var(--text-light);
}
.search-overlay-btn {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    transition: transform 0.3s;
    padding: 8px;
}
.search-overlay-btn:hover {
    transform: scale(1.2);
}
.search-overlay-hint {
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 20px;
    text-transform: uppercase;
}

/* Nav search button */
.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: var(--font);
    color: var(--text);
}
.nav-search-btn:hover {
    color: var(--gold);
}

/* Search page form */
.search-page-form {
    max-width: 600px;
    margin: 0 auto;
}
.search-form-inline {
    display: flex;
    gap: 12px;
}
.search-page-input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-white);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.search-page-input:focus {
    outline: none;
    border-color: var(--gold);
}
.search-page-input::placeholder {
    color: var(--text-light);
}

/* ===================== PROMO BANNER ===================== */
.promo-banner {
    padding: 50px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.promo-inner {
    text-align: center;
}
.promo-line {
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
}
.promo-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-heading);
    letter-spacing: 3px;
    margin: 20px 0 10px;
    font-weight: 400;
}
.promo-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 20px;
}

/* ===================== BEST SELLERS CAROUSEL ===================== */
.section-title-left {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text-heading);
    text-align: left;
    margin-bottom: 8px;
    letter-spacing: 4px;
    font-weight: 300;
}
.section-subtitle-left {
    text-align: left;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.8;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}
.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-card {
    flex: 0 0 260px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}
.carousel-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}
.carousel-image-link {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
}
.carousel-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.carousel-card:hover .carousel-image {
    transform: scale(1.06);
}
.carousel-info {
    padding: 20px;
    text-align: center;
}
.carousel-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-heading);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.carousel-meta {
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.carousel-price {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 14px;
}
.carousel-buy {
    width: 100%;
    display: block;
}

/* Carousel arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    z-index: 5;
    backdrop-filter: blur(10px);
}
.carousel-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}
.carousel-arrow-left {
    left: 10px;
}
.carousel-arrow-right {
    right: 10px;
}

/* ===================== CATEGORY CIRCLES ===================== */
.category-circles {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.4s var(--ease-out);
}
.category-circle:hover {
    transform: translateY(-6px);
}
.circle-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}
.category-circle:hover .circle-icon {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.12);
    background: rgba(201, 168, 76, 0.06);
}
.circle-letter {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 300;
    transition: transform 0.4s var(--ease-out);
}
.category-circle:hover .circle-letter {
    transform: scale(1.15);
}
.category-circle h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-heading);
    letter-spacing: 3px;
    font-weight: 400;
    text-align: center;
}
.category-circle:hover h3 {
    color: var(--gold);
}

/* ===================== BLOG / EDITORIAL SECTION ===================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.blog-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}
.blog-card-featured {
    grid-column: auto;
    grid-row: auto;
}
.blog-card-featured .blog-card-image {
    min-height: 180px;
}
.blog-card-image {
    min-height: 180px;
    overflow: hidden;
}
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(100, 80, 200, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-placeholder span {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.4;
}
.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-tag {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
    font-weight: 500;
}
.blog-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-heading);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-card-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.8;
    font-weight: 300;
    flex: 1;
}
.blog-read-more {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 16px;
    transition: letter-spacing 0.3s var(--ease-out);
    display: block;
}
.blog-card:hover .blog-read-more {
    letter-spacing: 4px;
}

/* ===================== BLOG ARTICLE PAGE ===================== */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}
.blog-article-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-back {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 24px;
    transition: letter-spacing 0.3s var(--ease-out);
}
.blog-back:hover {
    letter-spacing: 4px;
}
.blog-article-header .blog-tag {
    display: inline-block;
    margin-bottom: 16px;
}
.blog-article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
}
.blog-article-date {
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.blog-article-body {
    color: var(--text);
    font-size: 1rem;
    line-height: 2;
    font-weight: 300;
}
.blog-article-body h2 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-size: 1.6rem;
    font-weight: 400;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.blog-article-body p {
    margin-bottom: 16px;
}
.blog-article-body strong {
    color: var(--gold-light);
    font-weight: 500;
}
.blog-article-cta {
    text-align: center;
    margin-top: 60px;
    padding: 50px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.blog-article-cta h3 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

/* ===================== GIFT PAGE ===================== */
.gift-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    position: relative;
}
.gift-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold), transparent);
}
.gift-hero-content {
    max-width: 700px;
    margin: 0 auto;
}
.gift-hero-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px var(--gold-glow));
}
.gift-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--text-heading);
    font-weight: 400;
    margin-bottom: 20px;
}
.gift-hero-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
}
.gift-occasions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.gift-occasion {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease-out);
}
.gift-occasion:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-4px);
}
.gift-occasion-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}
.gift-occasion h3 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 8px;
}
.gift-occasion p {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .gift-occasions {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .gift-hero {
        padding: 120px 0 60px;
    }
}
@media (max-width: 480px) {
    .gift-occasions {
        grid-template-columns: 1fr;
    }
}

/* ===================== BLOG RESPONSIVE ===================== */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
    .blog-card-featured {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .carousel-card {
        flex: 0 0 220px;
    }
    .carousel-image {
        height: 220px;
    }
    .carousel-wrapper {
        padding: 0 20px;
    }
    .category-circles {
        gap: 30px;
    }
    .circle-icon {
        width: 90px;
        height: 90px;
    }
    .circle-letter {
        font-size: 2rem;
    }
    .search-overlay-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .category-circles {
        gap: 20px;
    }
    .circle-icon {
        width: 75px;
        height: 75px;
    }
    .circle-letter {
        font-size: 1.6rem;
    }
    .category-circle h3 {
        font-size: 0.85rem;
    }
}

/* ===================== FLOATING SOCIAL ICONS ===================== */
.floating-social {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.social-float {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.social-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}
.social-whatsapp {
    background: #25D366;
}
.social-whatsapp:hover {
    background: #1ebe57;
}
.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-instagram:hover {
    background: linear-gradient(45deg, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
}

@media (max-width: 768px) {
    .floating-social {
        bottom: 20px;
        right: 16px;
    }
    .social-float {
        width: 46px;
        height: 46px;
    }
    .social-float svg {
        width: 22px;
        height: 22px;
    }
}

/* RTL: flip floating social to left */
html[dir="rtl"] .floating-social {
    right: auto;
    left: 30px;
}

/* ===================== RTL SUPPORT (Arabic) ===================== */
html[dir="rtl"] {
    direction: rtl;
}
html[dir="rtl"] body {
    text-align: right;
}
html[dir="rtl"] .navbar-inner {
    flex-direction: row-reverse;
}
html[dir="rtl"] .navbar-links-left {
    flex-direction: row-reverse;
}
html[dir="rtl"] .navbar-links-right {
    flex-direction: row-reverse;
}
html[dir="rtl"] .product-detail {
    direction: rtl;
}
html[dir="rtl"] .product-info {
    text-align: right;
}
html[dir="rtl"] .product-bottom {
    flex-direction: row-reverse;
}
html[dir="rtl"] .breadcrumb {
    direction: rtl;
}
html[dir="rtl"] .checkout-grid {
    direction: rtl;
}
html[dir="rtl"] .footer-grid {
    direction: rtl;
}
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle {
    text-align: center;
}
html[dir="rtl"] .hero-content {
    text-align: center;
}
html[dir="rtl"] .delivery-info-bar {
    text-align: right;
}
html[dir="rtl"] .delivery-offer-bar,
html[dir="rtl"] .delivery-detail-item {
    flex-direction: row-reverse;
}
html[dir="rtl"] .summary-total,
html[dir="rtl"] .summary-line {
    flex-direction: row-reverse;
}
html[dir="rtl"] .add-to-cart-form {
    flex-direction: row-reverse;
}
html[dir="rtl"] .cart-badge {
    right: auto;
    left: 2px;
}
html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}
html[dir="rtl"] .blog-card-content {
    text-align: right;
}
html[dir="rtl"] .gift-occasion {
    text-align: center;
}
html[dir="rtl"] .mobile-menu {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateX(-100%);
}
html[dir="rtl"] .mobile-menu.open {
    transform: translateX(0);
}
html[dir="rtl"] .mm-close {
    right: auto;
    left: 16px;
}
html[dir="rtl"] .mm-chevron {
    transform: rotate(180deg);
}

/* ===================== PACKS PAGE ===================== */

/* --- Packs Listing Grid --- */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    max-width: 820px;
    margin: 0 auto;
}
.pack-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}
.pack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(201, 168, 76, 0.1);
}
.pack-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.pack-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pack-card:hover .pack-card-image img {
    transform: scale(1.04);
}
.pack-badge-save {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.pack-card-info {
    padding: 16px 18px;
}
.pack-card-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 6px;
}
.pack-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pack-card-meta {
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 12px;
}
.pack-meta-sep {
    margin: 0 5px;
}
.pack-card-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.pack-price-old, .pack-price-old-lg {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.pack-price-current {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 700;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- Pack Detail Page --- */
.pack-detail {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 35px;
    align-items: start;
    margin-top: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.pack-detail-image {
    position: relative;
}
.pack-detail-image img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 10px;
}
.pack-detail-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.pack-detail-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}
.pack-detail-meta {
    font-size: 0.88rem;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}
.pack-detail-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}
.pack-price-old-lg {
    font-size: 1rem;
}
.pack-price-current-lg {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--gold);
    font-weight: 700;
}

/* --- Product Picker Section --- */
.pack-picker-section {
    max-width: 800px;
    margin: 40px auto 0;
}
.pack-counter {
    text-align: center;
    font-size: 0.95rem;
    color: var(--gold);
    font-weight: 600;
    margin: 15px 0;
    padding: 10px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 8px;
}
.pack-products-grid {
    margin: 20px 0;
}
.pack-scroll-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.pack-product-pick {
    cursor: pointer;
}
.pack-product-pick input[type="checkbox"] {
    display: none;
}
.pack-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
}
.pack-product-pick input:checked + .pack-product-card {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.12);
}
.pack-product-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
}
.pack-product-card img {
    width: 70px;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}
.pack-product-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 2px;
}
.pack-product-cat {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.pack-product-check {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
}
.pack-product-pick input:checked + .pack-product-card .pack-product-check {
    display: block;
}
.pack-product-pick input:disabled + .pack-product-card {
    opacity: 0.35;
    cursor: not-allowed;
}
.pack-submit-wrap {
    text-align: center;
    margin: 25px 0;
}
.pack-submit-wrap .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Homepage Packs Showcase --- */
.packs-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 25px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Packs Responsive (Tablet) --- */
@media (max-width: 900px) {
    .pack-detail {
        max-width: 600px;
        gap: 25px;
    }
    .pack-detail-image img { max-height: 280px; }
    .pack-scroll-inner { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* --- Packs Responsive (Mobile) — Gymshark-inspired modern --- */
@media (max-width: 768px) {

    /* ---- Pack Detail Header ---- */
    .pack-detail {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
        padding: 0;
    }
    .pack-detail-image {
        border-radius: 0;
        margin: 0 -16px;
        width: calc(100% + 32px);
    }
    .pack-detail-image img {
        max-height: 200px;
        width: 100%;
        border-radius: 0;
        object-fit: cover;
    }
    .pack-detail-info {
        padding: 16px 4px 0;
    }
    .pack-detail-name {
        font-size: 1.2rem;
        margin-bottom: 4px;
        letter-spacing: 1px;
    }
    .pack-detail-desc {
        font-size: 0.78rem;
        margin-bottom: 8px;
        line-height: 1.5;
        color: var(--text-muted);
    }
    .pack-detail-meta {
        font-size: 0.72rem;
        margin-bottom: 10px;
        opacity: 0.7;
    }

    /* Single clear price — only current price stands out */
    .pack-detail-pricing {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .pack-price-current-lg {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--gold);
    }
    .pack-price-old-lg {
        font-size: 0.78rem;
        opacity: 0.4;
        text-decoration: line-through;
    }

    /* Delivery bar compact */
    .delivery-info-bar { margin-top: 8px; }
    .delivery-offer-bar { font-size: 0.75rem; padding: 8px 10px; }
    .delivery-details { gap: 6px; }
    .delivery-detail-item { font-size: 0.72rem; padding: 6px 8px; }

    /* ---- Product Picker — Horizontal Scroll Strip ---- */
    .pack-picker-section {
        margin-top: 24px !important;
        padding: 0;
    }
    .pack-picker-section .section-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    .pack-picker-section .section-subtitle {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }
    .pack-counter {
        font-size: 0.78rem;
        padding: 8px 14px;
        border-radius: 20px;
        display: inline-block;
        margin: 0 0 12px;
    }

    /* Horizontal scroll container */
    .pack-products-grid {
        margin: 0 -16px;
        padding: 0;
        overflow: visible;
    }
    .pack-scroll-inner {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 16px 12px;
        scrollbar-width: none;
    }
    .pack-scroll-inner::-webkit-scrollbar {
        display: none;
    }
    .pack-product-pick {
        flex: 0 0 auto;
        width: 100px;
        scroll-snap-align: start;
    }
    .pack-product-card {
        padding: 8px 6px 8px;
        border-radius: 10px;
        border-width: 1.5px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .pack-product-card img {
        width: 52px;
        height: 60px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 6px;
    }
    .pack-product-name {
        font-size: 0.62rem;
        font-weight: 500;
        line-height: 1.25;
        text-align: center;
        max-height: 2.5em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .pack-product-cat {
        font-size: 0.52rem;
        margin-top: 2px;
    }
    .pack-product-check {
        width: 16px;
        height: 16px;
        font-size: 9px;
        line-height: 16px;
        top: 4px;
        right: 4px;
    }

    /* Submit button — full width, sticky feel */
    .pack-submit-wrap {
        margin: 16px 0 8px;
        padding: 0;
    }
    .pack-submit-wrap .btn {
        font-size: 0.85rem;
        padding: 13px 20px;
        width: 100%;
        border-radius: 10px;
        letter-spacing: 1.5px;
    }

    /* ---- Pack Listing Cards ---- */
    .packs-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        gap: 12px;
        margin: 0;
    }
    .pack-card {
        max-width: 100%;
        border-radius: 10px;
    }
    .pack-card-image { height: 130px; }
    .pack-card-name { font-size: 0.82rem; margin-bottom: 3px; }
    .pack-card-desc { font-size: 0.65rem; margin-bottom: 6px; -webkit-line-clamp: 1; }
    .pack-card-info { padding: 10px; }
    .pack-card-meta { font-size: 0.65rem; margin-bottom: 6px; }
    .pack-card-pricing {
        margin-bottom: 8px;
        gap: 6px;
    }
    .pack-price-current { font-size: 0.95rem; }
    .pack-price-old { font-size: 0.7rem; opacity: 0.4; }
    .pack-badge-save {
        font-size: 0.65rem;
        padding: 2px 7px;
        top: 8px;
        right: 8px;
    }
    .pack-card-info .btn {
        font-size: 0.72rem;
        padding: 8px 10px;
        letter-spacing: 1px;
    }

    /* Homepage packs showcase */
    .packs-showcase {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        gap: 12px;
    }
}
