/* =============================================================
   RDECANTS — COLECCIONES (/colecciones/{slug})
   Same language as the home: ivory and ink, the serif only for the
   collection name and the brand word, the store's own product card in the
   grid. Loaded by coleccion.html only.
   ============================================================= */
.collection-body { background: var(--surface-hi); }
.collection-root { display: block; min-height: 60vh; }
.rdc { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) 40px; color: var(--ink); }

.rdc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 14px 0 10px; font-size: 12px; color: var(--ink-soft); }
.rdc-crumbs a { color: var(--ink-soft); text-decoration: none; }
.rdc-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.rdc-crumbs [aria-current] { color: var(--ink); }

/* Hero: the editorial picture, then the words. On wide screens the copy
   sits beside the picture so the first products stay above the fold. */
.rdc-hero { display: grid; gap: 16px; margin-bottom: 18px; }
.rdc-hero-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-sunk); }
.rdc-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rdc-kicker { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.rdc-brand { letter-spacing: .2em; }
.rdc-title { margin: 0 0 8px; font: 600 clamp(34px, 7vw, 52px)/1 var(--font-serif); letter-spacing: 0; }
.rdc-intro { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); max-width: 34rem; }
.rdc-personality { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rdc-personality li { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 12.5px; color: var(--ink); background: var(--surface); }

.rdc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.rdc-count { margin: 0; font-size: 13px; color: var(--ink-soft); }
.rdc-filters { display: flex; gap: 6px; }
.rdc-chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 500 13px var(--font-sans); cursor: pointer; transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.rdc-chip:hover { border-color: var(--ink); }
.rdc-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-action); }
.rdc-chip:focus-visible, .rdc-more:focus-visible, .rdc-tile:focus-visible, .rdc-cta:focus-visible, .rdc-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.rdc-grid { margin-bottom: 14px; }
.rdc-more { display: block; width: 100%; max-width: 360px; min-height: 48px; margin: 4px auto 0; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--surface-hi); color: var(--ink); font: 600 14px var(--font-sans); cursor: pointer; }
.rdc-more[hidden] { display: none; }

.rdc-empty { margin: 8px 0 18px; padding: 22px 18px; border-radius: var(--radius-md); background: var(--bg-sunk); text-align: center; }
.rdc-empty h2 { margin: 0 0 6px; font-size: 17px; }
.rdc-empty p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Other collections: picture tiles with the name on a soft ivory veil. */
.rdc-others { margin-top: 30px; }
.rdc-others h2, .rdc-missing h1 { margin: 0 0 12px; font: 600 26px/1.05 var(--font-serif); }
.rdc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rdc-tile { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 12px 14px; overflow: hidden; isolation: isolate; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; background: var(--bg-sunk); }
.rdc-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.rdc-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 252, 247, 0) 35%, rgba(255, 252, 247, .9) 100%); }
.rdc-tile span { font: 600 19px/1.05 var(--font-serif); }
.rdc-tile:hover img { transform: scale(1.03); }

.rdc-help { margin-top: 28px; padding: 20px; border-radius: var(--radius-md); background: var(--bg); text-align: center; }
.rdc-help p { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.rdc-help-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; align-items: center; }
.rdc-cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font-weight: 600; font-size: 14px; text-decoration: none; }
.rdc-link { color: var(--ink); font-size: 14px; text-underline-offset: 3px; }
.rdc-missing { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter); }
.rdc-missing p { color: var(--ink-soft); }
.rdc-missing .rdc-link { display: inline-block; margin-top: 16px; }

@media (min-width: 760px) {
  .rdc-hero { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 28px; }
  .rdc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rdc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .rdc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .rdc-tile img { transition: none; }
}

/* Occasion collections (2026-11-10): two approved portrait scenes side by side. */
.rdc-pair { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 2px; overflow: hidden; }
.rdc-hero-media .rdc-pair { z-index: auto; }
.rdc-pair img, .rdc-hero-media .rdc-pair img, .rdc-tile .rdc-pair img { position: static; inset: auto; z-index: auto; width: 100%; height: 100%; object-fit: cover; }
.rdc-tile:hover .rdc-pair img { transform: scale(1.03); }

/* ── /packs (2026-11-10): the home pack card in page mode ─────────────── */
.packs-page-head { margin: 4px 0 16px; }
.packs-filters { margin-top: 12px; }
.packs-filters[hidden] { display: none; }
.packs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.packs-grid > li { display: flex; min-width: 0; }
.packs-grid > li[hidden] { display: none; }
/* The home lists the three perfumes as text; here they are shown as photos. */
.rd3 .pack-card--page .pack-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rd3 .pack-card--page .pack-items::before { grid-column: 1 / -1; margin-bottom: 0; }
.rd3 .pack-card--page .pack-item { flex-direction: column; align-items: center; gap: 6px; min-height: 0; padding: 0; text-align: center; }
.rd3 .pack-card--page .pack-thumb { display: block; max-width: none; aspect-ratio: 3 / 4; border-radius: 10px; }
.rd3 .pack-card--page .pack-thumb img { object-fit: cover; }
.rd3 .pack-card--page .pack-item-name { font-size: 12px; }
.pack-item-price { font-size: 12px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pack-availability { margin: 0; font-size: 12px; color: var(--ink-soft); }
.pack-availability::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--success, #3f7d4e); vertical-align: 1px; }
@media (min-width: 720px) { .packs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .packs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── /colecciones explorer (2026-11-10) ─────────────────────────────── */
.rdx-head { margin: 4px 0 18px; }
.rdx-section { margin: 0 0 26px; }
.rdx-h2 { margin: 0 0 12px; font: 600 clamp(22px, 5vw, 28px)/1.1 var(--font-serif); }
.rdx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rdx-card { display: grid; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 200ms ease, transform 200ms ease; }
.rdx-card:hover { border-color: var(--ink); }
.rdx-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rdx-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-sunk); }
.rdx-media > img, .rdx-media .rdc-pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rdx-media .rdc-pair { z-index: auto; }
.rdx-media .rdc-pair img { position: static; }
.rdx-copy { display: grid; gap: 4px; padding: 12px 14px 14px; }
.rdx-name { font: 600 21px/1.1 var(--font-serif); }
.rdx-intro { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.rdx-go { margin-top: 4px; font-size: 13px; font-weight: 600; }
@media (min-width: 720px) { .rdx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .rdx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rdx-grid--plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .rdx-card { transition: none; } }
