/* =============================================================
   RDECANTS 2.0 — storefront visual layer (generated by scripts/rd2/integrate-v3.mjs)
   Edit the sources (prototypes/rdecants-2/*-v3.css, scripts/rd2/rd2-production.css)
   and re-run the script. Scoped to body.rd3; tokens.css stays the palette authority.
   ============================================================= */

/* ===== from prototypes/rdecants-2/inicio-v3.css ===== */
/* =============================================================
   RDECANTS 2.0 — home v3 (approved composition, 2026-11-06)
   LOCAL PROTOTYPE, scoped to body.rd3. assets/css/* is not modified.
   Measured against the approved phone image (≈2.05 image px per CSS px):
   header 55 · hero 340 · occasion cards 144 · «También» tiles ≈117.
   Type: DM Sans everywhere; Cormorant Garamond only for the occasion titles
   and the italic brand word in «Packs RDECANTS».
   ============================================================= */

.rd3 {
  --rd3-ivory:   #F5F1E8;   /* live --bg */
  --rd3-sand:    #ECE4D6;
  --rd3-sand-2:  #E4DACA;
  --rd3-soft:    #5F5952;   /* secondary copy on sand, 5.48:1 */
  --rd3-olive:   #5B6142;
  --rd3-tab-h:   62px;
}
.rd3-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd3-arrow { width: 16px; height: 16px; flex: none; }

.rd3-proto {
  margin: 0; padding: 7px 12px; background: #141311; color: var(--rd3-ivory);
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center;
}

/* ── Header (phones): logo + search; cart lives in the bottom bar ── */
@media (max-width: 899px) {
  .rd3 .infobar { display: none; }
  .rd3 .nav-toggle { display: none !important; }
  .rd3 .header { justify-content: space-between; height: 56px; }
  .rd3 .header-logo { margin: 0; }
  .rd3 .rd3-header-cart { display: none; }
  .rd3 .logo-mark { height: 26px; }
  .rd3 .header-logo .logo-text { font-size: 14px; letter-spacing: .2em; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.rd3 .rd3-hero { position: relative; overflow: hidden; min-height: 0; padding: 16px 0 10px; background: #C9B597; }
.rd3-hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 22%;
}
.rd3-hero-copy { position: relative; z-index: 1; width: 51%; min-width: 172px; padding-left: var(--gutter); }

.rd3-eyebrow {
  margin: 0; font-size: 10px; font-weight: 500; line-height: 1.55; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink);
}
.rd3-eyebrow::after { content: ""; display: block; width: 18px; height: 1px; margin: 9px 0 10px; background: var(--ink); }
.rd3 .rd3-hero .hero-title {
  margin: 0 0 10px; font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(30px, 9.4vw, 38px); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink);
  text-wrap: nowrap;
}
.rd3 .rd3-hero .hero-desc { margin: 0; font-size: 13px; line-height: 1.38; color: var(--ink); max-width: 15rem; }

.rd3 .rd3-hero .hero-actions { display: flex; flex-direction: column; gap: 8px; margin: 13px 0 0; }
.rd3 .rd3-hero .hero-cta,
.rd3 .rd3-hero .hero-actions .btn-outline {
  width: 100%; min-height: 44px; padding: 8px 12px; flex-direction: row; justify-content: center; gap: 6px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; border-radius: 9px;
}
.rd3 .rd3-hero .hero-actions .btn-outline {
  display: inline-flex; align-items: center; background: rgba(245, 241, 232, .5); border: 1.5px solid var(--ink); color: var(--ink);
}
.rd3 .rd3-hero .hero-cta-main { gap: 6px; }
.rd3-help {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 0;
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}

/* ── Occasion cards: text on top, photo below with the arrow on it ── */
.rd3-occasions { padding: 10px 12px 4px; background: var(--rd3-ivory); }
.rd3-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rd3-card {
  position: relative; display: flex; flex-direction: column; height: 146px; overflow: hidden;
  border-radius: 10px; background: var(--rd3-sand); color: var(--ink);
}
.rd3-card-text { padding: 9px 10px 6px; min-height: 64px; }
.rd3-card-title { display: block; font: 600 20px/1 var(--font-serif); letter-spacing: 0; white-space: nowrap; }
.rd3-card-hint { display: block; margin-top: 4px; font-size: 11px; line-height: 1.28; color: var(--rd3-soft); }
.rd3-card-photo { position: relative; flex: 1; overflow: hidden; background: var(--rd3-sand-2); }
/* The demo crops carry a band of a neighbouring image at the top (≈17 %): anchor to the bottom. */
.rd3-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.rd3-card-photo--pending { background: linear-gradient(0deg, var(--rd3-sand-2), var(--rd3-sand-2)); }
.rd3-go {
  position: absolute; right: 7px; bottom: 7px; z-index: 1; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 3px rgba(25, 24, 22, .18);
}
.rd3-go .rd3-arrow { width: 14px; height: 14px; }

/* ── También en RDECANTS ──────────────────────────────────── */
.rd3-also { padding: 12px 12px 18px; background: var(--rd3-ivory); }
.rd3-also-label {
  margin: 0 0 10px; font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.rd3-also-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rd3-tile {
  position: relative; display: flex; flex-direction: column; min-height: 124px; margin: 0;
  padding: 11px 11px 10px; overflow: hidden; border-radius: 10px; background: var(--rd3-sand); color: var(--ink);
}
.rd3-tile-kicker { position: relative; z-index: 1; font-size: 11px; line-height: 1.3; color: var(--rd3-soft); }
.rd3-tile-title { position: relative; z-index: 1; margin-top: 3px; font: 700 15.5px/1.12 var(--font-sans); letter-spacing: -0.01em; }
.rd3-tile--bottles .rd3-tile-title { max-width: 92%; }
.rd3-tile-photo {
  position: absolute; right: 8px; bottom: 8px; height: 52%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px;
}
/* Real iPhone photo (EXIF iPhone 14, 2026-05-19); crop to the bottle. */
.rd3-tile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.35); transform-origin: 50% 60%; }
.rd3-tile-go { position: relative; z-index: 1; margin-top: auto; display: inline-flex; color: var(--ink); }
.rd3-tile-go .rd3-arrow { width: 20px; height: 20px; }

.rd3-quote-field {
  margin-top: auto; display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 8px;
  border: 1.5px solid var(--ink); border-radius: 9px; background: var(--surface); cursor: text;
}
.rd3-quote-field svg { width: 17px; height: 17px; flex: none; color: var(--ink); }
/* 16px keeps iOS Safari from zooming the page on focus. */
.rd3-quote-field input {
  min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  font: 400 16px/1.2 var(--font-sans); color: var(--ink);
}
.rd3-quote-field input::placeholder { color: var(--rd3-soft); }
.rd3-quote-field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.rd3-quote-field input::-webkit-search-cancel-button { display: none; }

/* ── Packs: «Packs RDECANTS», one-card rail ───────────────── */
.rd3 .rd3-packs { padding-top: 6px; background: var(--rd3-ivory); }
.rd3 .rd3-packs .section-sub { display: none; }
.rd3 .rd3-packs .section-header { margin-bottom: 12px; opacity: 1; transform: none; animation: none; }
.rd3 #packs-title { font-family: var(--font-sans); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.rd3 #packs-title em { font: italic 600 24px/1 var(--font-serif); }
@media (max-width: 899px) {
  .rd3 .packs-rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: 88%; grid-template-columns: none; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none;
  }
  .rd3 .packs-rail::-webkit-scrollbar { display: none; }
  .rd3 .packs-rail > li { scroll-snap-align: start; }
  .rd3 .pack-card { background: var(--rd3-sand); border-color: transparent; }
}

/* ── Bottom navigation (phones) ───────────────────────────── */
.rd3-tabbar { display: none; }
@media (max-width: 899px) {
  .rd3 { padding-bottom: calc(var(--rd3-tab-h) + env(safe-area-inset-bottom)); }
  .rd3-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 450; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--rd3-tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--rd3-ivory); border-top: 1px solid var(--line);
  }
  .rd3-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-width: 0; padding: 0; border: 0; background: none; cursor: pointer;
    font: 500 11.5px/1 var(--font-sans); color: var(--ink-soft);
  }
  .rd3-tab svg { width: 24px; height: 24px; color: var(--ink); }
  .rd3-tab[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .rd3-tab[aria-current="page"]::after {
    content: ""; position: absolute; bottom: 6px; width: 34px; height: 2px; border-radius: 2px; background: var(--ink);
  }
  .rd3-tab-count {
    position: absolute; top: 7px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
    background: var(--ink); color: var(--surface); font: 700 10px/16px var(--font-sans); text-align: center;
  }
  .rd3 .whatsapp-float { bottom: calc(var(--rd3-tab-h) + 14px + env(safe-area-inset-bottom)); }
  .rd3 .toast { bottom: calc(var(--rd3-tab-h) + 24px + env(safe-area-inset-bottom)); }
  /* The action toast sits at the top (components.css); without this it got both edges and stretched into a full-height box on phones. */
  .rd3 .toast--action { bottom: auto; }
}

@media (max-width: 359px) {
  .rd3-proto { font-size: 8.5px; letter-spacing: .05em; padding: 7px 6px; }
  .rd3-hero-copy { width: 56%; min-width: 0; }
  .rd3 .rd3-hero .hero-title { font-size: 29px; }
  .rd3 .rd3-hero .hero-desc { font-size: 12.5px; }
  .rd3 .rd3-hero .hero-cta, .rd3 .rd3-hero .hero-actions .btn-outline { font-size: 13px; padding: 8px; }
  .rd3-eyebrow { letter-spacing: .14em; }
  .rd3-occasions, .rd3-also { padding-left: 8px; padding-right: 8px; }
  .rd3-cards { gap: 6px; }
  .rd3-card-title { font-size: 16.5px; }
  .rd3-card-hint { font-size: 10.5px; }
  .rd3-also-grid { grid-template-columns: 1fr; }
  .rd3-tile { min-height: 112px; }
  .rd3-tile-photo { width: 26%; }
}

/* ── Desktop: same composition, wider ─────────────────────── */
@media (min-width: 900px) {
  .rd3 .rd3-hero { min-height: 560px; padding: 72px 0; }
  .rd3-hero-photo { object-position: 50% 30%; }
  .rd3-hero-copy { width: auto; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
  .rd3-hero-copy > * { max-width: 420px; }
  .rd3 .rd3-hero .hero-title { font-size: clamp(56px, 5.2vw, 76px); }
  .rd3 .rd3-hero .hero-desc { font-size: 17px; }
  .rd3 .rd3-hero .hero-actions { max-width: 260px; }
  .rd3-occasions, .rd3-also { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
  .rd3-cards, .rd3-also-grid { gap: 16px; }
  .rd3-card { height: 280px; border-radius: 14px; }
  .rd3-card-text { padding: 18px 20px 10px; min-height: 96px; }
  .rd3-card-title { font-size: 32px; }
  .rd3-card-hint { font-size: 14px; }
  .rd3-go { width: 36px; height: 36px; right: 14px; bottom: 14px; }
  .rd3-tile { min-height: 180px; padding: 20px; border-radius: 14px; }
  .rd3-tile-title { font-size: 24px; }
  .rd3-tile-kicker { font-size: 14px; }
  .rd3-quote-field { max-width: 420px; }
}

/* =============================================================
   Phase 5 (2026-11-06) — shared V3 layer for the LIVE product modal
   (assets/js/ui/modal.js) and starter-pack cards (ui/starterPacks.js).
   Composition is the approved one (2026-11-05); only V3 surfaces, radii
   and controls change. Sizes, prices, stock and pack contents come from
   the engine; nothing here decides them.
   ============================================================= */

/* ── Product modal ── */
/* Only the OPEN sheet dims the store. 2026-11-08: this rule used to target
   `.pdm-overlay` itself, so the closed overlay (full screen, z-index 950)
   stayed grey after every close. Closed, it is also invisible, so nothing
   can paint or catch a tap once the fade-out ends. */
.rd3 .pdm-overlay--open { background: rgba(25, 24, 22, .46); }
.pdm-overlay:not(.pdm-overlay--open) { visibility: hidden; transition: background .4s ease, backdrop-filter .4s ease, visibility 0s linear .4s; }
.pdm-overlay--open { visibility: visible; }
.rd3 .pdm-modal { background: var(--rd3-ivory); border-radius: 18px; }
.rd3 .pdm-img-panel, .rd3 .pdm-img-wrap { background: var(--rd3-sand); }
.rd3 .pdm-img-wrap { border-radius: 14px; }
.rd3 .pdm-house { font-size: 10.5px; letter-spacing: .18em; color: var(--rd3-soft); }
.rd3 .pdm-house::before { background: var(--rd3-olive); }
.rd3 .pdm-close { background: var(--surface); border: 1px solid var(--line); }
.rd3 .pdm-guidance .guidance-chip { background: var(--rd3-sand); border-color: transparent; color: var(--ink); }
.rd3 .pdm-sizes-label { font-size: 10.5px; letter-spacing: .18em; color: var(--ink); }
.rd3 .pdm-size-btn { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-height: 64px; }
.rd3 .pdm-size-btn--active,
.rd3 .pdm-size-btn--active:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.rd3 .pdm-size-btn--disabled { background: var(--bg-sunk); color: var(--rd3-soft); }
.rd3 .pdm-price { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; }
.rd3 .pdm-btn-add { min-height: 50px; border-radius: 12px; background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.rd3 .pdm-btn-add:disabled { background: var(--line); border-color: var(--line); color: var(--rd3-soft); }
.rd3 .pdm-details-link { color: var(--ink); }
.rd3 .pdm-btn-wa { min-height: 44px; }      /* stays the quiet secondary action */
@media (max-width: 899px) {
  .rd3 .pdm-modal { border-radius: 18px 18px 0 0; }
}

/* ── Starter packs: compact, readable, the three real bottles named ── */
.rd3 .pack-card { border-radius: 14px; padding: 14px; box-shadow: none; }
.rd3 .pack-head { gap: 6px; }
.rd3 .pack-icon { color: var(--rd3-olive); }
.rd3 .pack-kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--ink); }
.rd3 .pack-audience, .rd3 .pack-badge { border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 11px; }
.rd3 .pack-name { margin-top: 8px; font: 700 19px/1.15 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.rd3 .pack-copy { font-size: 12.5px; line-height: 1.4; color: var(--rd3-soft); }
/* The components are what tell two packs with the same name apart: keep them prominent. */
.rd3 .pack-items { gap: 6px; }
.rd3 .pack-item { border-radius: 10px; background: var(--surface); }
.rd3 .pack-item-name { font-size: 11.5px; line-height: 1.25; color: var(--ink); }
.rd3 .pack-foot { margin-top: 12px; align-items: center; gap: 10px; }
.rd3 .pack-price-now { font: 700 19px/1 var(--font-sans); color: var(--ink); }
.rd3 .pack-price-was { color: var(--rd3-soft); }
.rd3 .pack-save { border-radius: 999px; background: var(--surface); color: var(--rd3-olive); font-weight: 600; }
.rd3 .pack-add { min-height: 46px; border-radius: 12px; padding: 0 16px; font-weight: 600; }

/* ── Home rails (Roger recomienda, Nuevos): same product card as Catálogo V3 ── */
.rd3 .rail-grid .product-card { border: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(25, 24, 22, .06); }
.rd3 .rail-grid .card-img-wrap { aspect-ratio: 1 / 1; background: var(--rd3-sand); border-bottom: 0; }
.rd3 .rail-grid .card-body { padding: 10px; }
.rd3 .rail-grid .card-house { margin-bottom: 3px; font-size: 9.5px; letter-spacing: .12em; color: var(--rd3-soft); }
.rd3 .rail-grid .card-name { margin-bottom: 4px; font: 700 14px/1.2 var(--font-sans); color: var(--ink); }
.rd3 .rail-grid .card-guidance { min-height: 0; margin-bottom: 8px; gap: 0; }
.rd3 .rail-grid .card-guidance .guidance-chip { padding: 0; border: 0; background: none; font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--rd3-soft); }
.rd3 .rail-grid .card-guidance .guidance-chip + .guidance-chip::before { content: "·"; margin: 0 4px; }
.rd3 .rail-grid .card-purchase { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.rd3 .rail-grid .card-price { flex: 1 1 auto; min-width: 0; margin: 0; font: 700 13.5px/1.2 var(--font-sans); color: var(--ink); white-space: normal; }
.rd3 .rail-grid .card-price small { font-size: 11px; font-weight: 500; color: var(--rd3-soft); }
.rd3 .rail-grid .product-card .card-action.btn-primary {
  position: relative; flex: none; width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%;
  font-size: 0; line-height: 0; display: grid; place-items: center;
}
.rd3 .rail-grid .product-card .card-action.btn-primary::after { content: ""; position: absolute; inset: -4px; }
.rd3 .rail-grid .product-card .card-action[aria-label^="Agregar"]::before { content: "+"; font: 400 22px/1 var(--font-sans); }
.rd3 .rail-grid .product-card .card-action[aria-label^="Consultar"]::before { content: "→"; font: 500 16px/1 var(--font-sans); }
.rd3 .rail-grid .product-card .card-action.btn-primary:disabled { width: auto; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 11px; line-height: 1; }


/* ===== from prototypes/rdecants-2/catalogo-v3.css ===== */
/* =============================================================
   RDECANTS 2.0 — catalog v3 (LOCAL PROTOTYPE)
   Loaded after inicio-v3.css (shared header, banner, bottom bar).
   Scoped to body.rd3-cat. Restyles the LIVE catalog markup only:
   search, quick gender, filter bar, cards, empty states and modal
   come from pages/catalog.js, catalog/render.js and ui/searchbar.js.
   ============================================================= */

/* ── Page head: eyebrow + editorial title, products start early ── */
.rd3-cat .page-head--tight { padding: 14px 0 6px; background: var(--rd3-ivory); }
.rd3-cat .breadcrumb { display: none; }
.rd3c-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.rd3c-eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--ink); }
.rd3-cat .rd3c-title {
  margin: 0; font: 600 clamp(30px, 8.6vw, 40px)/1 var(--font-serif); letter-spacing: 0; color: var(--ink);
}
.rd3-cat .page-head--tight .page-lede { margin-top: 6px; font-size: 13.5px; color: var(--ink); }

.rd3-cat .section--catalog { padding-top: 6px; background: var(--rd3-ivory); }

/* ── Search: pill field (16px text keeps iOS from zooming) ── */
.rd3-cat .catalog-search { margin-bottom: 10px; }
.rd3-cat .catalog-search-field {
  min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: none; padding: 0 14px;
}
.rd3-cat .catalog-search-field input { font-size: 16px; }

/* ── Quick gender as chips: Todos · Caballero · Dama · Unisex ── */
.rd3-cat .quick-gender { margin: 0 0 10px; }
.rd3-cat .quick-gender-actions {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px;
}
.rd3-cat .quick-gender-actions::-webkit-scrollbar { display: none; }
.rd3-cat .quick-gender-btn {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 500;
}
.rd3-cat .quick-gender-btn[aria-pressed="true"],
/* «Todos» reads as selected whenever no gender is applied. */
.rd3-cat .quick-gender-actions:not(:has(.quick-gender-btn[aria-pressed="true"])) .quick-gender-btn[data-gender=""] {
  background: var(--ink); border-color: var(--ink); color: var(--surface);
}

/* ── Filter bar (count, active chips, sort, Filtrar): slim, not a card ── */
.rd3-cat .sf-bar {
  top: 56px; margin-bottom: 12px; padding: 6px 0; gap: 6px;
  background: var(--rd3-ivory); border: 0; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.rd3-cat .sf-filter-btn { min-height: 44px; border-radius: 999px; }
.rd3-cat .sf-sel { min-height: 44px; border-radius: 999px; }

/* ── Product grid: two compact columns ── */
.rd3-cat .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd3-cat .product-card {
  border: 0; border-radius: 12px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(25, 24, 22, .06);
}
.rd3-cat .card-img-wrap { aspect-ratio: 1 / 1; background: var(--rd3-sand); border-bottom: 0; }
.rd3-cat .card-badge { top: 8px; left: 8px; font-size: 8px; padding: 4px 7px; border-radius: 999px; }
.rd3-cat .card-body { padding: 10px 10px 10px; }
.rd3-cat .card-house { margin-bottom: 3px; font-size: 9.5px; letter-spacing: .12em; color: var(--rd3-soft); }
.rd3-cat .card-name {
  margin-bottom: 4px; font: 700 14px/1.2 var(--font-sans); letter-spacing: -0.005em; color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* Commercial profile tags read as one quiet line, like the reference's short description. */
.rd3-cat .card-guidance { min-height: 0; margin-bottom: 8px; gap: 0; flex-wrap: wrap; }
.rd3-cat .card-guidance .guidance-chip {
  padding: 0; border: 0; background: none; font-size: 11.5px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--rd3-soft);
}
.rd3-cat .card-guidance .guidance-chip + .guidance-chip::before { content: "·"; margin: 0 4px; }
.rd3-cat .card-purchase { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.rd3-cat .card-price { margin: 0; font: 700 14.5px/1.15 var(--font-sans); color: var(--ink); }
.rd3-cat .card-price small { font-size: 11px; font-weight: 500; color: var(--rd3-soft); }

/* Action as a round button. Its accessible name (aria-label) is unchanged:
   «Agregar X al carrito» shows +, «Consultar disponibilidad» shows →. */
.rd3-cat .product-card .card-action.btn-primary {
  position: relative; flex: none; width: 38px; height: 38px; min-height: 0; padding: 0;
  border-radius: 50%; font-size: 0; line-height: 0;
  display: grid; place-items: center;
}
.rd3-cat .product-card .card-action.btn-primary::after { content: ""; position: absolute; inset: -4px; }   /* 46px hit area */
.rd3-cat .product-card .card-action[aria-label^="Agregar"]::before { content: "+"; font: 400 22px/1 var(--font-sans); }
.rd3-cat .product-card .card-action[aria-label^="Consultar"]::before { content: "→"; font: 500 16px/1 var(--font-sans); }
.rd3-cat .product-card .card-action.btn-primary:disabled {
  width: auto; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 11px; line-height: 1;
}

/* ── «¿No sabes cuál elegir?» under the grid, compact ── */
.rd3-cat .rd3c-helper {
  margin: 18px 0 8px; padding: 12px 14px; gap: 10px; border: 0; border-radius: 12px; background: var(--rd3-sand);
}
.rd3-cat .rd3c-helper p { font-size: 13px; color: var(--ink); }
.rd3-cat .rd3c-helper .btn-primary { min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 13px; }

@media (max-width: 359px) {
  .rd3-cat .products-grid { gap: 8px; }
  .rd3-cat .card-body { padding: 8px 8px 9px; }
  .rd3-cat .card-name { font-size: 13px; }
  .rd3-cat .card-price { font-size: 13px; }
  .rd3-cat .quick-gender-btn { padding: 0 13px; font-size: 13px; }
}

@media (min-width: 900px) {
  .rd3-cat .page-head--tight { padding: 32px 0 10px; }
  .rd3-cat .breadcrumb { display: block; }
  .rd3-cat .rd3c-title { font-size: 52px; }
  .rd3-cat .page-head--tight .page-lede { font-size: 16px; }
  .rd3-cat .catalog-search { max-width: 560px; }
  .rd3-cat .sf-bar { top: var(--header-h); }
  .rd3-cat .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .rd3-cat .card-body { padding: 14px 14px 14px; }
  .rd3-cat .card-name { font-size: 16px; }
  .rd3-cat .card-price { font-size: 16px; }
}

/* ── Fit pass 1: one-row filter bar and price row ── */
.rd3-cat .sf-toolbar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
.rd3-cat .sf-active { flex: 1 1 auto; min-width: 0; font-size: 11px; }
.rd3-cat .sf-tools { display: flex; flex: none; gap: 6px; }
.rd3-cat .sf-sel-wrap { width: auto; }
.rd3-cat .sf-sel { width: auto; min-width: 0; padding-right: 28px; font-size: 13px; }
.rd3-cat .sf-filter-btn { padding: 0 14px; font-size: 12px; }
.rd3-cat .card-purchase { flex-direction: row; flex-wrap: nowrap; }
.rd3-cat .card-price { flex: 1 1 auto; min-width: 0; }
.rd3-cat .card-price { white-space: normal; overflow: visible; text-overflow: clip; font-size: 13.5px; line-height: 1.2; }

/* Fit pass 2: with active filter chips, chips get their own full-width row. */
.rd3-cat .sf-toolbar:has(.sf-active button) { flex-wrap: wrap; }
.rd3-cat .sf-active:has(button) { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rd3-cat .sf-active button { white-space: nowrap; }
.rd3-cat .sf-toolbar:has(.sf-active button) .sf-tools { margin-left: auto; }


/* ===== from prototypes/rdecants-2/sellados-v3.css ===== */
/* =============================================================
   RDECANTS 2.0 — Sellados / perfumes completos v3 (LOCAL PROTOTYPE)
   Loaded after inicio-v3.css (shared header, banner, bottom bar).
   Scoped to body.rd3-sel. Restyles the LIVE markup from perfumes.html
   and the cards rendered by assets/js/pages/perfumes.js. Condition,
   price, presentation and CTA text all come from that module.
   Also used by sellados-v3-maqueta.html (static visual sample).
   ============================================================= */

.rd3-sel main { background: var(--rd3-ivory); }
.rd3-sel .perfume-page-head { padding: 14px 0 6px; }
.rd3-sel .breadcrumb { display: none; }
.rd3-sel .rd3c-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.rd3-sel .rd3c-eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--ink); }
.rd3-sel .rd3c-title { margin: 0; font: 600 clamp(30px, 8.6vw, 40px)/1 var(--font-serif); letter-spacing: 0; color: var(--ink); }
.rd3-sel .perfume-page-head .page-lede { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--ink); max-width: 34rem; }

.rd3-sel .perfume-catalog { padding-top: 6px; }

/* Search pill (16px text: no iOS zoom) */
.rd3-sel .rd3s-search { margin-bottom: 10px; }
.rd3-sel .catalog-search-field {
  min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px;
}
.rd3-sel .catalog-search-field input { font-size: 16px; }

/* Condition filters as chips, count on its own quiet line */
.rd3-sel .bottle-filter-bar { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.rd3-sel .bottle-filter-bar h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd3-sel .bottle-filter-bar p { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--rd3-soft); order: 2; }
.rd3-sel .bottle-filters { order: 1; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; }
.rd3-sel .bottle-filters button {
  min-height: 44px; padding: 0 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 500;
}
.rd3-sel .bottle-filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Cards: two compact columns */
.rd3-sel .bottle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd3-sel .bottle-card { border: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(25, 24, 22, .06); }
.rd3-sel .bottle-card-image { aspect-ratio: 1 / 1; background: var(--rd3-sand); }
.rd3-sel .bottle-card-image img { width: 100%; height: 100%; object-fit: cover; }
.rd3-sel .bottle-card-body { padding: 10px 10px 6px; gap: 3px; }
.rd3-sel .bottle-card-house { margin: 0; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--rd3-soft); }
.rd3-sel .bottle-card-name {
  margin: 0; font: 700 14px/1.2 var(--font-sans); color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* The presentation line carries the commercial condition from the system
   («100 ml · Nuevo sellado», «Tester», «Parcial»): kept prominent. */
.rd3-sel .bottle-card-presentation { margin: 0; font-size: 11.5px; line-height: 1.3; color: var(--rd3-olive); font-weight: 600; }
.rd3-sel .bottle-card-price { margin: 2px 0 0; font: 700 14.5px/1.2 var(--font-sans); color: var(--ink); }
.rd3-sel .bottle-card-quickview {
  top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 252, 247, .9); border: 0; color: var(--ink);
}
.rd3-sel .bottle-card-quickview::after { content: ""; position: absolute; inset: -5px; }   /* 44px hit area */
.rd3-sel .bottle-card-actions { padding: 0 10px 10px; }
.rd3-sel .bottle-card-cta { width: 100%; min-height: 44px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.rd3-sel .bottle-grid > .premium-empty { padding: 28px 16px; border-radius: 12px; background: var(--rd3-sand); }

@media (max-width: 359px) {
  .rd3-sel .bottle-grid { gap: 8px; }
  .rd3-sel .bottle-card-body { padding: 8px 8px 5px; }
  .rd3-sel .bottle-card-name { font-size: 13px; }
  .rd3-sel .bottle-filters button { padding: 0 12px; font-size: 13px; }
}

@media (min-width: 900px) {
  .rd3-sel .perfume-page-head { padding: 32px 0 10px; }
  .rd3-sel .breadcrumb { display: flex; }
  .rd3-sel .rd3c-title { font-size: 52px; }
  .rd3-sel .rd3s-search { max-width: 560px; }
  .rd3-sel .bottle-filter-bar { flex-direction: row; align-items: center; }
  .rd3-sel .bottle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .rd3-sel .bottle-card-name { font-size: 16px; }
}

/* ── Static visual sample page only ── */
.rd3-mock-band {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed var(--ink);
  background: var(--surface); font-size: 12.5px; line-height: 1.4; color: var(--ink);
}
.rd3-mock-band strong { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rd3-sel .bottle-card--mock .bottle-card-cta { background: var(--line); border-color: var(--line); color: var(--ink); cursor: not-allowed; }

/* Fit pass: chips before the count; calm empty states (same live text). */
.rd3-sel .bottle-filter-bar > div:first-child { order: 2; }
.rd3-sel .bottle-filter-bar > .bottle-filters { order: 1; }
.rd3-sel .premium-empty .sf-empty-title {
  margin: 6px 0 4px; font: 700 17px/1.25 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink);
}
.rd3-sel .premium-empty .sf-empty-desc { font-size: 13px; line-height: 1.45; letter-spacing: 0; text-transform: none; color: var(--rd3-soft); }
.rd3-sel .premium-empty .sf-empty-icon { font-size: 22px; }


/* ===== from prototypes/rdecants-2/cotiza-v3.css ===== */
/* =============================================================
   RDECANTS 2.0 — Cotizador v3 (LOCAL PROTOTYPE)
   Loaded after inicio-v3.css (shared header, banner, bottom bar).
   Scoped to body.rd3-quote. Restyles the LIVE cotiza.html markup and
   what assets/js/pages/quote.js renders (search, states, result cards,
   variants, basket panel, mobile bar). No quote logic lives here.
   Also used by cotiza-v3-maqueta.html (static visual sample).
   ============================================================= */

.rd3-quote main { background: var(--rd3-ivory); }
.rd3-quote .quote-head { padding: 14px 0 8px; }
.rd3-quote .breadcrumb { display: none; }
.rd3-quote .rd3c-eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.rd3-quote .rd3c-eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--ink); }
.rd3-quote .rd3c-title { margin: 0; font: 600 clamp(30px, 8.6vw, 40px)/1.02 var(--font-serif); letter-spacing: 0; color: var(--ink); }
.rd3-quote .quote-head .page-lede { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink); max-width: 34rem; }
.rd3-quote .quote-trust-line { margin: 4px 0 0; font-size: 12px; color: var(--rd3-soft); }

/* The search is the main element of the page */
.rd3-quote .quote-search {
  margin-top: 14px; min-height: 52px; padding: 0 8px 0 14px; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ink); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(25, 24, 22, .06);
}
.rd3-quote .quote-search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.rd3-quote .quote-search-icon { display: inline-flex; color: var(--ink); }
.rd3-quote .quote-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px/1.2 var(--font-sans); color: var(--ink); }
.rd3-quote .quote-search input::placeholder { color: var(--rd3-soft); }
.rd3-quote .quote-search-clear { width: 44px; height: 44px; border-radius: 50%; }
.rd3-quote .quote-search-help { margin: 6px 2px 0; font-size: 12px; color: var(--rd3-soft); }
.rd3-quote .quote-browse-again { min-height: 44px; margin: 10px 0 0; padding: 0 14px; border-radius: 999px; font-size: 13px; }

/* «Cómo funciona»: four compact steps instead of tall cards */
.rd3-quote .quote-steps { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd3-quote .quote-steps .step-card {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: start;
  padding: 10px; border: 0; border-radius: 12px; background: var(--rd3-sand); box-shadow: none; min-height: 0;
}
.rd3-quote .quote-steps .step-num {
  grid-row: 1 / span 2; margin: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--rd3-olive);
  font: 700 11px/1 var(--font-sans);
}
.rd3-quote .quote-steps .step-title { margin: 1px 0 2px; font: 700 13.5px/1.2 var(--font-sans); color: var(--ink); }
.rd3-quote .quote-steps .step-desc { margin: 0; font-size: 11.5px; line-height: 1.35; color: var(--rd3-soft); }

/* Results */
.rd3-quote .quote-body-section { padding-top: 10px; }
.rd3-quote .quote-results-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rd3-quote .quote-results-count { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--rd3-soft); }
.rd3-quote .quote-results-head .sf-sel { min-height: 44px; border-radius: 999px; font-size: 13px; }

.rd3-quote .quote-state {
  padding: 26px 18px; border: 0; border-radius: 14px; background: var(--rd3-sand); text-align: center;
}
.rd3-quote .quote-state > span[aria-hidden] { font: 600 22px/1 var(--font-serif); color: var(--rd3-olive); }
.rd3-quote .quote-state h2 { margin: 8px 0 4px; font: 700 18px/1.25 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.rd3-quote .quote-state p { margin: 0 auto; max-width: 26rem; font-size: 13px; line-height: 1.45; color: var(--rd3-soft); }
.rd3-quote .quote-state .btn-primary { margin-top: 14px; min-height: 46px; border-radius: 12px; padding: 0 20px; }

.rd3-quote .quote-perfume-card {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; margin-bottom: 10px; padding: 10px;
  border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(25, 24, 22, .06);
}
.rd3-quote .quote-result-image { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--rd3-sand); }
.rd3-quote .quote-result-image img { width: 100%; height: 100%; object-fit: cover; }
.rd3-quote .quote-perfume-headline { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rd3-quote .quote-perfume-name { margin: 0; font: 700 15px/1.2 var(--font-sans); color: var(--ink); }
.rd3-quote .quote-perfume-meta { margin: 2px 0 0; font-size: 12px; color: var(--rd3-soft); }
.rd3-quote .quote-details summary { font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rd3-quote .quote-variant-list { margin-top: 8px; display: grid; gap: 6px; }
.rd3-quote .quote-variant-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  padding: 6px 0; border-top: 1px solid var(--line-soft);
}
.rd3-quote .quote-condition-badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--rd3-sand); color: var(--rd3-olive);
}
.rd3-quote .quote-variant-detail { display: block; margin-top: 2px; font-size: 11px; color: var(--rd3-soft); }
.rd3-quote .quote-variant-price { font: 700 14.5px/1 var(--font-sans); color: var(--ink); }
.rd3-quote .quote-variant-add { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; }

/* Direct contact band (official WhatsApp number) */
.rd3q-direct { padding: 8px 0 22px; }
.rd3q-direct-card {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px; background: #3B3F2C; color: var(--rd3-ivory);
}
.rd3q-wa { width: 30px; height: 30px; color: var(--rd3-ivory); }
.rd3q-direct-title { display: block; font: 700 15.5px/1.2 var(--font-sans); }
.rd3q-direct-copy { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: rgba(245, 241, 232, .82); }
.rd3q-direct-card .rd3-go { position: static; justify-self: end; width: 30px; height: 30px; }

/* Bottom bar coexistence: the quote's own mobile bar sits ABOVE the nav bar. */
@media (max-width: 1023px) {
  .rd3-quote .quote-mobile-bar { bottom: calc(var(--rd3-tab-h) + 10px + env(safe-area-inset-bottom)); z-index: 460; }
}

@media (max-width: 359px) {
  .rd3-quote .quote-steps { grid-template-columns: 1fr; }
  .rd3-quote .quote-perfume-card { grid-template-columns: 68px minmax(0, 1fr); }
  .rd3-quote .quote-variant-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rd3-quote .quote-variant-add { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .rd3-quote .quote-head { padding: 32px 0 12px; }
  .rd3-quote .breadcrumb { display: flex; }
  .rd3-quote .rd3c-title { font-size: 52px; }
  .rd3-quote .quote-search { max-width: 640px; }
  .rd3-quote .quote-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 900px; }
  .rd3q-direct-card { max-width: 640px; }
}

/* ── Static visual sample page only ── */
.rd3-mock-band {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed var(--ink);
  background: var(--surface); font-size: 12.5px; line-height: 1.4; color: var(--ink);
}
.rd3-mock-band strong { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rd3-quote .quote-perfume-card--mock .quote-variant-add { background: var(--line); border-color: var(--line); color: var(--ink); cursor: not-allowed; }

/* Fit pass: the live step number is absolutely positioned; put it back in the grid. */
.rd3-quote .quote-steps .step-num { position: static; inset: auto; transform: none; font-size: 11px; }
.rd3-quote .quote-steps .step-card::before, .rd3-quote .quote-steps .step-card::after { content: none; }
.rd3-quote .quote-steps .step-card { grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: none; }
.rd3-quote .quote-steps .step-num { grid-area: auto; grid-column: 1; grid-row: 1 / span 2; }
.rd3-quote .quote-steps .step-title, .rd3-quote .quote-steps .step-desc { grid-area: auto; grid-column: 2; }

/* Fit pass: variant rows — condition on its own line, then price + action. */
.rd3-quote .quote-variant-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: none; row-gap: 6px; }
.rd3-quote .quote-variant-condition { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rd3-quote .quote-variant-price { grid-column: 1; }
.rd3-quote .quote-variant-add { grid-column: 2; }
.rd3-quote .quote-condition-badge {
  width: auto; height: auto; min-width: 0; min-height: 0; aspect-ratio: auto; border: 0;
  text-transform: none; letter-spacing: 0; line-height: 1.3; white-space: normal;
}
.rd3-quote .quote-variant-detail { margin: 0; }
.rd3-quote .quote-variant-condition { justify-content: flex-start; text-align: left; }
.rd3-quote .quote-variant-row { justify-items: stretch; text-align: left; } .rd3-quote .quote-variant-condition { justify-self: start; width: 100%; }
.rd3-quote .quote-variant-condition { flex-direction: row; align-items: center; }
@media (max-width: 359px) {
  .rd3-quote .quote-variant-row { grid-template-columns: minmax(0, 1fr); }
  .rd3-quote .quote-variant-price, .rd3-quote .quote-variant-add { grid-column: 1; }
  .rd3-quote .quote-variant-add { width: 100%; }
}


/* ===== production-only rules ===== */
/* Production-only additions to the V3 layer (appended to assets/css/rd2.css). */

/* Hero with the verified product photograph (Sauvage + RDECANTS 3/5/10 ml decants).
   Phone: copy left, photo right cropped to the decants; desktop: two columns. */
.rd3 .rd3-hero--product { padding: 16px 0 14px; background: var(--rd3-ivory); }
.rd3-hero--product {
  display: grid; grid-template-columns: minmax(0, 1fr) 42%; column-gap: 12px; align-items: stretch;
}
.rd3-hero--product .rd3-hero-copy { width: auto; min-width: 0; padding-left: var(--gutter); }
.rd3-hero-media { margin: 0; min-height: 260px; overflow: hidden; border-radius: 14px 0 0 14px; background: var(--rd3-sand); }
.rd3-hero-media picture { display: block; height: 100%; }
.rd3-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 27% 60%; }
.rd3-hero--product .rd3-eyebrow { color: var(--ink); }
@media (max-width: 359px) {
  .rd3-hero--product { grid-template-columns: minmax(0, 1fr) 36%; }
}
@media (min-width: 900px) {
  .rd3 .rd3-hero--product {
    max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 56px; align-items: center; min-height: 0;
  }
  .rd3-hero--product .rd3-hero-copy { padding: 0; max-width: none; margin: 0; }
  .rd3-hero--product .rd3-hero-copy > * { max-width: 460px; }
  .rd3-hero-media { min-height: 0; height: min(540px, 62vh); border-radius: 16px; }
  .rd3-hero-media img { object-position: 45% 55%; }
}

/* Product page sticky buy bar sits above the bottom navigation on phones. */
@media (max-width: 899px) {
  .rd3 .pdp-sticky-cta { bottom: calc(var(--rd3-tab-h) + 12px + env(safe-area-inset-bottom)); }
}

/* Home-only approved editorial bottle and direct cotizador destination. */
.rd3 .rd3-also-grid { grid-template-columns: 1fr; gap: 12px; }
.rd3 .rd3-tile--bottles {
  min-height: 208px; padding: 22px 20px; border-radius: 14px;
  background: linear-gradient(110deg, #ece4d6, #e3ddd2);
}
.rd3 .rd3-tile--bottles .rd3-tile-kicker { max-width: 49%; font-size: 11px; }
.rd3 .rd3-tile--bottles .rd3-tile-title {
  max-width: 51%; margin-top: 9px; font-size: clamp(19px, 5vw, 24px); line-height: 1.12;
}
.rd3 .rd3-tile-photo {
  inset: 0 0 0 auto; width: 49%; height: 100%; aspect-ratio: auto; border-radius: 0;
  mask-image: linear-gradient(to right, transparent, #000 26%);
}
.rd3 .rd3-tile-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 48% 64%; transform: none;
}
.rd3 .rd3-tile--quote {
  min-height: 128px; padding: 14px; border-radius: 14px;
  flex-direction: row; align-items: center; gap: 10px;
  background: linear-gradient(110deg, #f0e6d9, #e8ddce);
}
.rd3 .rd3-quote-icon {
  display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 68px;
  border-right: 1px solid rgba(95,89,82,.2); color: var(--ink);
}
.rd3 .rd3-quote-icon svg { width: 34px; height: 34px; }
.rd3 .rd3-quote-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.rd3 .rd3-quote-copy .rd3-tile-title { margin: 0; font-size: clamp(15px, 4.8vw, 20px); white-space: nowrap; }
.rd3 .rd3-quote-arrow { width: 22px; height: 22px; flex: none; }
.rd3 .rd3-packs { padding-top: 12px; }
.rd3 .pack-card {
  padding: 22px; border: 1px solid rgba(95,89,82,.12); border-radius: 16px;
  background: linear-gradient(145deg, #faf7f0, #ece4d6); box-shadow: none;
}
.rd3 .pack-head { margin-bottom: 14px; gap: 8px; }
.rd3 .pack-icon { display: none; }
.rd3 .pack-kicker { margin-left: auto; font-size: 10px; letter-spacing: .06em; font-weight: 500; }
.rd3 .pack-audience { padding: 0; background: transparent; border: 0; color: var(--rd3-soft); font-weight: 500; }
.rd3 .pack-badge { margin-left: 0; font-size: 9px; }
.rd3 .pack-name { margin: 0 0 10px; font-size: 25px; line-height: 1.08; letter-spacing: -.035em; }
.rd3 .pack-copy { font-size: 13px; line-height: 1.5; }
.rd3 .pack-items { display: flex; flex-direction: column; gap: 0; margin: 20px 0 0; padding: 0; }
.rd3 .pack-items::before {
  content: "PERFUMES INCLUIDOS"; margin-bottom: 6px; color: var(--rd3-soft);
  font: 500 9px/1.4 var(--font-sans); letter-spacing: .14em;
}
.rd3 .pack-item {
  flex-direction: row; justify-content: flex-start; text-align: left;
  min-height: 36px; padding: 6px 0; border-radius: 0; background: transparent;
}
.rd3 .pack-thumb { display: none; }
.rd3 .pack-item-name { font-size: 13px; line-height: 1.35; }
.rd3 .pack-foot {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(95,89,82,.16);
  grid-template-columns: 1fr; gap: 16px;
}
.rd3 .pack-price-now { font-size: 25px; letter-spacing: -.025em; }
.rd3 .pack-price--deal { display: grid; grid-template-columns: auto 1fr; justify-content: start; gap: 6px 10px; align-items: baseline; }
.rd3 .pack-price--deal .pack-save { grid-column: 1 / -1; justify-self: start; }
.rd3 .pack-save { font-size: 11px; background: transparent; padding: 0; }
.rd3 .pack-add { width: 100%; border-radius: 9px; min-height: 46px; }
@media (min-width: 900px) {
  .rd3 .rd3-also-grid { grid-template-columns: 1.5fr 1fr; }
  .rd3 .rd3-tile--bottles { min-height: 300px; padding: 32px; }
  .rd3 .rd3-tile--bottles .rd3-tile-title { font-size: 34px; }
  .rd3 .rd3-tile--quote { min-height: 180px; }
  .rd3 .rd3-tile--quote { padding: 24px; gap: 20px; }
  .rd3 .rd3-quote-icon { flex-basis: 92px; width: 92px; height: 112px; }
  .rd3 .rd3-quote-icon svg { width: 50px; height: 50px; }
  .rd3 .rd3-quote-copy .rd3-tile-title { font-size: 30px; }
}

/* Cotizador V2: the same perfume as a decant (exact brand + name + concentration). */
.rd3-quote .quote-decant-link { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--rd3-olive); text-decoration: underline; text-underline-offset: 3px; }
.rd3-quote .quote-decant-link:hover { opacity: .75; }

/* Cotizador V3 (2026-11-10): real status under the price, compact action, pending prices. */
.rd3-quote .quote-variant-price-wrap { display: grid; gap: 1px; }
.rd3-quote .quote-variant-status { font-size: 11px; color: var(--rd3-soft); }
.rd3-quote .quote-variant-add { font-size: 13px; line-height: 1.2; padding: 8px 14px; white-space: normal; text-align: center; max-width: 150px; flex: 0 0 auto; }
.rd3-quote .quote-variant-row { gap: 10px; }
.rd3-quote .quote-variant-price-wrap { min-width: 0; }
.rd3-quote .quote-pending-note { margin: 6px 0; font-size: 12px; color: var(--rd3-soft); }
