/* ============================================================
   La Casita de Bob — Design System
   ============================================================ */

:root {
  /* ── Brand palette ───────────────────────────────────────── */
  --teal-900: #0E2F44;
  --teal-800: #143B57;
  --teal-700: #1A4A6B;
  --teal-600: #2A6585;
  --teal-500: #3D7FA1;
  --teal-100: #E3EEF4;
  --teal-50:  #F1F7FA;

  --coral-700: #9F2E22;
  --coral-600: #C0392B;
  --coral-500: #D75646;
  --coral-100: #FBE6E2;
  --coral-50:  #FDF1EE;

  --gold-700: #C9851A;
  --gold-600: #F5A623;
  --gold-500: #F8B848;
  --gold-100: #FDF1DA;
  --gold-50:  #FEF8EC;

  --surface:   #FAF9F6;
  --surface-2: #F4F2EC;

  --ink-900: #14202B;
  --ink-700: #2F3D4A;
  --ink-500: #5C6B78;
  --ink-300: #98A4AF;
  --ink-200: #C9D1D8;
  --ink-100: #E4E8EC;
  --ink-50:  #F2F4F6;

  --success:     #2F8F4E;
  --success-100: #DDF1E2;

  /* ── Generic tokens (admin compat) ──────────────────────── */
  --color-primary:        #1A4A6B;
  --color-primary-light:  #3D7FA1;
  --color-primary-dark:   #143B57;
  --color-secondary:      #F5A623;
  --color-secondary-dark: #C9851A;
  --color-accent:         #C0392B;
  --color-danger:         #C0392B;
  --color-warning:        #F5A623;
  --color-success:        #2F8F4E;
  --color-info:           #4895EF;
  --color-white:          #FFFFFF;
  --color-gray-50:        #F2F4F6;
  --color-gray-100:       #E4E8EC;
  --color-gray-200:       #C9D1D8;
  --color-gray-400:       #98A4AF;
  --color-gray-600:       #5C6B78;
  --color-gray-800:       #2F3D4A;
  --color-black:          #14202B;

  /* ── Typography ─────────────────────────────────────────── */
  --font-display: 'Bricolage Grotesque', ui-rounded, system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-serif:   'Georgia', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --font-normal:   400;
  --font-medium:   500;
  --font-semibold: 600;
  --font-bold:     700;

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-loose:  1.75;

  /* ── Radii ───────────────────────────────────────────────── */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-2xl:  48px;
  --r-full: 999px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* ── Spacing ─────────────────────────────────────────────── */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px;  --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px; --s-11: 80px;

  --space-1:  0.25rem;  --space-2:  0.5rem;
  --space-3:  0.75rem;  --space-4:  1rem;
  --space-5:  1.25rem;  --space-6:  1.5rem;
  --space-8:  2rem;     --space-10: 2.5rem;
  --space-12: 3rem;     --space-16: 4rem;
  --space-20: 5rem;     --space-24: 6rem;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(20,32,43,.05), 0 1px 1px rgba(20,32,43,.04);
  --shadow-md: 0 4px 12px rgba(20,32,43,.06), 0 2px 4px rgba(20,32,43,.04);
  --shadow-lg: 0 12px 32px rgba(20,32,43,.08), 0 4px 8px rgba(20,32,43,.04);
  --shadow-xl: 0 24px 56px rgba(20,32,43,.12), 0 8px 16px rgba(20,32,43,.05);

  /* ── Layout ──────────────────────────────────────────────── */
  --container:     1200px;
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1200px;
  --container-2xl: 1440px;
  --nav-h: 72px;

  /* ── Z-index ─────────────────────────────────────────────── */
  --z-base:     0;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* ── Transitions ─────────────────────────────────────────── */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; border: none; outline: none; background: none; }
p { margin: 0; text-wrap: pretty; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.3; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ── Legacy grid helpers (admin compat) ──────────────────── */
.grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .cols-sm-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px)  { .cols-2 { grid-template-columns: repeat(2,1fr); } .cols-md-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .cols-3 { grid-template-columns: repeat(3,1fr); } .cols-4 { grid-template-columns: repeat(4,1fr); } }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.font-bold    { font-weight: var(--font-bold); }
.text-sm      { font-size: var(--text-sm); }
.text-lg      { font-size: var(--text-lg); }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--ink-500); }

.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.py-4  { padding-block: var(--space-4); }
.py-8  { padding-block: var(--space-8); }
.py-16 { padding-block: var(--space-16); }
.px-4  { padding-inline: var(--space-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Sections ─────────────────────────────────────────────── */
.section       { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.section-sub { color: var(--ink-500); margin-top: 8px; }

.bg-surface      { background: var(--surface); }
.bg-teal-soft    { background: var(--teal-50); }
.bg-coral-soft   { background: var(--coral-50); }
.bg-gold-soft    { background: var(--gold-50); }

/* ── Eyebrow ──────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--gold-600);
}
.eyebrow--gold { color: var(--gold-500); }
.eyebrow--gold::before { background: var(--gold-500); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  background: none;
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); box-shadow: var(--shadow-md); }

.btn-coral { background: var(--coral-600); color: #fff; }
.btn-coral:hover { background: var(--coral-700); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold-600); color: var(--teal-900); }
.btn-gold:hover { background: var(--gold-500); box-shadow: var(--shadow-md); }

.btn-outline-dark {
  background: #fff;
  color: var(--teal-700);
  border: 1.5px solid var(--ink-100);
}
.btn-outline-dark:hover { border-color: var(--teal-700); background: var(--teal-50); }

.btn-ghost { color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-50); }

.btn-ghost-white { color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }

.btn-sm  { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg  { padding: 17px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Legacy button variants (admin compat) */
.btn-secondary { background: var(--gold-600); color: var(--teal-900); }
.btn-secondary:hover { background: var(--gold-500); }
.btn-outline { border: 2px solid var(--teal-700); color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-700); color: #fff; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-body { padding: var(--space-6); }
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-teal    { background: var(--teal-100);    color: var(--teal-800); }
.badge-coral   { background: var(--coral-100);   color: var(--coral-700); }
.badge-gold    { background: var(--gold-100);    color: var(--gold-700); }
.badge-ink     { background: var(--ink-50);      color: var(--ink-700); }
.badge-success { background: var(--success-100); color: var(--success); }
.badge-primary { background: var(--teal-100);    color: var(--teal-800); }
.badge-warning { background: var(--gold-100);    color: var(--gold-700); }
.badge-danger  { background: var(--coral-100);   color: var(--coral-700); }

/* ── Form elements ────────────────────────────────────────── */
.input, .select, .textarea,
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink-100);
  background: #fff;
  font: inherit;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus,
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 4px var(--teal-50);
}
.input::placeholder, .form-input::placeholder { color: var(--ink-300); }
.form-textarea { resize: vertical; min-height: 120px; }

.label, .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  border-left: 4px solid currentColor;
}
.alert-success { background: rgba(47,143,78,.08);  color: var(--success); }
.alert-danger  { background: rgba(192,57,43,.08);  color: var(--coral-600); }
.alert-warning { background: rgba(245,166,35,.12); color: #7A3B00; }
.alert-info    { background: rgba(72,149,239,.1);  color: #1A55A0; }

/* ── Logo badge (legacy — kept for any remaining uses) ────── */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--teal-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  border: 2.5px solid var(--gold-600);
}
.logo-badge--light {
  background: #fff;
  color: var(--teal-700);
  border-color: #fff;
}

/* ── Nav logo image ───────────────────────────────────────── */
.nav-logo-img {
  width: 180px;
  height: 52px;
  object-fit: contain;
  border-radius: 0;
}

/* ── Image placeholder ────────────────────────────────────── */
.img-ph {
  position: relative;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0, transparent 14px,
    rgba(26,74,107,.06) 14px, rgba(26,74,107,.06) 15px
  );
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.img-ph::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1.5px dashed rgba(26,74,107,.2);
  border-radius: calc(var(--r-md) - 4px);
  pointer-events: none;
}
.img-ph-label {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.85);
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* ── Horizontal scroll ────────────────────────────────────── */
.h-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-200) var(--ink-50);
}
.h-scroll > * { scroll-snap-align: start; flex: 0 0 auto; }
.h-scroll::-webkit-scrollbar { height: 8px; }
.h-scroll::-webkit-scrollbar-track { background: var(--ink-50); border-radius: 999px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 999px; }

.products-loading { color: var(--ink-500); font-size: var(--text-sm); padding: 16px 0; }

/* ── Navigation ───────────────────────────────────────────── */
.app-nav {
  position: sticky;
  top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}
.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.nav-brand-text { line-height: 1.05; }
.nav-brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--teal-800);
  letter-spacing: -0.02em;
}
.nav-brand-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.nav-desktop-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover, .nav-link--active {
  background: var(--teal-50);
  color: var(--teal-800);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta { display: inline-flex; }
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: var(--ink-50);
  color: var(--ink-700);
  transition: background .15s ease;
}
.cart-btn:hover { background: var(--ink-100); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--coral-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.nav-burger {
  width: 44px; height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: var(--ink-50);
  color: var(--ink-700);
}
.burger-open, .burger-close { display: block; }
.nav-drawer {
  border-top: 1px solid var(--ink-100);
  background: #fff;
  padding: 12px 0;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--ink-700);
  transition: background .15s ease;
}
.nav-drawer-link:hover { background: var(--ink-50); }
.nav-drawer-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--ink-100);
  padding-top: 14px;
}

@media (max-width: 960px) {
  .nav-desktop-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--surface) 60%, var(--gold-50) 100%);
  position: relative;
  overflow: hidden;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 80px;
}
.hero-content { display: flex; flex-direction: column; }
.hero-content h1 { margin-top: 18px; color: var(--teal-900); }
.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-700);
  margin-top: 22px;
  max-width: 520px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat {}
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--teal-800);
}
.hero-stat-label { font-size: 13px; color: var(--ink-500); }

.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 4/5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-2xl);
  display: block;
}
.hero-chip {
  position: absolute;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-lg);
  animation: fadeInUp .5s ease both;
}
.hero-chip--top  { top: 32px; left: -28px; animation-delay: .2s; }
.hero-chip--bottom { bottom: 24px; right: -16px; animation-delay: .35s; }
.chip-icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip-icon--success { background: var(--success-100); color: var(--success); }
.chip-icon--gold    { background: var(--gold-100);    color: var(--gold-700); }
.chip-title { font-weight: 700; font-size: 14px; }
.chip-sub   { font-size: 12px; color: var(--ink-500); }

@media (max-width: 880px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-chip--top  { left: -8px; }
  .hero-chip--bottom { right: -8px; }
}

/* ── Services ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.service-card {
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon--teal  { background: var(--teal-50);  color: var(--teal-700); }
.service-icon--coral { background: var(--coral-50); color: var(--coral-600); }
.service-icon--gold  { background: var(--gold-50);  color: var(--gold-700); }
.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.service-more {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Product card ─────────────────────────────────────────── */
.product-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--surface);
  flex-shrink: 0;
}
.product-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-md);
}
.product-img-ph {
  width: 100%;
  height: 100%;
  border-radius: var(--r-md);
}
/* keep old class working if referenced elsewhere */
.product-img {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  margin-bottom: 14px;
  background: var(--surface);
  position: relative;
}
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
}
.product-brand {
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.product-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 4px;
  min-height: 36px;
  flex: 1;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-500);
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 8px;
}
.product-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--teal-800);
}
.add-to-cart-btn.added {
  background: var(--gold-600) !important;
  color: var(--teal-900) !important;
}

/* ── Why Us ───────────────────────────────────────────────── */
.why-header {
  text-align: center;
  margin-bottom: 40px;
}
.why-header h2 { max-width: 640px; margin: 12px auto 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card { padding: 32px; }
.why-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--teal-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 22px; margin-bottom: 10px; }
.why-card p  { color: var(--ink-500); line-height: 1.6; }

@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; } }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(120deg, var(--teal-700), var(--teal-800));
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 64px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-deco {
  position: absolute;
  right: -40px; top: -40px;
  width: 240px; height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-600) 0%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-content h2 { color: #fff; margin-top: 12px; }
.cta-desc { margin-top: 16px; opacity: 0.85; max-width: 480px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 720px) { .cta-grid { grid-template-columns: 1fr; } }

/* ── Hours / Location ─────────────────────────────────────── */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hours-card {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.hours-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--coral-50);
  color: var(--coral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hours-title {
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.hours-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-top: 4px;
}
.hours-sub { font-size: 13px; color: var(--ink-500); margin-top: 2px; }

@media (max-width: 880px) { .hours-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,.85);
  padding-top: 64px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.footer-brand-sub { font-size: 11px; opacity: 0.7; letter-spacing: 0.04em; }
.footer-desc { margin-top: 20px; font-size: 14px; line-height: 1.6; max-width: 320px; opacity: 0.75; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .15s ease;
}
.social-btn:hover { background: rgba(255,255,255,.18); }

.footer-col-title {
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-links a, .footer-contact li { opacity: 0.85; transition: opacity .15s ease; }
.footer-links a:hover { opacity: 1; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; }

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-hours li { opacity: 0.85; }
.footer-hours strong { color: #fff; opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom-inner {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: 0.7;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { opacity: 1; }
.site-footer a { color: inherit; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Lucide Icons ─────────────────────────────────────────── */
[data-lucide], .lucide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon-xs  { width: 12px; height: 12px; }
.icon-sm  { width: 16px; height: 16px; }
.icon-md  { width: 18px; height: 18px; }
.icon-lg  { width: 22px; height: 22px; }
.icon-xl  { width: 28px; height: 28px; }
.icon-2xl { width: 32px; height: 32px; }

/* ── Cart Drawer ──────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(20,32,43,.4);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: #fff;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  z-index: calc(var(--z-overlay) + 1);
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
  visibility: hidden;
}
.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: 20px; }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-close:hover { background: var(--ink-100); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-500);
}
.cart-empty-icon {
  width: 80px; height: 80px;
  border-radius: 999px;
  background: var(--ink-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-empty-title { margin-top: 16px; font-weight: 600; color: var(--ink-700); }
.cart-empty-sub   { font-size: 14px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-100);
}
.cart-item-img {
  width: 76px; height: 76px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
}
.cart-item-name  { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cart-item-brand { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.cart-item-row   { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ink-100);
  border-radius: 999px;
}
.cart-qty button { padding: 6px 10px; }
.cart-qty span   { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-item-price { font-weight: 700; color: var(--teal-800); }

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--ink-100);
  background: var(--surface);
}
.cart-summary { margin-bottom: 16px; }
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.cart-row--total { font-size: 18px; color: var(--ink-900); margin-top: 8px; margin-bottom: 0; }
.cart-row--total strong { color: var(--teal-800); }
.cart-payment-note {
  font-size: 12px;
  color: var(--ink-500);
  text-align: center;
  margin-top: 12px;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: var(--z-toast);
  pointer-events: none;
}
.toast {
  background: var(--teal-900);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInUp .25s ease;
  white-space: nowrap;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.fade-in { animation: fadeInUp .35s ease both; }

/* ── Navigation (legacy data-attr — admin compat) ─────────── */
.nav {
  position: sticky; top: 0;
  z-index: var(--z-sticky);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding-block: var(--space-4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-weight: var(--font-bold); font-size: var(--text-xl); color: var(--teal-700); }
.nav-links { display: none; gap: var(--space-6); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--ink-700); }
.nav-links a:hover { color: var(--teal-700); }

/* ── Admin panel components (defined here, extended in admin.css) ── */
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.stat-card-label  { font-size: var(--text-sm); color: var(--color-gray-600); }
.stat-card-value  { font-size: var(--text-3xl); font-weight: var(--font-bold); }
.stat-card-change { font-size: var(--text-xs); }
.stat-card-change.up   { color: var(--success); }
.stat-card-change.down { color: var(--coral-600); }

/* ── BreedSelect (searchable raza dropdown) ── */
.bs-host { display: block; }
.bs-wrap { position: relative; }
.bs-input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-200); font-family: inherit; font-size: .9rem;
  color: var(--ink-900); background: #fff; outline: none;
  transition: border-color .15s;
}
.bs-input:focus { border-color: var(--teal-500); }
.bs-input:disabled { opacity: .6; cursor: not-allowed; background: var(--ink-50, #f7f7f7); }
.bs-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: var(--ink-100); color: var(--ink-700); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.bs-clear:hover { background: var(--ink-200); }
.bs-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 220px; overflow-y: auto;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); z-index: 100;
  list-style: none; margin: 0; padding: 4px 0;
}
.bs-list li {
  padding: 8px 14px; cursor: pointer; font-size: .9rem; color: var(--ink-800);
}
.bs-list li:hover, .bs-list li.bs-hl { background: var(--teal-50); color: var(--teal-700); }
.bs-list li.bs-empty { color: var(--ink-400); cursor: default; font-style: italic; }
.bs-list li.bs-empty:hover { background: transparent; color: var(--ink-400); }

/* ── Nav account widget (header) ── */
.nav-account {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: .85rem;
}

.nav-user-menu { position: relative; }

.nav-user-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  background: transparent; color: var(--color-primary);
  cursor: pointer; font-family: inherit;
  font-weight: 500; font-size: .9rem;
  transition: background .15s;
}
.nav-user-btn:hover { background: var(--ink-50); }

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  z-index: 1000;
}
.nav-user-dropdown a,
.nav-user-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink-700);
  text-decoration: none;
  width: 100%; background: none; border: none;
  cursor: pointer; font-family: inherit; font-size: .9rem;
  text-align: left;
}
.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover {
  background: var(--ink-50);
  color: var(--color-primary);
}
.nav-user-dropdown hr {
  margin: 6px 0;
  border: none;
  border-top: 1px solid var(--ink-100);
}

/* On narrow viewports hide the header widget — mobile drawer covers it. */
@media (max-width: 768px) {
  .nav-account, .nav-user-menu { display: none; }
}

/* Mobile drawer auth blocks */
.nav-drawer-user {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--ink-100);
}
.nav-drawer-user-name {
  padding: 8px 0 4px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-500);
}
.nav-drawer-logout {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: var(--coral-600);
  text-align: left;
}
