:root {
  --bg: #f7f8f8;
  --surface: #ffffff;
  --ink: #16211f;
  --muted: #5d6b68;
  --line: #e2e6e3;
  --brand: #0a8f4f;
  --brand-ink: #ffffff;
  --brand-soft: #e7f6ee;
  --deal: #c2410c;
  --deal-soft: #fdeee4;
  --ok: #15803d;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 33, 30, .06), 0 4px 16px rgba(16, 33, 30, .05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --surface: #172120;
    --ink: #e7eeec;
    --muted: #9aaba7;
    --line: #26332f;
    --brand: #3ccf85;
    --brand-ink: #04240f;
    --brand-soft: #16392a;
    --deal: #fb923c;
    --deal-soft: #3a2415;
    --ok: #4ade80;
    --warn: #fbbf24;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; padding-bottom: 48px; width: 100%; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-size: 22px; line-height: 1;
}
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; height: 42px;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; }
.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; text-decoration: none;
}
.cart-btn:hover { background: var(--bg); }
.cart-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--deal); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted);
  white-space: nowrap; cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.demo-banner { background: var(--deal-soft); color: var(--deal); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 16px; }

/* ---------- Hero ---------- */
.hero {
  margin: 24px 0; padding: 32px; border-radius: 20px;
  background: var(--brand); color: var(--brand-ink);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
.hero p { margin: 0; opacity: .85; max-width: 46ch; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-stat { background: rgba(255,255,255,.12); border-radius: 12px; padding: 14px; }
.hero-stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.hero-stat span { font-size: 13px; opacity: .85; }
.hero-farmacias { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hero-farmacias span { font-size: 12px; font-weight: 600; background: rgba(255,255,255,.15); padding: 4px 10px; border-radius: 999px; }

/* ---------- Secciones ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 14px; }
.sec-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.sec-head a { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.card-img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card-name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-pres { font-size: 13px; color: var(--muted); }
.card-price { margin-top: auto; padding-top: 8px; }
.card-price small { display: block; font-size: 12px; color: var(--muted); }
.card-price b { font-size: 19px; letter-spacing: -.02em; }
.card-meta { font-size: 12px; color: var(--muted); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--deal-soft); color: var(--deal);
}
.badge.ok { background: var(--brand-soft); color: var(--brand); }
.card-img .badge { position: absolute; top: 10px; left: 10px; }

.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-weight: 800; font-size: 32px; letter-spacing: -.03em; color: var(--brand);
  background: var(--brand-soft);
}

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600;
}
.cat-tile:hover { border-color: var(--brand); }
.cat-tile span { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 230px 1fr; gap: 24px; margin-top: 24px; }
.filters { position: sticky; top: 130px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.filters h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.flist { display: flex; flex-direction: column; gap: 2px; }
.flist a {
  display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px;
  text-decoration: none; font-size: 14px;
}
.flist a:hover { background: var(--surface); }
.flist a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.flist a span { color: var(--muted); font-size: 13px; }
.cat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-toolbar h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.cat-toolbar p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
select {
  height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
}
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 24px; align-items: center; }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty h2 { color: var(--ink); margin: 0 0 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.lg { height: 48px; font-size: 16px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--deal); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; height: 40px; background: var(--surface); }
.qty button { width: 34px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--muted); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

/* ---------- Producto ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 20px 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--ink); }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.pcard-title { margin: 0 0 14px; font-size: 17px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pcard-title span { font-size: 13px; font-weight: 500; color: var(--muted); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 36px; align-items: start; }
.pdp-img {
  background: #fff; border-radius: 14px; aspect-ratio: 1; position: relative;
  display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line);
}
.pdp-img img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.pdp-img .ph { font-size: 72px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--brand);
}
.icon-btn:hover { border-color: var(--brand); }
.icon-btn svg, .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.share { position: absolute; top: 12px; right: 12px; }
.pdp-brand { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pdp-info h1 { margin: 6px 0 12px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
a.pill:hover { color: var(--brand); border-color: var(--brand); }
.pdp-old { display: block; color: var(--muted); font-size: 14px; }
.pdp-price { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 6px; }
.pdp-price .cur { font-size: 16px; color: var(--muted); font-weight: 600; }
.pdp-price b { font-size: clamp(34px, 4.5vw, 46px); line-height: 1; letter-spacing: -.03em; font-weight: 800; }
.pdp-price .off { align-self: center; margin-left: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; padding: 4px 9px; border-radius: 8px; }
.pdp-where { font-size: 14px; }
.pdp-upd { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pdp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.hist-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hist-head .pcard-title { margin: 0; }
.seg-mini { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--bg); }
.seg-mini button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-mini button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.chips-row { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.chips-row .chip { font-family: inherit; }
.hist { min-height: 200px; min-width: 0; overflow: hidden; }
.ch svg { display: block; max-width: 100%; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-lbl { fill: var(--ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.ch-dot.max { fill: var(--deal); }
.ch-cross { stroke: var(--muted); stroke-width: 1; }
.ch-hit { cursor: crosshair; outline: none; }
.ch-hit:focus-visible { stroke: var(--brand); stroke-width: 1; }
.ch-tip {
  position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); white-space: nowrap; z-index: 2;
}
.ch-tip b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.ch-tip span { display: block; font-size: 12px; }
.ch-tip small { display: block; font-size: 11px; color: var(--muted); }
.ch-table { margin-top: 10px; font-size: 13px; }
.ch-table summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.ch-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.ch-table th, .ch-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.ch-table td.num { text-align: right; }
.ch-table tbody { display: block; max-height: 240px; overflow-y: auto; }
.ch-table thead, .ch-table tbody tr { display: table; width: 100%; table-layout: fixed; }

.dlg { border: 0; border-radius: 16px; padding: 0; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(10, 20, 15, .45); }
.dlg form { padding: 22px; display: grid; gap: 14px; }
.dlg h3 { margin: 0; font-size: 18px; }
.dlg p { margin: 0; font-size: 14px; color: var(--muted); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }

.offers { display: flex; flex-direction: column; gap: 8px; }
.offer {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
}
.offer.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.offer.off { opacity: .55; }
.offer-name { font-weight: 700; }
.offer-sub { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.offer-sub a { color: var(--muted); }
.offer-price { text-align: right; }
.offer-price b { font-size: 18px; }
.offer-price s { display: block; font-size: 12px; color: var(--muted); }
.offer-act { display: flex; gap: 8px; align-items: center; }

/* ---------- Carrito ---------- */
.page-title { margin: 24px 0 16px; font-size: 26px; letter-spacing: -.02em; }
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.cart-group-head { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 16px; align-items: center; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-img .ph { font-size: 18px; }
.line-name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.line-name:hover { color: var(--brand); }
.line-sub { font-size: 13px; color: var(--muted); }
.line-hint { font-size: 12px; color: var(--brand); font-weight: 600; margin-top: 2px; }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-right b { font-size: 16px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 130px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; }
.opt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.opt h4 { margin: 0 0 4px; font-size: 14px; }
.opt p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent;
  cursor: pointer; text-align: left; width: 100%; font-size: 14px;
}
.opt-item:hover:not(:disabled) { border-color: var(--brand); }
.opt-item:disabled { cursor: default; opacity: .6; }
.opt-item small { display: block; color: var(--muted); font-size: 12px; }
.opt-item b { white-space: nowrap; }
.opt-item.win { border-color: var(--brand); background: var(--brand-soft); }

.alert { padding: 12px 14px; border-radius: 10px; background: var(--deal-soft); color: var(--deal); font-size: 14px; margin-bottom: 14px; }

/* ---------- Checkout ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.form h3 { margin: 0; font-size: 16px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea {
  height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); outline: none;
}
.field textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field .err { color: var(--deal); font-size: 12px; min-height: 0; }
.field.bad input, .field.bad textarea { border-color: var(--deal); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start;
}
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.seg small { display: block; color: var(--muted); font-size: 12px; }
.seg input { accent-color: var(--brand); margin-top: 3px; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.mini-line span:first-child { color: var(--muted); }

/* ---------- Pedido ---------- */
.done { text-align: center; padding: 32px 16px 8px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; font-size: 32px; font-weight: 800; }
.done h1 { margin: 0 0 6px; letter-spacing: -.02em; }
.done p { color: var(--muted); margin: 0 auto; max-width: 52ch; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .12em; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 16px; display: inline-block; margin: 14px 0; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.status.CANCELADO { background: var(--deal-soft); color: var(--deal); }
.order-box { max-width: 720px; margin: 20px auto 0; }

/* ---------- Footer / toast ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: all .2s ease; z-index: 50; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: inherit; margin-left: 10px; }

.skel { background: linear-gradient(90deg, var(--line), var(--surface), var(--line)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.fade { animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; overflow-x: auto; gap: 12px; }
  .filters > div { flex: none; }
  .filters .flist { flex-direction: row; }
  .flist a { white-space: nowrap; gap: 6px; border: 1px solid var(--line); background: var(--surface); }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .pdp-img { max-width: 420px; width: 100%; margin: 0 auto; }
  .cart { grid-template-columns: 1fr; }
  .panel { position: static; }
}
@media (max-width: 600px) {
  .top-row { gap: 10px; }
  .logo-text { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .card-price b { font-size: 16px; }
  .offer { grid-template-columns: 1fr auto; }
  .offer-act { grid-column: 1 / -1; justify-content: flex-end; }
  .pcard { padding: 16px; border-radius: 14px; }
  .pdp-actions .btn { flex: 1 1 100%; }
  .two, .seg { grid-template-columns: 1fr; }
  .line { grid-template-columns: 48px 1fr; }
  .line-img { width: 48px; height: 48px; }
  .line-right { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
