﻿/* =========================================================================
   SILVORA HOUSE — Premium light luxury design system
   Inspired by cinematic jewelry e-commerce (ESMA-like feel; unique Silvora brand)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    /* Luxury light palette */
    --lux-cream: #FCFBF8;
    --lux-soft: #F7F6F4;
    --lux-white: #FFFFFF;
    --lux-gold: #B08D57;
    --lux-gold-hover: #C89A56;
    --lux-ink: #232323;
    --lux-black: #121212;
    --lux-border: #E7E4DF;
    --lux-muted: #777777;

    --primary: #121212;
    --primary-light: #232323;
    --primary-dark: #121212;

    --accent: #B08D57;
    --accent-hover: #C89A56;
    --gold: #B08D57;
    --gold-hover: #C89A56;

    --background: var(--lux-cream);
    --surface: var(--lux-white);
    --text: var(--lux-ink);
    --text-light: var(--lux-muted);
    --border: var(--lux-border);

    --success: #3FAE62;
    --warning: #f5a623;
    --danger: #D64545;

    /* Legacy aliases → light surfaces (storefront) */
    --bg-dark-deep: var(--lux-soft);
    --bg-dark-main: var(--lux-cream);
    --bg-dark-card: var(--lux-white);
    --bg-dark-elevated: var(--lux-white);
    --bg-dark-sunken: var(--lux-soft);

    --color-gold: var(--lux-gold);
    --color-gold-hover: var(--lux-gold-hover);
    --color-gold-dark: #8a6d42;
    --color-gold-light: #e8d9bc;

    --color-silver: #c5c5c5;
    --color-silver-hover: #a8a8a8;
    --color-silver-dark: #6b6b6b;

    --text-white: var(--lux-ink);
    --text-muted: var(--lux-muted);
    --text-muted-dark: #5c5c5c;
    --text-on-dark: #ffffff;

    --border-glass: var(--lux-border);
    --border-glass-thick: #d9d5ce;
    --bg-glass: rgba(35, 35, 35, 0.04);

    --gradient-brand: linear-gradient(135deg, #FCFBF8 0%, #F7F6F4 50%, #FFFFFF 100%);
    --gradient-hero: linear-gradient(90deg, rgba(18, 18, 18, 0.72) 0%, rgba(18, 18, 18, 0.35) 55%, rgba(18, 18, 18, 0.15) 100%);
    --gradient-gold: linear-gradient(135deg, #e8d9bc 0%, #B08D57 55%, #8a6d42 100%);

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    --radius-card: 14px;
    --radius-btn: 12px;
    --shadow-soft: 0 8px 30px rgba(18, 18, 18, 0.06);
    --shadow-hover: 0 16px 40px rgba(18, 18, 18, 0.1);
    --container-max: 1320px;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --header-h: 72px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--lux-cream);
    color: var(--lux-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-tap-highlight-color: rgba(176, 141, 87, 0.18);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--lux-ink);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* Keyboard focus ring, visible without appearing on mouse or touch interaction */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Long unbroken strings (SKUs, order numbers, URLs) must not widen the viewport */
h1, h2, h3, h4, h5, h6, p, a, span, td, th, li, label {
    overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    letter-spacing: 1px;
}

/* 2. Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-thick);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    padding: 24px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(199, 168, 77, 0.35);
}

.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 12px 30px rgba(199, 168, 77, 0.15);
}

/* 3. Typography Presets */
.text-gold {
    color: var(--color-gold) !important;
}

.text-silver {
    color: var(--color-silver) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.heading-lg {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.heading-md {
    font-size: clamp(1.35rem, 3.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 4. Core Button Design System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-gold {
    background: var(--lux-gold);
    color: #fff;
    border: 1px solid var(--lux-gold);
}

.btn-gold:hover {
    background: var(--lux-gold-hover);
    box-shadow: 0 8px 24px rgba(176, 141, 87, 0.28);
    transform: translateY(-2px);
    color: #fff;
}

.btn-accent {
    background: var(--lux-ink);
    color: #fff;
    border: 1px solid var(--lux-ink);
}

.btn-accent:hover {
    background: var(--lux-black);
    border-color: var(--lux-black);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline-gold {
    background: transparent;
    color: var(--lux-ink);
    border: 1px solid var(--lux-border);
}

.btn-outline-gold:hover {
    border-color: var(--lux-gold);
    color: var(--lux-gold);
    background: rgba(176, 141, 87, 0.06);
    transform: translateY(-2px);
}

.btn-silver {
    background: linear-gradient(135deg, var(--color-silver) 0%, #b8b8b8 100%);
    color: var(--bg-dark-deep);
    border: 1px solid var(--color-silver);
}

.btn-silver:hover {
    background: linear-gradient(135deg, var(--color-silver-hover) 0%, #a6a6a6 100%);
    box-shadow: 0 0 15px rgba(229, 229, 229, 0.3);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--bg-dark-elevated);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-dark:hover {
    background: var(--bg-dark-card);
    border-color: var(--text-muted);
}

/* 5. Custom Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(199, 168, 77, 0.18);
    background: var(--bg-dark-elevated);
}

/* 6. Layout Master & Navigation (Site.Master) */
.announce-bar {
    background: var(--lux-black);
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 10px 16px;
}

.announce-bar a {
    color: var(--color-gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-store {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(252, 251, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-store.is-scrolled {
    background: rgba(252, 251, 248, 0.98);
    border-bottom-color: var(--lux-border);
    box-shadow: 0 4px 24px rgba(18, 18, 18, 0.04);
}

.header-store.is-transparent {
    background: transparent;
    backdrop-filter: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.header-store.is-transparent .logo-brand,
.header-store.is-transparent .nav-link,
.header-store.is-transparent .action-icon,
.header-store.is-transparent .account-menu-toggle {
    color: #fff;
}

.header-store.is-transparent .logo-brand span {
    color: var(--color-gold-light);
}

.header-store.is-transparent + .nav-drawer-shell,
body:has(.header-store.is-transparent) .announce-bar {
    /* announce sits above absolute header on home */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 20px;
    padding: 14px 24px;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--lux-ink);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.12em;
    flex-shrink: 0;
    min-width: 0;
    grid-column: 1;
    z-index: 2;
    text-transform: uppercase;
}

.logo-brand span {
    color: var(--color-gold);
}

.logo-mark {
    height: 46px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(199, 168, 77, 0.35));
    transition: var(--transition-bounce);
}

.logo-brand:hover .logo-mark {
    transform: scale(1.06) rotate(-2deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
}

.nav-menu-desktop {
    grid-column: 2;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* The drawer exists only below the mobile-nav breakpoint */
.nav-drawer-shell {
    display: none;
}

.nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    position: sticky;
    top: 0;
    background: var(--bg-dark-deep);
    z-index: 2;
}

.nav-drawer-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 8px;
}

.nav-drawer-close:hover {
    color: var(--color-gold);
}

/* Drawer lists always stack, since the drawer is mobile-only */
.nav-menu-drawer {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
}

.nav-menu-drawer li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-menu-drawer .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    font-size: 0.9rem;
    min-height: 48px;
}

.nav-menu-drawer .nav-link:active {
    background: rgba(199, 168, 77, 0.08);
}

.nav-menu-secondary {
    margin-top: 10px;
    border-top: 1px solid var(--border-glass);
}

.nav-menu-secondary .nav-link {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.3px;
}

.nav-link {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--lux-ink);
}

.nav-link:hover, .nav-link.active {
    color: var(--lux-gold);
}

.nav-auth-link {
    font-size: 0.85rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    grid-column: 3;
    z-index: 3;
}

/* Compact account menu — stops long names / Logout / Admin from crushing the logo */
.account-menu {
    position: relative;
    flex-shrink: 0;
}

.account-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 150px;
    min-height: 40px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--lux-border);
    border-radius: 10px;
    color: var(--lux-ink);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.account-menu-toggle:hover,
.account-menu.open .account-menu-toggle {
    border-color: var(--color-gold);
    background: rgba(199, 168, 77, 0.08);
}

.account-menu-toggle .account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    max-width: 90px;
}

.account-menu-toggle .fa-chevron-down {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.account-menu.open .account-menu-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 8px 0;
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: 14px;
    box-shadow: var(--shadow-hover);
    z-index: 1200;
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.account-menu.open .account-dropdown {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
}

.account-dropdown a,
.account-dropdown .account-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    text-decoration: none;
}

.account-dropdown a:hover,
.account-dropdown .account-dropdown-btn:hover {
    background: rgba(199, 168, 77, 0.08);
    color: var(--color-gold);
}

.account-dropdown .account-dropdown-danger {
    color: var(--danger);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.account-dropdown .account-dropdown-danger:hover {
    color: #ff6b6b;
}

.action-icon {
    font-size: 1.3rem;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-icon:hover {
    color: var(--color-gold);
}

/* Hamburger — hidden until the desktop nav no longer fits */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: 4px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.nav-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: '';
    position: absolute;
}

.nav-toggle-bars::before {
    transform: translateY(-6px);
}

.nav-toggle-bars::after {
    transform: translateY(6px);
}

.nav-toggle.active .nav-toggle-bars {
    background: transparent;
}

.nav-toggle.active .nav-toggle-bars::before {
    transform: rotate(45deg);
}

.nav-toggle.active .nav-toggle-bars::after {
    transform: rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-backdrop.visible {
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

.badge-cart {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-gold);
    color: var(--bg-dark-deep);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer layout */
.footer-store {
    background: var(--lux-soft);
    border-top: 1px solid var(--lux-border);
    padding: 72px 24px 28px;
    margin-top: 0;
}

.footer-newsletter {
    max-width: var(--container-max);
    margin: 0 auto 48px;
    padding: 36px 32px;
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-newsletter h3 {
    font-size: 1.75rem;
    margin-bottom: 6px;
}

.footer-newsletter p {
    color: var(--lux-muted);
    font-size: 0.92rem;
    max-width: 380px;
}

.footer-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 280px;
    justify-content: flex-end;
}

.footer-newsletter-form input[type="email"] {
    flex: 1 1 200px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--lux-border);
    border-radius: 12px;
    background: var(--lux-cream);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--lux-ink);
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 0.75rem;
    color: var(--lux-ink);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    color: var(--color-gold);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    border-color: var(--color-gold);
    background: rgba(199, 168, 77, 0.1);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted-dark);
    font-size: 0.85rem;
}

/* 7. Storefront Homepage (Default.aspx) */
.hero-slider {
    position: relative;
    height: clamp(420px, 62vh, 600px);
    background: var(--gradient-hero);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 8, 15, 0.9) 0%, rgba(11, 8, 15, 0.4) 100%);
}

.slide-content {
    position: relative;
    max-width: 800px;
    margin-left: 10%;
    padding: 0 24px;
    z-index: 10;
}

.slide-subtitle {
    color: var(--color-gold);
    font-size: clamp(0.8rem, 2.2vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.slide-title {
    font-size: clamp(1.9rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-text {
    color: var(--text-muted);
    font-size: clamp(0.92rem, 2.2vw, 1.1rem);
    margin-bottom: 30px;
}

.section-padding {
    padding: clamp(44px, 7vw, 80px) clamp(16px, 4vw, 24px);
}

.container-wide {
    max-width: 1300px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
}

.section-header h2 {
    font-size: clamp(1.45rem, 4.2vw, 2.2rem);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--color-gold) 100%);
}

/* Category circles — always a single horizontal row */
.categories-row {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

.category-circle-card {
    text-align: center;
    flex: 1 1 0;
    min-width: 70px;
    max-width: 120px;
    width: 0; /* equal share of the row; labels wrap inside */
}

.circle-img-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid var(--border-glass);
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-card);
}

.circle-img-wrap i {
    font-size: 1.3rem;
    color: var(--color-gold);
}

.category-circle-card:hover .circle-img-wrap {
    border-color: var(--color-gold);
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(199, 168, 77, 0.3);
}

.category-circle-card h3 {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-white);
    line-height: 1.2;
    letter-spacing: 0.2px;
    margin: 0;
    padding: 0 2px;
    word-break: break-word;
    hyphens: auto;
}

/* Products card grids */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.product-card:hover {
    border-color: rgba(199, 168, 77, 0.4);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.product-img-box {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-dark-sunken);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.08);
}

.badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.badge-featured {
    background: var(--color-gold);
    color: var(--bg-dark-deep);
}

.badge-discount {
    background: var(--danger);
    color: var(--text-white);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 15px;
}

.price-actual {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

.price-old {
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    text-decoration: line-through;
}

/* Split Segment CTA section */
.segment-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.segment-panel {
    position: relative;
    height: clamp(320px, 46vw, 450px);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(20px, 3.5vw, 40px);
    border: 1px solid var(--border-glass);
}

.segment-panel.silver {
    background: linear-gradient(rgba(0,0,0,0.1) 50%, rgba(11, 8, 15,0.95) 100%), url('/Assets/images/banners/silver-cta.jpg') center/cover no-repeat;
}

.segment-panel.art {
    background: linear-gradient(rgba(0,0,0,0.1) 50%, rgba(11, 8, 15,0.95) 100%), url('/Assets/images/banners/art-cta.jpg') center/cover no-repeat;
}

.segment-panel-content {
    position: relative;
    z-index: 10;
}

.segment-panel-content h3 {
    font-size: clamp(1.3rem, 3.4vw, 2rem);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.segment-panel-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Influencer Gallery Showcase */
.influencer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.influencer-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 0.8;
}

.influencer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.influencer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 8, 15, 0.95) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.influencer-card:hover img {
    transform: scale(1.05);
}

.influencer-card:hover .influencer-overlay {
    opacity: 1;
}

.influencer-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.influencer-insta {
    color: var(--color-gold);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 8. Products List / Details Layout (Products.aspx & ProductDetails.aspx) */
.layout-shop {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shop-sidebar {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
    height: fit-content;
}

/* Mobile-only trigger for the filter panel */
.filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    min-height: 48px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.filter-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.filter-toggle-chevron {
    transition: transform 0.25s ease;
    font-size: 0.8rem;
}

.filter-toggle.active .filter-toggle-chevron {
    transform: rotate(180deg);
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-title {
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.filter-checkbox {
    accent-color: var(--color-gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-select {
    padding: 8px 12px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-family: var(--font-body);
    border-radius: 4px;
}

/* Product details row */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 50px;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main {
    aspect-ratio: 1;
    background: var(--bg-dark-sunken);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumbs {
    display: flex;
    gap: 15px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-dark-sunken);
}

.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--color-gold);
}

.detail-meta h1 {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    margin-bottom: 10px;
}

.detail-sku {
    color: var(--text-muted-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.detail-prices {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-price-actual {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--color-gold);
}

.detail-purity-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-badge {
    background: rgba(199, 168, 77, 0.1);
    border: 1px solid rgba(199, 168, 77, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold-light);
}

.detail-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.detail-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.02);
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quantity-btn:hover {
    background: rgba(255,255,255,0.06);
}

.quantity-input {
    width: 50px;
    height: 45px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

/* Reviews styles */
.reviews-section {
    margin-top: 60px;
}

.review-item {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-stars {
    color: var(--color-gold);
}

.review-author {
    font-weight: 600;
}

.review-text {
    color: var(--text-muted);
}

/* 9. Shopping Cart Layout (Cart.aspx) */
.cart-table-panel {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Panels holding a .data-table must allow horizontal scrolling */
.cart-table-panel:has(.data-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-table,
.data-table {
    width: 100%;
    border-collapse: collapse;
}

/* Admin grids keep their tabular shape and scroll sideways on small screens */
.data-table {
    min-width: 900px;
}

.data-table .cart-td,
.data-table .cart-th {
    white-space: nowrap;
}

.cart-th {
    background: var(--bg-dark-deep);
    color: var(--color-gold);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.cart-td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: var(--bg-dark-sunken);
    object-fit: cover;
}

.cart-item-title {
    font-weight: 500;
}

.cart-item-sku {
    color: var(--text-muted-dark);
    font-size: 0.75rem;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-input {
    width: 64px;
    padding: 6px;
    text-align: center;
}

.cart-qty-update {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.cart-td-total {
    font-weight: 600;
}

.cart-remove-btn {
    color: var(--danger);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-remove-btn:hover {
    text-decoration: underline;
}

.cart-summary-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* 10. Checkout Two-Column Layout (Checkout.aspx) */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 50px;
}

.checkout-summary-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 30px;
    height: fit-content;
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

/* 11. Admin Panel Master Layout (Admin.Master) */
.layout-admin {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-dark-deep);
    border-right: 1px solid var(--border-glass);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.admin-logo span {
    color: var(--color-gold);
}

.admin-logo .logo-mark {
    height: 64px;
    margin: 0 auto 10px;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-menu-link:hover, .admin-menu-link.active {
    background: rgba(199, 168, 77, 0.08);
    color: var(--color-gold);
}

.admin-main {
    padding: 40px;
    background-color: var(--bg-dark-main);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
}

.admin-date-chip {
    font-size: 0.9rem;
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--bg-dark-card);
    white-space: nowrap;
}

/* Mobile-only admin top bar */
.admin-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(11, 8, 15, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.admin-topbar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-right: auto;
}

.admin-topbar-title span {
    color: var(--color-gold);
}

/* Admin Dashboard widgets */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.admin-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-panel {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
}

.dashboard-panel h3 {
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.segment-bar-row {
    margin-bottom: 20px;
}

.segment-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.segment-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-dark-deep);
    border-radius: 4px;
    overflow: hidden;
}

.segment-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.segment-bar-fill.silver {
    background: var(--color-silver);
}

.segment-bar-fill.art {
    background: linear-gradient(90deg, var(--accent) 0%, var(--color-gold) 100%);
}

/* Warnings */
.warning-alert {
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.3);
    color: var(--danger);
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================================================
   12. RESPONSIVE LAYER
   Breakpoints: 1200 (small desktop) / 992 (tablet + mobile nav) /
                768 (large phone) / 576 (phone) / 380 (compact phone)
   ========================================================================= */

/* Reusable responsive form rows, so pages stop hardcoding fixed column counts */
.form-row-2,
.form-row-3 {
    display: grid;
    gap: 20px;
}

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

.form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Wide data tables scroll horizontally instead of stretching the page */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
    min-width: 720px;
}

@media (max-width: 1400px) {
    /* Switch to hamburger early — logged-in account controls need room */
    .nav-toggle {
        display: inline-flex;
        grid-column: 1;
    }

    .nav-container {
        display: flex;
        justify-content: flex-start;
        padding: 10px 16px;
        gap: 10px;
    }

    .logo-brand {
        font-size: 1.15rem;
        gap: 8px;
        margin-right: auto;
        grid-column: auto;
    }

    .logo-mark {
        height: 40px;
    }

    .nav-menu-desktop {
        display: none;
    }

    .nav-actions {
        grid-column: auto;
        margin-left: auto;
    }

    /* Viewport-sized shell clips the closed drawer so it cannot widen the page */
    .nav-drawer-shell {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1500;
        overflow: hidden;
        pointer-events: none;
        visibility: hidden;
    }

    .nav-drawer-shell.open {
        pointer-events: auto;
        visibility: visible;
    }

    .nav-drawer {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 340px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-dark-deep);
        border-left: 1px solid var(--border-glass);
        box-shadow: -18px 0 46px rgba(0, 0, 0, 0.55);
        padding: 0 0 calc(24px + env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .nav-drawer-shell.open .nav-drawer {
        transform: translateX(0);
    }

    /* Header keeps only the essentials; the rest lives in the drawer */
    .action-icon-desktop {
        display: none;
    }

    .nav-actions {
        gap: 10px;
    }

    .account-menu-toggle .account-name {
        display: none;
    }

    .account-menu-toggle {
        max-width: none;
        padding: 6px 10px;
    }

    .nav-label {
        display: none;
    }

    .action-icon {
        width: 44px;
        height: 44px;
    }

    .cart-summary-grid {
        grid-template-columns: 1fr minmax(0, 340px);
        gap: 24px;
    }
    .checkout-grid {
        grid-template-columns: 1fr minmax(0, 380px);
        gap: 30px;
    }
    .layout-shop {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 26px;
    }
    .admin-main {
        padding: 30px 24px;
    }
}

/* ---------- 992px: single-column shells (nav already hamburger from 1200px) ---------- */
@media (max-width: 992px) {
    /* Layout shells collapse */
    .layout-shop,
    .layout-admin,
    .checkout-grid,
    .cart-summary-grid,
    .admin-grid-two {
        grid-template-columns: 1fr;
    }

    .layout-shop {
        gap: 24px;
    }

    .checkout-grid,
    .cart-summary-grid {
        gap: 24px;
    }

    /* Filters become a collapsible block above the results */
    .filter-toggle {
        display: flex;
    }

    .shop-sidebar {
        padding: 18px;
        display: none;
    }

    .shop-sidebar.open {
        display: block;
    }

    .filter-section {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .detail-grid {
        gap: 30px;
    }

    .slide-content {
        margin-left: 0;
        padding: 0 20px;
    }

    /* A horizontal scrim leaves headline text over the bright side of the photo */
    .slide-overlay {
        background: linear-gradient(to top, rgba(11, 8, 15, 0.96) 12%, rgba(11, 8, 15, 0.72) 55%, rgba(11, 8, 15, 0.5) 100%);
    }

    .admin-main {
        padding: 24px 16px;
    }

    .admin-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .admin-topbar {
        display: flex;
    }

    /* The admin sidebar slides in rather than disappearing entirely */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(84vw, 300px);
        z-index: 1500;
        padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
        border-right: 1px solid var(--border-glass);
        box-shadow: 18px 0 46px rgba(0, 0, 0, 0.55);
        overflow-y: auto;
        overscroll-behavior: contain;
        /* Parked off-canvas to the left, which cannot create a scrollable overflow */
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-logo {
        margin-bottom: 24px;
    }

    .admin-menu-link {
        min-height: 48px;
    }
}

/* ---------- 768px: phone layout ---------- */
@media (max-width: 768px) {
    /* Two-up product grid is the e-commerce norm on phones */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 0.9rem;
        height: 40px;
        margin-bottom: 6px;
    }

    .product-type {
        font-size: 0.65rem;
    }

    .price-actual {
        font-size: 1rem;
    }

    .price-old {
        font-size: 0.8rem;
    }

    .product-prices {
        gap: 6px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .badge-tag {
        top: 8px;
        left: 8px;
        font-size: 0.6rem;
        padding: 3px 7px;
    }

    /* Category circles: keep one row; swipe only if needed */
    .categories-row {
        justify-content: flex-start;
        gap: 10px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .category-circle-card {
        flex: 0 0 auto;
        width: 76px;
        min-width: 76px;
        max-width: 76px;
    }

    .circle-img-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 6px;
    }

    .circle-img-wrap i {
        font-size: 1.1rem;
    }

    .category-circle-card h3 {
        font-size: 0.58rem;
    }

    /* Influencer captions can't rely on hover on touch devices */
    .influencer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .influencer-overlay {
        opacity: 1;
        padding: 14px;
        background: linear-gradient(to top, rgba(11, 8, 15, 0.95) 0%, rgba(0, 0, 0, 0) 70%);
    }

    .influencer-name {
        font-size: 0.95rem;
    }

    .influencer-insta {
        font-size: 0.78rem;
    }

    /* Product detail */
    .detail-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .detail-actions .btn {
        flex: 1 1 100%;
    }

    .quantity-selector {
        flex: 0 0 auto;
    }

    .detail-purity-specs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gallery-thumbs {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
        flex: 0 0 auto;
    }

    /* Shop toolbar */
    .shop-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .sort-select {
        width: 100%;
        padding: 12px;
    }

    /* Cart table reflows into stacked cards */
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        padding: 16px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .cart-table tr:last-child {
        border-bottom: none;
    }

    /* td.cart-td needed so this wins over the display:block group above */
    .cart-table td.cart-td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 7px 0;
        border-bottom: none;
    }

    /* Header text comes from the column label so rows stay readable */
    .cart-table td.cart-td[data-label]::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: var(--text-muted-dark);
        flex-shrink: 0;
    }

    .cart-table td.cart-td-product {
        display: block;
        width: 100%;
        padding: 0 0 12px;
    }

    .cart-table td.cart-td-total {
        margin-top: 4px;
        padding-top: 11px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 1.05rem;
        color: var(--color-gold);
    }

    .cart-item-img {
        width: 68px;
        height: 68px;
        flex-shrink: 0;
    }

    .cart-qty-input {
        width: 72px;
    }

    /* Footer */
    .footer-store {
        padding: 40px 18px 18px;
        margin-top: 40px;
    }

    /* Two columns keeps the mobile footer from becoming an endless list */
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
        margin-bottom: 22px;
    }

    /* The brand blurb spans the full width above the link columns */
    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    /* Padding rather than margin, so the whole row is tappable */
    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.87rem;
        display: block;
        padding: 9px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
        font-size: 0.78rem;
    }

    /* Panels and cards get tighter padding */
    .glass-panel {
        padding: 18px;
    }

    .checkout-summary-card,
    .dashboard-panel,
    .metric-card {
        padding: 18px;
    }

    .review-item {
        padding: 16px;
    }

    .review-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Forms: 16px minimum stops iOS Safari zooming on focus */
    .form-input,
    .sort-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .btn {
        padding: 12px 20px;
        min-height: 44px;
    }

    .metric-value {
        font-size: 1.45rem;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ---------- 576px: small phones ---------- */
@media (max-width: 576px) {
    .logo-brand {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .logo-mark {
        height: 34px;
    }

    .product-grid {
        gap: 10px;
    }

    .segment-panel {
        padding: 18px;
    }

    .detail-gallery {
        gap: 14px;
    }

    .cart-summary-grid,
    .checkout-grid {
        gap: 18px;
    }

}

/* ---------- 380px: compact phones ---------- */
@media (max-width: 380px) {
    .nav-actions {
        gap: 10px;
    }

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

    .logo-brand span {
        display: none;
    }

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

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

/* Hover effects only where a real pointer exists, so taps don't stick */
@media (hover: none) {
    /* Comfortable tap areas on touch devices at any width, including tablets */
    .footer-links a {
        display: block;
        padding: 9px 0;
    }
    .footer-links li {
        margin-bottom: 0;
    }
    .action-icon {
        min-width: 44px;
        min-height: 44px;
    }
    .cart-remove-btn,
    .filter-item label {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
    .product-card:hover .product-img-box img {
        transform: none;
    }
    .glass-card:hover {
        transform: none;
    }
    .category-circle-card:hover .circle-img-wrap {
        transform: none;
    }
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* Landscape phones: the hero should not eat the whole screen */
@media (max-height: 520px) and (orientation: landscape) {
    .hero-slider {
        height: 400px;
    }
}



/* WhatsApp floating chat */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    z-index: 1200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transition: var(--transition-smooth);
}
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

/* Sticky Add to Cart / Buy Now (mobile product page) */
.sticky-buy-bar {
    display: none;
}
@media (max-width: 768px) {
    .sticky-buy-bar {
        display: flex;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        background: rgba(11, 8, 15, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-glass);
    }

    .sticky-buy-bar .btn {
        flex: 1;
    }

    /* Only reserve space on pages that actually render the bar */
    body:has(.sticky-buy-bar) {
        padding-bottom: 80px;
    }

    body:has(.sticky-buy-bar) .whatsapp-float {
        bottom: calc(86px + env(safe-area-inset-bottom));
    }
}


/* =========================================================================
   LIGHT LUXURY OVERRIDES — hero on-dark text, cards, craft, reveal
   ========================================================================= */

.badge-cart { color: #fff; }

.hero-slider {
    position: relative;
    height: clamp(520px, 78vh, 720px);
    background: #1a1a1a;
    overflow: hidden;
}

.slide-title { color: #fff; font-family: var(--font-heading); font-weight: 500; letter-spacing: 0.04em; }
.slide-text { color: rgba(255,255,255,0.82); max-width: 34em; }
.slide-subtitle { color: var(--lux-gold); letter-spacing: 0.2em; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; }

.home-hero-wrap { position: relative; }
.home-hero-wrap .header-spacer { height: 0; }

.product-card {
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition-smooth);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #ddd8d0;
}
.product-img-box { background: var(--lux-soft); aspect-ratio: 1 / 1.05; overflow: hidden; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-img-box img { transform: scale(1.05); }
.product-info { padding: 18px 16px 20px; }
.product-type { color: var(--lux-muted); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.product-title { font-size: 1.15rem; font-weight: 500; margin-bottom: 10px; }
.product-title a:hover { color: var(--lux-gold); }
.price-actual { font-weight: 600; color: var(--lux-ink); }
.price-old { color: var(--lux-muted); text-decoration: line-through; font-size: 0.9em; margin-left: 8px; }

.badge-tag {
    background: var(--lux-white);
    color: var(--lux-ink);
    border: 1px solid var(--lux-border);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 10px;
}
.badge-featured { background: var(--lux-ink); color: #fff; border-color: var(--lux-ink); }

.section-header h2 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 500;
    letter-spacing: 0.03em;
}
.section-header h2::after { background: var(--lux-gold); width: 48px; height: 1px; }
.section-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lux-gold);
    margin-bottom: 10px;
}

.category-circle-card h3 { color: var(--lux-ink); }
.circle-img-wrap {
    background: var(--lux-white);
    border-color: var(--lux-border);
}
.circle-img-wrap i { color: var(--lux-gold); }

.segment-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.segment-panel {
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--lux-border);
}
.segment-panel.silver { background-image: linear-gradient(180deg, rgba(18,18,18,0.15), rgba(18,18,18,0.72)), linear-gradient(135deg, #d8d4ce, #a8a49e); }
.segment-panel.art { background-image: linear-gradient(180deg, rgba(18,18,18,0.2), rgba(18,18,18,0.75)), linear-gradient(135deg, #c4b59a, #8a7355); }
.segment-panel-content { padding: 36px 32px; color: #fff; position: relative; z-index: 1; }
.segment-panel-content h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.segment-panel-content p { color: rgba(255,255,255,0.82); margin-bottom: 18px; max-width: 28em; }
.segment-panel-content .text-gold { color: var(--color-gold-light) !important; }

.craft-strip {
    background: var(--lux-soft);
    border-top: 1px solid var(--lux-border);
    border-bottom: 1px solid var(--lux-border);
}
.craft-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    text-align: center;
}
.craft-item i {
    font-size: 1.5rem;
    color: var(--lux-gold);
    margin-bottom: 14px;
}
.craft-item h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.craft-item p { color: var(--lux-muted); font-size: 0.88rem; line-height: 1.5; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.testimonial-card {
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: 16px;
    padding: 28px 24px;
}
.testimonial-card .stars { color: var(--lux-gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card blockquote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.45;
    margin-bottom: 18px;
    color: var(--lux-ink);
}
.testimonial-card cite {
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lux-muted);
}

.section-band { background: var(--lux-soft); }
.section-cta-row { text-align: center; margin-top: 28px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.nav-drawer {
    background: var(--lux-cream) !important;
    border-left: 1px solid var(--lux-border) !important;
}
.nav-drawer-head { background: var(--lux-cream); color: var(--lux-gold); }
.nav-drawer .nav-link { color: var(--lux-ink); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { background: var(--lux-ink); }
.header-store.is-transparent .nav-toggle-bars,
.header-store.is-transparent .nav-toggle-bars::before,
.header-store.is-transparent .nav-toggle-bars::after { background: #fff; }

.footer-bottom { border-top-color: var(--lux-border); color: var(--lux-muted); }
.footer-links a:hover { padding-left: 0; color: var(--lux-ink); }

.influencer-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--lux-border); }
.sticky-buy-bar { background: rgba(252,251,248,0.96) !important; border-top: 1px solid var(--lux-border) !important; }

@media (max-width: 992px) {
    .segment-showcase { grid-template-columns: 1fr; }
    .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .craft-grid { grid-template-columns: 1fr; }
    .footer-newsletter { padding: 24px 18px; }
}

/* Shop + PDP light luxury polish */
.layout-shop { gap: 36px; }
.shop-sidebar {
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: 16px;
    padding: 22px;
}
.filter-title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lux-ink);
    margin-bottom: 12px;
}
.form-input, .sort-select, select.form-input, textarea.form-input {
    background: var(--lux-cream) !important;
    border: 1px solid var(--lux-border) !important;
    color: var(--lux-ink) !important;
    border-radius: 12px !important;
}
.shop-header h2 { font-weight: 500; }
.glass-panel {
    background: var(--lux-white) !important;
    border: 1px solid var(--lux-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft);
}
.detail-grid { gap: 40px; }
.gallery-main {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--lux-border);
    background: var(--lux-soft);
    aspect-ratio: 1;
}
.gallery-thumb {
    border-radius: 12px;
    border: 1px solid var(--lux-border);
    overflow: hidden;
}
.gallery-thumb.active { border-color: var(--lux-gold); }
.detail-meta h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 500;
    margin: 8px 0 12px;
}
.detail-price-actual { font-size: 1.6rem; font-weight: 600; color: var(--lux-ink); }
.detail-desc { color: var(--lux-muted); }
.spec-badge {
    background: var(--lux-soft);
    border: 1px solid var(--lux-border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
}
.quantity-selector {
    border: 1px solid var(--lux-border);
    border-radius: 12px;
    background: var(--lux-white);
}
.quantity-btn { color: var(--lux-ink); }
.cart-table, .data-table {
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: 16px;
}
.cart-summary, .checkout-summary {
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: 16px;
    padding: 24px;
}
.profile-sidebar, .account-card {
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: 16px;
}
.filter-toggle {
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    color: var(--lux-ink);
    border-radius: 12px;
}
.cms-page-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.75;
    color: var(--lux-ink);
}
.cms-page-body h1 { margin-bottom: 1rem; font-weight: 500; }

/* ===== Plan completion polish ===== */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--lux-ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.home-sections { display: flex; flex-direction: column; }
.home-sec { width: 100%; }

.has-mega { position: relative; }
.mega-chevron { font-size: 0.55rem; margin-left: 4px; opacity: 0.65; }
.mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 420px;
    background: var(--lux-white);
    border: 1px solid var(--lux-border);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    padding: 22px 24px;
    z-index: 1300;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel { display: grid; }
.mega-col h4 {
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--lux-muted);
}
.mega-col a {
    display: block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--lux-ink);
    text-transform: none;
    letter-spacing: 0;
}
.mega-col a:hover { color: var(--lux-gold); }

.header-store.is-transparent + .nav-drawer-shell { /* no-op; drawer outside header */ }
body.page-home .announce-bar { position: relative; z-index: 1001; }

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.slide-content { z-index: 2; }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.78rem;
    color: var(--lux-muted);
    margin-bottom: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.breadcrumbs a:hover { color: var(--lux-gold); }

.product-img-box { position: relative; }
.product-wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--lux-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lux-ink);
    opacity: 0;
    transition: var(--transition-smooth);
}
.product-card:hover .product-wish-btn { opacity: 1; }
.badge-stock-out { background: var(--danger); color: #fff; border: none; top: auto; bottom: 12px; left: 12px; }
.badge-stock-low { background: var(--warning); color: #111; border: none; top: auto; bottom: 12px; left: 12px; }

.gallery-zoom-wrap { cursor: zoom-in; }
.gallery-zoom-wrap.is-zoomed {
    cursor: zoom-out;
    overflow: hidden;
}
.gallery-zoom-wrap.is-zoomed img {
    transform: scale(1.6);
    transform-origin: center center;
}

.pdp-accordions { margin: 18px 0 24px; border-top: 1px solid var(--lux-border); }
.pdp-acc { border-bottom: 1px solid var(--lux-border); }
.pdp-acc summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc-body { padding: 0 0 18px; color: var(--lux-muted); font-size: 0.95rem; }

.checkout-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.checkout-progress .step {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lux-muted);
}
.checkout-progress .step.current { color: var(--lux-ink); }
.checkout-progress .step.done { color: var(--lux-gold); }
.checkout-progress .step-line {
    width: 40px;
    height: 1px;
    background: var(--lux-border);
}

.promo-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18,18,18,0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.promo-popup {
    background: var(--lux-white);
    border-radius: 18px;
    border: 1px solid var(--lux-border);
    max-width: 420px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-hover);
}
.promo-popup h3 { font-size: 1.6rem; margin-bottom: 10px; }
.promo-popup p { color: var(--lux-muted); margin-bottom: 20px; }
.promo-popup-close {
    position: absolute;
    /* placed via relative parent */
}
.promo-popup { position: relative; }
.promo-popup .popup-x {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--lux-muted);
}

@media (max-width: 1400px) {
    .mega-panel { display: none !important; }
}
