/* ═══════════════════════════════════════════════════════════════════════
   v217.css — "The Steady Release" · 2026-10-14
   Loaded last. Owner brief: find and fix homepage bugs; the page refreshes
   and jumps to the top while scrolling; reinstall the turn-the-case
   feature; a usable, smooth mobile sidebar and search; the Win-10g-Gold-
   Biscuit campaign card readable and mobile-ready; richer offer panels
   with more variations, animation and graphics.

   Seals kept: no filter on content images · no blur loops · no animated
   background-clip:text · no transform on .c-slide / Ken-Burns · v200 gold
   button gradient · flip stays removed · touch-action pan-y on drag targets.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1 · SCROLL STABILITY — the "jumps to the top" fix ───────────────────
   v117 / v121 / v122 / v214 / v215 gave below-the-fold sections and product
   cards content-visibility:auto with a FIXED height guess. When a section
   with a real height of 1100px was guessed at 680px, the page height changed
   as the shopper scrolled past it, the browser lost its place, and the page
   jumped toward the top — the \"refreshing\" feel. Off-screen skipping is
   not worth that. Every home section now lays out at its real size. */
#view *,
#view footer,
.footer,
.p-card,
.ds-card,
.testi-grid,
.rev-marquee {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

/* sideways overflow (case cards flying wide) must never move the page */
html, body { overflow-x: clip; }

/* ── 4 · SEARCH — on a phone, one clear search panel (no duplicate box) ── */
@media (max-width: 820px) {
  /* the header's inline box crowds the logo; the search button opens the
     full panel instead */
  #hdrSearch { display: none !important; }
  #searchDrawer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1300 !important;
  }
  #searchDrawer .search-panel {
    padding-top: 14px;
    min-height: 100%;
    background: #100609 !important;
  }
  #searchDrawer .search-in input {
    font-size: 16px !important;     /* no iOS zoom on focus */
    min-height: 50px;
  }
  #searchDrawer .s-close {
    min-height: 44px;
    padding: 0 12px;
  }
  #searchDrawer .search-sugg a,
  #searchDrawer .search-sugg button {
    min-height: 48px;
  }
}

/* ── 5 · WIN A 10g 24K GOLD BISCUIT — readable, stacked on a phone ───── */
.shv-home-campaign-card .shv-hcc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.shv-home-campaign-card .shv-hcc-cta-row .btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
/* the outline button: cream text on a dark glass — never the same colour as
   its background (this was the unreadable \"Explore 6 Exclusive Studs\") */
.shv-home-campaign-card .shv-hcc-cta-row .btn-outline {
  color: #fff3d6 !important;
  background: rgba(14, 8, 5, .72) !important;
  border: 1.5px solid #e6c46e !important;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .12);
}
.shv-home-campaign-card .shv-hcc-cta-row .btn-outline:hover,
.shv-home-campaign-card .shv-hcc-cta-row .btn-outline:focus-visible {
  color: #2a1405 !important;
  background: linear-gradient(135deg, #f3d98f, #d4af5a) !important;
  border-color: #f3d98f !important;
}
.shv-home-campaign-card .shv-hcc-cta-row .btn-gold {
  color: #2a0c12;
}
.shv-home-campaign-card .shv-hcc-title {
  line-height: 1.12;
  text-wrap: balance;
}
@media (max-width: 820px) {
  .shv-home-campaign-card { border-radius: 20px; }
  .shv-home-campaign-card .shv-hcc-art img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .shv-home-campaign-card .shv-hcc-content { padding: 18px 16px 22px; }
  .shv-home-campaign-card .shv-hcc-title { font-size: clamp(24px, 7.2vw, 30px); }
  .shv-home-campaign-card .shv-hcc-sub { font-size: 14.5px; line-height: 1.55; }
  .shv-home-campaign-card .shv-hcc-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .shv-home-campaign-card .shv-hcc-cta-row .btn { width: 100%; }
}
@media (max-width: 380px) {
  .shv-home-campaign-card .shv-hcc-title { font-size: 23px; }
}

/* ── 6 · OFFER PANELS — graphics, motion and four distinct variations ─── */
.shv-offer-grid { gap: 18px; }

/* a sparkle layer on every panel: the corner flourish becomes a live motif */
.shv-offer-card .shv-offer-orn {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  width: 74px !important;
  height: 74px !important;
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
  animation: v217Twinkle 4.2s ease-in-out infinite;
}
@keyframes v217Twinkle {
  0%, 100% { opacity: .45; transform: scale(.94); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* 1 · BLACK CARD — a slowly turning gold rim around the art */
.shv-offer-making .shv-offer-orn {
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 226, 150, .95) 40deg, transparent 90deg, transparent 200deg, rgba(255, 226, 150, .7) 240deg, transparent 290deg);
  -webkit-mask: radial-gradient(circle, transparent 47%, #000 49%, #000 53%, transparent 55%);
          mask: radial-gradient(circle, transparent 47%, #000 49%, #000 53%, transparent 55%);
  animation: v217Spin 9s linear infinite, v217Twinkle 4.2s ease-in-out infinite;
}
@keyframes v217Spin { to { transform: rotate(360deg); } }

/* 2 · DELIVERY — a gift-ribbon glint that travels across the band */
.shv-offer-delivery .shv-offer-orn {
  top: 44px !important;
  right: auto !important;
  left: -10% !important;
  width: 120% !important;
  height: 2px !important;
  border-radius: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 236, 180, .95) 50%, transparent 100%);
  animation: v217Ribbon 3.8s ease-in-out infinite;
}
@keyframes v217Ribbon {
  0%   { transform: translateX(-38%); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateX(38%); opacity: 0; }
}

/* 3 · PREMIUM — a field of twinkling diamond points */
.shv-offer-premium .shv-offer-orn {
  background:
    radial-gradient(circle, rgba(255, 246, 220, .95) 0 1.4px, transparent 2.2px) 0 0 / 14px 14px,
    radial-gradient(circle, rgba(255, 246, 220, .6) 0 1px, transparent 2px) 7px 7px / 14px 14px;
  -webkit-mask: radial-gradient(circle at 60% 40%, #000 0%, transparent 72%);
          mask: radial-gradient(circle at 60% 40%, #000 0%, transparent 72%);
}

/* 4 · KEEPSAKE — a wax-seal ring that breathes */
.shv-offer-cert .shv-offer-orn {
  border: 1.5px solid rgba(233, 196, 106, .7);
  box-shadow: 0 0 18px rgba(233, 196, 106, .35), inset 0 0 12px rgba(233, 196, 106, .25);
  background: transparent;
  animation: v217Seal 5s ease-in-out infinite;
}
@keyframes v217Seal {
  0%, 100% { transform: scale(.92); opacity: .5; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* the card: a crisper slab, a slow lift on hover, a readable CTA */
.shv-offer-card {
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s ease;
}
.shv-offer-card:hover {
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(233, 196, 106, .3), inset 0 1px 0 rgba(255, 236, 190, .18);
}
.shv-offer-card .shv-offer-go {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .shv-offer-card .shv-offer-orn,
  .shv-offer-making .shv-offer-orn,
  .shv-offer-delivery .shv-offer-orn,
  .shv-offer-cert .shv-offer-orn,
  .shv-offer-card .shv-offer-shine { animation: none !important; }
}
