/* =============================================
   BELLANOVA — Premium Beauty Marketplace AR
   Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --white:      #FFFFFF;
  --rose-gold:  #D4A5A5;
  --rose-light: #EDD5D5;
  --rose-dark:  #B88888;
  --beige:      #F7E7D7;
  --beige-dark: #EDD4BE;
  --slate:      #334155;
  --slate-light:#64748B;
  --slate-dark: #1E293B;
  --sage:       #A8C3A0;
  --sage-light: #C6D9C2;
  --sage-dark:  #7A9E72;
  --gray-light: #F8FAFC;
  --gray-mid:   #E2E8F0;
  --gray-text:  #94A3B8;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --transition: 0.25s ease;
  --shadow-sm:  0 1px 3px rgba(51,65,85,.08);
  --shadow-md:  0 4px 16px rgba(51,65,85,.12);
  --shadow-lg:  0 8px 32px rgba(51,65,85,.14);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
}

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

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

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

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

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

a:hover { color: var(--rose-dark); }

ul { list-style: none; }

button, input, select, textarea {
  font-family: var(--font-sans);
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--slate-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.125rem; font-weight: 500; }
h5 { font-size: 1rem; font-weight: 600; }

p { color: var(--slate-light); line-height: 1.75; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--slate-dark);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--slate-light);
  margin-top: 0.5rem;
  max-width: 560px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

/* ---- Layout ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin: 0.5rem auto 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--slate-dark);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--slate);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-rose {
  background: var(--rose-gold);
  color: var(--white);
}
.btn-rose:hover {
  background: var(--rose-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,165,165,.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-mid);
  color: var(--slate);
}
.btn-outline:hover {
  border-color: var(--rose-gold);
  color: var(--rose-dark);
  background: var(--rose-light);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  padding: 10px 16px;
}
.btn-ghost:hover {
  color: var(--rose-dark);
  background: var(--gray-light);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ---- Announcement Bar ---- */
.announcement-bar {
  background: var(--slate-dark);
  color: var(--gray-light);
  padding: 9px 0;
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.announcement-bar a {
  color: var(--rose-light);
  text-decoration: underline;
}

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-mid);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-dark);
  letter-spacing: -0.02em;
}

.logo-wordmark span {
  color: var(--rose-dark);
}

.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--gray-light);
  border: 1.5px solid transparent;
  border-radius: 50px;
  font-size: 0.875rem;
  transition: all var(--transition);
  color: var(--slate);
}

.header-search input:focus {
  outline: none;
  border-color: var(--rose-gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,165,165,.15);
}

.header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
  width: 16px;
  height: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--slate);
  transition: all var(--transition);
}

.header-action-btn:hover {
  background: var(--gray-light);
  color: var(--rose-dark);
}

.header-action-btn svg { width: 20px; height: 20px; }

.badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--rose-dark);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Main Navigation ---- */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
}

.main-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-light);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--slate-dark);
  border-bottom-color: var(--rose-gold);
}

.nav-link svg { width: 14px; height: 14px; }

/* ---- Mobile Menu ---- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 200;
  overflow-y: auto;
  padding: 24px;
}

.mobile-nav.open { display: block; }

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  font-size: 1.25rem;
  color: var(--slate);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--slate);
  border-bottom: 1px solid var(--gray-mid);
  transition: all var(--transition);
}

.mobile-nav-link:hover {
  background: var(--gray-light);
  color: var(--rose-dark);
}

/* ---- Breadcrumbs ---- */
.breadcrumb-bar {
  background: var(--gray-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-mid);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--slate-light);
}

.breadcrumb a { color: var(--slate-light); }
.breadcrumb a:hover { color: var(--rose-dark); }
.breadcrumb span { color: var(--slate-dark); font-weight: 500; }
.breadcrumb-sep { color: var(--gray-text); font-size: 0.7rem; }

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--beige);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(247,231,215,.88) 0%, rgba(247,231,215,.55) 55%, rgba(247,231,215,.15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-content .eyebrow { margin-bottom: 16px; }

.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--slate-dark);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--slate);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Category Grid ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img { transform: scale(1.06); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,41,59,.8) 0%, rgba(30,41,59,.2) 50%, transparent 100%);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: var(--white);
}

.category-card-content h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.category-card-content span {
  font-size: 0.8rem;
  opacity: .8;
}

/* ---- Product Cards ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--rose-light);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-light);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-card-actions { opacity: 1; }

.product-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--slate);
  transition: all var(--transition);
}

.product-action-btn:hover {
  background: var(--rose-gold);
  color: var(--white);
}

.product-action-btn svg { width: 15px; height: 15px; }

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--sage);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.product-tag.nuevo { background: var(--slate-dark); }
.product-tag.oferta { background: var(--rose-dark); }

.product-card-body {
  padding: 16px;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 5px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--slate-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--gray-text);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-skin-type {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.skin-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 50px;
  background: var(--gray-light);
  color: var(--slate-light);
  border: 1px solid var(--gray-mid);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
  font-size: 0.85rem;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--gray-text);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-current {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--slate-dark);
}

.price-original {
  font-size: 0.85rem;
  color: var(--gray-text);
  text-decoration: line-through;
}

/* ---- Category Page Layout ---- */
.category-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 32px;
  align-items: start;
}

/* ---- Filter Sidebar ---- */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--slate-dark);
}

.filter-clear {
  font-size: 0.8rem;
  color: var(--rose-dark);
  text-decoration: underline;
  cursor: pointer;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-mid);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--slate-light);
  transition: color var(--transition);
}

.filter-option:hover { color: var(--slate-dark); }

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--rose-gold);
  cursor: pointer;
}

.filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray-text);
  background: var(--gray-light);
  padding: 1px 6px;
  border-radius: 10px;
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--rose-gold);
}

.price-inputs {
  display: flex;
  gap: 10px;
}

.price-inputs input {
  width: 50%;
  padding: 8px 10px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---- Products Toolbar ---- */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.products-count {
  font-size: 0.875rem;
  color: var(--slate-light);
}

.products-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.products-sort select {
  padding: 8px 14px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-mid);
  color: var(--slate-light);
  transition: all var(--transition);
}

.view-btn.active,
.view-btn:hover {
  background: var(--slate-dark);
  color: var(--white);
  border-color: var(--slate-dark);
}

/* ---- Category Banner ---- */
.category-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  background: var(--beige);
}

.category-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(247,231,215,.92) 0%, rgba(247,231,215,.6) 50%, rgba(247,231,215,.1) 100%);
}

.category-banner-content {
  position: relative;
  z-index: 1;
  padding: 48px;
  max-width: 500px;
}

.category-banner-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.category-banner-content p {
  margin-bottom: 0;
}

/* ---- Product Detail ---- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-light);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--gray-light);
}

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

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

.product-detail-info .eyebrow { margin-bottom: 8px; }
.product-detail-info h1 { margin-bottom: 12px; }

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-price-current {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--slate-dark);
}

.detail-price-original {
  font-size: 1.1rem;
  color: var(--gray-text);
  text-decoration: line-through;
}

.detail-price-save {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 3px 8px;
  border-radius: 50px;
}

.detail-specs {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 0.875rem;
}

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

.spec-label {
  font-weight: 600;
  color: var(--slate-dark);
  min-width: 120px;
}

.spec-value { color: var(--slate-light); }

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}

.qty-btn {
  width: 40px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--gray-light);
  color: var(--slate);
  border: none;
  transition: all var(--transition);
}

.qty-btn:hover { background: var(--gray-mid); }

.qty-input {
  width: 52px;
  height: 42px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--gray-mid);
  border-right: 1px solid var(--gray-mid);
  font-weight: 600;
  color: var(--slate-dark);
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

/* ---- Comparison Table ---- */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-mid);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-mid);
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--gray-light);
  font-weight: 600;
  color: var(--slate-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-table tbody tr:nth-child(even) td { background: var(--gray-light); }

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--slate-dark);
  background: var(--beige);
  min-width: 160px;
}

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-mid);
  background: var(--white);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-light);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card-body {
  padding: 24px;
}

.blog-category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 10px;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--slate-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--slate-light);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--gray-text);
}

.blog-card-meta span { display: flex; align-items: center; gap: 5px; }

/* ---- Ingredient Badge ---- */
.ingredients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingredient-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  font-size: 0.8rem;
  color: var(--slate);
}

.ingredient-badge span { font-weight: 600; }

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--slate);
  background: var(--white);
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(212,165,165,.15);
}

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

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { cursor: pointer; }

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

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-mid);
  padding: 24px;
}

.card--beige { background: var(--beige); border-color: var(--beige-dark); }
.card--sage { background: var(--sage-light); border-color: var(--sage); }

/* ---- Feature Boxes ---- */
.feature-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rose-dark);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-text h4 { margin-bottom: 5px; color: var(--slate-dark); }
.feature-text p { font-size: 0.875rem; }

/* ---- Trust Badges ---- */
.trust-bar {
  background: var(--slate-dark);
  padding: 20px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-light);
  font-size: 0.875rem;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--rose-light);
}

/* ---- Tags Filters ---- */
.tag-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tag-filter {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-mid);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-light);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.tag-filter:hover,
.tag-filter.active {
  background: var(--slate-dark);
  border-color: var(--slate-dark);
  color: var(--white);
}

/* ---- Cart ---- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

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

.cart-item-image {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-light);
  flex-shrink: 0;
}

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

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

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--slate-dark);
  margin-bottom: 4px;
}

.cart-item-brand {
  font-size: 0.78rem;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-summary {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.order-summary-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--slate-dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-mid);
}

.summary-row:last-of-type { border-bottom: none; }

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-dark);
  margin-top: 8px;
}

/* ---- Newsletter ---- */
.newsletter-section {
  background: var(--beige);
  padding: 64px 0;
}

.newsletter-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--slate);
}

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

/* ---- Footer ---- */
.site-footer {
  background: var(--slate-dark);
  color: var(--gray-light);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-wordmark {
  color: var(--white);
  margin-bottom: 16px;
  display: block;
  font-size: 1.6rem;
}

.footer-brand .logo-wordmark span { color: var(--rose-light); }

.footer-brand p {
  color: rgba(255,255,255,.6);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--rose-dark);
  color: var(--white);
}

.social-btn svg { width: 16px; height: 16px; }

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--rose-light);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--rose-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.footer-bottom-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--rose-light);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--slate-light);
  transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--slate-dark);
  border-color: var(--slate-dark);
  color: var(--white);
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-mid);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
}

.tab-btn:hover { color: var(--slate-dark); }

.tab-btn.active {
  color: var(--slate-dark);
  border-bottom-color: var(--rose-gold);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Alert / Toast ---- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--slate-dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 4px solid var(--sage); }
.toast.error { border-left: 4px solid var(--rose-dark); }

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

/* ---- Stars interactive ---- */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-rating input { display: none; }

.star-rating label {
  font-size: 1.5rem;
  color: var(--gray-mid);
  cursor: pointer;
  transition: color var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #F59E0B;
}

/* ---- Progress Bar ---- */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--gray-mid);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: #F59E0B;
  border-radius: 3px;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted { color: var(--slate-light); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.divider {
  border: none;
  border-top: 1px solid var(--gray-mid);
  margin: 32px 0;
}

/* ---- Policy Pages ---- */
.policy-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

.policy-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-mid);
}

.policy-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.policy-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 14px;
  color: var(--slate-dark);
}

.policy-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--slate-dark);
}

.policy-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--slate);
}

.policy-content ul,
.policy-content ol {
  margin: 12px 0 20px 24px;
  color: var(--slate);
  line-height: 1.8;
}

.policy-content ul { list-style: disc; }
.policy-content ol { list-style: decimal; }

.policy-content li { margin-bottom: 6px; }

.policy-content a { color: var(--rose-dark); text-decoration: underline; }

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.875rem;
}

.policy-table th,
.policy-table td {
  padding: 12px 16px;
  border: 1px solid var(--gray-mid);
  text-align: left;
}

.policy-table th {
  background: var(--gray-light);
  font-weight: 600;
  color: var(--slate-dark);
}

/* ---- Page Hero (inner) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--beige) 0%, var(--gray-light) 100%);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 560px; margin: 0 auto; }

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  transition: all var(--transition);
}

.value-card:hover {
  background: var(--beige);
  border-color: var(--beige-dark);
  transform: translateY(-2px);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--rose-dark);
}

.value-icon svg { width: 24px; height: 24px; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rose-dark);
}

.contact-icon svg { width: 20px; height: 20px; }

/* ---- Blog Article ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.article-header { margin-bottom: 32px; }
.article-header h1 { margin-bottom: 16px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.85;
  font-size: 1rem;
  color: var(--slate);
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 24px 24px;
  color: var(--slate);
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; line-height: 1.7; }

.article-content blockquote {
  border-left: 4px solid var(--rose-gold);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--beige);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--slate);
}

.sidebar-widget {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-mid);
}

.sidebar-widget-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--slate-dark);
}

/* ---- Checkout ---- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.checkout-step {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
}

.checkout-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose-gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--slate-dark);
}

/* ---- Comparison Page ---- */
.compare-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.compare-product-card {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  min-width: 200px;
  flex: 1;
}

.compare-product-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0 auto 12px;
  background: var(--gray-light);
}

/* ---- Favorites ---- */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

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

  .filter-sidebar {
    position: static;
  }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .header-search { display: none; }

  .main-nav { display: none; }

  .mobile-menu-btn { display: flex; }

  .hero { min-height: 480px; }

  .category-banner-content {
    padding: 28px;
  }

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

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

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

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

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

  .trust-items { gap: 24px; }

  .tabs { overflow-x: auto; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .detail-actions { flex-direction: column; }
}

/* R13 auto-aliases */
:root {
  --sage-green: #7aab8c;
  --light-gray: #f1f5f9;
}

/* auto-fix missing classes */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:#1a1a2e;color:#fff;padding:16px 24px;z-index:9999;display:none;}
.cookie-banner.visible{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
