/* ============================================================
   KUKS & CO — MASTER DESIGN SYSTEM
   Luxury Multi-Vendor Fashion Marketplace
   Est. 2025 | Version 1.0
   ============================================================ */

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

/* ============================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* ── Brand Colors ── */
  --navy:         #1C3163;
  --navy-dark:    #00071B;
  --gold:         #D6B585;
  --gold-light:   #E8D0A9;
  --gold-dark:    #B8945F;
  --ivory:        #FEFFFF;
  --ivory-warm:   #F7F5F0;
  --ivory-mid:    #EDE9E1;

  /* ── Neutral Scale ── */
  --white:        #FFFFFF;
  --gray-50:      #FAFAF9;
  --gray-100:     #F4F3F0;
  --gray-200:     #E8E6E1;
  --gray-300:     #D1CEC8;
  --gray-400:     #A8A49C;
  --gray-500:     #7C786E;
  --gray-600:     #5C5850;
  --gray-700:     #3D3A33;
  --gray-800:     #1E1C18;
  --black:        #0A0908;

  /* ── Semantic Colors ── */
  --success:      #2D6A4F;
  --success-bg:   #D8F3DC;
  --error:        #9B2335;
  --error-bg:     #FDECEA;
  --warning:      #A67C00;
  --warning-bg:   #FFF8E1;
  --info:         #1C3163;
  --info-bg:      #E8EDF5;

  /* ── Typography ── */
  --font-display:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Jost', 'Gill Sans', sans-serif;
  --font-ui:        'Jost', system-ui, sans-serif;
  --font-mono:      'Courier New', monospace;

  /* ── Font Sizes ── */
  --text-xs:      0.625rem;   /* 10px */
  --text-sm:      0.75rem;    /* 12px */
  --text-base:    0.875rem;   /* 14px */
  --text-md:      1rem;       /* 16px */
  --text-lg:      1.125rem;   /* 18px */
  --text-xl:      1.25rem;    /* 20px */
  --text-2xl:     1.5rem;     /* 24px */
  --text-3xl:     2rem;       /* 32px */
  --text-4xl:     2.75rem;    /* 44px */
  --text-5xl:     3.5rem;     /* 56px */
  --text-6xl:     4.5rem;     /* 72px */
  --text-7xl:     6rem;       /* 96px */

  /* ── Font Weights ── */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

  /* ── Line Heights ── */
  --leading-none:   1;
  --leading-tight:  1.15;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-relaxed:1.8;
  --leading-loose:  2.2;

  /* ── Letter Spacing ── */
  --tracking-tightest: -0.04em;
  --tracking-tight:    -0.02em;
  --tracking-normal:    0;
  --tracking-wide:      0.06em;
  --tracking-wider:     0.12em;
  --tracking-widest:    0.2em;
  --tracking-luxury:    0.35em;

  /* ── Spacing Scale ── */
  --space-1:   0.25rem;   /* 4px */
  --space-2:   0.5rem;    /* 8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */
  --space-40:  10rem;     /* 160px */

  /* ── Border Radius ── */
  --radius-none:   0;
  --radius-sm:     2px;
  --radius-md:     4px;
  --radius-lg:     8px;
  --radius-xl:     16px;
  --radius-full:   9999px;

  /* ── Shadows ── */
  --shadow-xs:   0 1px 2px rgba(0,7,27,0.04);
  --shadow-sm:   0 2px 8px rgba(0,7,27,0.06);
  --shadow-md:   0 4px 20px rgba(0,7,27,0.08);
  --shadow-lg:   0 8px 40px rgba(0,7,27,0.12);
  --shadow-xl:   0 16px 60px rgba(0,7,27,0.16);
  --shadow-gold: 0 4px 24px rgba(214,181,133,0.25);
  --shadow-navy: 0 4px 24px rgba(28,49,99,0.20);
  --shadow-card: 0 2px 12px rgba(0,7,27,0.07), 0 1px 3px rgba(0,7,27,0.04);

  /* ── Transitions ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;
  --duration-slower: 800ms;

  /* ── Z-Index Stack ── */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* ── Layout ── */
  --container-max:  1440px;
  --container-wide: 1280px;
  --container-mid:  1080px;
  --container-sm:   768px;
  --header-height:  72px;
  --sidebar-width:  280px;

  /* ── Border ── */
  --border-thin:   1px solid var(--gray-200);
  --border-light:  1px solid var(--gray-100);
  --border-mid:    1px solid var(--gray-300);
  --border-gold:   1px solid var(--gold);
  --border-navy:   1px solid var(--navy);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--gray-800);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover { color: var(--navy); }

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

input, select, textarea {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  outline: none;
}

ul, ol { list-style: none; }

/* ============================================================
   4. TYPOGRAPHY SYSTEM
   ============================================================ */

/* Display — Cormorant Garamond — Hero titles */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
}
.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.display-md {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
}
.display-sm {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
}

/* Headings — Playfair Display */
.h1 { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.h2 { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.h3 { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: var(--weight-semi); line-height: var(--leading-snug); }
.h4 { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--weight-medium); line-height: var(--leading-normal); }
.h5 { font-family: var(--font-body); font-size: var(--text-md); font-weight: var(--weight-semi); line-height: var(--leading-normal); }
.h6 { font-family: var(--font-body); font-size: var(--text-base); font-weight: var(--weight-semi); letter-spacing: var(--tracking-wide); }

/* Body text */
.body-lg { font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.body-md { font-size: var(--text-md); line-height: var(--leading-relaxed); }
.body-sm { font-size: var(--text-base); line-height: var(--leading-normal); }
.body-xs { font-size: var(--text-sm); line-height: var(--leading-normal); }

/* Labels & Eyebrows */
.label-luxury {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-luxury);
  text-transform: uppercase;
  color: var(--gold-dark);
}
.label-section {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gray-500);
}
.label-nav {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* ============================================================
   5. LAYOUT SYSTEM
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-mid {
  max-width: var(--container-mid);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Sections */
.section {
  padding: var(--space-20) 0;
}
.section-sm {
  padding: var(--space-12) 0;
}
.section-lg {
  padding: var(--space-32) 0;
}

/* Grid system */
.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.product-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

/* ============================================================
   6. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-none);
  transition: all var(--duration-normal) var(--ease-luxury);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Primary — Navy */
.btn-primary {
  background-color: var(--navy-dark);
  color: var(--ivory);
  border-color: var(--navy-dark);
}
.btn-primary:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
  transform: translateY(-1px);
  box-shadow: var(--shadow-navy);
}

/* Secondary — Gold */
.btn-gold {
  background-color: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--ivory);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Outline — Navy */
.btn-outline {
  background-color: transparent;
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}
.btn-outline:hover {
  background-color: var(--navy-dark);
  color: var(--ivory);
}

/* Outline — Gold */
.btn-outline-gold {
  background-color: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--navy-dark);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--navy); }

/* Sizes */
.btn-sm { font-size: var(--text-xs); padding: var(--space-2) var(--space-5); }
.btn-lg { font-size: var(--text-base); padding: var(--space-5) var(--space-10); }
.btn-xl { font-size: var(--text-md); padding: var(--space-6) var(--space-12); }
.btn-full { width: 100%; }

/* Icon Button */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-none);
  border: var(--border-thin);
  color: var(--gray-700);
  background: transparent;
}
.btn-icon:hover {
  background: var(--navy-dark);
  color: var(--ivory);
  border-color: var(--navy-dark);
}

/* ============================================================
   7. FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-600);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-none);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--gray-800);
  transition: border-color var(--duration-fast) var(--ease-out);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,49,99,0.08);
}

.form-input::placeholder { color: var(--gray-400); }
.form-textarea { resize: vertical; min-height: 120px; }

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* ============================================================
   8. CARD SYSTEM
   ============================================================ */

/* Product Card */
.product-card {
  position: relative;
  background: var(--white);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-luxury),
              box-shadow var(--duration-normal) var(--ease-luxury);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card:hover .card-actions { opacity: 1; transform: translateY(0); }

.product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-100);
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}
.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  z-index: var(--z-raised);
}
.badge-new { background: var(--navy-dark); color: var(--ivory); }
.badge-sale { background: var(--error); color: var(--white); }
.badge-trending { background: var(--gold); color: var(--navy-dark); }
.badge-exclusive { background: var(--navy); color: var(--ivory); }

.card-actions {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: var(--space-4);
  display: flex;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-luxury);
  z-index: var(--z-raised);
}

.product-card__body {
  padding: var(--space-4) var(--space-2) var(--space-2);
}
.product-card__seller {
  font-size: var(--text-xs);
  color: var(--gray-400);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--gray-800);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}
.product-card__price {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.price-current {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--navy-dark);
}
.price-original {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-decoration: line-through;
}
.price-discount {
  font-size: var(--text-xs);
  color: var(--success);
  font-weight: var(--weight-medium);
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.stars { color: var(--gold); font-size: var(--text-sm); }
.rating-count { font-size: var(--text-xs); color: var(--gray-400); }

/* Wishlist btn on card */
.btn-wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: var(--z-raised);
  transition: all var(--duration-fast) var(--ease-out);
  color: var(--gray-400);
}
.btn-wishlist:hover,
.btn-wishlist.active { color: var(--error); transform: scale(1.1); }

/* General card */
.card {
  background: var(--white);
  border: var(--border-thin);
  padding: var(--space-6);
  transition: box-shadow var(--duration-normal) var(--ease-luxury);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-shadow { box-shadow: var(--shadow-card); border: none; }

/* ============================================================
   9. BADGE & TAG SYSTEM
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-none);
}
.tag-navy { background: var(--navy); color: var(--ivory); }
.tag-gold { background: var(--gold-light); color: var(--gold-dark); border: 1px solid var(--gold); }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-error { background: var(--error-bg); color: var(--error); }

/* ============================================================
   10. HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ivory);
  border-bottom: var(--border-thin);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Top Bar */
.top-bar {
  background: var(--navy-dark);
  color: var(--ivory);
  padding: var(--space-2) 0;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-align: center;
}

/* Header main row */
.header-main {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  gap: var(--space-8);
}

/* Logo */
.site-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-widest);
  color: var(--navy-dark);
  text-transform: uppercase;
  white-space: nowrap;
}
.site-logo span { color: var(--gold-dark); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-links > li > a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gray-700);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold-dark);
  transition: width var(--duration-normal) var(--ease-luxury);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--navy-dark); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid transparent;
  padding: var(--space-2) var(--space-4);
  gap: var(--space-2);
  transition: all var(--duration-fast) var(--ease-out);
  min-width: 220px;
}
.header-search:focus-within {
  border-color: var(--navy);
  background: var(--white);
}
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: var(--text-sm);
  color: var(--gray-800);
}
.header-search input::placeholder { color: var(--gray-400); }

/* Cart badge */
.cart-badge {
  position: relative;
}
.cart-badge .count {
  position: absolute;
  top: -4px; right: -6px;
  width: 18px; height: 18px;
  background: var(--navy-dark);
  color: var(--ivory);
  font-size: 10px;
  font-weight: var(--weight-semi);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   11. MEGA MENU
   ============================================================ */
.mega-menu-wrapper {
  position: relative;
}
.mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 800px;
  background: var(--white);
  border-top: 2px solid var(--navy-dark);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-luxury);
  z-index: var(--z-dropdown);
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 0;
}
.mega-menu-wrapper:hover .mega-menu,
.mega-menu-wrapper:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.mega-col {
  padding: var(--space-8);
  border-right: var(--border-thin);
}
.mega-col:last-child { border-right: none; }
.mega-col-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-luxury);
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-5);
}
.mega-col ul li {
  margin-bottom: var(--space-3);
}
.mega-col ul li a {
  font-size: var(--text-base);
  color: var(--gray-600);
  transition: color var(--duration-fast);
}
.mega-col ul li a:hover { color: var(--navy-dark); }
.mega-featured-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ============================================================
   12. MOBILE MENU
   ============================================================ */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--gray-800);
  transition: all var(--duration-normal) var(--ease-luxury);
  display: block;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--ivory);
  z-index: var(--z-modal);
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-luxury);
  overflow-y: auto;
  padding: var(--space-8) var(--space-6);
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; pointer-events: all; }
.mobile-nav-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-size: var(--text-2xl);
  color: var(--gray-700);
  cursor: pointer;
  background: none;
  border: none;
}
.mobile-nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-widest);
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-bottom: var(--space-10);
}
.mobile-nav-links { list-style: none; }
.mobile-nav-links li {
  border-bottom: var(--border-light);
}
.mobile-nav-links > li > a {
  display: block;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  color: var(--gray-800);
  letter-spacing: var(--tracking-tight);
}
.mobile-nav-links > li > a:hover { color: var(--navy-dark); }

/* Mobile accordion */
.mobile-accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  color: var(--gray-800);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  letter-spacing: var(--tracking-tight);
}
.mobile-accordion-toggle .icon {
  font-size: var(--text-lg);
  transition: transform var(--duration-normal);
  color: var(--gold-dark);
}
.mobile-accordion-toggle.open .icon { transform: rotate(45deg); }
.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-luxury);
}
.mobile-accordion-content.open { max-height: 500px; }
.mobile-accordion-content a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--gray-500);
  border-bottom: var(--border-light);
}
.mobile-accordion-content a:last-child { border-bottom: none; }

/* ============================================================
   13. BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-400);
  padding: var(--space-5) 0;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .separator { color: var(--gray-300); }
.breadcrumb .current { color: var(--gray-700); }

/* ============================================================
   14. SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-header.left { text-align: left; }
.section-header .eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-luxury);
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-4);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-regular);
  color: var(--navy-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}
.section-header p {
  font-size: var(--text-md);
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}
.section-header.left p { margin: 0; }

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: var(--space-5) auto var(--space-6);
}
.section-divider.left { margin-left: 0; }

/* ============================================================
   15. SIDEBAR FILTERS (Category Page)
   ============================================================ */
.filter-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  max-height: calc(100vh - var(--header-height) - var(--space-12));
  overflow-y: auto;
}
.filter-sidebar::-webkit-scrollbar { width: 3px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); }

.filter-group {
  border-bottom: var(--border-thin);
  padding: var(--space-5) 0;
}
.filter-group:first-child { padding-top: 0; }
.filter-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-700);
  cursor: pointer;
  padding: var(--space-2) 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.filter-group-title .chevron {
  transition: transform var(--duration-normal);
  color: var(--gray-400);
  font-size: var(--text-xs);
}
.filter-group-title.collapsed .chevron { transform: rotate(-90deg); }
.filter-options {
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.filter-options.collapsed { display: none; }

/* Color swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--duration-fast);
}
.color-swatch:hover,
.color-swatch.active { border-color: var(--navy); transform: scale(1.15); }

/* Size buttons */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
}
.size-btn {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--gray-200);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast);
  background: transparent;
  color: var(--gray-600);
}
.size-btn:hover,
.size-btn.active {
  background: var(--navy-dark);
  color: var(--ivory);
  border-color: var(--navy-dark);
}

/* Price range slider */
.price-range {
  padding: var(--space-3) 0;
}
.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--navy);
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-2);
}

/* Mobile filter overlay */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,7,27,0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}
.filter-overlay.open { opacity: 1; visibility: visible; }
.filter-drawer {
  position: fixed;
  left: 0; top: 0;
  width: 300px; height: 100%;
  background: var(--ivory);
  z-index: var(--z-modal);
  padding: var(--space-8) var(--space-6);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-luxury);
}
.filter-drawer.open { transform: translateX(0); }

/* ============================================================
   16. SORT BAR
   ============================================================ */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: var(--border-thin);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.result-count {
  font-size: var(--text-sm);
  color: var(--gray-500);
}
.sort-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.sort-select {
  padding: var(--space-2) var(--space-4);
  border: var(--border-thin);
  background: var(--white);
  font-size: var(--text-sm);
  color: var(--gray-700);
  cursor: pointer;
  appearance: none;
  padding-right: var(--space-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
}

/* ============================================================
   17. DASHBOARD LAYOUT
   ============================================================ */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  background: var(--gray-50);
}

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--navy-dark);
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  transition: width var(--duration-normal) var(--ease-luxury);
}
.dashboard-sidebar::-webkit-scrollbar { width: 3px; }

.sidebar-logo {
  padding: var(--space-8) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo .logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-widest);
  color: var(--ivory);
  text-transform: uppercase;
}
.sidebar-logo .logo-role {
  font-size: var(--text-xs);
  color: var(--gold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.sidebar-nav {
  padding: var(--space-5) 0;
}
.sidebar-nav-section {
  margin-bottom: var(--space-6);
}
.sidebar-nav-section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-luxury);
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 0 var(--space-6) var(--space-3);
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.sidebar-nav-item:hover,
.sidebar-nav-item.active {
  color: var(--ivory);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--gold);
}
.sidebar-nav-item.active {
  color: var(--gold-light);
  background: rgba(214,181,133,0.08);
}
.sidebar-nav-item .nav-icon {
  width: 18px;
  font-size: var(--text-base);
  flex-shrink: 0;
}
.sidebar-nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 10px;
  font-weight: var(--weight-semi);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.dashboard-content {
  flex: 1;
  padding: var(--space-8);
  overflow-x: hidden;
}

.dashboard-header {
  margin-bottom: var(--space-8);
}
.dashboard-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  color: var(--navy-dark);
  margin-bottom: var(--space-2);
}
.dashboard-subtitle {
  font-size: var(--text-base);
  color: var(--gray-500);
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.stat-card {
  background: var(--white);
  padding: var(--space-6);
  border: var(--border-thin);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
}
.stat-card .stat-icon {
  font-size: var(--text-3xl);
  color: var(--gold);
  margin-bottom: var(--space-4);
  opacity: 0.8;
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-2);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-medium);
  color: var(--navy-dark);
  line-height: var(--leading-none);
  margin-bottom: var(--space-2);
}
.stat-change {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: var(--text-sm);
}
.data-table thead tr {
  border-bottom: 2px solid var(--gray-200);
}
.data-table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
}
.data-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-light);
  color: var(--gray-700);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }

/* Tabs */
.tabs {
  display: flex;
  border-bottom: var(--border-thin);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  gap: 0;
}
.tab-btn {
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
  transition: all var(--duration-fast);
}
.tab-btn:hover { color: var(--navy-dark); }
.tab-btn.active {
  color: var(--navy-dark);
  border-bottom-color: var(--navy-dark);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   18. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-10) 0;
}
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gray-600);
  cursor: pointer;
  background: var(--white);
  transition: all var(--duration-fast);
}
.page-btn:hover,
.page-btn.active {
  background: var(--navy-dark);
  color: var(--ivory);
  border-color: var(--navy-dark);
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   19. HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transition: opacity var(--duration-slower);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,7,27,0.85) 0%,
    rgba(0,7,27,0.45) 50%,
    rgba(0,7,27,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: var(--z-raised);
  max-width: 640px;
  padding: var(--space-20) var(--space-8);
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-luxury);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ivory);
  margin-bottom: var(--space-6);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(254,255,255,0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  font-weight: var(--weight-light);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: rgba(254,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  z-index: var(--z-raised);
  animation: bounceDown 2s infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   20. CATEGORY CARDS
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}
.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 2/3;
  background: var(--gray-200);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}
.category-card:hover img { transform: scale(1.06); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,7,27,0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
}
.category-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  color: var(--ivory);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
}
.category-card-count {
  font-size: var(--text-xs);
  color: var(--gold-light);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ============================================================
   21. FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(254,255,255,0.7);
}
.footer-top {
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
}
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-widest);
  color: var(--ivory);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.footer-brand p {
  font-size: var(--text-base);
  color: rgba(254,255,255,0.5);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(254,255,255,0.5);
  font-size: var(--text-sm);
  transition: all var(--duration-fast);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(214,181,133,0.1);
}
.footer-col-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-luxury);
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: var(--space-5);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(254,255,255,0.5);
  transition: color var(--duration-fast);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-newsletter input {
  width: 100%;
  padding: var(--space-4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ivory);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.footer-newsletter input::placeholder { color: rgba(254,255,255,0.35); }
.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(254,255,255,0.3);
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(254,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   22. TOAST / NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  background: var(--navy-dark);
  color: var(--ivory);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xl);
  animation: toastIn var(--duration-normal) var(--ease-out);
  min-width: 280px;
  max-width: 380px;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.gold .toast-icon { color: var(--gold); }
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   23. MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,7,27,0.65);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(12px);
  transition: transform var(--duration-normal) var(--ease-luxury);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: var(--space-8) var(--space-8) var(--space-6);
  border-bottom: var(--border-thin);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  color: var(--navy-dark);
}
.modal-body { padding: var(--space-8); }
.modal-footer {
  padding: var(--space-6) var(--space-8);
  border-top: var(--border-thin);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}
.modal-close {
  font-size: var(--text-xl);
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--duration-fast);
}
.modal-close:hover { color: var(--gray-800); }

/* ============================================================
   24. PRODUCT IMAGE GALLERY
   ============================================================ */
.gallery-main {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-100);
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  overflow-x: auto;
}
.gallery-thumb {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--duration-fast);
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--navy-dark); }

/* ============================================================
   25. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-navy { color: var(--navy-dark); }
.text-gold { color: var(--gold-dark); }
.text-gray { color: var(--gray-500); }
.text-muted { color: var(--gray-400); }
.text-white { color: var(--white); }
.text-ivory { color: var(--ivory); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.bg-navy { background: var(--navy-dark); }
.bg-ivory { background: var(--ivory); }
.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }
.bg-gold { background: var(--gold); }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.visible { display: block !important; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.divider {
  height: 1px;
  background: var(--gray-200);
  width: 100%;
  margin: var(--space-6) 0;
}
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 100%;
  margin: var(--space-8) 0;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ============================================================
   26. RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --header-height: 64px;
    --sidebar-width: 240px;
  }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-8); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .mega-menu { width: 640px; grid-template-columns: 1fr 1fr; }
  .mega-menu > div:last-child { display: none; }

  .section { padding: var(--space-16) 0; }
  .section-lg { padding: var(--space-20) 0; }

  .display-xl { font-size: var(--text-6xl); }
  .display-lg { font-size: var(--text-5xl); }

  .hero { min-height: 75vh; }
}

/* ============================================================
   27. RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* Hide desktop nav */
  .nav-links, .header-search { display: none; }
  .mobile-menu-toggle { display: flex; }

  /* Header compact */
  .header-main { padding: 0 var(--space-4); gap: var(--space-3); }
  .site-logo { font-size: var(--text-xl); }

  /* Typography scale down */
  .display-xl { font-size: var(--text-5xl); }
  .display-lg { font-size: var(--text-4xl); }
  .display-md { font-size: var(--text-3xl); }
  .section-header h2 { font-size: var(--text-3xl); }
  .hero-title { font-size: clamp(2.5rem, 9vw, 4rem); }

  /* Grids */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .product-grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .product-grid-5 { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  /* Layout */
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  .section-lg { padding: var(--space-16) 0; }
  .section-header { margin-bottom: var(--space-8); }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-content { padding: var(--space-12) var(--space-4); }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Dashboard on mobile */
  .dashboard-sidebar {
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-luxury);
  }
  .dashboard-sidebar.open { transform: translateX(0); }
  .dashboard-wrapper { display: block; }
  .dashboard-content { padding: var(--space-5) var(--space-4); }

  /* Tables to cards on mobile */
  .data-table-responsive { overflow-x: auto; }
  .data-table-responsive .data-table {
    min-width: 600px;
  }

  /* Filter sidebar to drawer */
  .filter-sidebar { display: none; }

  /* Sort bar */
  .sort-bar { flex-direction: column; align-items: flex-start; }

  /* Product page gallery */
  .gallery-thumbs { gap: var(--space-2); }
  .gallery-thumb { width: 64px; height: 80px; }

  /* Hide some utility */
  .hide-mobile { display: none !important; }

  /* Pagination compact */
  .pagination .page-btn:not(.active):not(:first-child):not(:last-child):nth-child(n+4):nth-child(-n+7) {
    display: none;
  }
}

/* ============================================================
   28. RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-xl { font-size: var(--text-sm); padding: var(--space-4) var(--space-8); }
  .section-header h2 { font-size: var(--text-2xl); }
  .dashboard-title { font-size: var(--text-2xl); }
  .stat-value { font-size: var(--text-2xl); }
}

/* ============================================================
   29. PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .btn, .mobile-menu-toggle { display: none; }
  body { color: #000; background: #fff; }
}

/* ============================================================
   30. SCROLLBAR CUSTOMIZATION
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================================
   31. SELECTION STYLES
   ============================================================ */
::selection {
  background: var(--gold-light);
  color: var(--navy-dark);
}

/* ============================================================
   END OF KUKS & CO DESIGN SYSTEM
   ============================================================ */

/* ============================================================
   KUKS & CO LOGO IMAGE — Global
   ============================================================ */
.logo-wrap {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}
.logo-img:hover { opacity: 0.85; }

/* Hide fallback text when image is loaded */
.logo-main { display: none; }
.logo-sub  { display: none; }

/* Mobile logo sizing */
@media (max-width: 768px) {
  .logo-img { height: 36px; max-width: 120px; }
}
@media (max-width: 480px) {
  .logo-img { height: 30px; max-width: 100px; }
}
/* ============================================================
   END LOGO STYLES
   ============================================================ */
