/* ════════════════════════════════════════════════════════════
   MAIN.CSS — Art Deco E-Commerce Theme
   ════════════════════════════════════════════════════════════

   INTERACTION MODEL (updated):
     All dropdown menus are CLICK/TAP to open, not hover.
     Megamenu chevron is a separate <button> from the category link.
     Escape key closes any open dropdown.  Full keyboard-tab support.

   HEADER LAYOUT:
     Desktop (>1024px) : 1 row — logo | cats | search | cart | acct
     Tablet  (769–1024): 2 rows — logo+right / cats centered
     Mobile  (≤768px)  : logo + hamburger, collapsible menu
   ════════════════════════════════════════════════════════════ */


/* ─── Custom Properties ─────────────────────────────────── */
:root {
    --color-bg:         #1a1a2e;
    --color-bg-alt:     #16213e;
    --color-surface:    #0f3460;
    --color-gold:       #c9a84c;
    --color-gold-light: #e0c97f;
    --color-cream:      #f5f0e1;
    --color-white:      #ffffff;
    --color-text:       #f5f0e1;
    --color-text-muted: #a89f91;
    --color-accent:     #e94560;

    --color-bar-bg:     #16213e;
    --color-bar-text:   #e0c97f;
    --color-input-bg:   #16213e;
    
    --color-success:       #00b894;
    --color-success-dark:  #00b894;
    --color-info-bg:       #f0f7ff;
    --color-info-border:   #cce0ff;
    --color-info-text:     #2563eb;
    --color-error-bg:      #fff3f3;
    --color-error-border:  #e74c3c;
    --color-error-text:    #c0392b;
    --color-warning-bg:    #fff8e1;
    --color-warning-border:#f5d77a;
    --color-warning-accent:#f5a623;
    --color-warning-text:  #6b5012;
    --color-warning-strong:#8a5a00;

    --gold-border-faint:   rgba(201, 168, 76, 0.28);
    --gold-border-light:   rgba(201, 168, 76, 0.15);
    

    --font-display:     'Poiret One', cursive;
    --font-body:        'Raleway', sans-serif;

    --header-height:    70px;
    --max-width:        1280px;
    --gap:              20px;
    --radius:           2px;
    --focus-ring:       2px solid var(--color-gold);
}

/* ══════════════════════════════════════════════════════════════
           Light Mode Settings
   ══════════════════════════════════════════════════════════════ */

[data-theme="light"] {
    --color-bg:            #e8e9ed;
    --color-bg-alt:        #dfe0e5;
    --color-surface:       #f5f5f8;
    --color-gold:          #8b6914;
    --color-gold-light:    #6f5410;
    --color-cream:         #1a1a2e;
    --color-white:         #1a1a2e;
    --color-text:          #1a1a2e;
    --color-text-muted:    #5a5a6e;
    --color-accent:        #c93550;
    
    /* Bar elements stay blue */
    --color-bar-bg:        #0f3460;
    --color-bar-text:      #e0c97f;
    
    /* Inputs get light background */
    --color-input-bg:      #ffffff;
    
    /* Semantic colors for light mode */
    --color-success:       #2e7d32;
    --color-success-dark:  #1b5e20;
    --color-success-bg:    #e8f5e9;
    --color-success-border:#81c784;
    --color-success-text:  #1b5e20;
    
    --color-info-bg:       #e3f2fd;
    --color-info-border:   #90caf9;
    --color-info-text:     #1565c0;
    
    --color-error-bg:      #ffebee;
    --color-error-border:  #ef9a9a;
    --color-error-text:    #c62828;
    
    --color-warning-bg:    #fff8e1;
    --color-warning-border:#ffe082;
    --color-warning-accent:#f9a825;
    --color-warning-text:  #5d4037;
    --color-warning-strong:#4e342e;
    
    /* Adjusted rgba values */
    --gold-border-faint:   rgba(139, 105, 20, 0.3);
    --gold-border-light:   rgba(139, 105, 20, 0.2);
    --gold-bg-subtle:      rgba(139, 105, 20, 0.1);
    --gold-bg-hover:       rgba(139, 105, 20, 0.15);
    --accent-bg-subtle:    rgba(201, 53, 80, 0.1);
    --accent-border-light: rgba(201, 53, 80, 0.25);
}

/* Bold text in light mode for Raleway readability */
[data-theme="light"] body { font-weight: 600; }
[data-theme="light"] .product-card-info h3,
[data-theme="light"] .feature-card-label span,
[data-theme="light"] .cart-item-details h3,
[data-theme="light"] .checkout-item-name,
[data-theme="light"] .mini-cart-item-name,
[data-theme="light"] .order-item-info h4,
[data-theme="light"] .nav-links a { font-weight: 600; }

/* Darken gold decorative images */
[data-theme="light"] .deco-border,
[data-theme="light"] .deco-section-divider {
    filter: brightness(0.6) saturate(1.3);
}

/* Hero overlay - fade to light bg, keep text over images readable */
[data-theme="light"] .hero-banner-overlay {
    background: linear-gradient(to top, rgba(26, 26, 46, 0.85) 0%, transparent 100%);
}
[data-theme="light"] .hero-banner-overlay h1 { color: #c9a84c; }
[data-theme="light"] .hero-banner-overlay p { color: #f5f0e1; }

/* Feature card labels over images stay gold */
[data-theme="light"] .feature-card-label {
    background: linear-gradient(to top, rgba(26, 26, 46, 0.88) 0%, transparent 100%);
}
[data-theme="light"] .feature-card-label span { color: #c9a84c; }

/* Footer text on blue background */
[data-theme="light"] .footer-section,
[data-theme="light"] .footer-copy {
    color: #a89f91;
}

[data-theme="light"] .footer-section a {
    color: #e0c97f;
}

/* Wishlist button hover - lighter in light mode */
[data-theme="light"] .wishlist-toggle:hover,
[data-theme="light"] .wishlist-toggle:focus-visible {
    color: #c9a84c;
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .pd-wishlist-btn:hover,
[data-theme="light"] .pd-wishlist-btn:focus-visible {
    color: #c9a84c;
    border-color: #c9a84c;
    background: rgba(255, 255, 255, 0.85);
}

/* Category pill hover - lighter in light mode */
[data-theme="light"] .pd-cat-link:hover {
    border-color: #a89f91;
    background: #a89f91;
    color: #fff;
}

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--color-cream);
    font-size: 0.95rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Mobile nav link rows — hidden on desktop, shown on mobile */
.mobile-nav-link {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--color-cream);
    border: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 0;
    background: none;
    text-decoration: none;
    font-family: var(--font-body);
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    color: var(--color-gold);
}

.mobile-nav-link .nav-icon-label {
    display: inline;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.mobile-nav-link .icon-sun  { display: inline; }
.mobile-nav-link .icon-moon { display: none; }
[data-theme="light"] .mobile-nav-link .icon-sun  { display: none; }
[data-theme="light"] .mobile-nav-link .icon-moon { display: inline; }

/* ─── End Light Mode ─────────────────────────────────────────────── */



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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-gold);
    text-decoration: none;
}

a:hover {
    color: var(--color-gold-light);
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
}

.page-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-md);
}

.content-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px 50px;
}

/* ════════════════════════════════════════════
   TEXT LOGO
   ════════════════════════════════════════════ */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
  height: var(--header-height);
  padding: 8px 0;
}

.logo-icon {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.logo-main {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(135deg,
    #a07830 0%, #e0c97f 32%, #c9a84c 54%, #f0dfa0 74%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right:10px;
}

[data-theme="light"] .logo-main {
  background: linear-gradient(135deg,
    #7a5510 0%, #b8870a 32%, #8b6914 54%, #c9a020 74%, #8b6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deco-border {
  width: 100%;
  height: 20px;
  line-height: 0;
  overflow: hidden;
}

.deco-border svg {
  display: block;
  width: 100%;
  height: 20px;
}


/* ═══════════════════════════════════════════════════════════
   A11Y: FOCUS, SKIP LINK, SCREEN-READER UTILITY
   ═══════════════════════════════════════════════════════════ */

/* Visible focus ring on keyboard navigation only */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

/* Suppress outline for mouse/touch clicks */
:focus:not(:focus-visible) {
    outline: none;
}

/* Skip-to-content link — hidden until focused */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    white-space: nowrap;
}

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

/* Screen-reader only — visually hidden, still announced */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }

.section-heading {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.ornament {
    display: flex;
    align-items: center;
    margin: 10px auto 16px;
    max-width: 200px;
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to var(--dir, right),
        var(--color-gold),
        transparent
    );
}

.ornament::before { --dir: right; margin-right: 10px; }
.ornament::after  { --dir: left;  margin-left: 10px;  }

.ornament span {
    font-size: 5px;
    color: var(--color-gold);
    line-height: 1;
}

.desc {
    text-align: center;
    color: var(--text-gold, #c9a84c);
    max-width: 600px;
    margin: -8px auto 32px;
    line-height: 1.6;
    margin-top: 10px;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
    background-color: var(--color-bg);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 0;
}


/* ─── Logo ──────────────────────────────────────────────── */
.logo {
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.logo a {
    display: flex;
    height: 100%;
}

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


/* ─── Hamburger (mobile only) ───────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    flex-shrink: 0;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gold);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ─── Category Nav Links ────────────────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-cream);
    white-space: nowrap;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: var(--color-gold);
}


/* ─── Right Cluster ─────────────────────────────────────── */
.nav-right {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
}

.search-container {
    flex: 1;
    min-width: 100px;
}

.search-container form {
    display: flex;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius);
    overflow: hidden;
    height: 34px;
}

.search-container input {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    background: transparent;
    border: none;
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.82rem;
}

.search-container input::placeholder {
    color: var(--color-text-muted);
}

.search-container button {
    padding: 0 10px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-size: 0.8rem;
    line-height: 1;
}

.search-container button:hover,
.search-container button:focus-visible {
    background: var(--color-gold-light);
}


/* ─── Icon buttons (cart, account) ──────────────────────── */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--color-cream);
    font-size: 0.95rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.nav-icon-btn:hover,
.nav-icon-btn:focus-visible {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* A11Y: text labels for icon buttons — hidden on desktop, shown mobile */
.nav-icon-label {
    display: none;
}


/* ─── Account Dropdown ──────────────────────────────────── */

.dropdown {
    position: relative;
    flex-shrink: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 170px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-gold);
    z-index: 1000;
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--color-cream);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background: rgba(201, 168, 76, 0.1);
    color: var(--color-gold);
}


/* ─── Deco Border Strip ─────────────────────────────────── */
.deco-border {
    width: 100%;
    height: 16px;
    background: url('/static/images/deco-border.png') repeat-x center;
    background-size: auto 16px;
}


/* ════════════════════════════════════════════════════════════
   QUOTE BAR
   ════════════════════════════════════════════════════════════ */
.quote-bar {
    background: var(--color-bar-bg);
    border-bottom: 1px solid var(--gold-bg-subtle);
    padding: 10px 20px;
    font-weight: 400;
}

.quote-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-bar-text);
    letter-spacing: 0.05em;
    line-height: 1.4;
}


/* ════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ════════════════════════════════════════════════════════════ */
#flash-messages {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

#flash-messages ul {
    padding: 0;
}

#flash-messages li {
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-cream);
    padding: 10px 20px;
    margin: 8px 0;
    font-size: 0.88rem;
    border-radius: var(--radius);
}


/* ════════════════════════════════════════════════════════════
   HERO BANNER
   ════════════════════════════════════════════════════════════ */
.hero-banner {
    position: relative;
    width: 100%;
    max-height: 360px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.hero-banner-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.hero-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 40px;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.85) 0%, transparent 100%);
    text-align: center;
}

.hero-banner-overlay h1 {
    font-size: 2.4rem;
    margin-bottom: 4px;
}

.hero-banner-overlay p {
    font-size: 1rem;
    color: var(--color-cream);
    letter-spacing: 0.04em;
    font-weight: 400;
}


/* ════════════════════════════════════════════════════════════
   SECTION DIVIDER
   ════════════════════════════════════════════════════════════ */
.deco-section-divider {
    width: 100%;
    height: 24px;
    margin: 24px 0;
    /* background: url('/static/images/deco-divider.png') repeat-x center; */
    background-size: auto 24px;
}


/* ════════════════════════════════════════════════════════════
   FEATURED LINKS — 3×2 grid
   ════════════════════════════════════════════════════════════ */
.featured-links {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 10px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.feature-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    background: var(--color-surface);
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.88) 0%, transparent 100%);
}

.feature-card-label span {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.feature-card:hover,
.feature-card:focus-visible {
    border-color: var(--color-gold);
}

.feature-card:hover .feature-card-label span,
.feature-card:focus-visible .feature-card-label span {
    color: var(--color-gold-light);
}


/* ════════════════════════════════════════════════════════════
   PRODUCTS — 4 columns
   ════════════════════════════════════════════════════════════ */


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

.product-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.product-card:focus-within {
    border-color: var(--color-gold);
}

.product-sort {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

#product-sort {
    scroll-margin-top: 80px;  /* roughly navbar height */
}

.wishlist-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.wishlist-toggle {
    font-size: 1.1rem;
    color: var(--color-accent);
    background: rgba(26, 26, 46, 0.2);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wishlist-toggle:hover,
.wishlist-toggle:focus-visible {
    color: var(--color-gold);
    background: var(--color-white);
}

.product-card-image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-info {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-info h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.product-card-info h3 a {
    color: var(--color-cream);
}

.product-card-info h3 a:hover,
.product-card-info h3 a:focus-visible {
    color: var(--color-gold);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.88rem;
}

.product-price {
    font-weight: 600;
    color: var(--color-gold);
    font-size: 1rem;
}

.product-rating {
    color: var(--color-gold-light);
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    min-height: 60px;
}

.product-actions form {
    flex: 1;
}

.btn-cart,
.btn-view {
    --notch: 6px;
    --btn-border: var(--color-gold);
    --btn-fill: var(--color-surface);

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    padding: 9px 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--btn-border);
    background: transparent;
    border: none;
}

.btn-cart::before,
.btn-view::before,
.btn-cart::after,
.btn-view::after {
    content: '';
    position: absolute;
    pointer-events: none;
    -webkit-mask:
        radial-gradient(circle var(--notch) at 0 0,       transparent 98%, #000) top left,
        radial-gradient(circle var(--notch) at 100% 0,    transparent 98%, #000) top right,
        radial-gradient(circle var(--notch) at 0 100%,    transparent 98%, #000) bottom left,
        radial-gradient(circle var(--notch) at 100% 100%, transparent 98%, #000) bottom right;
    -webkit-mask-size: 51% 51%;
    -webkit-mask-repeat: no-repeat;
    mask:
        radial-gradient(circle var(--notch) at 0 0,       transparent 98%, #000) top left,
        radial-gradient(circle var(--notch) at 100% 0,    transparent 98%, #000) top right,
        radial-gradient(circle var(--notch) at 0 100%,    transparent 98%, #000) bottom left,
        radial-gradient(circle var(--notch) at 100% 100%, transparent 98%, #000) bottom right;
    mask-size: 51% 51%;
    mask-repeat: no-repeat;
}

.btn-cart::before,
.btn-view::before {
    inset: 0;
    background: var(--btn-border);
    z-index: -2;
}

.btn-cart::after,
.btn-view::after {
    inset: 1px;
    background: var(--btn-fill);
    z-index: -1;
}

.btn-cart:hover,
.btn-view:hover,
.btn-cart:focus-visible,
.btn-view:focus-visible {
    color: var(--color-bg);
}

.btn-cart:hover::after,
.btn-view:hover::after,
.btn-cart:focus-visible::after,
.btn-view:focus-visible::after {
    background: var(--btn-border);
}

.btn-cart-remove {
    --btn-border: var(--color-accent);
    color: var(--color-accent);
}

.btn-cart-remove:hover,
.btn-cart-remove:focus-visible {
    color: var(--color-white);
}


/* ─── Decorative Slots ──────────────────────────────────── */
.deco-bottom-slot {
    text-align: center;
    padding: 16px 20px 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.deco-bottom-slot img {
    margin: 0 auto;
    max-height: 120px;
}


/* ════════════════════════════════════════════════════════════
   NO RESULTS / EMPTY STATE
   ════════════════════════════════════════════════════════════ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.no-results i {
    display: block;
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 14px;
    opacity: 0.6;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
    background: var(--color-bar-bg);
    margin-top: 30px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.footer-section h3 {
    font-size: 0.88rem;
    margin: 0;
    letter-spacing: 0.06em;
}

.footer-section a {
    color: var(--color-gold);
}

.footer-section a:hover,
.footer-section a:focus-visible {
    color: var(--color-bar-text);
}

.footer-sep {
    color: rgba(201, 168, 76, 0.3);
    font-size: 0.8rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (769px – 1024px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    .navbar-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: var(--header-height) auto;
        grid-template-areas:
            "logo   right"
            "links  links";
        height: auto;
        gap: 0;
        align-items: center;
    }

    .logo {
        grid-area: logo;
        height: var(--header-height);
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        grid-area: links;
        justify-content: center;
        padding: 6px 0 10px;
        border-top: 1px solid rgba(201, 168, 76, 0.1);
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.88rem;
    }

    .nav-right {
        grid-area: right;
        justify-self: stretch;
        padding-left: 16px;
    }

    .search-container {
        width: 260px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    :root {
        --header-height: 56px;
    }

    .theme-toggle { display: none; }

    .mobile-nav-link { display: flex; }

    .dropdown { display: none; }

    .cart-trigger .cart-badge {
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 6px;
        vertical-align: middle;
    }

    .navbar-inner {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        align-items: center;
        gap: 0;
    }

    .logo {
        height: var(--header-height);
        order: 1;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        border-top: 1px solid rgba(201, 168, 76, 0.15);
        padding: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(201, 168, 76, 0.08);
    }

    .nav-links a {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .nav-links a::after {
        display: none;
    }

    /* A11Y: megamenu trigger row on mobile */
    .has-megamenu > a {
        flex: 1;
    }

    .nav-right {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px;
        border-top: 1px solid rgba(201, 168, 76, 0.15);
    }

    .nav-right.open {
        display: flex;
    }

    .search-container {
        width: 100%;
        margin-bottom: 10px;
        flex: unset;
    }

    .search-container form {
        height: 40px;
    }

    /* A11Y: Icon buttons become full-width rows with text labels */
    .nav-icon-btn {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 0;
        font-size: 0.9rem;
        border: none;
        border-bottom: 1px solid rgba(201, 168, 76, 0.08);
        border-radius: 0;
    }

    /* A11Y: show text labels on mobile (replaces CSS content) */
    .nav-icon-label {
        display: inline;
        font-family: var(--font-body);
        font-size: 0.85rem;
        letter-spacing: 0.04em;
    }

    /* Dropdown behaves inline on mobile */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        border: none;
        border-top: 1px solid rgba(201, 168, 76, 0.1);
        min-width: 0;
    }

    .dropdown-content a {
        padding-left: 32px;
    }

    /* Banner shorter */
    .hero-banner-img {
        height: 200px;
    }

    .hero-banner {
        max-height: 200px;
    }

    .hero-banner-overlay h1 {
        font-size: 1.4rem;
    }

    .hero-banner-overlay {
        padding: 16px 20px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .deco-section-divider {
        margin: 16px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 20px;
        gap: 8px;
    }

    .footer-section {
        justify-content: center;
    }

    .quote-text {
        font-size: 0.95rem;
    }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

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

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

    .hero-banner-img {
        height: 160px;
    }

    .hero-banner {
        max-height: 160px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }

    .footer-section {
        flex-direction: column;
        gap: 4px;
    }

    .footer-sep {
        display: none;
    }
}


/* ════════════════════════════════════════════════════════════
   MEGAMENU — Art Deco style
   CHANGED: all hover rules replaced with .mm-open class
   ════════════════════════════════════════════════════════════ */

/* ─── Megamenu toggle button (chevron) ──────────────────── */


.has-megamenu.mm-open .mm-arrow {
    transform: rotate(180deg);
    opacity: 1;
}


/* ─── Megamenu trigger row — link + toggle side by side ─── */
.has-megamenu {
    position: relative;
    display: flex;
    align-items: center;
}

/* ─── Container ─────────────────────────────────────────── */
.megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    z-index: 900;

    background: var(--color-bg);
    border: 1px solid var(--color-gold);
    border-top: none;
    padding: 0;
}

/* CHANGED: click-only, no hover */
.has-megamenu.mm-open .megamenu {
    display: block;
}

/* Decorative double-line top border */
.mm-top-border {
    height: 6px;
    background:
        linear-gradient(var(--color-gold), var(--color-gold)) top / 100% 1px no-repeat,
        linear-gradient(var(--color-gold), var(--color-gold)) bottom / 100% 1px no-repeat;
}

/* ─── Inner grid: 3 columns ─────────────────────────────── */
.megamenu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 24px 0 16px;
}

.megamenu-col {
    padding: 0 28px;
    text-align: center;
}

.megamenu-col + .megamenu-col {
    border-left: 1px solid rgba(201, 168, 76, 0.25);
}

.megamenu-col h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0;
    padding-bottom: 2px;
}

.megamenu--cols-1 .megamenu-inner { grid-template-columns: 1fr; }
.megamenu--cols-2 .megamenu-inner { grid-template-columns: repeat(2, 1fr); }

/* Shrink the panel itself so it hugs its columns.  */
.megamenu--cols-1 { max-width: 240px; }
.megamenu--cols-2 { max-width: 580px; }

/* ─── Ornamental divider ────────────────────────────────── */
.mm-ornament {
    display: flex;
    align-items: center;
    margin: 8px 0 12px;
    gap: 0;
}

.mm-ornament::before,
.mm-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to var(--dir, right),
        transparent,
        var(--color-gold) 30%,
        var(--color-gold)
    );
}

.mm-ornament::before {
    --dir: right;
    margin-right: 10px;
}

.mm-ornament::after {
    --dir: left;
    margin-left: 10px;
}

.mm-ornament span {
    color: var(--color-gold);
    font-size: 5px;
    line-height: 1;
}

/* ─── Link list ─────────────────────────────────────────── */
.megamenu-col ul {
    padding: 0;
}

.megamenu-col li {
    padding: 0;
    margin: 0;
}

.megamenu-col li a {
    display: block;
    padding: 7px 0;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--color-cream);
    border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}

.megamenu-col li:last-child a {
    border-bottom: none;
}

.megamenu-col li a:hover,
.megamenu-col li a:focus-visible {
    color: var(--color-gold);
}

.megamenu-col li a:hover::before,
.megamenu-col li a:focus-visible::before {
    content: '· ';
    color: var(--color-gold);
}

/* ─── Bottom ornament ───────────────────────────────────── */
.mm-bottom-ornament {
    display: flex;
    align-items: center;
    padding: 0 28px 18px;
    gap: 0;
}

.mm-bottom-ornament::before,
.mm-bottom-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to var(--dir, right),
        transparent,
        rgba(201, 168, 76, 0.5) 20%,
        rgba(201, 168, 76, 0.5)
    );
}

.mm-bottom-ornament::before {
    --dir: right;
    margin-right: 14px;
}

.mm-bottom-ornament::after {
    --dir: left;
    margin-left: 14px;
}

.mm-bottom-ornament span {
    font-size: 5px;
    color: var(--color-gold);
    letter-spacing: 6px;
    line-height: 1;
}


/* ─── Megamenu: Tablet (2 cols + stacked 3rd) ───────────── */
@media (max-width: 1024px) {
    .megamenu {
        width: 540px;
    }

    .megamenu-inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
    }

    .megamenu-col:nth-child(3) {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(201, 168, 76, 0.2);
        padding-top: 16px;
    }

    .megamenu-col {
        padding: 0 20px;
    }
}


/* ─── Megamenu: Mobile — full-width accordion ────────────── */
@media (max-width: 768px) {

    .has-megamenu {
        flex-wrap: wrap;
    }

    .has-megamenu > a {
        flex: 1;
    }

    .mm-toggle {
        padding: 12px 20px;
    }

    .megamenu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        transform: none;
        width: 100vw;
        margin-left: calc(-1 * (50vw - 50%));
        border: none;
        border-top: 2px solid var(--color-gold);
        border-bottom: 2px solid var(--color-gold);
        background: var(--color-bg);
        z-index: 950;
    }

    .mm-top-border {
        display: none;
    }

    .megamenu-inner {
        grid-template-columns: 1fr;
        padding: 16px 20px;
        row-gap: 8px;
    }

    .megamenu-col {
        padding: 0;
        text-align: left;
        border-left: none;
    }

    .megamenu-col + .megamenu-col {
        border-left: none;
        border-top: 1px solid rgba(201, 168, 76, 0.15);
        padding-top: 12px;
    }

    .megamenu-col h4 {
        text-align: left;
        font-size: 0.95rem;
    }

    .mm-ornament {
        justify-content: flex-start;
    }

    .mm-ornament::before {
        display: none;
    }

    .mm-ornament::after {
        max-width: 80px;
    }

    .megamenu-col li a {
        padding: 9px 0 9px 12px;
        font-size: 0.88rem;
    }

    .mm-bottom-ornament {
        padding: 8px 20px 16px;
    }
}


/* ════════════════════════════════════════════════════════════
   CART BADGE & MINI CART DROPDOWN
   CHANGED: hover rules replaced with .open class
   ════════════════════════════════════════════════════════════ */

.cart-dropdown {
    position: relative;
    flex-shrink: 0;
}

.cart-trigger {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    pointer-events: none;
}

.mini-cart {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 320px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-gold);
    border-top: 2px solid var(--color-gold);
    z-index: 1100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* CHANGED: click-only */
.cart-dropdown.open .mini-cart {
    display: block;
}

.mini-cart-inner {
    padding: 16px;
}

.mini-cart-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mini-cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.mini-cart-items::-webkit-scrollbar {
    width: 4px;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 2px;
}

.mini-cart-item {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.mini-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-cart-item-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

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

.mini-cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-cart-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-cream);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.mini-cart-item-name:hover,
.mini-cart-item-name:focus-visible {
    color: var(--color-gold);
}

.mini-cart-item-variant {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.mini-cart-item-price {
    font-size: 0.78rem;
    color: var(--color-gold);
    font-weight: 600;
}

.mini-cart-more {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    padding: 8px 0 0;
    letter-spacing: 0.02em;
}

.mini-cart-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.mini-cart-subtotal span:first-child {
    color: var(--color-cream);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.mini-cart-subtotal span:last-child {
    color: var(--color-gold);
    font-size: 1rem;
}

.mini-cart-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    border-radius: var(--radius);
}

.mini-cart-btn:hover,
.mini-cart-btn:focus-visible {
    background: var(--color-gold-light);
}

.mini-cart-empty {
    text-align: center;
    padding: 20px 10px;
}

.mini-cart-empty i {
    font-size: 1.8rem;
    color: rgba(201, 168, 76, 0.3);
    margin-bottom: 8px;
}

.mini-cart-empty p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
}

/* Mini Cart hidden on mobile — cart link navigates directly */
@media (max-width: 768px) {
    .mini-cart {
        display: none !important;
    }

    .cart-badge {
        top: -2px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        line-height: 16px;
    }
}

/* ════════════════════════════════════════════════════════════
   DESKTOP HOVER (≥ 1025px)
   Hover shows dropdowns on desktop.  .open / .mm-open also
   works (for keyboard users).  JS removes .open on
   mouseleave so the two mechanisms don't fight.
   ════════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {

    /* Account dropdown — hover */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Mini-cart — hover */
    .cart-dropdown:hover .mini-cart {
        display: block;
    }

    /* Megamenu — hover */
    .has-megamenu:hover .megamenu {
        display: block;
    }

    /* Gap bridge — keeps megamenu open while crossing the gap */
    .has-megamenu::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 10px;
        display: none;
    }

    .has-megamenu:hover::after {
        display: block;
    }
}


/* ════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════ */
.breadcrumb {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--gold-bg-subtle);
    padding: 10px 20px;
}

.breadcrumb-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.82rem;
}

.breadcrumb-inner a {
    color: var(--color-gold);
}

.breadcrumb-inner a:hover,
.breadcrumb-inner a:focus-visible {
    color: var(--color-gold-light);
}

.breadcrumb-sep {
    font-size: 4px;
    color: var(--color-gold);
    vertical-align: middle;
}

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


/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL — LAYOUT
   ════════════════════════════════════════════════════════════ */


.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}


/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL — IMAGE GALLERY
   ════════════════════════════════════════════════════════════ */
.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    overflow: hidden;
}

.pd-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.pd-slide-active {
    display: block;
}

.pd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 3;
}

.pd-nav:hover,
.pd-nav:focus-visible {
    background: var(--color-gold);
    color: var(--color-bg);
}

.pd-nav-prev { left: 12px; }
.pd-nav-next { right: 12px; }

.pd-wishlist-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.pd-wishlist-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.pd-wishlist-btn:hover,
.pd-wishlist-btn:focus-visible {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: var(--color-white);
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.pd-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid transparent;
    background: var(--color-surface);
    cursor: pointer;
    overflow: hidden;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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


/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL — INFO PANEL
   ════════════════════════════════════════════════════════════ */
.pd-info {
    display: flex;
    flex-direction: column;
}

.pd-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin: 0;
    line-height: 1.3;
}

.pd-ornament {
    display: flex;
    align-items: center;
    margin: 10px auto 16px;
    max-width: 200px;
}

.pd-ornament::before,
.pd-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to var(--dir, right),
        var(--color-gold),
        transparent
    );
}

.pd-ornament::before { --dir: right; margin-right: 10px; }
.pd-ornament::after  { --dir: left;  margin-left: 10px;  }

.pd-ornament span {
    font-size: 5px;
    color: var(--color-gold);
    line-height: 1;
}

.pd-info .pd-ornament {
    width: 200px;
    max-width: 100%;
    margin: 10px 0 16px;
}

.pd-rating   { margin-bottom: 14px; }
.pd-stars    { font-size: 0.92rem; color: var(--color-gold-light); }

.pd-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pd-price-original {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.pd-price-current {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-gold);
    letter-spacing: 0.04em;
}

.pd-discount-tag {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-bg);
    background: var(--color-gold);
    padding: 3px 10px;
}

.pd-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--color-cream);
    font-size: 1rem;
}

.pd-description p {
    white-space: pre-line;
}

.pd-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.pd-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    flex-shrink: 0;
}

.pd-value       { color: var(--color-cream); }
.pd-value a     { color: var(--color-cream); }
.pd-value a:hover,
.pd-value a:focus-visible { color: var(--color-gold); }

.pd-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(201, 168, 76, 0.3),
        transparent 80%
    );
    margin: 16px 0;
}


/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL — VARIATION SELECTOR
   ════════════════════════════════════════════════════════════ */
.pd-variation {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pd-select-wrap {
    position: relative;
    flex: 1;
    max-width: 280px;
}

.pd-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--color-input-bg);
    border: 1px solid var(--color-gold);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 10px 36px 10px 14px;
    cursor: pointer;
}

.pd-select:focus,
.pd-select:focus-visible {
    outline: none;
    border-color: var(--color-gold-light);
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

.pd-select option {
    background: var(--color-input-bg);
    color: var(--color-cream);
}

.pd-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    font-size: 0.65rem;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL — ACTIONS
   ════════════════════════════════════════════════════════════ */
.pd-actions { margin-top: 8px; }

.pd-cart-form {
    width: 100%;
    max-width: 320px;
}

.btn-cart-large {
    padding: 14px 20px;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
}

.pd-variant-status { margin: 10px 0 4px; }

.pd-variant-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: var(--radius);
    letter-spacing: 0.02em;
}

.pd-variant-msg-warning {
    color: var(--color-gold);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
}

.pd-variant-msg-error {
    color: var(--color-accent);
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.25);
}

.pd-variation + .pd-variation { margin-top: 12px; }

.btn-cart:disabled,
.btn-cart[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-cart:disabled:hover::after,
.btn-cart[disabled]:hover::after {
    background: var(--btn-fill);
}

.btn-cart:disabled:hover,
.btn-cart[disabled]:hover {
    color: var(--btn-border);
}

.pd-slide-attr { z-index: 1; }

@media (max-width: 1024px) {
    .pd-layout         { gap: 30px; }
    .pd-title           { font-size: 1.7rem; }
    .pd-price-current   { font-size: 1.5rem; }
}

@media (max-width: 768px) {

    .pd-layout          { grid-template-columns: 1fr; gap: 24px; }
    .pd-main-image      { aspect-ratio: 4 / 3; }
    .pd-thumb           { width: 52px; height: 52px; }
    .pd-title           { font-size: 1.5rem; }
    .pd-price-current   { font-size: 1.4rem; }
    .pd-cart-form       { max-width: 100%; }
    .pd-variation       { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pd-select-wrap     { max-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
    .pd-main-image      { aspect-ratio: 1 / 1; }
    .pd-nav             { width: 34px; height: 34px; font-size: 0.75rem; }
    .pd-nav-prev        { left: 8px; }
    .pd-nav-next        { right: 8px; }
    .pd-title           { font-size: 1.3rem; }
    .pd-price-block     { gap: 8px; }
    .pd-price-current   { font-size: 1.25rem; }
    .btn-cart-large     { padding: 12px 16px; font-size: 0.82rem; }
}

/* ════════════════════════════════════════════════════════════
   SEARCH PAGE
   ════════════════════════════════════════════════════════════ */
.search-query-label {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--color-text-muted);
    margin-top: 6px;
}


/* ════════════════════════════════════════════════════════════
   CART PAGE
   (remainder of styles unchanged — included for completeness)
   ════════════════════════════════════════════════════════════ */


.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 24px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    min-width: 0;
}

.cart-item:hover { border-color: rgba(201, 168, 76, 0.3); }

.cart-item-image {
    display: block;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-bg-alt);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

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

.cart-item-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cart-item-details h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details h3 a { color: var(--color-cream); }
.cart-item-details h3 a:hover,
.cart-item-details h3 a:focus-visible { color: var(--color-gold); }

.cart-item-variant {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}

.cart-item-unit-price {
    font-size: 0.92rem;
    color: var(--color-gold);
    font-weight: 600;
}

.cart-item-qty {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cart-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-gold);
    font-size: 0.65rem;
    cursor: pointer;
    border: none;
}

.cart-qty-btn:hover:not(:disabled),
.cart-qty-btn:focus-visible:not(:disabled) {
    background: rgba(201, 168, 76, 0.15);
    color: var(--color-gold-light);
}

.cart-qty-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.cart-qty-input {
    width: 44px;
    height: 32px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(201, 168, 76, 0.25);
    border-right: 1px solid rgba(201, 168, 76, 0.25);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.85rem;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-input:focus { outline: none; background: rgba(201, 168, 76, 0.05); }

.cart-item-msg {
    display: none;
    font-size: 0.72rem;
    color: var(--color-accent);
    text-align: center;
    max-width: 140px;
    line-height: 1.3;
}

.cart-item-line-total {
    flex-shrink: 0;
    min-width: 90px;
    text-align: right;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.02em;
}

.cart-item-remove { flex-shrink: 0; }

.cart-remove-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
}

.cart-remove-btn:hover,
.cart-remove-btn:focus-visible {
    color: var(--color-accent);
    border-color: rgba(233, 69, 96, 0.4);
    background: rgba(233, 69, 96, 0.08);
}

.free-shipping-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-warning-bg), var(--color-warning-bg));
    border: 1px solid var(--color-warning-border);
    border-left: 4px solid var(--color-warning-accent);
    border-radius: 6px;
    color: var(--color-warning-text);
    font-size: 0.95rem;
}

.free-shipping-banner i { font-size: 1.4rem; color: var(--color-warning-accent); flex-shrink: 0; }
.free-shipping-banner strong { color: var(--color-warning-strong); font-weight: 700; }

.free-shipping-banner--qualified {
    background: linear-gradient(135deg, var(--color-success-bg), var(--color-success-bg));
    border-color: var(--color-success-border);
    border-left-color: var(--color-success);
    color: var(--color-success-text);
}

.free-shipping-banner--qualified i      { color: var(--color-success); }
.free-shipping-banner--qualified strong  { color: var(--color-success-dark); }

.cart-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
}

.cart-summary-heading {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 4px;
}

.cart-summary .pd-ornament  { margin: 8px auto 16px; max-width: 140px; }
.cart-summary .pd-divider   { margin: 12px 0; }

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-cream);
    padding: 4px 0;
}

.cart-summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold);
}

.cart-summary-total span:last-child {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cart-summary-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 12px 0 20px;
    letter-spacing: 0.02em;
}

.checkout-shipping-error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--color-error-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.shipping-pending-text { color: var(--color-text-muted); font-style: italic; font-size: 0.9em; }

.checkout-shipping-breakdown { margin-top: 6px; font-size: 0.85rem; }

.shipping-breakdown-toggle {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.shipping-breakdown-toggle:hover { color: var(--color-text); }

.shipping-breakdown-toggle .fa-chevron-down {
    margin-left: auto;
    transition: transform 0.2s;
    font-size: 0.7em;
}

.checkout-shipping-breakdown.open .shipping-breakdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.shipping-breakdown-body { display: none; padding: 6px 0 2px; }
.checkout-shipping-breakdown.open .shipping-breakdown-body { display: block; }

.shipping-breakdown-line {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

#place-order-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.checkout-address-prompt {
    background: var(--color-info-bg);
    border: 1px solid var(--color-info-border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-info-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-address-prompt i { font-size: 1rem; color: var(--color-info-text); }

.cart-btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid var(--color-gold);
    border-radius: var(--radius);
    cursor: pointer;
}

.cart-btn-checkout:hover,
.cart-btn-checkout:focus-visible {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

.cart-btn-checkout i { font-size: 0.8rem; }

.cart-continue {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--color-gold);
    letter-spacing: 0.04em;
}

.cart-continue:hover,
.cart-continue:focus-visible { color: var(--color-gold-light); }
.cart-continue i { font-size: 0.7rem; margin-right: 4px; }

.cart-start-shopping {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius);
}

.cart-start-shopping:hover,
.cart-start-shopping:focus-visible {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-bg);
}

@media (max-width: 1024px) {
    .cart-layout    { grid-template-columns: 1fr; gap: 20px; }
    .cart-summary   { position: static; }
}

@media (max-width: 768px) {
    .cart-item              { flex-wrap: wrap; gap: 12px; padding: 14px; }
    .cart-item-image        { width: 70px; height: 70px; }
    .cart-item-details h3   { font-size: 1rem; }
    .cart-item-remove       { order: -1; margin-left: auto; }
    .cart-item-qty          { margin-left: auto; }
    .cart-item-line-total   { margin-left: auto; font-size: 1.05rem; }
}

@media (max-width: 480px) {

    .cart-item              { padding: 12px; gap: 10px; }
    .cart-item-image        { width: 60px; height: 60px; }
    .cart-item-details h3   { font-size: 0.95rem; }
    .cart-item-line-total   { font-size: 1rem; min-width: 70px; }
    .cart-summary           { padding: 18px 16px; }
}


/* ════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ════════════════════════════════════════════════════════════ */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: 32px;
    align-items: start;
}

.checkout-guest-banner {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 24px;
}

.checkout-guest-banner p { margin: 0; font-size: 0.9rem; color: var(--color-cream); }
.checkout-guest-banner i { color: var(--color-gold); margin-right: 8px; }
.checkout-guest-banner a { color: var(--color-gold); text-decoration: underline; }
.checkout-guest-banner a:hover { color: var(--color-gold-light); }

.checkout-forms {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-fieldset {
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--color-surface);
}

.checkout-fieldset legend {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-gold);
    padding: 0 12px;
    letter-spacing: 0.06em;
}

.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-cream);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.form-group label .required { color: var(--color-accent); }

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--color-input-bg);
    border: 1px solid var(--gold-border-faint);
    border-radius: var(--radius);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-control:focus,
.form-control:focus-visible {
    outline: none;
    border-color: var(--color-gold);
    background: var(--color-input-bg);
}

.form-control::placeholder { color: var(--color-text-muted); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
    max-height: 280px;
    overflow-y: auto;
}

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

.checkout-item-img {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--color-bg-alt);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.checkout-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-cream);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-variant { font-size: 0.75rem; color: var(--color-text-muted); }

.checkout-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gold);
    flex-shrink: 0;
}

.checkout-discount       { color: var(--color-accent); }
.checkout-place-order    { margin-top: 20px; }

.checkout-back-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.checkout-back-link:hover,
.checkout-back-link:focus-visible { color: var(--color-gold); }

.cart-guest-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.cart-guest-note a { color: var(--color-gold); }
.cart-guest-note a:hover { text-decoration: underline; }

.checkout-guest-notice {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius);
    background: rgba(201, 168, 76, 0.05);
}

.checkout-guest-notice-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.checkout-guest-notice-inner > i {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkout-guest-notice p {
    font-size: 0.88rem;
    color: var(--color-cream);
    line-height: 1.5;
    margin: 0;
}

.checkout-guest-notice p + p { margin-top: 4px; }

.checkout-guest-notice a {
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout-guest-notice a:hover { color: var(--color-gold-light); }

.checkout-items-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
    scrollbar-gutter: stable;
}

.checkout-items-preview::-webkit-scrollbar       { width: 4px; }
.checkout-items-preview::-webkit-scrollbar-thumb  { background: rgba(201, 168, 76, 0.3); border-radius: 2px; }

.checkout-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; order: -1; }
}

@media (max-width: 768px) {
    .checkout-layout    { grid-template-columns: 1fr; }
    .checkout-row-2col  { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* Payment method selection */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method-option {
    display: block;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--gold-border-light);
    border-radius: 8px;
    background: var(--color-surface);
    transition: border-color 0.2s, background-color 0.2s;
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: var(--color-gold);
    background-color: var(--gold-bg-subtle);
}

.payment-method-option input[type="radio"]:focus + .payment-method-label {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.payment-method-label > i:first-child {
    font-size: 1.75rem;
    width: 2.5rem;
    text-align: center;
    color: var(--color-text-muted);
}

.payment-method-option input[type="radio"]:checked + .payment-method-label > i:first-child {
    color: var(--color-gold);
}

.payment-method-label .fa-paypal {
    color: #003087;
}

.payment-method-label .fa-stripe {
    color: #635bff;
}

.payment-method-name {
    font-weight: 600;
    flex: 1;
}

.payment-method-desc {
    font-size: 0.85rem;
    color: var(--color-white, #fff);
    display: block;
    margin-top: 0.25rem;
}

.payment-method-icons {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
    color: var(--text-muted, #666);
}

.payment-method-only .payment-method-label {
    border-color: var(--accent-color, #4a90d9);
    background-color: var(--accent-bg, rgba(74, 144, 217, 0.05));
}

.payment-methods-none {
    padding: 1rem;
    background-color: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    border-radius: 8px;
    color: var(--color-warning-text);
}

/* Button text toggle */
#btn-text-paypal .fa-paypal {
    color: inherit;
}


/* ════════════════════════════════════════════════════════════
   ORDER CONFIRMATION + LOGOUT OPTIONS
   ════════════════════════════════════════════════════════════ */
.confirmation-section {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.confirmation-card {
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
}

.confirmation-header i {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.confirmation-header h2 { font-size: 1.8rem; margin-bottom: 8px; }

.confirmation-order-number {
    font-size: 1rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.confirmation-message {
    font-size: 0.95rem;
    color: var(--color-cream);
    margin: 20px 0;
    line-height: 1.6;
}

.confirmation-summary,
.confirmation-address {
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
}

.confirmation-summary h3,
.confirmation-address h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
}

.confirmation-address p {
    font-size: 0.9rem;
    color: var(--color-cream);
    line-height: 1.6;
    margin: 0;
}

.confirmation-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-bottom: 24px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.confirmation-items::-webkit-scrollbar      { width: 4px; }
.confirmation-items::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.3); border-radius: 2px; }

.confirmation-details {
    text-align: left;
    padding: 16px 20px;
    background: var(--color-bg-alt);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.confirmation-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.confirmation-guest-prompt {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.confirmation-guest-prompt h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.confirmation-guest-prompt p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.confirmation-account-prompt {
    margin: 24px 0;
    padding-top: 24px;
}

.confirmation-account-prompt h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.confirmation-account-prompt p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.logout-options          { text-align: center; margin-top: 8px; }
.logout-option-form      { padding: 12px 0; }

.logout-option-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.logout-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid rgba(201, 168, 76, 0.4);
    border-radius: var(--radius);
    cursor: pointer;
}

.logout-btn-secondary:hover,
.logout-btn-secondary:focus-visible {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(201, 168, 76, 0.05);
}


/* ─── Buttons (reusable) ────────────────────────────────── */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-bg);
    border-color: var(--color-gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(201, 168, 76, 0.1);
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

@media (max-width: 600px) {
    .confirmation-card      { padding: 30px 20px; }
    .confirmation-actions   { flex-direction: column; }
}


/* ════════════════════════════════════════════════════════════
   AUTH PAGES
   ════════════════════════════════════════════════════════════ */
.auth-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 20px 50px;
}

.auth-container {
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    padding: 32px;
}

.auth-section .section-heading  { text-align: center; margin-bottom: 4px; }
.auth-section .pd-ornament      { margin-bottom: 24px; }
.auth-form .checkout-fieldset   { margin-bottom: 20px; }

.auth-newsletter {
    margin: 20px 0;
    padding: 16px;
    background: rgba(201, 168, 76, 0.05);
    border-radius: var(--radius);
}

.auth-actions       { margin-top: 24px; }
.auth-submit        { width: 100%; padding: 14px 24px; }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-switch a { color: var(--color-gold); }
.auth-switch a:hover { text-decoration: underline; }

.form-error {
    display: block;
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--color-cream);
    cursor: pointer;
}

.quick-register-intro {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-cream);
    margin: 0 0 24px;
    line-height: 1.5;
}

.quick-register-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.auth-section .confirmation-header          { margin-bottom: 4px; }
.auth-section .confirmation-header i        { font-size: 2.5rem; }
.auth-section .confirmation-header h2       { font-size: 1.6rem; }

/* ════════════════════════════════════════════════════════════
   AUTH: PASSWORD TOGGLE + LOGIN LINKS
   ════════════════════════════════════════════════════════════ */
.auth-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-password-wrap .form-control {
    padding-right: 44px;
}

.auth-toggle-pw {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    padding: 0;
}

.auth-toggle-pw:hover,
.auth-toggle-pw:focus-visible {
    color: var(--color-gold);
}

.auth-links {
    text-align: center;
    margin-top: 16px;
}

.auth-forgot {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
}

.auth-forgot:hover,
.auth-forgot:focus-visible {
    color: var(--color-gold);
    text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════
   PROFILE PAGE
   ════════════════════════════════════════════════════════════ */

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--gold-bg-subtle);
    gap: 16px;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    min-width: 120px;
}

.profile-info-value {
    font-size: 0.95rem;
    color: var(--color-cream);
    text-align: right;
    flex: 1;
}

.profile-info-value i {
    color: var(--color-gold);
    margin-right: 4px;
}

.profile-info-empty {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 8px 0;
}

.profile-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 200px;
}

.profile-action-text strong {
    font-size: 0.95rem;
    color: var(--color-cream);
    font-weight: 600;
}

.profile-action-text span {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.profile-action-row .btn-primary,
.profile-action-row .btn-secondary,
.profile-action-row .btn-danger {
    flex-shrink: 0;
    min-width: 140px;
    text-align: center;
}

/* Danger button for delete */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    text-decoration: none;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: var(--color-accent);
    color: var(--color-white);
}

@media (max-width: 600px) {
    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .profile-info-value {
        text-align: left;
    }

    .profile-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-action-row .btn-primary,
    .profile-action-row .btn-secondary,
    .profile-action-row .btn-danger {
        width: 100%;
    }
}


/* ════════════════════════════════════════════════════════════
   YOUR ORDERS LIST
   ════════════════════════════════════════════════════════════ */

.orders-list {
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
}

.orders-header {
    display: grid;
    grid-template-columns: 100px 140px 120px 1fr 40px;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(201, 168, 76, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.order-row {
    display: grid;
    grid-template-columns: 100px 140px 120px 1fr 40px;
    gap: 16px;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    color: var(--color-cream);
    text-decoration: none;
}

.order-row:last-child { border-bottom: none; }

.order-row:hover,
.order-row:focus-visible {
    background: rgba(201, 168, 76, 0.05);
}

.order-number { font-weight: 700; color: var(--color-gold); }

.orders-col-date    { font-size: 0.9rem; color: var(--color-text-muted); }
.orders-col-total   { font-weight: 600; text-align: right; }
.orders-col-action  { text-align: center; color: var(--color-gold); opacity: 0.5; }

.order-row:hover .orders-col-action,
.order-row:focus-visible .orders-col-action { opacity: 1; }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-processing  { background: rgba(100, 150, 255, 0.15); color: #6496ff; }
.status-shipped     { background: rgba(100, 200, 130, 0.15); color: #64c882; }
.status-cancelled   { background: rgba(233, 69, 96, 0.15);   color: var(--color-accent); }


/* ════════════════════════════════════════════════════════════
   ORDER DETAIL PAGE
   ════════════════════════════════════════════════════════════ */

.order-detail-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.order-detail-title h2  { font-size: 1.8rem; margin: 0; }
.order-detail-date      { font-size: 0.9rem; color: var(--color-text-muted); margin-top: 4px; margin-bottom:10px; }

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.order-detail-items {
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    padding: 24px;
}

.order-detail-items h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 4px;
    text-align: center;
}

.order-detail-items .pd-ornament { margin-bottom: 20px; }

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.order-item:last-of-type { border-bottom: none; }

.order-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-bg-alt);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--radius);
}

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

.order-item-info     { flex: 1; min-width: 0; }
.order-item-info h4  { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.order-item-info h4 a { color: var(--color-cream); }

.order-item-info h4 a:hover,
.order-item-info h4 a:focus-visible { color: var(--color-gold); }

.order-item-variant  { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 4px; }
.order-item-qty      { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

.order-item-price {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-gold);
    flex-shrink: 0;
}

.order-detail-rate {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    text-align: center;
}

.order-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-detail-card {
    background: var(--color-surface);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    padding: 20px;
}

.order-detail-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 4px;
    text-align: center;
    letter-spacing: 0.06em;
}

.order-detail-card .pd-ornament { margin-bottom: 16px; }

.order-detail-address {
    font-size: 0.9rem;
    color: var(--color-cream);
    line-height: 1.6;
    margin: 0;
}

.order-detail-card p {
    font-size: 0.9rem;
    color: var(--color-cream);
    margin: 8px 0 0;
}

.order-detail-back      { margin-top: 24px; }
.order-detail-back a    { font-size: 0.9rem; color: var(--color-text-muted); }

.order-detail-back a:hover,
.order-detail-back a:focus-visible { color: var(--color-gold); }

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

@media (max-width: 700px) {
    .orders-header { display: none; }

    .order-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px 16px;
    }

    .orders-col-order   { grid-column: 1; }
    .orders-col-total   { grid-column: 2; text-align: right; }
    .orders-col-date    { grid-column: 1; grid-row: 2; }
    .orders-col-status  { grid-column: 2; grid-row: 2; text-align: right; }
    .orders-col-action  { display: none; }
}

/* ─── Configurable order status colors ─────────────────── */
.status-badge.status-green  { background: rgba(0,184,148,0.12);  color: #00b894; }
.status-badge.status-blue   { background: rgba(9,132,227,0.12);  color: #0984e3; }
.status-badge.status-red    { background: rgba(214,48,49,0.12);  color: #d63031; }
.status-badge.status-muted  { background: rgba(99,110,114,0.1);  color: var(--text-muted, #636e72); }

/* ─── Order tracking card ──────────────────────────────── */
.order-tracking-carrier {
  font-size: var(--fs-sm, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #636e72);
  margin: 0 0 4px;
}

.order-tracking-num {
  font-family: monospace;
  font-size: var(--fs-base, 14px);
  font-weight: 600;
  word-break: break-all;
  margin: 0 0 var(--sp-sm, 8px);
}

.order-tracking-btn {
  margin-bottom: var(--sp-sm, 8px);
}

.order-tracking-date {
  font-size: var(--fs-sm, 12px);
  color: var(--text-muted, #636e72);
  margin: var(--sp-sm, 8px) 0 0;
}

/* ─── Deleted product fallback ─────────────────────────── */
.order-item-unavailable {
  color: var(--text-muted, #636e72);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   Product Page — Category Links
   ═══════════════════════════════════════════════════════════ */

.pd-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pd-cat-link {
    display: inline-block;
    padding: 3px 12px;
    font-size: .85rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 99px;
    color: var(--text-color, #333);
    text-decoration: none;
    transition: all .2s;
}
.pd-cat-link:hover {
    border-color: var(--accent, #555);
    background: var(--accent, #555);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════
   Category Group Page
   ═══════════════════════════════════════════════════════════ */

/* ─── Category index: alphabet jump bar ─────────────────── */
.catgroup-alpha {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin: 0 auto 48px;
    padding: 14px 8px;
    border-top: 1px solid var(--gold-border-faint);
    border-bottom: 1px solid var(--gold-border-faint);
}
.catgroup-alpha a,
.catgroup-alpha span {
    display: inline-block;
    min-width: 30px;
    padding: 6px 8px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    border-radius: 2px;
}
.catgroup-alpha a { color: var(--color-gold); }
.catgroup-alpha a:hover {
    color: var(--color-bg);
    background: var(--color-gold);
}
.catgroup-alpha span {
    color: var(--color-text-muted);
    opacity: 0.35;
}

/* ─── Category index: letter groups ─────────────────────── */
.catgroup-index {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.catgroup-group {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 36px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gold-border-light);
    scroll-margin-top: 90px;  /* clears sticky header on jump */
}
.catgroup-group:last-child { border-bottom: none; }

.catgroup-letter {
    font-family: var(--font-display);
    font-size: 4.2rem;
    color: var(--color-gold);
    line-height: 0.9;
    text-align: center;
    padding-right: 24px;
    padding-top: 8px;
    border-right: 1px solid var(--gold-border-faint);
}

/* ─── Category index: two-column dot-leader links ───────── */
.catgroup-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
    row-gap: 2px;
}
.catgroup-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 2px;
    color: var(--color-text);
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    min-width: 0;            /* lets ellipsis work inside grid */
}
.catgroup-link-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.catgroup-link-dots {
    flex: 1;
    border-bottom: 1px dotted var(--gold-border-faint);
    transform: translateY(-5px);
    min-width: 18px;
}
.catgroup-link-chev {
    color: var(--color-gold);
    opacity: 0.55;
    font-size: 0.9rem;
}
.catgroup-link:hover { color: var(--color-gold); }
.catgroup-link:hover .catgroup-link-chev { opacity: 1; }
.catgroup-link:hover .catgroup-link-dots {
    border-bottom-color: var(--color-gold);
}

.catgroup-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

/* Optional group image, shown centered above the index */
.catgroup-hero {
    display: flex;
    justify-content: center;
    margin: 0 auto 36px;
}
.catgroup-hero-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--gold-border-faint);
}

/* Flat two-column list used when sort type isn't alphabetical */
.catgroup-items--flat {
    max-width: 880px;
    margin: 24px auto 0;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
    .catgroup-items { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .catgroup-group { grid-template-columns: 56px 1fr; gap: 20px; }
    .catgroup-letter { font-size: 2.8rem; padding-right: 14px; }
    .catgroup-link { font-size: 1rem; }
    .catgroup-alpha a,
    .catgroup-alpha span {
        min-width: 26px;
        padding: 5px 6px;
        font-size: 1rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   Category Listing Page
   ═══════════════════════════════════════════════════════════ */

.catlist-desc {
    text-align: center;
    color: var(--text-muted, #777);
    max-width: 600px;
    margin: -8px auto 32px;
    line-height: 1.6;
}

.catlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #999);
}
.catlist-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: .4;
}


/* ═══════════════════════════════════════════════════════════
   Responsive — Category Group
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .catgroup-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .catgroup-grid-no-image {
        grid-template-columns: 1fr 1fr;
    }

    .catgroup-image-cell {
        grid-column: 1 / -1;
        grid-row: auto;
        max-width: 280px;
        margin: 0 auto 8px;
    }

    .catgroup-heading { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .catgroup-grid,
    .catgroup-grid-no-image {
        grid-template-columns: 1fr;
    }

    .catgroup-card {
        padding: 14px 36px 14px 16px;
        min-height: 48px;
    }
}

/* ══════════════════════════════════════════════════════════
   Discount Pricing
   ══════════════════════════════════════════════════════════ */

/* ── Product Card ───────────────────────────────────────── */
.product-card {
    position: relative;
}

.product-discount-badge,
.product-shipping-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.product-discount-badge {
    background: var(--color-success, #00b894);
    color: #fff;
}

.product-shipping-badge {
    background: var(--color-success, #00b894);
    color: #fff;
}

/* Price line: current left, original right, inline */
.product-meta {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.product-price-sale {
    font-weight: 700;
}

.product-price-original {
    text-decoration: line-through;
    color: var(--color-text-muted, #999);
    font-size: 0.85em;
}

/* ── Product Detail ─────────────────────────────────────── */
.pd-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.pd-price-original {
    text-decoration: line-through;
    color: var(--color-text-muted, #999);
    font-size: 1.1rem;
    order: 2;
}

.pd-price-current {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gold);
    order: 1;
}

.pd-discount-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    background: var(--color-success, #00b894);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    order: 3;
}

.pd-free-shipping-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    background: var(--color-success, #00b894);
    color: var(--color-white, #fff);
    font-size: 0.78rem;
    font-weight: 600;
    order: 4;
}

/* ── Cart ───────────────────────────────────────────────── */
.cart-item-unit-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.cart-item-sale-price {
    color: var(--color-gold);
    font-weight: 600;
}

.cart-item-orig-price {
    text-decoration: line-through;
    color: var(--color-text-muted, #999);
    font-size: 0.85em;
}

/* ── Mini-cart ──────────────────────────────────────────── */
.mini-cart-item-orig {
    text-decoration: line-through;
    color: var(--color-text-muted, #999);
    font-size: 0.85em;
    margin-left: 0.25rem;
}


/* ═══════════════════════════════════════════════════════════
   Product Gallery — Zoom Overlay + Thumbnail refinements
   Add these rules to your existing stylesheet.
   ═══════════════════════════════════════════════════════════ */

/* ── Slide wrapper (changed from bare <img> to <div> wrapper) ── */
.pd-slide {
    display: none;
    position: relative;
    width: 100%;
    cursor: zoom-in;
}
.pd-slide img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
}
.pd-slide-active {
    display: block;
}

/* ── Zoom hint icon (bottom-right of main image) ── */
.pd-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.pd-main-image:hover .pd-zoom-hint {
    opacity: 1;
}

/* ── Zoom overlay (fullscreen lightbox) ── */
.pd-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    /* hidden by default via inline style="display:none" */
}

.pd-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-zoom-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.15s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.pd-zoom-img:active {
    cursor: grabbing;
}

/* Close button */
.pd-zoom-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.pd-zoom-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Zoom prev/next navigation */
.pd-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.pd-zoom-nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.05);
}
.pd-zoom-prev { left: 16px; }
.pd-zoom-next { right: 16px; }

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .pd-zoom-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
    .pd-zoom-nav {
        width: 40px;
        height: 40px;
    }
    .pd-zoom-prev { left: 8px; }
    .pd-zoom-next { right: 8px; }
    .pd-zoom-img {
        max-width: 98vw;
        max-height: 85vh;
    }
    .pd-zoom-hint {
        width: 30px;
        height: 30px;
        font-size: 12px;
        bottom: 8px;
        right: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE & MOBILE MENU UPDATES
   ═══════════════════════════════════════════════════════════ */

/* Desktop theme toggle - same as before but with new class */
.theme-toggle-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--color-cream);
    font-size: 0.95rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}
.theme-toggle-desktop:hover,
.theme-toggle-desktop:focus-visible {
    color: var(--color-gold);
    border-color: var(--color-gold);
}
.theme-toggle-desktop .icon-sun  { display: none; }
.theme-toggle-desktop .icon-moon { display: block; }
[data-theme="light"] .theme-toggle-desktop .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle-desktop .icon-moon { display: none; }

/* Mobile theme toggle - hidden on desktop */
.theme-toggle-mobile {
    display: none;
}
.theme-toggle-mobile .icon-sun  { display: none; }
.theme-toggle-mobile .icon-moon { display: block; }
[data-theme="light"] .theme-toggle-mobile .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle-mobile .icon-moon { display: none; }

/* Theme label visibility based on current theme */
.theme-label-light { display: none; }
.theme-label-dark  { display: none; }
[data-theme="light"] .theme-label-dark  { display: inline; }
:not([data-theme="light"]) .theme-label-light,
[data-theme="dark"] .theme-label-light { display: inline; }

/* Mobile-only menu links - hidden on desktop */
.mobile-menu-link {
    display: none;
}

/* Desktop-only dropdown items */
.desktop-only {
    display: block;
}

/* Cart icon wrapper for proper badge positioning */
.cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OVERRIDES (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Hide desktop theme toggle */
    .theme-toggle-desktop {
        display: none;
    }

    /* Show mobile theme toggle as text link */
    .theme-toggle-mobile {
        display: flex;
        width: 100%;
        height: auto;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        font-size: 0.9rem;
        color: var(--color-cream);
        border: none;
        border-bottom: 1px solid rgba(201, 168, 76, 0.08);
        border-radius: 0;
        background: transparent;
        cursor: pointer;
    }
    .theme-toggle-mobile:hover,
    .theme-toggle-mobile:focus-visible {
        color: var(--color-gold);
    }

    /* Show mobile-only menu links */
    .mobile-menu-link {
        display: flex;
    }

    /* Hide wishlist/orders from account dropdown on mobile */
    .desktop-only {
        display: none;
    }

    /* Cart badge positioning - relative to icon wrapper */
    .cart-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        line-height: 16px;
    }

    /* Cart icon wrapper inline sizing */
    .cart-icon-wrap {
        width: auto;
        height: auto;
    }
}


.checkout-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.checkout-coupon-applied > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.checkout-coupon-applied code {
    font-weight: 600;
}

/* 44×44 hit area — WCAG / iOS minimum. */
.coupon-remove-btn {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: inherit;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.coupon-remove-btn:hover,
.coupon-remove-btn:focus-visible {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.3);
    outline: none;
}


.product-pagination { margin: 2rem 0; display: flex; justify-content: center; }
.product-pagination .pager { display: flex; gap: .25rem; list-style: none; padding: 0; }
.product-pagination li > a,
.product-pagination li > span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem;
    border: 1px solid var(--border, #ddd); border-radius: 4px;
    text-decoration: none; color: inherit;
}
.product-pagination li.active > span { background: var(--primary, #333); color: #fff; border-color: var(--primary, #333); }
.product-pagination li.disabled > span { opacity: .4; }
.product-pagination li.ellipsis > span { border: none; }