/* Shared product-tile styling (shop.html + index.html), loaded after each
   page's own <style> so it wins on equal specificity. */

/* ---- Price: one line, always ---- */
.price,.pcard .price{
  font-family:'Inter',system-ui,sans-serif;font-weight:800;font-size:12px;
  white-space:nowrap;letter-spacing:-.2px;min-width:0;
}
.price .cur{font-size:9px;font-weight:700;color:var(--muted);margin-left:3px;letter-spacing:.3px}
.price .from{font-size:9px;font-weight:700;color:var(--muted);margin-right:4px;letter-spacing:.3px;text-transform:uppercase}

/* ---- Condition in stock (NM, LP...) on a raw tile ---- */
.cond-tag{align-self:flex-start;display:inline-block;margin-top:4px;background:var(--paper-2);color:var(--ink);
  border:2px solid var(--ink);font-family:'Press Start 2P','CCC Pixel Symbols',monospace;font-size:7px;padding:3px 6px;letter-spacing:.5px}
.pcard .prow,.card .meta{gap:8px;flex-wrap:nowrap}

/* ---- Small cart button (replaces "+ ADD") ---- */
.cart-add{
  flex:none;width:34px;height:34px;min-height:0;padding:0;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--red);color:#fff;border:2px solid var(--ink);
  box-shadow:2px 2px 0 var(--ink);cursor:pointer;transition:.1s;
}
.cart-add:hover{transform:translate(1px,1px);box-shadow:1px 1px 0 var(--ink)}
.cart-add:active{transform:translate(2px,2px);box-shadow:0 0 0 var(--ink)}
.cart-add:disabled{opacity:.4;cursor:not-allowed;box-shadow:2px 2px 0 var(--ink);transform:none}

/* ---- Graded slab holder ----
   .slab-fit is the size container: cqw units only resolve against an
   *ancestor* container, so everything drawn on the holder itself must
   sit one level inside it. Sized as a real slab (~0.66 aspect). */
.pcard .pthumb.slab,.card .thumb.slab{
  background:radial-gradient(ellipse at 50% 22%,#59606a 0%,#2a2e34 62%,#1b1d21 100%);
  padding:0;display:flex;align-items:center;justify-content:center;
}
.pcard .pthumb.slab::after,.card .thumb.slab::after{display:none}
.slab-fit{
  position:relative;z-index:2;height:95%;aspect-ratio:64/100;
  container-type:inline-size;
}
.slab-holder{
  --co:#c81e1e;--label-bg:#fff;--label-ink:#111;
  position:relative;width:100%;height:100%;box-sizing:border-box;
  display:flex;flex-direction:column;gap:3cqw;padding:4.5cqw;
  background:linear-gradient(155deg,#fdfdfe 0%,#e8edf1 42%,#f3f5f7 70%,#d9dfe4 100%);
  border:1px solid #8e98a2;border-radius:3.5cqw;
  box-shadow:
    0 14px 26px rgba(0,0,0,.6),
    0 2px 4px rgba(0,0,0,.4),
    inset 0 0 0 1.2cqw rgba(255,255,255,.85),
    inset 0 0 0 1.7cqw rgba(112,124,136,.32);
}
.slab-holder[data-co="BGS"]{--co:#d4af37;--label-bg:#161616;--label-ink:#f2e6b6}
.slab-holder[data-co="CGC"]{--co:#1d5fbf}
.slab-holder[data-co="SGC"]{--co:#111;--label-bg:#f3f3f0}
.slab-holder[data-co="ACE"]{--co:#0e7c76}
.slab-holder[data-co="TAG"]{--co:#f2f2f2;--label-bg:#141414;--label-ink:#f2f2f2}
.slab-label{
  position:relative;z-index:2;flex:none;height:28cqw;box-sizing:border-box;
  display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto 1fr;
  column-gap:2cqw;padding:5.2cqw 3.2cqw 2.6cqw;overflow:hidden;
  background:var(--label-bg);color:var(--label-ink);
  border:.5cqw solid rgba(0,0,0,.28);border-radius:1.2cqw;
}
.slab-label::before{
  content:'';position:absolute;left:0;right:0;top:0;height:3cqw;background:var(--co);
}
.sl-co{grid-column:1;grid-row:1;align-self:end;margin-top:.5cqw;font-weight:900;font-size:7.4cqw;
  letter-spacing:.6cqw;line-height:1;color:var(--co)}
.slab-holder[data-co="SGC"] .sl-co,.slab-holder[data-co="BGS"] .sl-co,.slab-holder[data-co="TAG"] .sl-co{color:var(--label-ink)}
.sl-qual{grid-column:1;grid-row:2;font-weight:700;font-size:4.6cqw;letter-spacing:.25cqw;
  line-height:1.3;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl-grade{grid-column:2;grid-row:1/3;align-self:center;font-weight:900;font-size:15cqw;line-height:1;
  letter-spacing:-.5cqw}
.slab-holder.gem .sl-grade{color:#a97400;text-shadow:0 0 1cqw rgba(255,205,90,.6)}
.slab-holder.gem[data-co="BGS"] .sl-grade{color:#f0c94a}
.sl-bars{grid-column:1/-1;grid-row:3;align-self:end;height:3.4cqw;opacity:.75;
  background:repeating-linear-gradient(90deg,currentColor 0 .45cqw,transparent .45cqw 1cqw,currentColor 1cqw 2.2cqw,transparent 2.2cqw 3cqw)}
.slab-window{
  position:relative;z-index:1;flex:1;min-height:0;box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;padding:2.6cqw;
  background:linear-gradient(180deg,#f6f8fa 0%,#e1e6eb 100%);
  border:.6cqw solid rgba(86,98,110,.5);border-radius:1.4cqw;
  box-shadow:inset 0 .6cqw 2cqw rgba(0,0,0,.2);
}
.slab-window img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  border-radius:1cqw;filter:drop-shadow(0 .6cqw 1.4cqw rgba(0,0,0,.45))}
.slab-noimg{height:100%;aspect-ratio:63/88;display:flex;align-items:center;justify-content:center;
  font-family:'Inter',sans-serif;font-weight:800;font-size:6cqw;letter-spacing:.2em;color:#b8ae94;border-radius:1cqw;
  background:linear-gradient(160deg,#f1ecdf,#e3dcc9);border:.6cqw dashed #cfc6ad}
.slab-holder::after{
  content:'';position:absolute;inset:0;border-radius:3.5cqw;pointer-events:none;z-index:4;
  background:linear-gradient(118deg,rgba(255,255,255,0) 32%,rgba(255,255,255,.32) 46%,rgba(255,255,255,.06) 54%,rgba(255,255,255,0) 66%);
}
.pcard .pthumb.slab .stock-tag,.card .thumb.slab .tag{z-index:6}


/* ---- "The Drop" (index.html) ---- */
.drop-sub{margin-top:12px;font-size:15px;color:var(--muted);max-width:520px}
.drop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:28px 24px}
.drop-grid .empty{grid-column:1/-1}
.dcard{
  display:flex;flex-direction:column;min-width:0;background:#fff;overflow:hidden;
  border:1px solid #e6e0d1;border-radius:18px;
  box-shadow:0 1px 2px rgba(17,17,17,.05),0 12px 28px -16px rgba(17,17,17,.22);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.dcard:hover{transform:translateY(-5px);border-color:#d6ceb9;
  box-shadow:0 2px 4px rgba(17,17,17,.06),0 24px 40px -18px rgba(17,17,17,.34)}
.dc-media{
  position:relative;display:flex;align-items:center;justify-content:center;
  aspect-ratio:1/1.18;overflow:hidden;
  background:radial-gradient(circle at 50% 16%,#ffffff 0%,#f6f2e9 52%,#ebe4d2 100%);
}
.dc-media.is-slab{background:radial-gradient(ellipse at 50% 20%,#4d545d 0%,#252a30 60%,#16181c 100%)}
.dc-img{max-width:74%;max-height:86%;object-fit:contain;border-radius:8px;
  filter:drop-shadow(0 14px 16px rgba(30,20,0,.30));transition:transform .3s ease}
.dcard:hover .dc-img{transform:scale(1.05) rotate(-1.2deg)}
.dc-media .slab-fit{height:90%;transition:transform .3s ease}
.dcard:hover .dc-media .slab-fit{transform:scale(1.03)}
.dc-noimg{width:56%;aspect-ratio:63/88;display:flex;align-items:center;justify-content:center;
  font-family:'Inter',sans-serif;font-weight:800;font-size:15px;letter-spacing:.2em;color:#b8ae94;
  background:linear-gradient(160deg,#f1ecdf,#e3dcc9);border:2px dashed #cfc6ad;border-radius:8px}
.dc-badge,.dc-out{
  position:absolute;top:12px;z-index:6;font-family:'Inter',sans-serif;font-weight:700;
  font-size:10px;letter-spacing:.09em;text-transform:uppercase;padding:5px 11px;border-radius:999px;
}
.dc-badge{left:12px;background:rgba(17,17,17,.88);color:#fff}
.dc-media.is-slab .dc-badge{background:var(--gold);color:#111}
.dc-out{right:12px;background:#fff;color:var(--red);box-shadow:0 2px 8px rgba(0,0,0,.18)}
.dc-out.dc-pre{background:var(--gold);color:#111}
.dcard.is-out .dc-img{filter:grayscale(.75) drop-shadow(0 10px 12px rgba(0,0,0,.2));opacity:.75}
.dc-body{display:flex;flex-direction:column;gap:6px;padding:18px 20px 20px;flex:1}
.dc-name{font-size:17px;font-weight:700;line-height:1.28;letter-spacing:-.01em;color:#111}
.dc-name:hover{color:var(--red)}
.dcard .setline{font-size:12.5px;line-height:1.45}
.dcard .setline b{font-weight:600;color:#3b3a35}
.dc-edition{align-self:flex-start;margin-top:2px;background:#fdf1d3;color:#8a5a00;
  font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px}
.dc-cond{align-self:flex-start;margin-top:2px;background:#eef1f4;color:#2c3540;
  font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;letter-spacing:.04em}
.dc-foot{margin-top:auto;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.dcard .price{font-size:20px;font-weight:800;letter-spacing:-.02em;color:#111}
.dcard .price .cur{font-size:11px;font-weight:600;color:var(--muted);margin-left:4px;letter-spacing:.04em}
.dcard .price .from{font-size:11px;font-weight:600;letter-spacing:.04em}
.dcard .price.na{font-size:14px;font-weight:600;color:var(--muted);letter-spacing:0}
.dcard .cart-add{
  width:42px;height:42px;border:0;border-radius:50%;box-shadow:0 8px 16px -6px rgba(200,30,30,.65);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.dcard .cart-add:hover{transform:scale(1.09);background:#a91616;box-shadow:0 10px 18px -6px rgba(200,30,30,.75)}
.dcard .cart-add:active{transform:scale(.96)}
.dcard .cart-add:disabled{background:#ebe6d8;color:#b5ad98;box-shadow:none;transform:none;opacity:1}
@media(max-width:640px){
  .drop-grid{grid-template-columns:1fr 1fr;gap:14px 12px}
  .dcard{border-radius:14px}
  .dc-body{padding:12px 12px 14px;gap:4px}
  .dc-name{font-size:14px}
  .dcard .setline{font-size:11px}
  .dcard .price{font-size:15px}
  .dcard .price .cur{font-size:9px}
  .dcard .cart-add{width:36px;height:36px}
  .dc-badge,.dc-out{font-size:8.5px;padding:4px 8px;top:8px}
  .dc-badge{left:8px}.dc-out{right:8px}
}

@media (max-width:640px){
  .price,.pcard .price{font-size:11px}
  .price .cur{font-size:8px}
  .cart-add{width:32px;height:32px}
  .pcard .body,.card .body{padding:10px}
}
