/* ============ Natural Goats · Sistema de diseño ============ */
:root {
  --cream: #fbf7f0;
  --paper: #ffffff;
  --sand: #f1e8da;
  --sand-2: #e7dac5;
  --kraft: #c8a27a;
  --kraft-d: #a8814f;
  --brown: #3a2a1e;
  --ink: #231812;
  --muted: #7d6e60;
  --forest: #2f4a33;
  --forest-d: #223825;
  --sage: #8aa68a;
  --sage-l: #e4ece1;
  --rose: #c74b7a;
  --rose-l: #f8e3ec;
  --amber: #b9710f;
  --amber-l: #fdeccf;
  --ok: #1f7a3c;
  --ok-l: #dff0e3;
  --bad: #b3261e;
  --bad-l: #fbe2df;
  --radius: 18px;
  --radius-s: 12px;
  --shadow-s: 0 1px 2px rgba(58,42,30,.06), 0 4px 14px rgba(58,42,30,.06);
  --shadow: 0 2px 6px rgba(58,42,30,.06), 0 18px 48px rgba(58,42,30,.12);
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; color: var(--brown); letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: .02em;
  transition: transform .18s ease, background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 6px 18px rgba(47,74,51,.28); }
.btn-primary:hover { background: var(--forest-d); transform: translateY(-1px); }
.btn-ghost { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-ghost:hover { background: var(--brown); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sand); }
.btn-danger { background: var(--bad-l); color: var(--bad); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- cabecera ---------- */
.topbar { background: var(--forest); color: #e9efe6; text-align: center; font-size: 13px; padding: 8px 12px; letter-spacing: .04em; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.88); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(58,42,30,.08);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--kraft); }
.brand span { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--brown); letter-spacing: -.01em; }
.brand small { display: block; font: 500 10.5px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--kraft-d); margin-top: 2px; }
.nav { display: flex; gap: 6px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--brown); transition: background .15s; }
.nav a:hover, .nav a.on { background: var(--sand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--brown); transition: background .15s;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--rose); color: #fff; font: 600 11px/19px var(--font-body); text-align: center;
}
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--sand); font-size: 14px; font-weight: 500; }
.user-chip i { width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font: 600 13px var(--font-body); font-style: normal; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; background:
  radial-gradient(900px 480px at 85% 0%, #f6e4cf 0%, transparent 60%),
  radial-gradient(700px 420px at 0% 100%, #e6eedf 0%, transparent 60%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--kraft-d); }
.eyebrow::before { content: ''; width: 34px; height: 1.5px; background: var(--kraft); }
.hero h1 { font-size: clamp(46px, 6.2vw, 84px); margin: 18px 0 22px; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--forest); font-weight: 500; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-badges div { font-size: 13.5px; color: var(--muted); }
.hero-badges b { display: block; font: 600 30px var(--font-display); color: var(--brown); }
.hero-art { position: relative; height: 560px; }
.arch {
  position: absolute; overflow: hidden; background: var(--sand); box-shadow: var(--shadow);
  border-radius: 999px 999px 24px 24px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.a1 { width: 56%; height: 82%; right: 4%; top: 0; }
.arch.a2 { width: 40%; height: 52%; left: 0; bottom: 0; border-radius: 24px 24px 999px 999px; }
.arch.a3 { width: 30%; height: 30%; right: 0; bottom: 4%; border-radius: 24px; border: 6px solid var(--cream); }
.seal {
  position: absolute; left: 6%; top: 8%; width: 112px; height: 112px; border-radius: 50%;
  background: var(--rose); color: #fff; display: grid; place-items: center; text-align: center;
  font: 600 13px/1.25 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(199,75,122,.35); transform: rotate(-12deg);
}
.seal b { font: 600 26px var(--font-display); display: block; text-transform: none; letter-spacing: 0; }

/* ---------- secciones ---------- */
section.block { padding: 84px 0; }
.block.alt { background: var(--sand); }
.block.dark { background: var(--forest); color: #e4ece1; }
.block.dark h2, .block.dark h3 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(34px, 4vw, 52px); margin-top: 12px; }
.sec-head p { color: var(--muted); max-width: 460px; }
.link-arrow { font-weight: 500; color: var(--forest); border-bottom: 1.5px solid var(--kraft); padding-bottom: 2px; }
.link-arrow:hover { color: var(--rose); border-color: var(--rose); }

.strip { background: var(--paper); border-block: 1px solid rgba(58,42,30,.07); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; gap: 14px; align-items: center; padding: 22px 18px; border-right: 1px solid rgba(58,42,30,.07); }
.strip-item:last-child { border-right: 0; }
.strip-item svg { width: 34px; height: 34px; color: var(--forest); flex: none; }
.strip-item b { display: block; font-weight: 600; font-size: 15px; }
.strip-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- productos ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1/1; background: var(--sand); overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px; font: 600 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--brown); }
.tag.out { background: var(--brown); color: #fff; }
.tag.few { background: var(--amber-l); color: var(--amber); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font: 500 11px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--kraft-d); }
.card-name { font: 600 21px/1.15 var(--font-display); color: var(--brown); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font: 600 22px var(--font-display); color: var(--forest); }
.add { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--forest); color: #fff; display: grid; place-items: center; transition: transform .15s, background .15s; }
.add:hover { background: var(--rose); transform: scale(1.08); }
.add svg { width: 20px; height: 20px; }
.add[disabled] { background: var(--sand-2); color: var(--muted); pointer-events: none; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--sand-2); display: block; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(35,24,18,.78)); }
.cat-tile div { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; }
.cat-tile h3 { color: #fff; font-size: 26px; }
.cat-tile span { font-size: 13px; opacity: .85; }

/* ---------- historia ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-img { position: relative; }
.story-img .frame { border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); background: var(--sand-2); }
.story-img .frame img { width: 100%; height: 100%; object-fit: cover; }
.story-img .float { position: absolute; right: -18px; bottom: 34px; background: var(--paper); padding: 16px 20px; border-radius: var(--radius-s); box-shadow: var(--shadow); font-size: 14px; max-width: 200px; }
.story-img .float b { display: block; font: 600 30px var(--font-display); color: var(--forest); }
.story h2 { font-size: clamp(34px, 4vw, 54px); margin: 14px 0 20px; }
.story p { color: var(--muted); margin-bottom: 14px; font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px; }
.benefit .n { font: 600 46px var(--font-display); color: var(--kraft); line-height: 1; }
.benefit h3 { font-size: 26px; margin: 12px 0 8px; }
.benefit p { color: #cbd8c8; font-size: 15.5px; }

.cta-band { background: linear-gradient(120deg, var(--rose-l), #f6e8d2); border-radius: 28px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(30px, 3.4vw, 46px); max-width: 560px; }

/* ---------- pie ---------- */
.footer { background: var(--brown); color: #d8cdbd; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font: 600 13px var(--font-body); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { display: block; padding: 4px 0; color: #d8cdbd; }
.footer a:hover { color: #fff; }
.footer .brand span { color: #fff; }
.footer p { font-size: 14.5px; max-width: 320px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- catálogo ---------- */
.page-head { padding: 54px 0 30px; background: linear-gradient(180deg, var(--sand), var(--cream)); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 560px; }
.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 28px 0 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--sand-2); background: var(--paper); font-size: 14px; color: var(--brown); transition: all .15s; }
.chip:hover { border-color: var(--kraft); }
.chip.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.field, select.field, textarea.field {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-s); border: 1.5px solid var(--sand-2);
  background: #fff; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(47,74,51,.12); }
.search-box { position: relative; width: 260px; }
.search-box input { padding-left: 42px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { margin-bottom: 8px; }

/* ---------- detalle de producto ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 40px 0 64px; }
.pd-img { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 1/1; box-shadow: var(--shadow); }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 26px; }
.crumbs a:hover { color: var(--forest); }
.pd h1 { font-size: clamp(36px, 4vw, 54px); margin: 8px 0 14px; }
.pd .price { font-size: 36px; }
.pd .desc { color: var(--muted); font-size: 17px; margin: 18px 0 24px; white-space: pre-line; }
.stock-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: 999px; }
.stock-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-pill.ok { background: var(--ok-l); color: var(--ok); }
.stock-pill.few { background: var(--amber-l); color: var(--amber); }
.stock-pill.out { background: var(--bad-l); color: var(--bad); }
.buy-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--sand-2); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 20px; color: var(--brown); border-radius: 999px; }
.qty button:hover { background: var(--sand); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.pd-points { display: grid; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--sand-2); font-size: 14.5px; color: var(--muted); }

/* ---------- carrito (drawer) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(35,24,18,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 100; transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.drawer.on { transform: none; }
.drawer-head { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--sand-2); }
.drawer-head h3 { font-size: 28px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--sand-2); background: var(--paper); }
.line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--sand); align-items: center; }
.line img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; background: var(--sand); }
.line b { font: 600 18px/1.15 var(--font-display); display: block; }
.line small { color: var(--muted); }
.line .qty { transform: scale(.82); transform-origin: left; margin-top: 4px; }
.line .rm { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.sum-row.total { color: var(--ink); font: 600 26px var(--font-display); padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--sand-2); }

/* ---------- formularios / auth / checkout ---------- */
.narrow { width: min(480px, 100% - 40px); margin: 56px auto 80px; }
.panel { background: var(--paper); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-s); }
.panel h1, .panel h2 { font-size: 36px; margin-bottom: 6px; }
.form-grid { display: grid; gap: 16px; margin-top: 20px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.lbl { display: block; font-size: 13.5px; font-weight: 500; color: var(--brown); margin-bottom: 6px; }
.help { font-size: 13px; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: var(--radius-s); font-size: 14.5px; margin-top: 14px; }
.alert.err { background: var(--bad-l); color: var(--bad); }
.alert.ok { background: var(--ok-l); color: var(--ok); }
.alert.info { background: var(--sage-l); color: var(--forest-d); }

.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding: 44px 0 80px; align-items: start; }
.stack { display: grid; gap: 22px; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-s); border: 1.5px solid var(--sand-2); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card:hover { border-color: var(--kraft); }
.radio-card.on { border-color: var(--forest); background: var(--sage-l); }
.radio-card input { margin-top: 4px; accent-color: var(--forest); }
.radio-card b { display: block; }
.radio-card span { font-size: 13.5px; color: var(--muted); }
.sticky { position: sticky; top: 100px; }

/* ---------- cuenta / pedidos ---------- */
.account { display: grid; grid-template-columns: 250px 1fr; gap: 36px; padding: 44px 0 80px; align-items: start; }
.side { background: var(--paper); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-s); position: sticky; top: 100px; }
.side a, .side button { display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: 10px; border: 0; background: none; font-size: 15px; color: var(--brown); }
.side a:hover, .side button:hover, .side a.on { background: var(--sand); }
.order-card { background: var(--paper); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-s); margin-bottom: 18px; }
.order-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.order-top h3 { font-size: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font: 600 12px var(--font-body); letter-spacing: .04em; white-space: nowrap; }
.pill.s-pendiente { background: var(--amber-l); color: var(--amber); }
.pill.s-confirmado { background: #dfeaf6; color: #1d4f8a; }
.pill.s-en_preparacion { background: #ece3f6; color: #5b3a8a; }
.pill.s-enviado { background: var(--rose-l); color: var(--rose); }
.pill.s-entregado, .pill.pay-pagado { background: var(--ok-l); color: var(--ok); }
.pill.s-cancelado { background: var(--bad-l); color: var(--bad); }
.pill.pay-pendiente_pago { background: var(--bad-l); color: var(--bad); }
.pill.pay-verificar { background: var(--amber-l); color: var(--amber); }

.track { display: flex; margin: 22px 0 8px; }
.track .st { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--muted); }
.track .st::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--sand-2); z-index: 0; }
.track .st:first-child::before { display: none; }
.track .st i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 6px; border-radius: 50%; background: var(--sand-2); color: #fff; font-style: normal; font-weight: 700; font-size: 13px; }
.track .st.done i { background: var(--forest); }
.track .st.done::before { background: var(--forest); }
.track .st.cur i { background: var(--rose); box-shadow: 0 0 0 5px var(--rose-l); }
.track .st.cur { color: var(--ink); font-weight: 600; }
.track.cancelled { opacity: .5; }

.items-mini { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.items-mini img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.hist { margin-top: 16px; font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- toast / modal ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; }
.toast { background: var(--brown); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14.5px; animation: pop .25s ease; }
.toast.err { background: var(--bad); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(35,24,18,.5); overflow-y: auto; }
.modal-box { background: var(--paper); border-radius: var(--radius); padding: 30px; width: min(560px, 100%); box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto; }
.modal-box h3 { font-size: 30px; margin-bottom: 4px; }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- panel de administración ---------- */
body.admin-mode { background: #f4f0e8; }
.adm { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.adm-side { background: var(--brown); color: #d8cdbd; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.adm-side .brand { padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.adm-side .brand span { color: #fff; font-size: 23px; }
.adm-side nav a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; font-size: 15px; color: #d8cdbd; margin-bottom: 2px; }
.adm-side nav a svg { width: 19px; height: 19px; opacity: .85; }
.adm-side nav a:hover { background: rgba(255,255,255,.07); }
.adm-side nav a.on { background: var(--forest); color: #fff; }
.adm-side .bottom { margin-top: auto; font-size: 13.5px; padding: 0 8px; }
.adm-side .bottom a { display: block; padding: 6px 0; color: #d8cdbd; }
.adm-main { padding: 34px 40px 60px; min-width: 0; }
.adm-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.adm-title h1 { font-size: 40px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.kpi { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-s); }
.kpi small { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.kpi b { display: block; font: 600 36px var(--font-display); color: var(--brown); margin-top: 4px; }
.kpi.g b { color: var(--ok); } .kpi.r b { color: var(--bad); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.box { background: var(--paper); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-s); margin-bottom: 22px; }
.box h3 { font-size: 26px; margin-bottom: 14px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font: 600 11.5px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--sand-2); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--sand); vertical-align: middle; }
.tbl tr:hover td { background: #fcfaf5; }
.tbl .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--sand); }
.tbl .r { text-align: right; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.bar { height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--forest); border-radius: 99px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .field { width: auto; min-width: 170px; }
.dropzone { border: 2px dashed var(--sand-2); border-radius: var(--radius-s); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: all .15s; background: #fffdf9; }
.dropzone:hover { border-color: var(--forest); background: var(--sage-l); }
.dropzone img { max-height: 190px; margin: 0 auto 10px; border-radius: 12px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.mini { font-size: 13px; color: var(--muted); }

/* ---------- cargando ---------- */
.skel { background: linear-gradient(90deg, var(--sand) 25%, #f7f0e3 50%, var(--sand) 75%); background-size: 200% 100%; animation: sh 1.3s infinite; border-radius: var(--radius); }
@keyframes sh { to { background-position: -200% 0; } }
.fade-in { animation: fi .45s ease both; }
@keyframes fi { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (min-width: 761px) and (max-width: 1060px) {
  .pd { gap: 32px; }
  .pd h1 { font-size: 38px; }
}
@media (max-width: 1060px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .story { grid-template-columns: 1fr; }
  .hero-art { height: 460px; max-width: 520px; margin-inline: auto; width: 100%; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: 0; }
  .benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .account { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; }
  .side a, .side button { white-space: nowrap; width: auto; }
}
.brand span { white-space: nowrap; }
@media (max-width: 860px) {
  .pd, .checkout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--max), 100% - 32px); }
  .header-in { height: 66px; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 22px; }
  .header-actions .icon-btn[aria-label="Buscar"] { display: none; }
  .header-actions .btn-sm { padding: 7px 13px; }
  .topbar { font-size: 11.5px; padding: 7px 10px; }
  .strip-item { padding: 16px 12px; gap: 10px; }
  .strip-item svg { width: 26px; height: 26px; }
  .strip-item b { font-size: 14px; }
  .strip-item span { font-size: 12.5px; }
  .hero h1 { font-size: 44px; }
  .hero-badges { gap: 20px; }
  .sec-head h2 { font-size: 34px; }
  .nav { top: 66px; }
  .panel { padding: 24px 20px; }
  .adm-title h1 { font-size: 32px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi b { font-size: 28px; }
}
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1180px) {
  .user-chip span { display: none; }
  .user-chip { padding: 6px; }
}
@media (max-width: 980px) {
  .nav { position: fixed; top: 74px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 14px 20px 20px; border-bottom: 1px solid var(--sand-2); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s; z-index: -1; margin: 0; }
  .nav.on { transform: none; }
  .nav a { padding: 14px; font-size: 17px; }
  .burger { display: grid; }
  .header-in { gap: 12px; }
}
@media (max-width: 760px) {
  .nav { position: fixed; top: 74px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 14px 20px 20px; border-bottom: 1px solid var(--sand-2); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s; z-index: -1; margin: 0; }
  .nav.on { transform: none; }
  .nav a { padding: 14px; font-size: 17px; }
  .burger { display: grid; }
  .user-chip span { display: none; }
  .user-chip { padding: 6px; }
  .brand small { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 12px 14px; }
  .card-name { font-size: 18px; }
  .price { font-size: 19px; }
  .hero { padding: 36px 0 54px; }
  .hero-art { height: 380px; }
  .seal { width: 88px; height: 88px; font-size: 11px; }
  section.block { padding: 56px 0; }
  .form-2 { grid-template-columns: 1fr; }
  .search-box { width: 100%; }
  .cta-band { padding: 32px 24px; }
  .story-img .float { right: 8px; }
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; }
  .adm-side .brand { border: 0; margin: 0; padding: 0 8px; }
  .adm-side nav { display: flex; overflow-x: auto; width: 100%; }
  .adm-side nav a { white-space: nowrap; }
  .adm-side .bottom { display: none; }
  .adm-main { padding: 22px 16px 50px; }
  .track .st { font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- carga de imagen ---------- */
.upload { position: relative; display: flex; flex-direction: column; align-items: stretch; border: 2px dashed var(--sand-2); border-radius: var(--radius-s); background: #fffdf9; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.upload:hover, .upload.drag, .upload:focus-visible { border-color: var(--forest); background: var(--sage-l); outline: 0; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; text-align: center; color: var(--muted); }
.upload-empty svg { width: 38px; height: 38px; color: var(--forest); margin-bottom: 4px; }
.upload-empty b { color: var(--brown); font-weight: 500; }
.upload-empty span { font-size: 13px; }
.upload-pv { display: none; width: 100%; max-height: 280px; object-fit: contain; background: var(--sand); }
.upload-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--sand-2); font-size: 14px; }
.upload-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.upload.has { border-style: solid; border-color: var(--sand-2); }
.upload.has .upload-empty { display: none; }
.upload.has .upload-pv, .upload.has .upload-bar { display: flex; }
.upload.has .upload-pv { display: block; }

/* ---------- notificaciones ---------- */
.adm-title .icon-btn { background: var(--paper); box-shadow: var(--shadow-s); }
#notif-panel { position: fixed; z-index: 120; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(58,42,30,.08); overflow: hidden; display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 96px)); animation: pop .18s ease; }
.np-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--sand-2); flex-wrap: wrap; }
.np-head b { font: 600 22px var(--font-display); color: var(--brown); }
.np-count { font-size: 12px; background: var(--rose-l); color: var(--rose); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.np-link { margin-left: auto; border: 0; background: none; color: var(--forest); font-size: 13px; text-decoration: underline; padding: 4px 2px; }
.np-link[disabled] { opacity: .4; pointer-events: none; }
.np-list { overflow-y: auto; flex: 1; }
.np-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--sand); background: #fff; position: relative; }
.np-item:hover { background: #fbf8f2; }
.np-item.unread { background: #f7fbf5; }
.np-item i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.np-item i svg { width: 18px; height: 18px; }
.np-item span { flex: 1; min-width: 0; display: block; }
.np-item b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.np-item em { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.np-item small { display: block; font-size: 12px; color: var(--kraft-d); margin-top: 4px; }
.np-item u { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); margin-top: 6px; }
.np-empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.np-empty b { display: block; font: 600 22px var(--font-display); color: var(--brown); margin-bottom: 4px; }
.np-foot { padding: 8px 16px; border-top: 1px solid var(--sand-2); text-align: right; }
.np-foot .np-link { margin: 0; }
@media (max-width: 560px) { #notif-panel { left: 12px !important; right: 12px; width: auto !important; } }

/* ---------- confirmación propia ---------- */
.btn-danger-solid { background: var(--bad); color: #fff; box-shadow: 0 6px 18px rgba(179,38,30,.28); }
.btn-danger-solid:hover { background: #8f1d17; transform: translateY(-1px); }
.cf-bg { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(35,24,18,.52); backdrop-filter: blur(3px); animation: cfbg .18s ease; }
.cf-bg.out { opacity: 0; transition: opacity .16s; }
@keyframes cfbg { from { opacity: 0; } }
.cf-box { width: min(420px, 100%); background: var(--paper); border-radius: 24px; padding: 32px 28px 24px; text-align: center; box-shadow: var(--shadow); animation: cfpop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes cfpop { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.cf-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-l); color: var(--forest); }
.cf-icon.danger { background: var(--bad-l); color: var(--bad); }
.cf-icon svg { width: 30px; height: 30px; }
.cf-box h3 { font-size: 30px; margin-bottom: 8px; }
.cf-box p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.cf-actions { display: flex; gap: 10px; margin-top: 24px; }
.cf-actions .btn { flex: 1; padding-inline: 14px; }
@media (max-width: 420px) { .cf-actions { flex-direction: column-reverse; } }

/* ---------- menú de usuario ---------- */
.user-chip { border: 0; cursor: pointer; transition: background .15s, box-shadow .15s; }
.user-chip:hover { background: var(--sand-2); }
.user-chip .chev { width: 16px; height: 16px; opacity: .6; }
.adm-title .user-chip { background: var(--paper); box-shadow: var(--shadow-s); }
#user-menu { position: fixed; z-index: 125; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(58,42,30,.08); overflow: hidden; animation: pop .18s ease; }
.um-head { display: flex; gap: 12px; align-items: center; padding: 16px; background: linear-gradient(180deg, var(--sand), #f8f1e6); border-bottom: 1px solid var(--sand-2); }
.um-head i { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font: 600 19px var(--font-body); font-style: normal; }
.um-head div { min-width: 0; }
.um-head b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-head small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.um-head em { display: inline-block; margin-top: 4px; font: 600 11px var(--font-body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--forest); color: #fff; }
#user-menu nav { padding: 8px; }
#user-menu a, .um-foot button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; border: 0; background: none; font-size: 15px; color: var(--brown); text-align: left; }
#user-menu a:hover, .um-foot button:hover { background: var(--sand); }
#user-menu svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.um-foot { padding: 8px; border-top: 1px solid var(--sand-2); }
.um-foot button { color: var(--bad); }
.um-foot button:hover { background: var(--bad-l); }

.topbar.admin-bar { background: var(--brown); }
.topbar.admin-bar a { color: var(--kraft); text-decoration: underline; font-weight: 500; margin-left: 4px; }
.topbar.admin-bar a:hover { color: #fff; }
.adm-side .bottom a.cur { color: #fff; }

/* Miniaturas en tablas del panel: siempre pequeñas */
.tbl td img, .tbl th img { width: 46px; height: 46px; max-width: none; object-fit: cover; border-radius: 10px; background: var(--sand); display: block; }
/* Tablas del panel: no se aprietan en pantallas medianas (se desplazan en horizontal) */
.tbl { min-width: 860px; }
.tbl td { padding-block: 9px; }
.row-actions { flex-wrap: nowrap; white-space: nowrap; }
.row-actions .btn { white-space: nowrap; }

/* ---------- página de contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 32px 32px 28px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--sand); opacity: .55; z-index: 0; }
.contact-card > * { position: relative; z-index: 1; }
.contact-card h2 { font-size: 34px; }
.contact-card p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.cc-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px; }
.cc-ico svg { width: 30px; height: 30px; }
.cc-ico.wa { background: #e2f7ea; color: #1faa57; }
.cc-ico.wa svg { fill: currentColor; }
.cc-ico.ig { background: var(--rose-l); color: var(--rose); }
.cc-ico.ship { background: var(--sage-l); color: var(--forest); }
.cc-ico.pick { background: var(--amber-l); color: var(--amber); }
.cc-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.cc-data { display: inline-flex; align-items: center; gap: 8px; color: var(--brown); font-weight: 500; font-size: 15px; }
.cc-data svg { width: 18px; height: 18px; color: var(--forest); flex: none; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { padding: 26px 22px; } }

.pill.pay-na { background: var(--sand); color: var(--muted); }

/* En ventanas (modales) las tablas se ajustan al ancho disponible y no se cortan */
.modal-box .tbl { min-width: 0; }
.modal-box .tbl td, .modal-box .tbl th { padding-inline: 8px; }

/* Rejillas del panel: las columnas pueden encogerse y la tabla del resumen se ajusta */
.two > * { min-width: 0; }
.two .tbl { min-width: 0; }
.two .tbl td, .two .tbl th { padding-inline: 8px; }
.tbl td a { white-space: nowrap; }

/* ---------- difusión (WhatsApp) ---------- */
.bc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .bc { grid-template-columns: 1fr; } }
.bc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; margin: 2px 0 8px; }
.bc-bar label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.bc-list { max-height: 360px; overflow: auto; border: 1px solid var(--sand-2); border-radius: 12px; background: #fff; }
.bc-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--sand-2); cursor: pointer; }
.bc-row:last-child { border-bottom: 0; }
.bc-row:hover { background: #faf5ec; }
.bc-row.off { opacity: .55; cursor: not-allowed; }
.bc-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-row small, .bc-qrow small { color: var(--muted); font-size: 12.5px; }
.bc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bc-preview { background: #e7f3e3; border-radius: 14px; padding: 12px 14px; }
.bc-preview small { color: var(--muted); }
.bc-preview > div { margin-top: 6px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.bc-prog { height: 8px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.bc-prog i { display: block; height: 100%; background: var(--forest); transition: width .3s; }
.bc-q { max-height: 340px; overflow: auto; border: 1px solid var(--sand-2); border-radius: 12px; }
.bc-qrow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--sand-2); }
.bc-qrow:last-child { border-bottom: 0; }
.bc-qrow > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-qrow.ok { background: #f3faf1; }
.bc-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--sand-2); border-radius: 12px; box-shadow: 0 12px 30px rgba(58, 42, 30, .16); max-height: 280px; overflow: auto; }
.bc-opt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; cursor: pointer; font-size: 14.5px; }
.bc-opt small { color: var(--muted); white-space: nowrap; }
.bc-opt:hover, .bc-opt.on { background: #eef4ea; }
.bc-opt.none { color: var(--muted); cursor: default; }
.bc-opt.none:hover { background: transparent; }

/* selector de cantidad dentro de la tarjeta del catálogo */
.card-act { display: flex; align-items: center; }
.qty.sm button { width: 34px; height: 38px; font-size: 18px; }
.qty.sm span { min-width: 26px; }
.ship-warn { display: block; margin-top: 6px; font-style: normal; font-weight: 600; font-size: 13px; color: #a45b0b; }

/* módulos (superusuario) */
.mods { margin-top: 12px; border: 1px solid var(--sand-2); border-radius: 14px; background: #fff; }
.mod { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--sand-2); cursor: pointer; }
.mod:last-child { border-bottom: 0; }
.mod span:first-child { display: flex; flex-direction: column; gap: 2px; }
.mod small { color: var(--muted); font-size: 13px; }
.sw { position: relative; width: 46px; height: 26px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: #cfc4b3; transition: background .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw input:checked + i { background: var(--forest); }
.sw input:checked + i::after { transform: translateX(20px); }

/* barra del carrito (aparece al agregar productos) */
#cartbar { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 45; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
#cartbar[hidden] { display: none; }
.cb-in { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--sand-2); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 12px 34px rgba(58, 42, 30, .22); max-width: 100%; }
.cb-info { display: flex; flex-direction: column; line-height: 1.2; margin-right: 6px; }
.cb-info b { font-size: 14.5px; }
.cb-info small { color: var(--muted); font-size: 13px; }
body.has-cartbar { padding-bottom: 84px; }
body.has-cartbar .wa { bottom: 92px; }
@media (max-width: 560px) { .cb-in { gap: 8px; padding-left: 16px; } .cb-info b { font-size: 13px; } .cb-in .btn-ghost { display: none; } }
body.admin-mode #cartbar { display: none; }
body.has-cartbar .toasts { bottom: 92px; }
