/* Estructura calcada de laika.com.uy (franja aviso + header con buscador + barra de
   categorías de color sólido + grilla de producto con foto grande) — colores propios. */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&display=swap');
:root {
  --topbar-bg: #14261d;
  --topbar-ink: #eaf3ec;
  --nav-bg: #2f7a52;
  --nav-ink: #ffffff;
  --bg: #f4f6f2;
  --ink: #1c231d;
  --brand: #2f7a52;
  --brand-dark: #1c5238;
  --card: #ffffff;
  --border: #dfe5db;
  --muted: #6b7266;
  --price: #14261d;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

/* franja superior */
.topbar-aviso {
  background: var(--topbar-bg);
  color: var(--topbar-ink);
  text-align: center;
  font-size: 0.82rem;
  padding: 7px 12px;
}

/* header: logo + buscador */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
/* Wordmark tipo PetSmart: tipografía redonda y gruesa, relleno claro, contorno y
   sombra escalonada en un tono más oscuro para el efecto "chicloso" con volumen. */
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; letter-spacing: -0.01em;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--brand);
  -webkit-text-stroke: 1.5px var(--brand-dark);
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 var(--brand-dark);
}
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--nav-bg); box-shadow: 0 0 0 2px var(--brand-dark); flex-shrink: 0; }
.topbar-buscador { flex: 1; display: flex; max-width: 460px; }
.topbar-buscador input[type=search] {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-right: none;
  border-radius: 8px 0 0 8px; font: inherit;
}
.topbar-buscador button {
  border: none; background: var(--brand); color: #fff; padding: 0 18px; border-radius: 0 8px 8px 0; cursor: pointer;
}
.topbar nav { margin-left: auto; display: flex; gap: 18px; }
.topbar nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; }

/* barra de categorías, banda de color sólido como en Laika */
.catbar {
  background: var(--nav-bg);
  display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
  padding: 4px 12px;
}
.catbar a {
  color: var(--nav-ink); text-decoration: none; font-weight: 600; font-size: 0.86rem;
  padding: 10px 14px; border-radius: 6px; opacity: 0.92;
}
.catbar a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.catbar a.chip-activo { background: rgba(255,255,255,.22); opacity: 1; }

main { max-width: 1220px; margin: 0 auto; padding: 24px; }
.hero { text-align: center; padding: 22px 0 6px; }
.hero h1 { font-size: 1.7rem; margin-bottom: 6px; }
.hero p { color: var(--muted); margin: 0; }

.cat-title { margin-top: 30px; display: flex; align-items: baseline; gap: 8px; font-size: 1.15rem; }
.cat-count { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.sin-resultados { text-align: center; color: var(--muted); padding: 40px 0; }

/* grilla de producto tipo Laika: fotos grandes, sin card con sombra, divisores finos */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.card {
  background: var(--card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.card-img {
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; aspect-ratio: 1 / 1; background: #ffffff; text-decoration: none; padding: 12px;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-marca { margin: 0; font-size: 0.7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card-title { font-weight: 500; text-decoration: none; color: var(--ink); font-size: 0.92rem; line-height: 1.3; }
.card-price { color: var(--price); font-weight: 800; font-size: 1.05rem; margin-top: 2px; }
.card-price.big { font-size: 1.6rem; }
.card-body .btn { margin-top: 8px; }

.volver { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.product-detail-img.has-photo { font-size: 0; width: 300px; }
.product-detail-img.has-photo img { width: 100%; border: 1px solid var(--border); background: #fff; }

.btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:hover { background: var(--brand-dark); }
.btn-danger { background: #b5442f; }
.product-detail { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.product-detail-img { font-size: 6rem; }
.form { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin-bottom: 24px; }
.form input { padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.product-form { max-width: 700px; flex-direction: row; flex-wrap: wrap; align-items: center; }
.product-form input { flex: 1; min-width: 140px; }
.admin-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-thumb { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.cart-row .name { flex: 1; }
.cart-row input[type=number] { width: 60px; padding: 6px; }
.cart-total { font-size: 1.3rem; font-weight: 700; margin: 16px 0; }
.footer { text-align: center; padding: 24px; background: var(--topbar-bg); color: var(--topbar-ink); margin-top: 40px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 28px 0 40px; font-weight: 600; }
.pager a { padding: 10px 18px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--card); }
.pager a:hover { border-color: var(--ink); }
.pager span { color: var(--muted); font-size: 0.9rem; }

.card-price-pend { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.btn-disabled { display: block; text-align: center; background: #dfe5df; color: #6b756b; cursor: default; pointer-events: none; }

/* ===================== PORTADA INTERACTIVA ===================== */
.topbar { position: relative; z-index: 30; }
.topbar-buscador { position: relative; }
.cart-link { margin-left: auto; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; position: relative; padding: 8px 10px; border-radius: 8px; }
.cart-link:hover { background: var(--bg); }
.cart-link b { background: #e0592a; color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; min-width: 20px; text-align: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 1.3rem; padding: 4px 11px; cursor: pointer; }

/* menú principal con submenús */
.mainnav { background: var(--nav-bg); display: flex; flex-wrap: wrap; justify-content: center; padding: 0 12px; position: relative; z-index: 25; }
.nav-link { color: var(--nav-ink); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 13px 15px; background: none; border: none; cursor: pointer; font-family: inherit; display: inline-block; }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-item.abierto > .nav-link { background: rgba(255,255,255,.16); }
.nav-item { position: relative; }
.caret { font-size: .7rem; opacity: .8; }
.nav-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(20,38,29,.18); padding: 6px 0; max-height: 70vh; overflow-y: auto; }
.nav-item:hover > .nav-sub, .nav-item.abierto > .nav-sub, .nav-item:focus-within > .nav-sub { display: block; }
.nav-sub a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.nav-sub a:hover { background: var(--bg); color: var(--brand-dark); }
.nav-sub .nav-sub-all { font-weight: 700; color: var(--brand); border-top: 1px solid var(--border); margin-top: 4px; }

/* sugerencias del buscador */
.sugerencias { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 14px 30px rgba(20,38,29,.2); z-index: 50; overflow: hidden; }
.sug { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #f0f2ee; }
.sug:hover { background: var(--bg); }
.sug img, .sug-ph { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.sug-t { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sug-t b { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-t small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.sug-p { font-weight: 800; font-size: .88rem; white-space: nowrap; }
.sug-todos { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--brand); text-decoration: none; background: #fafbf9; }
.sug-vacio { padding: 14px; color: var(--muted); font-size: .9rem; }

/* portada que rota */
.hero-slider { position: relative; overflow: hidden; border-radius: 16px; margin: 4px 0 26px; background: var(--brand-dark); min-height: 340px; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 56px; opacity: 0; visibility: hidden; transition: opacity .6s ease; }
.slide.activo { opacity: 1; visibility: visible; position: relative; min-height: 340px; }
.slide.s1 { background: linear-gradient(115deg, #1c5238 0%, #2f7a52 55%, #5aa97c 100%); }
.slide.s2 { background: linear-gradient(115deg, #7a3b1f 0%, #d9782f 60%, #f2b45e 100%); }
.slide.s3 { background: linear-gradient(115deg, #17455c 0%, #2a87a8 60%, #7cc8dc 100%); }
.slide.s4 { background: linear-gradient(115deg, #4a2b6b 0%, #8450b3 60%, #c79be0 100%); }
.slide-txt { color: #fff; max-width: 440px; }
.slide-txt h2 { font-size: 2.2rem; line-height: 1.1; margin: 0 0 10px; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; }
.slide-txt p { font-size: 1.05rem; margin: 0 0 20px; opacity: .95; }
.btn-hero { background: #fff; color: var(--brand-dark); padding: 12px 24px; font-size: 1rem; }
.btn-hero:hover { background: #f0f5f0; }
.slide-imgs { display: flex; align-items: flex-end; gap: 10px; }
.slide-imgs img { height: 260px; width: auto; max-width: 220px; object-fit: contain; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.slide-imgs img:nth-child(2) { height: 290px; transform: translateY(-8px); }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.dot.activo { background: #fff; width: 26px; border-radius: 6px; }
.hero-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.88); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.hero-prev { left: 12px; } .hero-next { right: 12px; }

.buscar-grande { text-align: center; padding: 8px 0 26px; }
.buscar-grande h2 { margin: 0 0 4px; font-size: 1.5rem; }
.buscar-grande p { color: var(--muted); margin: 0 0 14px; }
.buscar-grande form { display: flex; max-width: 640px; margin: 0 auto; gap: 0; }
.buscar-grande input { flex: 1; padding: 14px 18px; border: 2px solid var(--brand); border-right: none; border-radius: 10px 0 0 10px; font: inherit; font-size: 1rem; }
.buscar-grande .btn { border-radius: 0 10px 10px 0; padding: 0 28px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 34px; }
.tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 190px; border-radius: 16px; padding: 18px 20px; text-decoration: none; color: #fff; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(20,38,29,.22); }
.tile-emoji { position: absolute; top: 10px; right: 14px; font-size: 4.2rem; opacity: .95; }
.tile strong { font-size: 1.5rem; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; }
.tile span { font-size: .85rem; opacity: .92; }
.tile em { font-style: normal; font-weight: 700; margin-top: 10px; background: rgba(255,255,255,.22); display: inline-block; align-self: flex-start; padding: 6px 14px; border-radius: 8px; font-size: .85rem; }
.t-perro { background: linear-gradient(135deg, #2f7a52, #5aa97c); }
.t-gato { background: linear-gradient(135deg, #d9782f, #f2b45e); }
.t-farma { background: linear-gradient(135deg, #2a87a8, #7cc8dc); }
.t-acc { background: linear-gradient(135deg, #8450b3, #c79be0); }

/* secciones y carruseles */
.sec { margin: 0 0 36px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 1.4rem; }
.sec-ver { color: var(--brand); font-weight: 700; text-decoration: none; font-size: .9rem; }
.car { position: relative; }
.car-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 min(230px, 62vw); scroll-snap-align: start; }
.car-item .card { height: 100%; border-bottom: none; }
.car-btn { position: absolute; top: 38%; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(20,38,29,.2); }
.car-prev { left: -14px; } .car-next { right: -14px; }
.car-btn:hover { background: var(--brand); color: #fff; }

.marcas { display: flex; flex-wrap: wrap; gap: 10px; }
.marca-chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; transition: all .15s; }
.marca-chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.marca-chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.marca-chip:hover small { color: #dff0e5; }

.beneficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 0; }
.beneficios > div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; }
.beneficios span { font-size: 2rem; display: block; }
.beneficios strong { display: block; margin: 6px 0 4px; }
.beneficios p { margin: 0; color: var(--muted); font-size: .9rem; }

/* tienda con filtros */
.tienda { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filtros { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; position: sticky; top: 12px; }
.filtros-tit { font-weight: 800; cursor: pointer; list-style: none; margin-bottom: 4px; }
.f-grupo { margin-top: 14px; }
.f-grupo h4 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.f-scroll { max-height: 260px; overflow-y: auto; }
.f-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.f-item small { color: var(--muted); }
.f-item:hover { background: var(--bg); }
.f-item.on { background: var(--brand); color: #fff; font-weight: 700; }
.f-item.on small { color: #dff0e5; }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.res-head h1 { margin: 0; font-size: 1.6rem; }
.orden-form select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.res-count { color: var(--muted); margin: 4px 0 10px; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: center; }
.chip { background: #e6f1ea; color: var(--brand-dark); border-radius: 999px; padding: 5px 12px; font-size: .84rem; font-weight: 600; text-decoration: none; }
.chip b { margin-left: 4px; }
.chip-limpiar { font-size: .84rem; color: var(--muted); }

/* ficha de producto */
.migas { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.migas a { color: var(--muted); text-decoration: none; } .migas a:hover { color: var(--brand); }
.product-info { max-width: 520px; flex: 1; }
.product-info h1 { margin: 4px 0 10px; }
.qty-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { background: #f4f6f2; border: none; width: 38px; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 54px; text-align: center; border: none; font: inherit; padding: 8px 0; -moz-appearance: textfield; }
.product-detail + .sec { margin-top: 40px; }

/* aviso */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #14261d; color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 28px rgba(0,0,0,.3); opacity: 0; transition: all .25s; z-index: 100; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* pie */
.footer { text-align: left; padding: 0; }
.footer-cols { max-width: 1220px; margin: 0 auto; padding: 34px 24px 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-cols strong { display: block; margin-bottom: 8px; }
.footer-brand { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 1.6rem; }
.footer-cols a { display: block; color: #cfe3d5; text-decoration: none; padding: 3px 0; font-size: .92rem; }
.footer-cols a:hover { color: #fff; }
.footer-cols p { color: #cfe3d5; font-size: .9rem; margin: 0 0 6px; }
.footer-copy { text-align: center; padding: 16px; font-size: .82rem; color: #9db8a5; border-top: 1px solid rgba(255,255,255,.1); margin-top: 16px; }

/* celular */
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .topbar-buscador { order: 5; flex-basis: 100%; max-width: none; }
  .nav-toggle { display: inline-block; }
  .mainnav { display: none; flex-direction: column; padding: 0; }
  .mainnav.abierto { display: flex; }
  .nav-link { text-align: left; width: 100%; padding: 13px 18px; }
  .nav-sub { position: static; box-shadow: none; border: none; border-radius: 0; background: rgba(0,0,0,.12); }
  .nav-sub a { color: #fff; padding-left: 32px; }
  .nav-sub a:hover { background: rgba(255,255,255,.12); color: #fff; }
  .nav-item:hover > .nav-sub { display: none; }
  .nav-item.abierto > .nav-sub { display: block; }
  .slide { flex-direction: column; text-align: center; padding: 24px 18px 44px; justify-content: center; }
  .slide-txt h2 { font-size: 1.6rem; }
  .slide-imgs img { height: 130px; max-width: 110px; } .slide-imgs img:nth-child(2) { height: 150px; }
  .hero-btn { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 150px; } .tile-emoji { font-size: 3rem; }
  .beneficios { grid-template-columns: 1fr; }
  .tienda { grid-template-columns: 1fr; }
  .filtros { position: static; }
  .car-btn { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* WhatsApp */
.wa-flotante { position: fixed; right: 18px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); z-index: 90; transition: transform .15s; }
.wa-flotante:hover { transform: scale(1.08); }
.btn-wa { background: #25d366; color: #0b3d1e; }
.btn-wa:hover { background: #1fb858; }
.cart-acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.cart-nota { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.footer-cols a.footer-wa { color: #7ee8a6; font-weight: 700; }
