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

:root {
  --teal-900: #123B35;
  --teal-700: #1B4B43;
  --teal-500: #2C6B5F;
  --marigold: #F2A93B;
  --marigold-dark: #D98F1F;
  --coral: #F2665E;
  --cream: #FBF7F0;
  --cream-2: #F3ECDF;
  --ink: #1C2320;
  --ink-soft: #55625C;
  --line: #E4DED0;
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(18, 59, 53, 0.08);
  --shadow-md: 0 12px 32px rgba(18, 59, 53, 0.14);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', sans-serif;
  color: var(--teal-900);
  line-height: 1.12;
  margin: 0;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--teal-900);
  color: var(--cream-2);
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; gap: 12px; flex-wrap: wrap; }
.topbar a { text-decoration: none; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-700); display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.brand-name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px; color: var(--teal-900); }

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--marigold); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  border: none; background: var(--white); width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: var(--shadow-sm); position: relative; transition: transform .25s var(--ease);
}
.icon-btn:hover { transform: translateY(-2px); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--coral); color: white;
  font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-badge.show { transform: scale(1); }

.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--teal-900); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-2); border: 1px solid var(--line); color: var(--teal-700);
  font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 100px;
  margin-bottom: 18px;
  opacity: 0; animation: fadeUp .7s var(--ease) forwards;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  opacity: 0; animation: fadeUp .7s var(--ease) .1s forwards;
}
.hero h1 span { color: var(--marigold-dark); }
.hero p.lead {
  margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 46ch;
  opacity: 0; animation: fadeUp .7s var(--ease) .2s forwards;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .7s var(--ease) .3s forwards; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary { background: var(--teal-700); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--teal-900); }
.btn-secondary { background: transparent; border-color: var(--teal-700); color: var(--teal-700); }
.btn-secondary:hover { background: var(--teal-700); color: white; transform: translateY(-3px); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.hero-art {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--teal-700), var(--teal-500));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  opacity: 0; animation: fadeIn 1s var(--ease) .2s forwards;
}
.hero-art .paw-big { font-size: 140px; animation: floatSlow 5s ease-in-out infinite; }
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08);
}
.hero-art::before { width: 220px; height: 220px; top: -60px; right: -60px; }
.hero-art::after { width: 160px; height: 160px; bottom: -40px; left: -30px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }

/* ---------- Category strip ---------- */
.categories { padding: 20px 0 56px; }
.cat-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin;
}
.cat-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 100px;
  padding: 10px 20px; font-weight: 600; font-size: 14px; color: var(--ink);
  transition: all .25s var(--ease); white-space: nowrap;
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--teal-700); background: var(--teal-700); color: white; transform: translateY(-2px);
}
.cat-chip .emoji { font-size: 18px; }

/* ---------- Section headers ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head p { color: var(--ink-soft); margin-top: 6px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Product grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 14px; } }

.card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.badge-stock {
  position: absolute; top: 10px; left: 10px; background: white; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px; color: var(--teal-700); box-shadow: var(--shadow-sm);
}
.badge-out { background: var(--coral); color: white; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--marigold-dark); }
.card-title { font-size: 16px; font-weight: 700; color: var(--teal-900); }
.card-desc { font-size: 13px; color: var(--ink-soft); flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card-price { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 19px; color: var(--teal-900); }
.add-btn {
  border: none; background: var(--marigold); color: var(--teal-900); font-weight: 700;
  width: 42px; height: 42px; border-radius: 50%; font-size: 20px; transition: transform .2s var(--ease), background .2s;
  display: flex; align-items: center; justify-content: center;
}
.add-btn:hover { background: var(--marigold-dark); color: white; transform: rotate(90deg); }
.add-btn[disabled] { background: var(--line); color: var(--ink-soft); }
.add-btn[disabled]:hover { transform: none; }

/* ---------- About ---------- */
.about { background: var(--teal-700); color: white; border-radius: var(--radius-lg); margin: 0 24px; padding: 56px 40px; }
.about-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about h2 { color: white; }
.about p { color: rgba(255,255,255,0.85); margin-top: 14px; }
.stat-row { display: flex; gap: 32px; margin-top: 26px; flex-wrap: wrap; }
.stat b { font-family: 'Baloo 2', sans-serif; font-size: 30px; display: block; color: var(--marigold); }
.stat span { font-size: 13px; color: rgba(255,255,255,0.75); }
.about-art { font-size: 100px; text-align: center; animation: floatSlow 6s ease-in-out infinite; }
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; } .about-art { order: -1; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start;
}
.info-card .ic { font-size: 22px; }
.info-card b { display: block; color: var(--teal-900); }
.info-card span { color: var(--ink-soft); font-size: 14px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--teal-900); }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(27,75,67,0.12); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- Footer ---------- */
footer { background: var(--teal-900); color: rgba(255,255,255,0.75); padding: 44px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color: white; font-family: 'Baloo 2', sans-serif; margin-bottom: 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer a { text-decoration: none; font-size: 14px; }
footer a:hover { text-decoration: underline; color: white; }
.footer-bottom { text-align: center; font-size: 12.5px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; }

/* ---------- Floating WhatsApp / cart button ---------- */
.fab-whatsapp {
  position: fixed; bottom: 24px; left: 24px; z-index: 50;
  background: #25D366; color: white; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: var(--shadow-md); border: none; animation: pulseWa 2.6s ease-in-out infinite;
}
@keyframes pulseWa { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

.fab-cart {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  background: var(--teal-700); color: white; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px; border: none;
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease);
}
.fab-cart:hover { transform: scale(1.08) rotate(-6deg); }
.fab-cart .cart-badge { top: -2px; right: -2px; }

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(18,59,53,0.45); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--cream); z-index: 61; box-shadow: -12px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-close { background: none; border: none; font-size: 22px; color: var(--ink-soft); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.drawer-empty { text-align: center; color: var(--ink-soft); padding: 60px 20px; }
.drawer-empty .emoji { font-size: 48px; display: block; margin-bottom: 10px; }

.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--cream-2); }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-title { font-size: 14px; font-weight: 700; color: var(--teal-900); }
.cart-item .ci-price { font-size: 13px; color: var(--ink-soft); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-control button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: 14px; line-height: 1; }
.qty-control span { min-width: 18px; text-align: center; font-weight: 700; font-size: 13px; }
.remove-item { background: none; border: none; color: var(--coral); font-size: 12px; font-weight: 700; text-decoration: underline; margin-left: 8px; }

.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line); background: var(--white); }
.drawer-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; margin-bottom: 14px; color: var(--teal-900); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 100px; right: 24px; background: var(--teal-900); color: white;
  padding: 12px 18px; border-radius: 100px; font-size: 13px; font-weight: 600; z-index: 70;
  box-shadow: var(--shadow-md); transform: translateY(20px); opacity: 0; transition: all .3s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100%; width: 260px; background: var(--white);
    flex-direction: column; padding: 90px 30px; gap: 22px; z-index: 55;
    transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  }
  .nav-links.open { transform: translateX(0); }
  .menu-toggle { display: block; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin: 0 auto; }
}


/* ---------- Catalog search ---------- */
.catalog-toolbar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap;
}
.catalog-toolbar input[type="search"] {
  flex: 1; min-width: 220px; max-width: 420px;
  border: 1.5px solid var(--line); border-radius: 100px; padding: 12px 18px;
  font-family: inherit; font-size: 14px; background: white;
}
.catalog-toolbar input[type="search"]:focus {
  border-color: var(--teal-700); outline: none;
  box-shadow: 0 0 0 4px rgba(27,75,67,0.12);
}
.product-count { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.load-more-wrap { grid-column: 1 / -1; text-align: center; padding: 12px 0 8px; }
.card-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}


.catalog-loading {
  text-align: center; padding: 48px 16px; color: var(--ink-soft);
  font-weight: 600; font-size: 15px;
}
