
/* --- Design Tokens --- */
:root {
  --bg-primary: #FAF9F6;     /* 60% Broken White/Warm Cream */
  --bg-secondary: #F4F0EA;   /* 30% Soft Warm Linen */
  --bg-card: #FAF9F6;
  
  --accent-color: #1E2220;   /* 10% High-contrast Charcoal/Ebony */
  --accent-hover: #3E4240;
  
  --romantic-color: #D4BFA6; /* Champagne Gold / Dusty Rose border & highlight */
  --romantic-hover: #C5AD91;
  
  --text-main: #1E2220;
  --text-muted: #7A7F7C;
  --text-light: #FAF9F6;
  
  --border-color: #E6E1DA;
  --border-hover: #D4BFA6;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease-out;
  
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

/* --- Layout Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

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

.nav-links a {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 0 0;
}

.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.04);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1 0 0;
}

.cart-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--accent-color);
  color: var(--text-light);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background-color: var(--bg-secondary);
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* --- Hero Banner Section --- */
.hero-banner-new {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9);
  transition: transform 8s ease-out;
}

.hero-banner-new:hover .hero-bg-img {
  transform: scale(1.03);
}

.hero-overlay-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

.hero-title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-btn-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1.5px solid #ffffff;
  padding-bottom: 4px;
  transition: var(--transition-fast);
}

.hero-btn-link:hover {
  opacity: 0.8;
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Aesthetic Texture Banner Section --- */
.aesthetic-banner-new {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  margin-top: 60px;
}

.aesthetic-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.95);
  transition: transform 8s ease-out;
}

.aesthetic-banner-new:hover .aesthetic-bg-img {
  transform: scale(1.02);
}

.aesthetic-overlay-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #1a1a1a;
  padding: 0 20px;
}

.aesthetic-title-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.aesthetic-btn-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1.5px solid #1a1a1a;
  padding-bottom: 4px;
  transition: var(--transition-fast);
}

.aesthetic-btn-link:hover {
  opacity: 0.7;
  border-color: rgba(26, 26, 26, 0.5);
}

/* --- Catalog Section Layout (Eberjey-style) --- */
.catalog-section {
  padding: 0 0 80px 0;
}

/* Page header: tagline + controls bar */
.catalog-page-header {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0 0 0;
  margin-bottom: 0;
}

.catalog-page-tagline {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px auto;
}

.catalog-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
}

.catalog-controls-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.filter-toggle-btn:hover {
  background-color: var(--bg-secondary);
}

.catalog-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
}

.catalog-product-count {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Catalog body: sidebar + product grid side by side */
.catalog-body {
  display: flex;
  align-items: flex-start;
}

/* Eberjey-style sidebar */
.eberjey-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  padding: 24px 20px 40px 0;
  min-height: 500px;
}

.eberjey-filter-group {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.eberjey-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-main);
}

.eberjey-filter-header svg {
  transition: transform 0.25s ease;
}

.eberjey-filter-header.open svg {
  transform: rotate(180deg);
}

.eberjey-filter-body {
  padding: 4px 0 14px 0;
  display: none;
}

.eberjey-filter-body.open {
  display: block;
}

.eberjey-clear-btn {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.eberjey-clear-btn:not(:disabled):hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.eberjey-clear-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Best Sellers heading */
.best-sellers-heading {
  padding: 28px 0 20px 24px;
  margin-bottom: 8px;
}

.best-sellers-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--romantic-color);
}

/* Product Grid (Eberjey-style) */
.product-grid-eberjey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
  padding: 0 16px 24px 16px;
}

/* Equal height cards — image fills fixed ratio, info fixed min-height */
.product-grid-eberjey .product-card {
  display: flex;
  flex-direction: column;
  border-right: none;
}

.product-grid-eberjey .product-image-container {
  width: 100%;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
}

.product-grid-eberjey .product-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 80px;
}

.catalog-wrapper {
  display: flex;
  gap: 48px;
}

/* --- Left-Sidebar Filtering --- */
.catalog-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.filter-group {
  margin-bottom: 28px;
}

.filter-group-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  color: var(--text-main);
}

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

.filter-checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.filter-checkbox-label:hover {
  color: var(--text-main);
}

.filter-checkbox-label input {
  margin-right: 10px;
  accent-color: var(--romantic-color);
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  cursor: pointer;
}

/* Color Filter Dots */
.color-dot-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-select-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.model-select-btn:hover {
  transform: scale(1.08);
  border-color: var(--accent-color);
  color: var(--text-main);
}

.model-select-btn.active {
  border: 1px solid var(--accent-color);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  box-shadow: 0 0 0 2px rgba(160, 130, 114, 0.2);
}

.color-dot-tooltip {
  visibility: hidden;
  background-color: var(--accent-color);
  color: var(--text-light);
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.model-select-btn:hover .color-dot-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Mobile Filter Toolbar Trigger */
.mobile-filter-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.mobile-filter-btn {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* --- Catalog Grid --- */
.catalog-content {
  flex-grow: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
}

.no-products-msg {
  grid-column: span 3;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 18px;
}

/* --- Product Card (Eberjey-style) --- */
.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-card);
  transition: var(--transition-smooth);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background-color: #F5F3F0;
  margin-bottom: 0;
  cursor: pointer;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Quick View overlay (like Eberjey) */
.product-quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.product-image-container:hover .product-quick-view {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Wishlist heart top-left */
.product-wishlist-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.product-image-container:hover .product-wishlist-btn {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--romantic-color);
  color: var(--text-main);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 12px 16px 12px;
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.product-card-price {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

/* Catalog content wraps properly to contain mobile scroll */
.catalog-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.product-card-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: none;
}

.product-card-model-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: -4px;
}

/* --- Product Detail Page (PDP) Layout --- */
.pdp-section {
  padding: 48px 0 80px 0;
}

.pdp-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

/* PDP Gallery */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp-main-image {
  aspect-ratio: 4 / 5;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.pdp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.pdp-thumbnails {
  display: flex;
  gap: 12px;
}

.pdp-thumb {
  width: 70px;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  overflow: hidden;
  transition: var(--transition-fast);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-thumb:hover,
.pdp-thumb.active {
  border-color: var(--romantic-color);
}

/* PDP Details Column */
.pdp-details {
  display: flex;
  flex-direction: column;
}

.pdp-breadcrumbs {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
}

.pdp-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.pdp-price {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.pdp-material-label {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* PDP Selectors */
.pdp-option-group {
  margin-bottom: 24px;
}

.pdp-option-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 12px;
}

.pdp-option-selected {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
}

/* Sizes button selectors */
.size-selector-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.size-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--romantic-color);
}

.size-btn.active {
  background-color: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

.size-btn:disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* PDP Actions */
.pdp-actions {
  margin-top: 12px;
  margin-bottom: 32px;
}

.btn-add-cart {
  width: 100%;
  background-color: var(--accent-color);
  color: var(--text-light);
  border: 1px solid var(--accent-color);
  padding: 16px 24px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-add-cart:disabled {
  background-color: var(--border-color);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* --- PDP Accordion / Folding Menus --- */
.accordion {
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger::after {
  content: '+';
  font-size: 16px;
  font-weight: 300;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-trigger::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.accordion-content-inner {
  padding-bottom: 16px;
  white-space: pre-line; /* preserves newlines in sizes metadata */
}

/* --- Shopping Cart Slide-out Drawer --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.cart-drawer-close:hover {
  color: var(--text-main);
}

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

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

.cart-item-img {
  width: 70px;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
}

.cart-qty-btn {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-fast);
}

.cart-qty-btn:hover {
  background-color: var(--bg-secondary);
}

.cart-qty-val {
  width: 28px;
  text-align: center;
  font-size: 12px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 500;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 4px;
  align-self: flex-start;
}

.cart-item-remove:hover {
  color: #A33B3B;
  text-decoration: underline;
}

.cart-drawer-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.cart-drawer-empty p {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 16px;
}

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

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
}

.cart-subtotal-val {
  font-size: 18px;
  font-weight: 600;
}

.cart-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.btn-checkout {
  display: block;
  width: 100%;
  background-color: var(--accent-color);
  color: var(--text-light);
  text-align: center;
  padding: 16px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  border: 1px solid var(--accent-color);
}

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

/* --- Checkout / Success Layout --- */
.checkout-section {
  padding: 48px 0 80px 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.checkout-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
}

.checkout-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--romantic-color);
}

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

.checkout-summary-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-summary-img {
  width: 50px;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.checkout-summary-details {
  flex-grow: 1;
}

.checkout-summary-name {
  font-family: var(--font-serif);
  font-size: 14px;
}

.checkout-summary-price {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  align-self: center;
}

.checkout-line-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.checkout-line-item.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.btn-place-order {
  width: 100%;
  background-color: var(--accent-color);
  color: var(--text-light);
  border: 1px solid var(--accent-color);
  padding: 16px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-place-order:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.success-container {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 48px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.success-icon {
  font-size: 48px;
  color: var(--romantic-color);
  margin-bottom: 24px;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 16px;
}

.success-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.success-details {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.success-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
}

.success-details-label {
  color: var(--text-muted);
}

.success-details-val {
  font-weight: 600;
}

.btn-shop-more {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}

.btn-shop-more:hover {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

/* --- Footer --- */
/* --- Footer --- */
footer {
  background-color: #D3AA95; /* Warm elegant sand/dusty rose */
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 80px 0 60px 0;
  color: #2c2c2c;
  font-size: 13px;
  font-family: var(--font-sans);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #111;
  margin-bottom: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: #2c2c2c;
  text-decoration: none;
  transition: opacity 0.2s;
  font-size: 13px;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-newsletter-section h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.2;
}

.footer-newsletter-section p {
  font-size: 14px;
  color: #3d3d3d;
  margin-bottom: 24px;
}

.footer-email-signup {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #111;
  padding-bottom: 8px;
  max-width: 320px;
  margin-bottom: 12px;
}

.footer-email-signup input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #111;
  font-family: var(--font-sans);
}

.footer-email-signup input::placeholder {
  color: #555;
  opacity: 0.7;
}

.footer-email-signup button {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #111;
  cursor: pointer;
  padding: 0 4px;
  transition: transform 0.2s;
}

.footer-email-signup button:hover {
  transform: translateX(4px);
}

.footer-hcaptcha-notice {
  font-size: 11px;
  font-style: italic;
  color: #4a4a4a;
  line-height: 1.5;
  max-width: 320px;
}

/* Footer Bottom Layout */
.footer-bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 26px);
  color: #111;
  margin: 0;
}

.footer-social-wrapper {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social-link {
  color: #111;
  transition: opacity 0.2s;
  display: inline-flex;
}

.footer-social-link:hover {
  opacity: 0.6;
}

.footer-copyright-bar {
  margin-top: 40px;
  font-size: 11px;
  color: #4a4a4a;
  text-align: left;
}

/* --- Page Transitions & Animations --- */
.fade-in {
  animation: fadeInEffect 0.6s ease-out forwards;
}

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

/* Elegant Page Load Entrance Animations */
header {
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-bg-img {
  animation: slowZoom 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-serif {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-btn-link {
  opacity: 0;
  display: inline-block;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Stagger catalog load */
.catalog-page-header, .best-sellers-heading {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

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

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

@keyframes slowZoom {
  from {
    opacity: 0.5;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Responsive Adjustments (Mobile-First) --- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .no-products-msg {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Fix 3: Show nav on mobile - smaller font, allow scrolling if needed */
  .nav-links {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li a {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  /* Header compact on mobile */
  .header-container {
    gap: 8px;
    padding: 0 16px;
  }

  .logo-img {
    height: 44px;
  }

  .logo-wrapper {
    flex: 0 0 auto;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 12px;
  }

  /* Catalog controls: stack vertically */
  .catalog-controls-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Eberjey sidebar narrow on mobile */
  .eberjey-sidebar {
    width: 160px;
    font-size: 11px;
  }

  /* Fix 2: catalog-content contains the scroll, not the page */
  .catalog-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  /* Fix 2: Product grid horizontal scroll — ONLY the grid scrolls */
  .product-grid-eberjey {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 12px 20px 12px;
  }

  /* Fix 1: Equal-size product cards on mobile */
  .product-grid-eberjey .product-card {
    min-width: 52vw;
    max-width: 52vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .no-products-msg {
    min-width: 80vw;
  }

  .pdp-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero-banner-new {
    height: 45vh;
    min-height: 300px;
  }

  .aesthetic-banner-new {
    height: 35vh;
    min-height: 250px;
    margin-top: 40px;
  }

  .best-sellers-heading {
    padding: 16px 0 12px 12px;
  }

  /* Prevent BODY from scrolling horizontally */
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  /* Narrower phones: show 1.5 cards at a time */
  .product-grid-eberjey .product-card {
    min-width: 68vw;
    max-width: 68vw;
  }

  .nav-links li a {
    font-size: 10px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

