/* ================================================================
   SHOP NOW — DESKTOP page chrome (background, title, SHOP BY card
   placement, main content layout). Shared accordion/grid/card pieces
   live in shop-shared.css.
   ================================================================ */

.shop-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: repeating-radial-gradient(circle at 20% 20%, #c22224 0, #c22224 40px, #a31d1f 41px, #a31d1f 80px);
  padding: 110px 56px 70px;
}
/* Same photo backdrop as the Interactive/Wish-List section's own
   background (bg-flatlay-before.png) — the bubble-wrap texture is now
   reserved specifically for the product-detail popup (see style.css'
   .product-detail-popup), not the page itself. */
.shop-page.has-bg {
  background-image: url('assets/widget/bg-flatlay-before.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #a31d1f;
}

/* Draggable ephemera now (was a static image) — moved down so it no
   longer sits over the fixed hanger/cart icon in the same corner.
   Sized/cropped to match the home page's hero sticker exactly: that one
   is 15.79% of the hero's own width (=100vw) by 23.98% of the hero's own
   height (which is narrower than the viewport, since the hero has a
   locked 1440/820 aspect-ratio) — this page has no such hero box to
   measure percentages against, so both numbers are re-expressed directly
   in vw (real box aspect ratio ~1.156, same as home's). */
.shop-page-sticker {
  /* Starts below the Shop By panel instead of up by the nav — centered
     under it, so this reads reasonably whether Shop By is the full-width
     stacked block (narrow/mobile widths) or the sticky left column
     (wide desktop). Free to be dragged anywhere from there afterward. */
  top: 480px;
  left: 50%;
  margin-left: calc(-15.79vw / 2);
  width: 15.79vw;
  aspect-ratio: 1.156;
}
.shop-page-sticker .ephemera-inner {
  width: 84.15%;
  height: 64.86%;
  --rot: 25.1deg;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

.shop-page-title {
  color: var(--brand-red);
  text-align: center;
  /* Centered within the space between the fixed nav pill and hanger icon
     (not literally the full viewport width), via matching horizontal
     padding on each side. */
  padding: 0 clamp(60px, 19vw, 300px);
  font-size: clamp(30px, 4.6vw, 56px);
  margin: 0 0 clamp(24px, 3.4vw, 44px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  /* This header's font-size clamp tops out much bigger than the mobile
     version's (56px vs 32px), so the same 0.1em ratio used there reads as
     a visibly thinner stroke here once it stops being floor-clamped —
     bumped to match the effective ratio mobile's own floor produces at
     its rendered size, so the two devices' headers actually match. */
  -webkit-text-stroke-width: max(5px, 0.1465em);
  -webkit-text-stroke-color: var(--cream);
  paint-order: stroke fill;
}

.shop-search {
  max-width: 1200px;
  margin: 0 auto clamp(20px, 2.6vw, 28px);
}

.shop-body {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 2.6vw, 32px);
}

/* Docked as its own persistent column (not a floating card overlapping the
   grid) — filtering still happens fully in place via the accordion JS in
   shop.js (openAccordion/showProductGrid swap the main content area, no
   navigation), this just changes where it sits visually. */
/* Shop By: 20% bigger (260px -> 312px). */
.shop-by {
  position: sticky;
  top: 24px;
  flex: 0 0 312px;
  width: 312px;
  background: rgba(255, 248, 240, 0.96);
  border-radius: 18px;
  padding: 18px 20px 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.shop-by-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand-red);
  font-weight: 700;
}

/* Layout only, no card/background of its own — the cream card belongs to
   whichever view is actually showing (.value-grid / .product-view below),
   not the widget-embed view, which sits directly on the page's own
   bubble-wrap background. */
.shop-main {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-widget-embed[hidden],
.value-grid[hidden],
.product-view[hidden] { display: none; }
/* Fills the same width as the rest of the main column (so its right edge
   lines up with the search bar's above it) instead of staying capped at a
   fixed phone-sized width with empty space on either side — height still
   follows from the same 588/1064 aspect ratio, just scaled up with it. */
.shop-widget-embed {
  width: 100%;
  aspect-ratio: 588 / 1064;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.shop-widget-embed iframe { width: 100%; height: 100%; border: none; }

.value-grid,
.product-view {
  background: var(--paper);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-height: 640px;
}

@media (max-width: 980px) {
  .shop-body { flex-direction: column; }
  .shop-by { position: static; width: 100%; flex-basis: auto; margin-bottom: 24px; }
  .shop-page { padding-top: 90px; }
}
