/* ===========================
   James Delingpole — Shop CSS
   Scope to .wrap-shop to avoid bleed
   =========================== */

:root{
  --card-min: 210px; /* minimum card width */
  --card-max: 300px; /* cap so singles don’t blow up (↓ from 300) */
}

/* Section pills = breadcrumb-like, no arrows */
.section-menu-nav { margin: 10px 0 10px 20px; }
.section-menu-nav .crumb-list{
  display:flex; gap:10px; flex-wrap:wrap; list-style:none; margin:0; padding:0;
}
.section-menu-nav .crumb-item .crumb{ margin:0 0 10px; }
.section-menu-nav .crumb a{
  text-decoration:none; 
  color: var(--jd-cream);
  padding: 5px;
  display:inline-block;
  line-height: 1;
}
.section-menu-nav .crumb a:hover{
  background: var(--jd-nearly-blk);
  color: var(--jd-mustard);
}
.section-menu-nav .crumb-item.is-active .crumb a{
  background: var(--jd-cream);
  color: var(--jd-nearly-blk);
}

/* Search results bar */
.results-bar{ margin: 20px 20px; }
.results-bar h3 { color: var(--jd-mustard); text-align: center;}


/* Layout shell */
.wrap-shop { margin: 20px 20px 60px; }

/* Section headings */
.wrap-shop .shop-head{
  margin: 20px 0 10px;
  text-align: center;
  position: relative;
}
.wrap-shop .shop-head h2{ margin:0; }

/* Grid */

.grid.grid-4,
.shop-grid{
  display: grid;
  gap: 20px;
  /* Fixed-width tracks: add as many as fit, each between min/max */
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min), var(--card-max)));
  justify-content: start;     /* ⬅ left-align 1s and 2s */
	margin: 20px 0;
}

.shop-body {
	margin: 10px 0 0;
}

/* Cards (match your markup) */
.wrap-shop .shop-card{
  position: relative;
  overflow: hidden;
}

.wrap-shop .shop-card.no-thumb{ background: transparent; }

/* Whole card clickable */
.wrap-shop .shop-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Media wrapper keeps image size sensible */
/* Media wrapper keeps image size sensible (fixed 16:9 for all) */
.shop-media{
  width: 100%;
  aspect-ratio: 16 / 9;     /* ← fixed 16:9 */
  background:#0b0c0d;
  overflow:hidden;
}

/* Image inside the wrapper */
.shop-media .thumb,
.shop-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;         /* fill the 16:9 box without distortion */
  opacity:.6;
  transform: scale(1);
  transform-origin:center;
  transition: transform var(--cine-zoom-duration,18s) linear, opacity .8s ease;
  will-change: transform;
  backface-visibility: hidden;
}

/* Hover */
.shop-card:hover .shop-media .thumb,
.shop-card:focus-within .shop-media .thumb,
.shop-card:hover .shop-media img,
.shop-card:focus-within .shop-media img{
  opacity:1;
  transform: scale(var(--cine-zoom-scale,1.06));
}


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .shop-media .thumb,
  .shop-media img{
    transition: opacity 200ms linear;
    transform: none;
  }
  .shop-card:hover .shop-media .thumb,
  .shop-card:focus-within .shop-media .thumb{
    transform: none;
  }
}

/* Mobile tweak */
@media (max-width: 640px){
  .grid.grid-4,
  .shop-grid{ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .shop-media .thumb,
  .shop-media img{ opacity: .85; }
}

/* Card positioning hooks */
.shop-card{ position:relative; }

/* Top-right availability badge ("400 of 500 available") */
.badge-stock{
  position:absolute; top:10px; right:10px; z-index:3;
  background: var(--jd-nearly-blk,#151D0A);
  color: var(--jd-cream,#F8EDC2);
  padding:6px 10px;
  border-radius: 999px;
  pointer-events:none; /* keep card fully clickable */
}

/* Big centered SOLD OUT overlay */
.sold-out-overlay{
  position:absolute; inset:0; z-index:2;
  display:grid; place-items:center;
  background: rgba(21,29,10,.85);           /* jd-nearly-blk @ 85% */
  color: var(--jd-cream,#F8EDC2);
  text-align:center;
  pointer-events:none;                       /* link still works if you want */
}
.sold-out-overlay .sold-out-text{
  margin:0;
  font-size: clamp(24px, 5vw, 56px);
  font-weight: 800;
  letter-spacing:.08em;
}

/* Optional post-event overlay (click-through) */
.watch-overlay{
  position:absolute; inset:auto 10px 10px auto; /* bottom-right by default */
  z-index:2;
  background: var(--jd-nearly-blk,#151D0A);
  color: var(--jd-cream,#F8EDC2);
  border:1px solid var(--jd-cream,#F8EDC2);
  padding:8px 12px;
  font-size:12px; line-height:1;
  border-radius: 999px;
  opacity:.95;
  pointer-events:none; /* anchor remains clickable */
}

/* Optional hover polish (match your card hover language) */
.shop-card:hover .badge-stock,
.shop-card:focus-within .badge-stock,
.shop-card:hover .watch-overlay,
.shop-card:focus-within .watch-overlay{
  border-color: var(--jd-mustard,#f6a921);
  color: var(--jd-mustard,#f6a921);
}

.shop-section.is-hidden { display: none; }









.product-wrap{
	max-width:1200px;
	margin:20px auto;
	padding:0 20px;
	/* background: #333;
	 color:var(--jd-cream,#F8EDC2);*/
}

.product-grid{
	display:grid;
	grid-template-columns:1fr;
	gap:20px;
}

/* if product-grid is wider than 900px */
@media(min-width:900px){ 
	.product-grid{ grid-template-columns:1fr 1fr; } 
}

/* Product images gallery */

.product-gallery{
	position:relative;
}

.product-gallery .main{ display:block; width:100%; height:auto; }

    .thumbs{display:flex;gap:10px;flex-wrap:wrap;padding:10px 0}

    .thumbs img{width:120px;height:auto;border:1px solid var(--jd-cream,#F8EDC2);cursor:pointer}

.thumbs img.current{ outline:2px solid var(--jd-mustard,#f6a921); outline-offset:2px; }



/* Product information */

.product-info { margin: 0; }

.product-quote { margin: 10px 0; }

.product-desc { margin: 10px 0 20px; }

.lh { line-height: 1.4; padding-right: 20%; }

    .product-info .sub{ }

    .product-info .price{ }




    .product-desc{ }

/* Product information list */

.pi-list{ 
	list-style:none; 
	margin:0 0 12px; 
	padding:0; 
	/* border-top: 1px dashed color-mix(in srgb, var(--jd-cream) 50%, transparent); */
}

.product-info-row { 
	display:grid; 
	grid-template-columns: 160px 1fr; 
	gap: 10px 20px; 
	padding: 10px 0; 
	border-top: 1px dashed color-mix(in srgb, var(--jd-cream) 50%, transparent);
}

.pi-label{ opacity:.75; }
.pi-val{ }

@media (max-width:600px){
  .product-info-row { grid-template-columns: 1fr; }
}

/* Purchase options */
.purchase-options{ margin:12px 0 20px; }
.purchase-heading{ margin:.2em 0 .6em; font-size:18px; }

.buy-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media (min-width:700px){
  .buy-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1000px){
  .buy-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

.buy-card{
  border:1px dashed color-mix(in srgb, var(--jd-cream) 50%, transparent);
  padding:10px;
  background:transparent;
}
.buy-label{ margin: 0 0 10px;  }
.buy-price{ margin: .2em 0 .4em; }
.buy-blurb{ margin: .2em 0 .8em; opacity:.8; }
.buy-btn{ display:inline-block; margin-top:.2em; }

.purchase-note{
  padding:10px 12px;
  border:1px solid var(--jd-cream,#F8EDC2);
  background:rgba(248,237,194,.06);
  line-height:1.5;
}


