/* BiMordiscos — tienda online. Paleta crema/oliva/dorado */
:root {
  --bg: #faf6ee;
  --surface: #ffffff;
  --ink: #26251f;
  --muted: #7c7668;
  --olive: #74845c;
  --olive-dark: #55613f;
  --olive-tint: #eef1e4;
  --gold: #d9a43f;
  --danger: #c0392b;
  --border: #e8e1d2;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(60, 55, 40, 0.08);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--olive-dark);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  padding: 7px 12px;
}

/* ---------- Header ---------- */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}
.logo { flex-shrink: 0; line-height: 1; }
.logo .l1 {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo .l1 svg { width: 24px; height: 24px; }
.logo .l2 {
  color: var(--olive);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 6.5px;
  margin-top: 1px;
}
.logo .l3 {
  font-size: 8.5px;
  letter-spacing: 2.2px;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
}
.searchbox { flex: 1; position: relative; }
.searchbox input {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 10px 42px 10px 18px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.searchbox input:focus { border-color: var(--olive); }
.searchbox .sbtn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  background: none;
  border: 0;
  padding: 6px 9px;
  border-radius: 999px;
}
.searchbox .sbtn:hover { color: var(--olive-dark); background: var(--olive-tint); }
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 60;
}
.search-results.open { display: block; }
.search-results a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--olive-tint); }
.search-results img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.search-results .sr-name { font-size: 13.5px; font-weight: 600; }
.search-results .sr-price { font-size: 13px; color: var(--olive-dark); font-weight: 700; margin-left: auto; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-actions a { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Nav ---------- */
nav.main {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
nav.main ul {
  display: flex;
  gap: 4px;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}
nav.main > .wrap > ul > li { position: relative; }
nav.main a {
  display: block;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
nav.main a:hover { color: var(--olive-dark); }
nav.main .offer > a { color: var(--gold); }
nav.main .featured > a {
  background: #f6ecd2;
  color: #8a6a1e;
  border: 1px solid #e6d3a0;
  border-radius: 999px;
  padding: 7px 15px;
  margin: 4px 4px 0;
  transition: background 0.15s, border-color 0.15s;
}
nav.main .featured > a:hover {
  background: #f0e2bc;
  border-color: var(--gold);
  color: #7a5c12;
}

/* selector compra única / suscripción */
.sub-toggle { display: grid; gap: 8px; margin: 12px 0 4px; }
.sub-toggle label {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 9px 13px;
  cursor: pointer;
  font-size: 12.5px;
}
.sub-toggle label.on { border-color: var(--olive); background: var(--olive-tint); }
.sub-toggle b { display: block; font-size: 13px; }
.sub-toggle span { color: var(--muted); font-size: 11.5px; }
.sub-toggle input { display: none; }
nav.main .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 240px;
  display: none;
  z-index: 55;
  padding: 6px 0;
}
nav.main li:hover .dropdown { display: block; }
nav.main .dropdown a { padding: 8px 18px; font-weight: 500; }
nav.main .dropdown a:hover { background: var(--olive-tint); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, #f6f1e4 0%, #eef1e4 100%);
  border-radius: var(--radius);
  margin-top: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.hero-txt { padding: 48px 20px 48px 48px; }
.hero-txt .kicker {
  color: var(--olive-dark);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
}
.hero-txt h1 { font-size: 38px; line-height: 1.15; margin: 10px 0 14px; font-weight: 800; }
.hero-txt h1 em { font-style: normal; color: var(--olive); }
.hero-txt p { color: var(--muted); max-width: 400px; margin-bottom: 24px; }
.hero-img { height: 100%; min-height: 320px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--olive);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.btn:hover { background: var(--olive-dark); }
.btn.ghost {
  background: transparent;
  color: var(--olive-dark);
  border: 1.5px solid var(--olive);
}
.btn.ghost:hover { background: var(--olive-tint); }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: #c08f2e; }
.btn.white { background: #fff; color: var(--olive-dark); }
.btn.white:hover { background: var(--bg); }
.btn.add { background: var(--gold); }
.btn.add:hover { background: #c08f2e; }
.btn.add.added {
  background: var(--olive-dark);
  pointer-events: none;
  animation: addpop 0.25s ease;
}
@keyframes addpop {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.btn.small { padding: 8px 18px; font-size: 13px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Benefits strip ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-top: 20px;
}
.benefit { display: flex; gap: 14px; align-items: center; }
.benefit svg { color: var(--olive); flex-shrink: 0; }
.benefit b { display: block; font-size: 14px; }
.benefit span { color: var(--muted); font-size: 12.5px; }

/* ---------- Sections ---------- */
section.block { margin-top: 52px; }
.block h2 { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.block .sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 14px; }

/* Category circles */
.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-item { text-align: center; }
.cat-item .ring {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cat-item:hover .ring { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-item .ring img { width: 100%; height: 100%; object-fit: cover; }
.cat-item b { font-size: 13px; font-weight: 600; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ph { display: block; aspect-ratio: 1; background: #fff; overflow: hidden; position: relative; }
.card .ph > a:not(.cardbtn) { display: block; width: 100%; height: 100%; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  z-index: 3;
}
/* botón superpuesto en la imagen: aparece con transición de 0,5 s */
.card .cardbtn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.card:hover .cardbtn, .card:focus-within .cardbtn {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.card .cardbtn.added { transform: translate(-50%, 0); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card .name { font-size: 13.5px; font-weight: 400; margin: 0 0 8px; flex: 1; color: #44403a; }
.card .price { font-size: 16px; font-weight: 800; color: var(--olive-dark); margin-bottom: 4px; }
.card .listbtn { display: none; }
.card .excerpt { display: none; }
.grid.list .card .excerpt {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 2px 0 8px;
}

/* ---------- vista lista (estilo Amazon) ---------- */
.view-toggle { display: flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.view-toggle button {
  background: var(--surface);
  border: 0;
  padding: 7px 13px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1;
}
.view-toggle button.on { background: var(--olive); color: #fff; }
.grid.list { display: flex; flex-direction: column; gap: 12px; }
.grid.list .card { flex-direction: row; align-items: stretch; }
.grid.list .card .ph { width: 150px; min-width: 150px; aspect-ratio: 1; align-self: center; border-radius: 12px; margin: 10px; }
.grid.list .card .cardbtn { display: none; }
.grid.list .card .listbtn { display: inline-flex; align-self: flex-start; width: auto; }
.grid.list .card .body { justify-content: center; padding: 14px 16px 14px 4px; }
.grid.list .card .name { flex: 0 0 auto; font-size: 14.5px; }
.card .price .old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: 12.5px; margin-right: 6px; }
.card .price .desde { font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* ---------- Banner CTA ---------- */
.banner {
  margin-top: 52px;
  background: var(--olive);
  border-radius: var(--radius);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 40px 48px;
}
.banner h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.banner p { opacity: 0.9; max-width: 560px; }
.banner .btn { background: #fff; color: var(--olive-dark); }
.banner .btn:hover { background: var(--bg); }

/* ---------- Breadcrumbs / category page ---------- */
.crumbs { font-size: 12.5px; color: var(--muted); margin: 22px 0 6px; }
.crumbs a:hover { color: var(--olive-dark); }
.pagehead h1 { font-size: 28px; font-weight: 800; }
.pagehead .count { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.chips a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12.5px;
  font-weight: 600;
}
.chips a:hover, .chips a.on { background: var(--olive); color: #fff; border-color: var(--olive); }

/* ---------- Product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin-top: 26px;
}
.gallery .main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
  background: #fff;
}
.thumbs img.on { border-color: var(--olive); }
.pinfo h1 { font-size: 26px; font-weight: 800; line-height: 1.25; }
.pinfo .cats { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.pinfo .price { font-size: 26px; font-weight: 800; color: var(--olive-dark); margin: 14px 0; }
.pinfo .price .old { font-size: 17px; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-right: 8px; }
.pinfo .short { color: var(--muted); font-size: 14px; }
.pinfo label { font-size: 13px; font-weight: 600; display: block; margin: 18px 0 6px; }
.pinfo select, .qty input {
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
  outline: none;
}
.pinfo select { width: 100%; max-width: 340px; }
.buyrow { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); }
.qty button { background: none; border: 0; font-size: 17px; padding: 8px 14px; color: var(--olive-dark); }
.qty input { border: 0; width: 38px; text-align: center; padding: 8px 0; background: transparent; }
.stockline { margin-top: 14px; font-size: 13px; color: var(--olive-dark); font-weight: 600; }
.stockline.out { color: var(--danger); }
.desc { margin-top: 48px; max-width: 860px; }
.desc h2 { font-size: 20px; margin-bottom: 12px; }
.desc p { margin-bottom: 12px; color: #44403a; }
.desc h3, .desc h4 { margin: 18px 0 8px; }
.desc ul, .desc ol { margin: 0 0 12px 22px; }
.desc img { border-radius: 12px; margin: 10px 0; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin-top: 26px; align-items: start; }
.cart-items, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-items .item {
  display: grid;
  grid-template-columns: 74px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-items .item:last-child { border-bottom: 0; }
.cart-items img { width: 74px; height: 74px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.cart-items .iname { font-weight: 600; font-size: 14px; }
.cart-items .iattrs { color: var(--muted); font-size: 12.5px; }
.cart-items .iprice { font-weight: 700; color: var(--olive-dark); white-space: nowrap; }
.cart-items .rm { background: none; border: 0; color: var(--muted); font-size: 17px; }
.cart-items .rm:hover { color: var(--danger); }
.panel { padding: 22px 24px; }
.panel h3 { font-size: 17px; margin-bottom: 14px; }
.trow { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.trow.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 17px; }
.freeship-note { background: var(--olive-tint); border-radius: 10px; font-size: 12.5px; padding: 9px 13px; margin: 12px 0; color: var(--olive-dark); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty svg { margin-bottom: 12px; color: var(--border); }

/* Checkout form */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; display: block; margin-bottom: 5px; }
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg);
  outline: none;
}
.field input:focus { border-color: var(--olive); }
.payopts { display: grid; gap: 10px; margin: 16px 0; }
.payopt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  background: var(--surface);
}
.payopt.on { border-color: var(--olive); background: var(--olive-tint); }
.payopt b { font-size: 14px; }
.payopt span { font-size: 12px; color: var(--muted); display: block; }
.paylogo { margin-left: auto; font-weight: 800; font-size: 13px; color: var(--muted); }
#checkout-msg { font-size: 13px; color: var(--danger); margin-top: 10px; min-height: 18px; }

/* ---------- Login / registro ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 30px 0 10px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 560px;
  box-shadow: var(--shadow);
}
.auth-photo { position: relative; min-height: 100%; }
.auth-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.auth-quote {
  position: absolute;
  bottom: 26px;
  left: 26px;
  right: 26px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.auth-card { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.auth-b { width: 46px; height: 46px; margin-bottom: 16px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.auth-tabs button {
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
}
.auth-tabs button.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.auth-form h1 { font-size: 25px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.auth-form .field { margin-bottom: 13px; }
.auth-form .btn { margin-top: 6px; }
.auth-msg { min-height: 20px; font-size: 13px; color: var(--danger); margin-top: 10px; }
.auth-msg.ok { color: var(--olive-dark); }
.auth-alt { font-size: 13px; color: var(--muted); margin-top: 14px; }
.auth-alt a { color: var(--olive-dark); font-weight: 600; text-decoration: underline; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-photo { min-height: 220px; }
  .auth-card { padding: 30px 24px; }
}

/* modal */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(38, 37, 31, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-bg[hidden], .drawer-bg[hidden] { display: none; }
.auth-wrap.modal {
  margin: auto;
  max-width: 880px;
  width: 100%;
  min-height: 0;
  max-height: calc(100vh - 40px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.auth-wrap.modal .auth-card { overflow-y: auto; max-height: calc(100vh - 40px); }
.auth-wrap.modal .fgrid { gap: 10px; }
.auth-wrap.modal .field { margin-bottom: 4px; }
.modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  color: var(--muted);
}
.modal-x:hover { color: var(--danger); }
@media (max-width: 900px) {
  .auth-wrap.modal .auth-photo { display: none; }
}

/* ---------- Mi cuenta ---------- */
.acc-root .order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.acc-root .order-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.acc-root .order-head b { font-size: 15px; }
.acc-root .status {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  background: var(--olive-tint);
  color: var(--olive-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.acc-root .order-items { color: var(--muted); font-size: 13px; margin-top: 8px; }
.acc-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }

/* ---------- Slider de portada ---------- */
.slider { position: relative; margin-top: 22px; overflow: hidden; border-radius: var(--radius); }
.slider .slides {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider .slide {
  min-width: 100%;
  margin-top: 0;
  border-radius: 0;
}
.slide.s-dark { background: linear-gradient(120deg, var(--olive-dark) 0%, var(--olive) 100%); color: #fff; }
.slide.s-dark .hero-txt p, .slide.s-dark .hero-txt h1 { color: #fff; }
.slide.s-dark .hero-txt p { opacity: 0.9; }
.slide.s-dark h1 em { color: #e9c97a; }
.slide.s-gold { background: linear-gradient(120deg, #f6ecd4 0%, #f2e2b8 100%); }
.slide.s-gold h1 em { color: #b0821f; }
.slide.s-gold .kicker { color: #9a7415; }
.slide.s-sage { background: linear-gradient(120deg, #e7ede0 0%, #d8e2cc 100%); }
.sl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  color: var(--olive-dark);
  z-index: 5;
  transition: background 0.15s;
}
.sl-arrow:hover { background: #fff; }
.sl-arrow.prev { left: 14px; }
.sl-arrow.next { right: 14px; }
.sl-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.sl-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background 0.2s;
}
.sl-dots button.on { background: var(--gold); transform: scale(1.3); }

/* pasos de la landing BimorBox */
.bx-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  max-width: 1020px;
  margin: 0 auto;
}
.bx-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
}
.bx-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 10px;
}
.bx-step b { display: block; font-size: 14.5px; margin-bottom: 5px; }
.bx-step p { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ---------- Plantilla BimorBox (premium) ---------- */
.bx-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(130deg, #f3ecda 0%, #ecdfc4 100%);
  border: 1px solid #e2d5b8;
  border-radius: 22px;
  color: var(--ink);
  padding: 46px 48px;
  margin-top: 22px;
  position: relative;
  overflow: hidden;
}
.bx-hero::before {
  content: "🐾";
  position: absolute;
  font-size: 200px;
  opacity: 0.07;
  right: -30px;
  top: -50px;
  transform: rotate(20deg);
}
.bx-kicker {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 14px;
}
.bx-hero h1 { font-size: 38px; font-weight: 800; line-height: 1.12; margin-bottom: 10px; }
.bx-sub { color: #5d5748; font-size: 15px; margin-bottom: 20px; max-width: 480px; }
.bx-buy {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  max-width: 430px;
  box-shadow: 0 10px 28px rgba(60, 55, 40, 0.16);
}
.bx-buy .price { font-size: 26px; font-weight: 800; color: var(--olive-dark); margin-bottom: 6px; }
.bx-buy .price .old { font-size: 16px; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-right: 8px; }
.bx-buy label { font-size: 12.5px; font-weight: 600; display: block; margin: 8px 0 5px; }
.bx-buy select { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; font-family: inherit; font-size: 13.5px; }
.bx-buy .buyrow { margin-top: 12px; }
.bx-buy .stockline { margin-top: 10px; }
.bx-hero-img { position: relative; z-index: 1; }
.bx-hero-img img {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}
.bx-perks { margin-top: 18px; }
.bx-ico { font-size: 26px; }

.bx-inside { margin-top: 54px; text-align: center; }
.bx-inside h2 { font-size: 30px; font-weight: 800; }
.bx-inside-sub { color: var(--muted); margin: 6px 0 26px; }
.bx-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.bx-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bx-item:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow); }
.bx-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.bx-item b { display: block; font-size: 13px; line-height: 1.3; }
.bx-item span { color: var(--olive-dark); font-weight: 700; font-size: 12.5px; }
.bx-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 2px dashed var(--gold);
  border-radius: 18px;
  padding: 20px 30px;
  margin: 28px auto 0;
  max-width: 720px;
}
.bx-value span { display: block; font-size: 12px; color: var(--muted); }
.bx-value b { font-size: 24px; font-weight: 800; color: var(--olive-dark); }
.bx-value b.old { color: var(--muted); text-decoration: line-through; }
.bx-arrow { font-size: 26px; color: var(--gold); }
.bx-save {
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  transform: rotate(-3deg);
}

.bx-desc { max-width: 780px; margin: 54px auto 0; }
.bx-desc > h2 { text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.bx-desc { font-size: 15.5px; line-height: 1.75; color: #3d3a33; }
.bx-desc h3, .bx-desc h4 { font-size: 20px; margin: 26px 0 10px; color: var(--olive-dark); }
.bx-desc img { border-radius: 14px; margin: 14px 0; }
.bx-desc ul, .bx-desc ol { margin: 0 0 14px 24px; }
.bx-desc p { margin-bottom: 14px; }

/* zigzag texto-imagen de la descripción premium */
.bx-band {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 22px;
  margin-top: 48px;
}
.bx-zigwrap { max-width: none; }
.bx-zigwrap > h2 { margin-bottom: 6px; }
.bx-zig {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 44px auto;
}
.bx-zig.rev .bx-zig-txt { order: 2; }
.bx-zig.rev .bx-zig-img { order: 1; }
.bx-zig-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(60, 55, 40, 0.18);
  transform: rotate(-1.5deg);
}
.bx-zig.rev .bx-zig-img img { transform: rotate(1.5deg); }
.bx-zig-txt h2, .bx-zig-txt h3, .bx-zig-txt h4 { text-align: left; }
.bx-zig-solo { max-width: 780px; margin: 30px auto; }
@media (max-width: 860px) {
  .bx-zig { grid-template-columns: 1fr; gap: 18px; margin: 30px auto; }
  .bx-zig.rev .bx-zig-txt { order: 1; }
  .bx-zig.rev .bx-zig-img { order: 2; }
}

.bx-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.bx-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.2s;
}
.bx-gallery img:hover { transform: scale(1.02) rotate(-1deg); }

.bx-cta {
  margin-top: 54px;
  text-align: center;
  background: linear-gradient(130deg, var(--olive-dark), var(--olive));
  color: #fff;
  border-radius: 22px;
  padding: 46px 30px;
}
.bx-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.bx-cta p { opacity: 0.9; margin-bottom: 22px; }

@media (max-width: 900px) {
  .bx-hero { grid-template-columns: 1fr; padding: 30px 24px; }
  .bx-hero h1 { font-size: 28px; }
  .bx-hero-img { order: -1; }
  .bx-hero-img img { transform: none; max-width: 320px; }
  .bx-value { gap: 14px; padding: 16px; }
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 100;
}
#toast.show { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
footer.site {
  margin-top: 70px;
  background: var(--olive-dark);
  color: #f2efe6;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0 30px;
}
.foot-grid h4 { font-size: 14px; margin-bottom: 12px; color: #fff; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 7px; font-size: 13px; opacity: 0.85; }
.foot-grid a:hover { text-decoration: underline; }
.foot-brand .l2 { color: #cdd6b8; font-weight: 700; letter-spacing: 5px; font-size: 12px; }
.foot-brand p { font-size: 12.5px; opacity: 0.8; margin-top: 10px; max-width: 260px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 0;
  font-size: 12px;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Menú móvil (drawer) ---------- */
#bm-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 6px;
  border-radius: 8px;
}
#bm-burger:hover { background: var(--olive-tint); }
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(38, 37, 31, 0.55);
  z-index: 300;
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--surface);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: slidein 0.2s ease;
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.drawer-head .modal-x { position: static; }
.drawer-search { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.drawer-search input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13.5px;
  background: var(--bg);
  outline: none;
}
.drawer-nav { flex: 1; position: relative; overflow: hidden; }
.drawer-nav .dpanel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 10px 0;
  background: var(--surface);
  transition: transform 0.25s ease;
}
.drawer-nav .dpanel.main { transform: none; }
.drawer-nav.subopen .dpanel.main { transform: translateX(-30%); }
.drawer-nav .dpanel.sub { transform: translateX(105%); }
.drawer-nav .dpanel.sub.open { transform: none; box-shadow: -8px 0 20px rgba(0, 0, 0, 0.08); }
.drawer-nav a, .drawer-nav .dnav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 500;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.drawer-nav a:hover, .drawer-nav .dnav-item:hover { background: var(--olive-tint); }
.drawer-nav .dnav-item span { color: var(--muted); font-size: 17px; }
.drawer-nav .dback {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--olive-tint);
  border: 0;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--olive-dark);
  font-family: inherit;
  margin-bottom: 6px;
}
.drawer-nav .dall b { color: var(--olive-dark); }
.drawer-sep { border-top: 1px solid var(--border); margin: 10px 0; }

/* mini carrito deslizante (derecha → izquierda, 0,4 s) */
.cart-drawer {
  animation: none;
  width: min(380px, 92vw);
  transform: translateX(105%);
  transition: transform 0.4s ease;
}
.drawer-bg.open .cart-drawer { transform: none; }
.cd-items { flex: 1; overflow-y: auto; }
.cd-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.cd-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.cd-item .iname { font-weight: 600; line-height: 1.3; }
.cd-item .iattrs { color: var(--muted); font-size: 12px; }
.cd-item > b { color: var(--olive-dark); white-space: nowrap; }
.cd-qty { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cd-qty button {
  background: var(--olive-tint);
  border: 0;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  font-size: 13px;
  color: var(--olive-dark);
  line-height: 1;
}
.cd-qty .rm { background: none; color: var(--muted); margin-left: 6px; }
.cd-qty .rm:hover { color: var(--danger); }
.cd-foot { border-top: 1px solid var(--border); padding: 14px 18px 18px; }

/* ---------- Catálogo /tienda/ ---------- */
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.shop-tools { display: flex; gap: 10px; align-items: center; }
/* desplegable de orden propio */
.sortdd { position: relative; }
.sortdd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--surface);
}
.sortdd-btn .chev { color: var(--muted); font-size: 11px; }
.sortdd-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 60;
}
.sortdd-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--ink);
}
.sortdd-menu button:hover { background: var(--olive-tint); }
.sortdd-menu button.on { background: var(--olive); color: #fff; font-weight: 600; }
#shop-filter-btn { display: none; }
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: start;
  margin-top: 18px;
}
.shop-layout > div { min-width: 0; }
.shop-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: sticky;
  top: 130px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}
.shop-filters .fhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.shop-filters .fhead .modal-x { display: none; position: static; }
.fgroup { border-top: 1px solid var(--border); padding: 13px 0; }
.fgroup > b { display: block; font-size: 13px; margin-bottom: 8px; }
.fgroup label { display: block; font-size: 13px; padding: 3px 0; cursor: pointer; }
.fgroup label.subcat { padding-left: 12px; color: #55524a; }
.fgroup input[type="search"], .fgroup input[type="number"] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13px;
  background: var(--bg);
  outline: none;
}
.frow { display: flex; gap: 8px; align-items: center; color: var(--muted); }
/* barra de precio con dos tiradores */
.price-slider { position: relative; height: 28px; margin-top: 6px; }
.price-slider .ps-track {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
}
.price-slider .ps-range {
  position: absolute;
  top: 12px;
  height: 4px;
  background: var(--olive);
  border-radius: 999px;
}
.price-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  border: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  height: 28px;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--olive);
  cursor: grab;
  margin-top: 0;
}
.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--olive);
  cursor: grab;
}
#f-price-label { color: var(--olive-dark); }
.fscroll { max-height: 180px; overflow-y: auto; }
.shop-filters .btn { margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: 1fr; gap: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-txt { padding: 34px 26px; }
  .pdp { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  /* header móvil: solo logo + carrito + hamburguesa */
  nav.main, .searchbox, #bm-account, .cart-word { display: none; }
  #bm-burger { display: inline-flex; }
  .header-row { gap: 12px; justify-content: space-between; }
  .header-actions { gap: 14px; }
  .logo img { height: 38px !important; }
  .logo .l3 { display: none; }

  /* modal de acceso a pantalla completa */
  .modal-bg { padding: 0; }
  .auth-wrap.modal { max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .auth-wrap.modal .auth-card { max-height: none; }

  /* filtros de tienda como panel lateral deslizante */
  .shop-layout { grid-template-columns: 1fr; }
  #shop-filter-btn { display: inline-flex; font-size: 14px; padding: 10px 18px; }
  .chips { display: none; }
  .shop-tools { width: 100%; flex-wrap: wrap; }
  .sortdd { flex: 1; min-width: 0; }
  .sortdd-btn { width: 100%; justify-content: space-between; font-size: 14.5px; padding: 10px 16px; }
  .sortdd-menu { left: auto; right: 0; }
  .shop-filters {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    max-height: none;
    height: 100%;
    border-radius: 0;
    z-index: 300;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
  }
  .shop-filters.open { transform: none; }
  .shop-filters .fhead .modal-x { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 640px) {
  .grid.list .card { min-width: 0; max-width: 100%; }
  .grid.list .card .body { min-width: 0; overflow: hidden; }
  .grid.list .card .excerpt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hero-txt h1 { font-size: 28px; }
  .banner { grid-template-columns: 1fr; padding: 30px 26px; }
  .cart-items .item { grid-template-columns: 60px 1fr auto; }
  .cart-items .iprice { grid-column: 2; }
  .fgrid { grid-template-columns: 1fr; }
}
