/* showcase.css — the merchandising layer added on top of style.css + enhance.css.
   ----------------------------------------------------------------------------
   Loaded last on the homepage (and on the package builder, which reuses the
   product-chip styles). Everything here is additive: remove the file and the
   page falls back to the plain sections it already had.

   Blocks, in page order:
     1.  hero3d       — one large tilting 3D frame plus two stacked small ones
     2.  catrail      — the round category rail under the hero
     3.  brandrow     — "Popular brands", a scrollable row of logo pills
     5.  deals        — "Discounted goods", an arrow-driven product carousel
     6.  offerband    — the single wide discount banner
     7.  whyus        — four reasons plus the handwritten plaque
     8.  bundlefab    — the floating "package" button and its counter

   Block 4 used to be "promocards", four saturated colour tiles sitting between
   the brand row and the featured grid. They were removed; the numbering below
   is left alone so the remaining section headings keep their names.

   The palette stays the shop's clay-and-cream. */

/* ===========================================================================
   1. Hero — three frames, the lead one in 3D
   ======================================================================== */

.hero3d {
  position: relative;
  padding: 26px 0 40px;
  background:
    radial-gradient(1100px 420px at 12% -12%, rgba(242, 163, 60, .13), transparent 62%),
    radial-gradient(860px 420px at 92% 8%, rgba(44, 161, 37, .14), transparent 60%),
    var(--bone);
  overflow: hidden;
}

.hero3d__stage {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 532px;
}

/* -- the lead frame ------------------------------------------------------- */

/* The outer cell only supplies the perspective; the tilt and the clipping both
   live on .lead3d inside it, because an element cannot both be the perspective
   host and the thing being rotated in it. */
.lead {
  grid-row: 1 / 3;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

.lead3d {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(142deg, #1a4a24 0%, #0d1410 58%, #14291a 100%);
  color: #eaf3ea;
  transform-style: preserve-3d;
  /* --rx/--ry are written by home.js from the pointer position; without the
     script they stay at zero and the frame simply sits flat. */
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
  box-shadow:
    0 2px 4px rgba(22, 18, 13, .12),
    0 26px 56px -18px rgba(22, 18, 13, .55),
    0 60px 90px -50px rgba(22, 18, 13, .7);
  will-change: transform;
}
.lead:hover .lead3d { box-shadow: 0 2px 4px rgba(22,18,13,.12), 0 34px 70px -18px rgba(22,18,13,.6), 0 80px 110px -50px rgba(22,18,13,.75); }

/* The product sits on its own plane in front of the panel, so the tilt reads as
   depth rather than as a picture being skewed. */
.lead3d__art {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 58%;
  max-width: 440px;
  aspect-ratio: 1;
  transform: translateZ(68px) rotate(-6deg);
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .5));
  pointer-events: none;
}
.lead3d__art img, .lead3d__art svg { width: 100%; height: 100%; object-fit: contain; }

/* A soft disc behind the product, one plane further back. */
.lead3d__halo {
  position: absolute;
  right: 2%;
  bottom: 4%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 163, 60, .5), rgba(242, 163, 60, 0) 68%);
  transform: translateZ(26px);
  pointer-events: none;
}

.lead3d__body {
  position: relative;
  z-index: 2;
  max-width: 54%;
  padding: 46px 0 46px 44px;
  transform: translateZ(42px);
}
.lead3d__eyebrow {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.lead3d h1 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.06;
  color: #fff;
  margin: 0 0 14px;
}
.lead3d h1 em { font-style: normal; color: var(--brass); }
.lead3d__sub {
  color: rgba(253, 248, 239, .76);
  font-size: .98rem;
  margin: 0 0 24px;
  max-width: 34ch;
}

/* The search strip, with the popular searches under it. */
.lead3d__find {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  max-width: 420px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}
.lead3d__find input {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: .9rem;
  color: var(--ink);
  min-width: 0;
}
.lead3d__find input:focus { outline: none; box-shadow: none; }
.lead3d__find .btn { border-radius: 999px; padding: 11px 20px; flex: none; }

.lead3d__popular {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  font-size: .76rem;
  color: rgba(253, 248, 239, .6);
}
.lead3d__popular a {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(253, 248, 239, .9);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.lead3d__popular a:hover { background: rgba(242, 163, 60, .26); border-color: var(--brass); }

/* Carousel dots for the lead frame. They sit in the flow under the popular
   searches rather than floating, so they can never land on the search field. */
.lead3d__dots { display: flex; gap: 8px; margin-top: 22px; }
.lead3d__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: width .3s var(--ease), background-color .3s var(--ease);
}
.lead3d__dot.is-active { width: 24px; border-radius: 4px; background: var(--brass); }

/* The handwritten note in the corner, the way a menu board is chalked. */
.lead3d__script {
  position: absolute;
  top: 30px;
  right: 34px;
  z-index: 3;
  transform: translateZ(80px) rotate(-7deg);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--brass);
  text-align: right;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.lead3d__script::after {
  content: "";
  display: block;
  width: 56px; height: 10px;
  margin: 8px 0 0 auto;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 60% 40%;
  opacity: .7;
}

/* -- the two small frames ------------------------------------------------- */

.mini {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  color: #fff;
  isolation: isolate;
  min-height: 0;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
  box-shadow: 0 14px 30px -14px rgba(22, 18, 13, .4);
}
.mini:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -14px rgba(22, 18, 13, .5); }
.mini::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(195deg, rgba(22, 18, 13, .18) 30%, rgba(22, 18, 13, .84));
}
.mini--one { background: linear-gradient(150deg, #7b5a37, #3a2a19); }
.mini--two { background: linear-gradient(150deg, #8c6a44, #2f2114); }
.mini__art {
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 50%;
  translate: 0 -50%;
  width: 60%;
  max-width: 190px;
  aspect-ratio: 1;
  transition: transform .6s var(--ease-out);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45));
}
.mini:hover .mini__art { transform: scale(1.07) rotate(-5deg); }
.mini__art img, .mini__art svg { width: 100%; height: 100%; object-fit: contain; }
.mini__kicker {
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 5px;
}
.mini h2 {
  font-size: 1.32rem;
  margin: 0 0 4px;
  color: #fff;
  max-width: 11ch;
  line-height: 1.15;
}
.mini__price { font-size: .95rem; font-weight: 700; color: var(--brass); }
.mini__note { font-size: .78rem; color: rgba(255, 255, 255, .78); max-width: 20ch; }

@media (max-width: 980px) {
  .hero3d__stage { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .lead { grid-row: auto; }
  .lead3d { min-height: 440px; }
  .lead3d__body { max-width: 66%; padding: 36px 0 36px 30px; }
  .mini { min-height: 158px; }
}
@media (max-width: 620px) {
  .lead3d__body { max-width: 100%; padding: 30px 24px 150px; }
  .lead3d__art { width: 70%; right: -10%; bottom: -10%; }
  .lead3d__script { display: none; }
  .hero3d__stage { gap: 12px; }
  .mini h2 { font-size: 1.1rem; }
}

/* ===========================================================================
   2. Category rail
   ======================================================================== */

.catrail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.catrail::-webkit-scrollbar { height: 5px; }
.catrail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.catrail__item {
  flex: 0 0 auto;
  width: 94px;
  text-align: center;
  scroll-snap-align: start;
}
.catrail__disc {
  width: 72px; height: 72px;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .35s var(--ease-out), box-shadow .3s var(--ease);
}
.catrail__disc img { width: 100%; height: 100%; object-fit: cover; }
.catrail__disc svg { width: 32px; height: 32px; color: var(--accent); }
.catrail__item:hover .catrail__disc,
.catrail__item.is-on .catrail__disc {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(44, 161, 37, .6);
}
.catrail__item.is-on .catrail__disc { background: var(--accent); color: #fff; }
.catrail__item.is-on .catrail__disc svg { color: #fff; }
.catrail__label {
  font-size: .76rem;
  line-height: 1.3;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catrail__item:hover .catrail__label { color: var(--accent); }

/* ===========================================================================
   3. Popular brands
   ======================================================================== */

.brandrow {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}
.brandrow::-webkit-scrollbar { height: 5px; }
.brandrow::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.brandpill {
  flex: 0 0 auto;
  min-width: 124px;
  height: 66px;
  padding: 10px 20px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-snap-align: start;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.15;
  transition: transform .3s var(--ease-out), border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.brandpill:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 12px 24px -12px rgba(44, 161, 37, .5);
}
.brandpill img { max-height: 40px; width: auto; object-fit: contain; }
.brandpill__count {
  display: block;
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ===========================================================================
   5. Discounted goods
   ======================================================================== */

.deals { position: relative; }
.deals__rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 16px;
  scrollbar-width: none;
}
.deals__rail::-webkit-scrollbar { display: none; }

.deal {
  flex: 0 0 236px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), border-color .25s;
}
.deal:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 18px 32px -16px rgba(22, 18, 13, .35); }

.deal__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 12px;
}
.deal__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.deal:hover .deal__media img { transform: scale(1.06); }
.deal__media .card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: #bfd0c0; }

.deal__hot {
  position: absolute;
  top: 9px; left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.deal__rating {
  position: absolute;
  top: 9px; right: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.deal__rating span { color: var(--star); }

.deal__brand { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.deal__title {
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 3px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal__title a:hover { color: var(--accent); }
.deal__blurb {
  font-size: .76rem;
  color: var(--muted);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.deal__was { display: block; font-size: .72rem; color: var(--muted); text-decoration: line-through; }
.deal__now { font-size: 1.02rem; font-weight: 700; color: var(--sale); }
.deal__unit { font-size: .68rem; color: var(--muted); font-weight: 400; }

.railbtn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background-color .25s var(--ease), color .25s, border-color .25s, opacity .25s;
  flex: none;
}
.railbtn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.railbtn:disabled { opacity: .3; cursor: not-allowed; }
.railbtn--prev svg { transform: rotate(180deg); }
.rail-nav { display: flex; gap: 8px; }

/* ===========================================================================
   6. Offer band
   ======================================================================== */

.offerband {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 44px 48px;
  min-height: 236px;
  display: flex;
  align-items: center;
  color: #eaf3ea;
  background: linear-gradient(118deg, #1d160e 0%, #2e2214 52%, #4a3519 100%);
  isolation: isolate;
}
.offerband::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(520px 300px at 76% 50%, rgba(242, 163, 60, .3), transparent 68%);
}
.offerband__body { max-width: 50%; position: relative; z-index: 2; }
.offerband__kicker {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.offerband h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.08;
}
.offerband h2 strong { color: var(--brass); font-weight: 700; }
.offerband p { margin: 0 0 22px; color: rgba(253, 248, 239, .76); font-size: .95rem; }
.offerband__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.offerband__code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px dashed rgba(242, 163, 60, .6);
  border-radius: 8px;
  font-size: .82rem;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .05);
}
.offerband__code strong { font-weight: 700; letter-spacing: .14em; color: var(--brass); }
.offerband__code button {
  border: 0; background: none; cursor: pointer; color: rgba(253, 248, 239, .6);
  display: grid; place-items: center; padding: 0;
}
.offerband__code button:hover { color: var(--brass); }

.offerband__art {
  position: absolute;
  right: 3%;
  bottom: -14%;
  width: 40%;
  max-width: 330px;
  aspect-ratio: 1;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .5));
  animation: offerFloat 7s var(--ease) infinite;
}
.offerband__art img { width: 100%; height: 100%; object-fit: contain; }
@keyframes offerFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}

@media (max-width: 860px) {
  .offerband { padding: 32px 26px; }
  .offerband__body { max-width: 100%; }
  .offerband__art { display: none; }
}

/* ===========================================================================
   7. Why us + plaque
   ======================================================================== */

.whyus {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 44px;
  align-items: center;
}
.whyus__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.whyus__item { text-align: center; }
.whyus__disc {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(44, 161, 37, .1);
  color: var(--accent);
  transition: transform .4s var(--ease-out), background-color .3s var(--ease);
}
.whyus__item:hover .whyus__disc { transform: translateY(-4px) scale(1.06); background: rgba(44, 161, 37, .18); }
.whyus__item h3 { font-family: var(--sans); font-size: .88rem; margin: 0 0 3px; }
.whyus__item p { margin: 0; font-size: .78rem; color: var(--muted); }

/* The plaque: a tilted cream card with the shop's line on it, propped by a
   sprig at each corner, in place of the photographed herb board it echoes. */
.plaque {
  position: relative;
  padding: 40px 30px;
  background: linear-gradient(170deg, #fbfefb, #eaf3ec);
  border-radius: 4px;
  transform: rotate(-2.2deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 16px 34px -18px rgba(22, 18, 13, .45);
  text-align: center;
}
.plaque::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(44, 161, 37, .22);
  pointer-events: none;
}
.plaque__line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.26;
  color: var(--ink);
  margin: 0;
}
.plaque__line span { display: block; color: var(--accent); }
.plaque__sig {
  margin-top: 14px;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.plaque__sprig {
  position: absolute;
  width: 74px;
  opacity: .9;
  pointer-events: none;
}
.plaque__sprig--a { top: -30px; left: -26px; transform: rotate(32deg); }
.plaque__sprig--b { bottom: -32px; right: -22px; transform: rotate(-148deg); }

@media (max-width: 980px) {
  .whyus { grid-template-columns: 1fr; gap: 54px; }
  .plaque { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .whyus__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
}

/* ===========================================================================
   8. Package builder — floating button and the "add" control on cards
   ======================================================================== */

.pkgfab {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 71;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(44, 161, 37, .7);
  opacity: 0;
  transform: translateY(14px) scale(.94);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), background-color .25s;
}
.pkgfab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pkgfab:hover { background: var(--accent-dark); }
.pkgfab__count {
  min-width: 21px; height: 21px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
}

/* Sits beside "Add to cart" in the quick-add strip on a product card. */
.card__quick { display: flex; gap: 6px; }
.card__quick .btn { flex: 1 1 auto; }
.btn--pkg {
  flex: 0 0 auto;
  width: 34px;
  padding: 8px 0;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--pkg:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--pkg.is-in { background: var(--ok); border-color: var(--ok); color: #fff; }

@media (max-width: 620px) {
  .pkgfab { right: 14px; bottom: 72px; padding: 11px 15px; font-size: .78rem; }
}

/* ===========================================================================
   9. The package builder page
   ======================================================================== */

.pkghead {
  background:
    radial-gradient(760px 320px at 10% -20%, rgba(242, 163, 60, .16), transparent 62%),
    var(--bone);
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}
.pkghead h1 { margin-bottom: 8px; }
.pkghead p { color: var(--ink-2); max-width: 58ch; margin: 0; }

/* The four-step explainer across the top. */
.pkgsteps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.pkgstep {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pkgstep__n {
  position: absolute;
  left: 16px; top: 15px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .74rem;
  font-weight: 700;
}
.pkgstep h3 { font-family: var(--sans); font-size: .85rem; margin: 0 0 2px; }
.pkgstep p { font-size: .76rem; color: var(--muted); margin: 0; }

@media (max-width: 880px) { .pkgsteps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pkgsteps { grid-template-columns: 1fr; } }

.pkglayout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  padding: 40px 0 70px;
}
@media (max-width: 1000px) { .pkglayout { grid-template-columns: 1fr; } }

/* -- a line in the package ----------------------------------------------- */

.pkgline {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}
.pkgline__media {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #bfd0c0;
}
.pkgline__media img { width: 100%; height: 100%; object-fit: cover; }
.pkgline__title { font-size: .92rem; font-weight: 500; margin: 0 0 3px; }
.pkgline__meta { font-size: .8rem; color: var(--muted); }
.pkgline__right { display: grid; gap: 8px; justify-items: end; text-align: right; }
.pkgline__drop {
  border: 0; background: none; cursor: pointer; padding: 0;
  font-size: .76rem; color: var(--muted); text-decoration: underline;
}
.pkgline__drop:hover { color: var(--sale); }

@media (max-width: 560px) {
  .pkgline { grid-template-columns: 62px 1fr; }
  .pkgline__right { grid-column: 1 / -1; justify-items: start; text-align: left; }
}

/* -- the ask panel -------------------------------------------------------- */

.pkgask {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.pkgask h3 { margin-top: 0; }

.pkgask__line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .9rem; }
.pkgask__line--save { color: var(--ok); font-weight: 600; }
.pkgask__line--total {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--serif);
}

/* The discount dial: a slider with its value shown large above it. */
.pkgdial { text-align: center; margin: 6px 0 18px; }
.pkgdial__value {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}
.pkgdial__value span { font-size: 1.2rem; }
.pkgdial__hint { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.pkgdial input[type=range] {
  width: 100%;
  margin-top: 14px;
  accent-color: var(--accent);
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
}
.pkgdial input[type=range]:focus { box-shadow: none; outline: 2px solid rgba(154,107,63,.3); outline-offset: 4px; }
.pkgdial__scale {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.pkgwa {
  background: #25d366;
  border-color: #25d366;
  color: #08331a;
  font-weight: 700;
}
.pkgwa:hover { background: #1fb457; border-color: #1fb457; color: #042711; }

/* -- the status page ------------------------------------------------------ */

.pkgstatus {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  margin-bottom: 26px;
}
.pkgstatus__dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--line-2);
  color: var(--ink-2);
}
.pkgstatus h2 { margin: 0 0 2px; font-size: 1.15rem; }
.pkgstatus p { margin: 0; font-size: .86rem; color: var(--ink-2); }

.pkgstatus--pending  { border-color: #e8d49a; background: #fdf8e9; }
.pkgstatus--pending  .pkgstatus__dot { background: #f2e2b0; color: #8a5d0b; }
.pkgstatus--approved { border-color: #bfe2cf; background: #effaf3; }
.pkgstatus--approved .pkgstatus__dot { background: #cfeedd; color: var(--ok); }
.pkgstatus--declined { border-color: #f0c9c6; background: #fdf1f0; }
.pkgstatus--declined .pkgstatus__dot { background: #f7d9d6; color: var(--sale); }
.pkgstatus--ordered  { border-color: #c9d9f2; background: #f1f5fd; }
.pkgstatus--ordered  .pkgstatus__dot { background: #d9e6fa; color: #1a4f97; }

.pkgref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: .8rem;
  letter-spacing: .08em;
  background: #fff;
}
.pkgref strong { font-weight: 700; letter-spacing: .14em; }

.pkgreply {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: var(--ink-2);
  margin: 0 0 24px;
  white-space: pre-wrap;
}

/* ===========================================================================
   10. Reduced motion
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  .lead3d { transform: none !important; }
  .offerband__art { animation: none; }
  .deals__rail { scroll-behavior: auto; }
}

/* ===========================================================================
   The video band at the foot of the homepage
   ---------------------------------------------------------------------------
   A still with a play button, not a loaded player: the embed is only fetched
   when someone presses it, which keeps the homepage light and keeps YouTube out
   of the page until a visitor asks for it.
   ======================================================================== */

.vidgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}
/* One or two clips should not become a billboard across the whole band. */
.vidgrid:has(.vidcard:only-child) { max-width: 640px; }
.vidgrid:has(.vidcard:nth-child(2):last-child) { max-width: 880px; }

.vidcard {
  margin: 0;
  background: var(--bg, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  transition: transform .25s var(--ease-out, ease), box-shadow .25s var(--ease-out, ease);
}
.vidcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, 0 18px 40px -20px rgba(0, 0, 0, .35)); }

.vidcard__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  background: var(--bg-deep, #1d2a22);
  cursor: pointer;
  overflow: hidden;
}
.vidcard__frame img,
.vidcard__frame video,
.vidcard__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.vidcard__frame video { object-fit: contain; background: #000; }
.vidcard__ph { position: absolute; inset: 0; background: linear-gradient(140deg, #2d3a30, #16211b); }

.vidcard__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .55);
  transition: transform .22s var(--ease-back, ease), background-color .2s ease;
}
.vidcard__frame:hover .vidcard__play { transform: translate(-50%, -50%) scale(1.09); background: #fff; }
.vidcard__frame:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.vidcard__out {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(20, 24, 18, .72);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 999px;
}

.vidcard__body { padding: 16px 18px 18px; }
.vidcard__body h3 { margin: 0 0 6px; font-size: 1.02rem; }
.vidcard__body p { margin: 0; font-size: .86rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .vidcard, .vidcard__play { transition: none; }
}

/* ===========================================================================
   The reviews page
   ---------------------------------------------------------------------------
   The score and the spread of stars at the top, then the reviews themselves as
   a single readable column. Each bar in the spread is a button: pressing it
   filters to that rating, pressing it again clears the filter.
   ======================================================================== */

.rvsummary {
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 30px;
  background: var(--bg, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
}
.rvsummary__score { text-align: center; }
.rvsummary__score strong {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.rvsummary__score small { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); }

.rvsummary__bars { display: grid; gap: 7px; }

.rvbar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 3px 6px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background-color .18s ease;
}
.rvbar:hover { background: var(--bg-soft); }
.rvbar.is-on { background: var(--accent-soft, var(--bg-soft)); }
.rvbar__n { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.rvbar__track { height: 9px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.rvbar__track i { display: block; height: 100%; background: var(--brass, var(--accent)); border-radius: 999px; }
.rvbar__c { font-size: .78rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.rvclear {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  background: none;
  padding: 4px 0;
  font: inherit;
  font-size: .8rem;
  color: var(--accent-ink, var(--accent));
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rvlist { display: grid; gap: 16px; max-width: 760px; }

.rvitem {
  background: var(--bg, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  padding: 20px 22px;
}
.rvitem__head { display: flex; gap: 14px; align-items: flex-start; }
.rvitem__head h3 { font-family: var(--sans); font-size: .98rem; margin: 7px 0 0; }
.rvitem__date { margin-left: auto; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.rvitem__body { margin: 11px 0 0; font-size: .9rem; color: var(--ink-2); white-space: pre-wrap; }
.rvitem__shot { margin-top: 13px; max-width: 220px; border-radius: 10px; border: 1px solid var(--line-2); }

.rvitem__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line-2);
  font-size: .82rem;
}
.rvitem__prod {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: .79rem;
  color: var(--ink-2);
  transition: background-color .18s ease;
}
.rvitem__prod:hover { background: var(--accent-soft, var(--line-2)); }
.rvitem__prod img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

@media (max-width: 620px) {
  .rvsummary { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .rvitem__prod { margin-left: 0; }
}

/* ===========================================================================
   Checkout — where the money goes
   ---------------------------------------------------------------------------
   Bank and wallet details printed in full, each field with a copy button, and
   the two-part total an advance order is actually paid in.
   ======================================================================== */

.payacct-list { display: grid; gap: 10px; }

/* The storefront puts every <label> in capitals, which is right for a field
   label and wrong for an account title: a name and an IBAN have to be read
   exactly as they are written. */
.payacct {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 12px);
  background: var(--bg, #fff);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.payacct:hover { border-color: var(--accent); }
.payacct.is-on {
  border-color: var(--accent);
  background: var(--accent-soft, var(--bg-soft));
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.payacct input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.payacct > span { display: grid; gap: 9px; min-width: 0; }

.payacct__name { font-weight: 600; font-size: .92rem; }
.payacct__kind {
  font-style: normal;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--line-2);
  color: var(--ink-2);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.payacct__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 18px;
}
.payacct__grid > span { display: grid; gap: 1px; min-width: 0; }
.payacct__grid small { font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; }
.payacct__grid b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.payacct__copy {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex: none;
  border-radius: 5px;
  transition: color .16s ease, background-color .16s ease;
}
.payacct__copy:hover { color: var(--accent-ink, var(--accent)); background: var(--bg-soft); }

.payacct__note { font-size: .8rem; color: var(--muted); }

/* The split total, for an order whose delivery charge is settled up front. */
.paysplit {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius, 10px);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  display: grid;
  gap: 7px;
}
.paysplit__row { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.paysplit__row small { display: block; font-size: .72rem; color: var(--muted); }
.paysplit__row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
