/* src/styles/globals.css — Vitanut Laboratorio Design System */

:root {
  /* Paleta Vitanut Laboratorio */
  --gold-deep: #8B6914;
  --gold-main: #C9952A;
  --gold-light: #E8C97A;
  --gold-pale: #F5E8C0;
  --gold-shine: #FFD966;
  --red-deep: #7A1A1A;
  --red-main: #A52525;
  --red-accent: #C0392B;
  --beige-deep: #C8B48A;
  --beige-mid: #E8D9BC;
  --beige-light: #F7F0E3;
  --beige-pale: #FBF7EF;
  --dark: #2A1F0A;
  --text-mid: #5A4520;
  --white: #FFFFFF;

  /* Alias para compatibilidad con componentes existentes */
  --sage: var(--gold-main);
  --sage-light: var(--gold-light);
  --sage-dark: var(--gold-deep);
  --earth: var(--red-main);
  --earth-light: var(--gold-light);
  --cream: var(--beige-light);
  --cream-dark: var(--beige-mid);
  --warm-white: var(--beige-pale);
  --charcoal: var(--dark);
  --charcoal-mid: var(--text-mid);
  --muted: var(--text-mid);
  --line: var(--beige-mid);
  --line-light: var(--beige-light);
  --ok: #3a7a4a;
  --err: var(--red-accent);

  --font-body: 'Jost', 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --nav-h: 80px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 2px 16px rgba(42,31,10,.07);
  --shadow-lg: 0 8px 40px rgba(42,31,10,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--beige-pale);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── TOPBAR ─── */
.vitanut-topbar {
  background: var(--red-deep);
  color: var(--gold-pale);
  font-size: 12px;
  padding: 8px 0;
}
.vitanut-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vitanut-topbar-left { display: flex; gap: 28px; }
.vitanut-topbar-left span { display: flex; align-items: center; gap: 6px; opacity: 0.9; }
.vitanut-topbar-right { display: flex; align-items: center; gap: 20px; }
.vitanut-topbar-right a { color: var(--gold-light); text-decoration: none; font-size: 12px; transition: color 0.2s; }
.vitanut-topbar-right a:hover { color: var(--gold-shine); }

/* ─── HEADER / TOPBAR (componente Header.tsx usa class "topbar") ─── */
header.vitanut-header,
.vitanut-header {
  background: var(--beige-pale);
  border-bottom: 1px solid var(--beige-mid);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(139,105,20,0.08);
}
.vitanut-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

/* Compatibilidad: el componente Header.tsx usa class "topbar" */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--beige-pale);
  border-bottom: 1px solid var(--beige-mid);
  box-shadow: 0 2px 20px rgba(139,105,20,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 2rem;
}

/* ─── LOGO ─── */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-main), var(--gold-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139,105,20,0.35);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1.1;
}
.brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--red-main);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
/* Soporte si el Header existente usa .brand directamente con texto */
.brand span { color: var(--gold-main); }

/* ─── NAV ─── */
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  color: var(--text-mid);
}
.topbar nav a:hover { color: var(--gold-deep); background: var(--gold-pale); }

/* ─── CART BADGE ─── */
.cart-badge { position: relative; display: inline-flex; align-items: center; gap: .4rem; }
.cart-badge .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px;
  background: var(--red-accent); color: #fff;
  font-size: 11px; font-weight: 600;
  border-radius: 50%; line-height: 1;
  border: 2px solid var(--beige-pale);
}

/* ─── HEADER ACTIONS ─── */
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-box {
  display: flex; align-items: center;
  background: var(--beige-light);
  border: 1px solid var(--beige-deep);
  border-radius: 24px; padding: 8px 16px; gap: 8px; width: 200px;
}
.search-box input {
  border: none; background: transparent;
  font-family: var(--font-body); font-size: 13px; color: var(--dark); outline: none; width: 100%;
}
.login-btn {
  background: transparent;
  border: 1.5px solid var(--gold-main);
  color: var(--gold-deep);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 8px 18px; border-radius: 24px; cursor: pointer; transition: all 0.2s;
}
.login-btn:hover { background: var(--gold-main); color: white; }
.cart-btn {
  position: relative;
  background: var(--gold-main); border: none; border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(201,149,42,0.35);
  color: white;
}
.cart-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red-accent); color: white;
  font-size: 10px; font-weight: 600;
  width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--beige-pale);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(120deg, var(--dark) 0%, #3D2A08 45%, #5A3A0F 100%);
  min-height: 580px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 0;
}
.hero::after {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,149,42,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9952A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 2; width: 100%;
}
.hero-content { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,149,42,0.15); border: 1px solid rgba(201,149,42,0.3);
  color: var(--gold-light); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.1; color: var(--white); margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); display: block; }
.hero p {
  font-size: 16px; line-height: 1.7;
  color: rgba(248,234,194,0.8); margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual cards */
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(201,149,42,0.2);
  border-radius: 16px; padding: 24px 20px; text-align: center; transition: transform 0.2s;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.hero-card h3 { font-family: var(--font-display); font-size: 18px; color: var(--gold-light); margin-bottom: 8px; }
.hero-card p { font-size: 13px; color: rgba(248,234,194,0.65); line-height: 1.5; }
.hero-stat { font-size: 38px; font-weight: 700; font-family: var(--font-display); color: var(--gold-shine); }
.hero-stat-label { font-size: 12px; color: rgba(248,234,194,0.6); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: .3px;
  padding: .75rem 1.6rem; border-radius: 30px; border: none; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-main), var(--gold-deep));
  color: white;
  box-shadow: 0 6px 20px rgba(139,105,20,0.4);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-outline-white {
  background: transparent; color: var(--gold-light);
  border: 1.5px solid rgba(201,149,42,0.5);
}
.btn-outline-white:hover { background: rgba(201,149,42,0.1); border-color: var(--gold-light); }

.btn-sage { background: var(--gold-main); color: #fff; }
.btn-sage:hover { background: var(--gold-deep); }

.btn-ghost {
  background: transparent; color: var(--gold-deep);
  border: 1.5px solid var(--beige-mid);
}
.btn-ghost:hover { background: var(--beige-light); border-color: var(--gold-light); }

/* ─── FEATURES BAND ─── */
.features-band { background: var(--gold-main); }
.features-grid {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
  color: white;
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.feature-text strong { display: block; font-size: 13px; font-weight: 600; }
.feature-text span { font-size: 11px; opacity: 0.85; }

/* ─── SECTION ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 80px 40px; flex: 1; }
main.container { padding: 80px 40px; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 52px; gap: 1rem;
}
.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; width: 32px; height: 1px; background: var(--gold-main);
}
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--dark); line-height: 1.15;
}
.section-desc { font-size: 16px; color: var(--text-mid); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ─── PRODUCT GRID ─── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.5rem; }

.card {
  background: var(--white); border: 1px solid var(--beige-mid);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .25s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }

.card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--beige-light); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img-wrap img { transform: scale(1.04); }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red-accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 20px;
}
.badge-natural { background: #3D7A3D !important; }
.badge-new { background: var(--gold-deep) !important; }

.card-body { padding: 1.1rem 1.25rem .6rem; flex: 1; }
.card-category { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: .5rem; }
.card-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; line-height: 1.3; }
.card-body p { font-size: 13px; color: var(--text-mid); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-footer {
  padding: .9rem 1.25rem 1.1rem; border-top: 1px solid var(--beige-light);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.card-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--gold-deep); }
.card-price small { font-family: var(--font-body); font-size: 12px; color: var(--text-mid); font-weight: 400; }
.card-actions { display: flex; gap: .5rem; align-items: center; }

.btn-cart {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--dark); color: #fff;
  font-size: 12px; font-weight: 600; padding: .55rem 1.1rem;
  border-radius: 8px; border: none; cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn-cart:hover { background: var(--gold-deep); transform: scale(1.03); }

.qty-input {
  width: 58px; padding: .52rem .6rem;
  border: 1.5px solid var(--beige-mid); border-radius: var(--radius);
  font-size: 14px; text-align: center;
}
.inline-form { display: flex; gap: .5rem; align-items: center; }

/* ─── CATEGORIES ─── */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
  border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s; text-decoration: none; display: block;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(42,31,10,0.15); }
.category-card-bg { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.cat-fito .category-card-bg { background: linear-gradient(135deg, #4A7C4A, #2D5A2D); }
.cat-bien .category-card-bg { background: linear-gradient(135deg, #7A4A9A, #4A2A6A); }
.cat-card .category-card-bg { background: linear-gradient(135deg, #9A4A2A, #6A2A10); }
.cat-cosm .category-card-bg { background: linear-gradient(135deg, #9A3A5A, #6A1A3A); }
.cat-vita .category-card-bg { background: linear-gradient(135deg, #8B7A1A, #5A4A08); }
.category-card-body { background: var(--white); padding: 18px 20px; border: 1px solid var(--beige-mid); border-top: none; }
.category-card-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.category-card-body p { font-size: 13px; color: var(--text-mid); }
.cat-count { font-size: 11px; font-weight: 600; color: var(--gold-deep); letter-spacing: 0.05em; margin-top: 8px; }

/* ─── PROMO BANNER ─── */
.promo-banner {
  background: linear-gradient(100deg, var(--red-deep) 0%, #5A0A0A 50%, var(--dark) 100%);
  padding: 70px 40px; position: relative; overflow: hidden;
}
.promo-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.promo-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.promo-banner h2 { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1.1; color: var(--white); margin-bottom: 16px; }
.promo-banner h2 span { color: var(--gold-light); font-style: italic; }
.promo-banner p { color: rgba(245,232,192,0.8); font-size: 16px; line-height: 1.6; max-width: 500px; }
.promo-right { text-align: center; flex-shrink: 0; }
.promo-discount { font-family: var(--font-display); font-size: 80px; font-weight: 700; line-height: 1; color: var(--gold-light); }
.promo-discount sup { font-size: 36px; vertical-align: top; margin-top: 12px; }
.promo-discount-label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,232,192,0.7); margin-top: 4px; }
.promo-cta { margin-top: 28px; }

/* ─── TESTIMONIALS ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--beige-mid);
  border-radius: var(--radius-lg); padding: 28px; position: relative; transition: all 0.2s;
}
.testimonial-card::before {
  content: '"'; font-family: var(--font-display); font-size: 80px;
  color: var(--gold-pale); position: absolute; top: 10px; right: 24px; line-height: 1; pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: var(--gold-main); font-size: 14px; margin-bottom: 14px; }
.testimonial-text { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-main), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; color: white; font-weight: 700; flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.author-location { font-size: 12px; color: var(--text-mid); }

/* ─── NEWSLETTER ─── */
.newsletter { background: linear-gradient(135deg, var(--gold-pale) 0%, var(--beige-mid) 100%); padding: 70px 40px; }
.newsletter-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.newsletter h2 { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.newsletter h2 em { color: var(--gold-deep); }
.newsletter p { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 32px; }
.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; }
.newsletter-input {
  flex: 1; padding: 14px 20px;
  border: 1.5px solid var(--beige-deep); border-radius: 30px;
  font-family: var(--font-body); font-size: 14px; background: white; color: var(--dark); outline: none;
}
.newsletter-input::placeholder { color: #aaa; }
.newsletter-input:focus { border-color: var(--gold-main); box-shadow: 0 0 0 3px rgba(201,149,42,0.15); }

/* ─── GOLD DIVIDER ─── */
.gold-divider {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px 0; color: var(--gold-main); font-size: 16px;
}
.gold-divider::before, .gold-divider::after {
  content: ''; flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.gold-divider::after { background: linear-gradient(90deg, var(--gold-light), transparent); }

/* ─── ALERT ─── */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 14px; display: flex; align-items: center; gap: .6rem; }
.alert-success { background: #eaf6ec; color: var(--ok); border: 1px solid #b8e2bd; }
.alert-error { background: #fdf0ee; color: var(--err); border: 1px solid #f5c5bb; }

/* ─── TABLE ─── */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--beige-mid); border-radius: var(--radius-lg); overflow: hidden; }
.table th { background: var(--beige-light); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-mid); padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--beige-mid); }
.table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--beige-light); font-size: 14px; color: var(--dark); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--beige-pale); }
.table .product-cell { display: flex; align-items: center; gap: .85rem; }
.table .product-thumb { width: 52px; height: 52px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--beige-mid); flex-shrink: 0; }
.table .remove-btn {
  color: var(--err); background: none; border: none;
  font-size: 13px; font-weight: 500; cursor: pointer;
  padding: .3rem .6rem; border-radius: var(--radius); transition: background .18s;
  display: inline-flex; align-items: center; gap: .3rem; text-decoration: none;
}
.table .remove-btn:hover { background: #fdf0ee; }

/* ─── CART SUMMARY ─── */
.cart-summary {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 2px solid var(--beige-mid); flex-wrap: wrap;
}
.cart-total-label { font-size: 14px; color: var(--text-mid); }
.cart-total-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--dark); }

/* ─── AUTH ─── */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 2rem; }
.auth-box {
  background: #fff; border: 1px solid var(--beige-mid);
  border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 440px;
  box-shadow: var(--shadow);
}
.auth-box .auth-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--gold-deep); margin-bottom: 1.75rem; display: block; }
.auth-box h1 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin-bottom: .4rem; }
.auth-box .auth-sub { font-size: 14px; color: var(--text-mid); margin-bottom: 2rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark); letter-spacing: .2px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  padding: .72rem 1rem; border: 1.5px solid var(--beige-mid); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px; color: var(--dark); background: #fff;
  transition: border-color .18s, box-shadow .18s; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-main); box-shadow: 0 0 0 3px rgba(201,149,42,0.15); }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: 13.5px; color: var(--text-mid); }
.auth-footer a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── PAGE HEADER ─── */
.page-header { margin-bottom: 2.5rem; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--dark); line-height: 1.15; }
.page-header p { color: var(--text-mid); font-size: 15px; margin-top: .4rem; }

/* ─── CATALOG ─── */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap; }
.results-count { font-size: 14px; color: var(--text-mid); }

/* ─── CHECKOUT ─── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-card { background: #fff; border: 1px solid var(--beige-mid); border-radius: var(--radius-lg); padding: 1.75rem; }
.checkout-card h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--beige-light); }
.order-line { display: flex; justify-content: space-between; font-size: 14px; padding: .5rem 0; color: var(--text-mid); border-bottom: 1px solid var(--beige-light); }
.order-line:last-of-type { border: none; }
.order-total { display: flex; justify-content: space-between; padding-top: 1rem; margin-top: .5rem; border-top: 2px solid var(--beige-mid); font-weight: 700; font-size: 16px; }

/* ─── FOOTER ─── */
.footer { background: var(--dark); padding: 70px 40px 30px; color: var(--beige-mid); margin-top: auto; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(201,149,42,0.2); margin-bottom: 28px;
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--gold-light); margin-bottom: .75rem; display: block; }
.footer-desc { font-size: 14px; color: rgba(232,217,188,0.65); line-height: 1.7; max-width: 280px; margin-top: 12px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(201,149,42,0.1); border: 1px solid rgba(201,149,42,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; transition: all 0.2s; text-decoration: none;
  color: var(--gold-light); font-weight: 600;
}
.social-btn:hover { background: var(--gold-main); }
.footer-col h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--gold-light); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(201,149,42,0.2); }
.footer-col a { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(232,217,188,0.65); padding: .3rem 0; transition: color .18s; }
.footer-col a::before { content: '›'; color: var(--gold-deep); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(232,217,188,0.45); flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { font-size: 12.5px; color: rgba(232,217,188,0.45); }

/* ─── WHATSAPP FAB ─── */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 54px; height: 54px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 1000; transition: transform 0.2s; text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.1); }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-state-icon { width: 72px; height: 72px; background: var(--beige-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 30px; color: var(--gold-deep); }
.empty-state h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.empty-state p { color: var(--text-mid); font-size: 15px; margin-bottom: 1.75rem; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { padding: 0 1.25rem; height: 64px; }
  .topbar nav a { padding: .4rem .6rem; font-size: 13px; }
  .vitanut-topbar-left { display: none; }
  .hero { padding: 0; }
  .hero-inner { padding: 60px 20px; }
  .hero h1 { font-size: 2rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  main.container, .container { padding: 48px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .cart-summary { flex-direction: column; align-items: flex-start; }
  .promo-inner { grid-template-columns: 1fr; }
  .promo-right { display: none; }
  .newsletter { padding: 48px 20px; }
  .footer { padding: 48px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
