:root {
  --bg-primary: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-surface-soft: #F4EFEB;
  --bg-dark: #121417;
  --bg-dark-card: #1B1E23;
  --text-primary: #14171A;
  --text-secondary: #6B7280;
  --text-light: #FAF9F6;
  --text-muted: #9CA3AF;
  --accent-gold: #C5A059;
  --gold-accent: #C5A059;
  --accent-gold-dark: #9F7E3B;
  --accent-gold-light: #F4EAD4;
  --border-color: #E6E1D8;
  --border-dark: #2B2F38;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

button, input, select, textarea {
  font-family: inherit;
}

/* Announcement Top Bar */
.top-bar {
  background: var(--bg-dark);
  color: #D1D5DB;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .announcement {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-app-link {
  color: #FFF2C6;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.6);
  padding: 2px 10px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-app-link:hover {
  background: var(--accent-gold);
  color: #111;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.top-bar .top-bar-link {
  color: var(--accent-gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar .top-bar-link:hover {
  color: #fff;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  text-align: left;
}

.brand-logo a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-logo-main {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
}

.logo-nordic {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--bg-dark);
  line-height: 0.9;
  transform: translateY(-2px);
}

.logo-pc-img {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-logo h1 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--bg-dark);
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-logo span, .brand-logo span.brand-tagline {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-surface-soft);
  color: var(--accent-gold-dark);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Persistent Top-Right Cart Button */
.fixed-floating-cart-btn {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111827;
  color: #FFFFFF;
  border: 1.5px solid var(--accent-gold, #D4AF37);
  border-radius: 30px;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: all 0.22s ease;
  text-decoration: none;
}

.fixed-floating-cart-btn:hover {
  transform: translateY(-2px);
  background: #000000;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
  border-color: #E6CA65;
}

.fixed-floating-cart-btn svg {
  color: #FFFFFF;
}

.fixed-floating-cart-btn .cart-btn-label {
  display: inline;
}

.fixed-floating-cart-btn .cart-count-badge {
  background: var(--accent-gold, #D4AF37);
  color: #111827;
  font-size: 0.74rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  text-align: center;
  padding: 0 5px;
  display: inline-block;
}

@media (max-width: 640px) {
  .fixed-floating-cart-btn {
    top: 10px;
    right: 12px;
    padding: 7px 11px;
    gap: 6px;
  }
  .fixed-floating-cart-btn .cart-btn-label {
    display: none;
  }
}

.btn-admin-pill {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 14px;
  background: var(--bg-dark);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-dark);
}

.btn-admin-pill:hover {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(to right, rgba(18, 20, 23, 0.85), rgba(18, 20, 23, 0.6)), url('https://images.unsplash.com/photo-1547887537-6158d64c35b3?w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 100px 24px;
  display: flex;
  align-items: center;
  min-height: 520px;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  display: block;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: #D1D5DB;
  line-height: 1.7;
  margin-bottom: 34px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-gold);
  color: #fff;
  padding: 14px 32px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px 28px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}

/* Value Props Bar */
.value-props {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 24px;
}

.value-props-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.prop-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prop-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-surface-soft);
  color: var(--accent-gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prop-text h4 {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.prop-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Main Section */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 0.76rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--bg-dark);
}

/* Filter Controls */
.filter-bar {
  background: var(--bg-surface);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-subtle);
}

.filter-row-top {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: #fff;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-wrapper label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sort-select {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
}

.filter-categories, .filter-families {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-pill {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.filter-pill:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
}

.filter-pill.active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #D6CFBE;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-dark);
  color: var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-category-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
  border: 1px solid var(--border-color);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 105%;
  background: #F3EFEA;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.card-slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.card-slide-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.card-slide-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.product-card:hover .card-slide-item img {
  transform: scale(1.04);
}

/* Card Slider Navigation Arrows */
.card-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #121417;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card-slider-arrow svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.product-card:hover .card-slider-arrow {
  opacity: 0.92;
  pointer-events: auto;
}

@media (hover: none), (max-width: 768px) {
  .card-slider-arrow {
    opacity: 0.88;
    pointer-events: auto;
  }
}

.card-slider-arrow:hover {
  opacity: 1;
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.card-slider-prev {
  left: 8px;
}

.card-slider-next {
  right: 8px;
}

/* Card Slider Dots */
.card-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease;
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(18, 20, 23, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-dot:hover {
  background: rgba(18, 20, 23, 0.7);
}

.card-dot.active {
  background: #121417;
  width: 15px;
  border-radius: 6px;
}

.product-image-container img.img-primary {
  opacity: 1;
  z-index: 1;
}

.product-image-container img.img-secondary {
  opacity: 0;
  z-index: 2;
}

.product-quick-view-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 20, 23, 0.7);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover .product-quick-view-overlay {
  transform: translateY(0);
}

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

.product-brand {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--bg-dark);
  margin-bottom: 4px;
  line-height: 1.25;
  cursor: pointer;
}

.product-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-notes-preview {
  font-size: 0.76rem;
  color: #555;
  background: var(--bg-surface-soft);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  line-height: 1.4;
  border-left: 2px solid var(--accent-gold);
}

/* Card Size Selector on Homepage Catalog */
.card-size-section {
  margin: 10px 0 14px;
  padding: 8px 10px;
  background: #FAF8F5;
  border-radius: var(--radius-sm);
  border: 1px solid #ECE7DE;
}

.card-size-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-size-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.card-size-hint {
  font-size: 0.68rem;
  color: var(--accent-gold-dark);
  font-weight: 600;
}

.card-size-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 6px;
}

.card-size-pill {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #D8D2C4;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  text-align: center;
  user-select: none;
}

.card-size-pill:hover:not(.is-oos) {
  border-color: var(--accent-gold);
  background: #FFFDF9;
  box-shadow: 0 2px 8px rgba(179, 142, 70, 0.22);
  transform: translateY(-1px);
}

.card-size-pill:active:not(.is-oos) {
  transform: translateY(0);
  background: #F5EFE0;
}

.card-size-pill.selected {
  border-color: var(--accent-gold);
  background: #FFF9EE;
  box-shadow: 0 0 0 2px rgba(179, 142, 70, 0.35);
}

.card-size-pill .pill-ml {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.2;
}

.card-size-pill .pill-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  margin-top: 2px;
  line-height: 1.2;
}

.card-size-pill.is-oos {
  background: #F3F4F6;
  border: 1px dashed #D1D5DB;
  opacity: 0.65;
  cursor: not-allowed;
}

.card-size-pill.is-oos .pill-ml {
  color: #9CA3AF;
  text-decoration: line-through;
}

.card-size-pill.is-oos .pill-price {
  color: #9CA3AF;
}

.pill-oos-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #DC2626;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.compare-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-discount-badge {
  display: inline-block;
  background: #DC2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.pill-discount-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #DC2626;
  background: #FEE2E2;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 3px;
  vertical-align: middle;
}

.btn-add-cart {
  background: var(--bg-dark);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--accent-gold);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 20, 23, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlide 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-dark);
  color: #fff;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.modal-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #F3EFEA;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-main-img-wrap {
  width: 100%;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #F9FAFB;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  padding: 2px;
  position: relative;
  transition: all 0.2s ease;
}

.gallery-thumb-btn:hover {
  border-color: #9CA3AF;
  transform: translateY(-2px);
}

.gallery-thumb-btn.active {
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 1px var(--gold-accent);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-thumb-badge {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: rgba(18, 20, 23, 0.8);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  border-radius: 3px;
  padding: 1px 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.modal-info h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 4px;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.modal-price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 20px;
}

/* Pyramid Notes Component */
.olfactory-pyramid {
  margin: 24px 0;
  background: var(--bg-surface-soft);
  padding: 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}

.olfactory-pyramid h4 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 12px;
}

.note-row {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.note-label {
  font-weight: 600;
  color: var(--bg-dark);
  margin-right: 6px;
}

.size-selector {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.size-btn {
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.size-btn.active {
  border-color: var(--bg-dark);
  background: var(--bg-dark);
  color: #fff;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 301;
}

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

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #F3EFEA;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-dark);
}

.cart-item-size {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  margin-top: 4px;
}

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

.qty-btn {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--bg-dark);
  color: #fff;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-soft);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-checkout {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--accent-gold);
}

/* Luxury Official Payment Badges */
.payment-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 8px 0 6px;
}

.checkout-payment-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
}

button.pay-card-item,
button.pay-card-mobilepay-btn {
  font: inherit;
  color: inherit;
  background-color: transparent;
  outline: none;
  border: none;
  padding: 0;
  margin: 0;
}

.pay-card-item {
  height: 30px;
  padding: 3px 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pay-card-item:hover {
  border-color: var(--accent-gold, #c5a880);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.pay-card-item:active {
  transform: scale(0.95);
}

.pay-card-item img {
  height: 100%;
  max-height: 20px;
  width: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.pay-card-mobilepay-btn {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(90, 120, 255, 0.35);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pay-card-mobilepay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 120, 255, 0.5);
}

.pay-card-mobilepay-btn:active {
  transform: scale(0.95);
}

.pay-card-mobilepay-btn img {
  height: 30px;
  width: auto;
  display: block;
  pointer-events: none;
}

/* Selected state inside Checkout Modal */
.checkout-payment-badges-wrap .pay-card-item.selected {
  border-color: #059669;
  border-width: 2px;
  background: #F0FDF4;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
  transform: translateY(-1px);
}

.checkout-payment-badges-wrap .pay-card-mobilepay-btn.selected {
  outline: 2.5px solid #2563EB;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #D1D5DB;
  padding: 60px 24px 30px;
  border-top: 1px solid var(--border-dark);
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

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

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

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #9CA3AF;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #9CA3AF;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  max-width: 1360px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  text-align: center;
  font-size: 0.78rem;
  color: #6B7280;
}

/* Mobile & Tablet Responsive Adjustments */
@media (max-width: 768px) {
  .header-container {
    padding: 10px 14px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .logo-nordic {
    font-size: 1.15rem;
  }

  .logo-pc-img {
    height: 19px;
  }

  .brand-logo {
    max-width: none;
    flex: 1;
    min-width: 0;
  }

  .brand-logo h1 {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo span, .brand-logo span.brand-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }

  .top-bar {
    font-size: 0.68rem;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 6px 8px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .top-bar-desktop-item {
    display: none !important;
  }
  .top-app-link {
    font-size: 0.65rem;
    padding: 2px 8px;
  }

  .card-size-pills {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  }
}

/* --- SEPHORA-STYLE HEADER & NAVIGATION DRAWER --- */
.sephora-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E7EB;
  z-index: 1000;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sephora-header .header-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 1. Hamburger Button (3 lines) */
.menu-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  transition: background-color 0.15s ease, transform 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  background-color: #F3F4F6;
}

.menu-toggle-btn:active {
  transform: scale(0.92);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #111827;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Brand Logo in Sephora header */
.sephora-header .brand-logo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 140px);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0 6px;
  margin: 0 auto;
}

.sephora-header .brand-logo a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.sephora-header .brand-logo h1,
.sephora-header .brand-logo .brand-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(0.78rem, 3.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111827;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sephora-header .brand-logo span,
.sephora-header .brand-logo .brand-tagline {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--accent-gold, #C5A880);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
}

/* 3. Desktop Search Bar (Sephora central bar) */
.desktop-search-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 480px;
  margin: 0 16px;
  position: relative;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 24px;
  padding: 0 14px;
  height: 42px;
  transition: all 0.2s ease;
}

.desktop-search-wrapper:focus-within {
  background: #FFFFFF;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.desktop-search-wrapper .search-icon-inside {
  color: #6B7280;
  margin-right: 10px;
  flex-shrink: 0;
}

.desktop-search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  color: #111827;
  font-family: inherit;
}

.desktop-search-wrapper input::placeholder {
  color: #9CA3AF;
  font-size: 0.84rem;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.search-clear-btn:hover {
  color: #111827;
}

/* 4. Header Actions (Right side: Search icon on mobile + Cart bag) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: none; /* Shown on tablet / mobile */
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #111827;
  transition: background-color 0.15s ease, transform 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.header-search-btn:hover {
  background-color: #F3F4F6;
}

.header-search-btn:active {
  transform: scale(0.92);
}

.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #111827;
  color: #FFFFFF;
  border: 1.5px solid var(--accent-gold, #D4AF37);
  border-radius: 24px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.header-cart-btn:hover {
  background: #000000;
  border-color: #E6CA65;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.header-cart-btn:active {
  transform: scale(0.95);
}

.header-cart-btn svg {
  color: #FFFFFF;
  flex-shrink: 0;
}

.header-cart-btn .cart-btn-label {
  display: inline;
}

.header-cart-btn .cart-count-badge {
  background: var(--accent-gold, #D4AF37);
  color: #111827;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  line-height: 19px;
  border-radius: 10px;
  text-align: center;
  padding: 0 5px;
  display: inline-block;
}

/* 5. Mobile Expandable Search Dropdown */
.mobile-search-bar {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, padding 0.25s ease;
  background: #FFFFFF;
  border-top: 1px solid transparent;
  padding: 0 16px;
  position: relative;
}

.mobile-search-bar.active {
  max-height: 120px;
  opacity: 1;
  border-top-color: #F3F4F6;
  padding: 10px 16px 14px;
  overflow: visible !important;
}

.mobile-search-inner {
  display: flex;
  align-items: center;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 24px;
  padding: 0 14px;
  height: 42px;
  transition: border-color 0.2s ease;
}

.mobile-search-inner:focus-within {
  border-color: #111827;
  background: #FFFFFF;
}

.mobile-search-inner svg {
  color: #6B7280;
  margin-right: 10px;
  flex-shrink: 0;
}

.mobile-search-inner input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: #111827;
}

.mobile-search-inner input::placeholder {
  color: #9CA3AF;
  font-size: 0.84rem;
}

.mobile-search-clear-btn {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

/* --- Search Dismiss Backdrop (Crystal clear, NO blur, non-intrusive) --- */
.search-dim-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 995;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.search-dim-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Live Instant Search Dropdown (Sephora Style / Prim Plan) --- */
.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #E5E7EB;
  z-index: 1050;
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  animation: searchDropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-search-dropdown.active {
  display: block;
}

.mobile-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 12px;
  right: 12px;
  max-height: calc(85vh - 120px);
}

@keyframes searchDropFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-drop-header {
  padding: 10px 16px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-drop-count-badge {
  background: #E5E7EB;
  color: #374151;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.search-drop-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.search-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.15s ease;
  cursor: pointer;
}

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

.search-drop-item:hover,
.search-drop-item:active {
  background: #F9FAFB;
}

.search-drop-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.search-drop-info {
  flex: 1;
  min-width: 0;
}

.search-drop-brand {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold, #854D0E);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-sub {
  font-size: 0.74rem;
  color: #6B7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-pricing {
  text-align: right;
  flex-shrink: 0;
}

.search-drop-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.search-drop-compare {
  font-size: 0.74rem;
  color: #9CA3AF;
  text-decoration: line-through;
  white-space: nowrap;
}

.search-drop-footer {
  padding: 10px 14px;
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  text-align: center;
}

.search-drop-see-all-btn {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: #111827;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.search-drop-see-all-btn:hover {
  background: #374151;
}

.search-drop-empty {
  padding: 24px 16px;
  text-align: center;
  color: #6B7280;
}

.search-drop-empty p {
  margin: 4px 0;
  font-size: 0.88rem;
}

.search-drop-empty .suggestions {
  font-size: 0.78rem;
  color: #9CA3AF;
  margin-top: 8px;
}

/* 6. Sephora-Style Side Navigation Drawer (3 Lines Menu) */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  max-width: 88vw;
  background: #FFFFFF;
  z-index: 10050;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

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

.nav-drawer-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F3F4F6;
  background: #FAFAFA;
}

.drawer-logo-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
  display: block;
}

.drawer-logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold, #C5A880);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.nav-drawer-close-btn {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-drawer-close-btn:hover {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 32px;
  -webkit-overflow-scrolling: touch;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 10px;
  padding-left: 4px;
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #1F2937;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: #F3F4F6;
  color: #111827;
  font-weight: 700;
  transform: translateX(3px);
}

.drawer-nav-item:active {
  background: #E5E7EB;
}

.drawer-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.drawer-text {
  flex: 1;
}

.drawer-badge {
  font-size: 0.65rem;
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drawer-arrow {
  font-size: 1.2rem;
  color: #9CA3AF;
  line-height: 1;
}

/* Brands pills inside drawer */
.drawer-brands-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.drawer-brand-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

.drawer-brand-btn:hover,
.drawer-brand-btn:active {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

.drawer-footer-section {
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
  margin-top: 8px;
}

.drawer-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  color: #4B5563;
  padding-left: 4px;
}

.drawer-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .desktop-search-wrapper {
    display: none;
  }
  .header-search-btn {
    display: inline-flex;
  }
  .sephora-header .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .sephora-header .header-container {
    padding: 8px 10px;
    gap: 6px;
    justify-content: space-between;
  }
  .sephora-header .brand-logo {
    max-width: calc(100% - 130px);
    padding: 0 4px;
    margin: 0 auto;
  }
  .sephora-header .brand-logo h1,
  .sephora-header .brand-logo .brand-title {
    font-size: clamp(0.74rem, 3.5vw, 0.94rem);
    letter-spacing: 0.04em;
    max-width: 100%;
  }
  .sephora-header .brand-logo span,
  .sephora-header .brand-logo .brand-tagline {
    font-size: 0.44rem;
    letter-spacing: 0.1em;
    max-width: 100%;
  }
  .header-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .header-cart-btn {
    padding: 6px 9px;
    gap: 5px;
    flex-shrink: 0;
  }
  .header-cart-btn .cart-btn-label {
    display: none;
  }
  .menu-toggle-btn {
    width: 36px;
    height: 36px;
    padding: 4px;
    flex-shrink: 0;
  }
  .header-search-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .sephora-header .brand-logo {
    max-width: calc(100% - 120px);
  }
  .sephora-header .brand-logo h1,
  .sephora-header .brand-logo .brand-title {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }
  .sephora-header .brand-logo span,
  .sephora-header .brand-logo .brand-tagline {
    display: none !important;
  }
}
