/* v6.34: cleaner cards + product detail / purchase sheet */
.product-card{position:relative}
.product-card .shop-list{display:none}
.product-card .card-open-hint{display:none}
.card-sheet-cta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;border-top:1px solid rgba(255,255,255,.07);color:#aeb7c5;font-size:10px;font-weight:800;letter-spacing:.01em}
.card-sheet-cta b{font-size:19px;line-height:1;color:#d9dee7;font-weight:500}
.product-card[data-purchase-sheet-ready="1"]{cursor:pointer}
.product-card[data-purchase-sheet-ready="1"]:hover .card-sheet-cta{color:#fff}

.purchase-sheet{width:min(640px,calc(100vw - 28px));max-height:min(780px,calc(100dvh - 28px));padding:0;border:1px solid #313a4a;border-radius:24px;background:#111720;color:var(--text);box-shadow:0 30px 90px rgba(0,0,0,.65);overflow:hidden}
.purchase-sheet::backdrop{background:rgba(3,6,10,.80);backdrop-filter:blur(5px)}
.purchase-sheet-shell{position:relative;padding:22px;max-height:min(780px,calc(100dvh - 28px));overflow:auto;overscroll-behavior:contain}
.purchase-sheet-handle{display:none}
.purchase-sheet-close{position:absolute;z-index:3;right:16px;top:14px;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:#0b1118;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.purchase-sheet-head{padding:0 50px 16px 0;border-bottom:1px solid var(--line)}
.purchase-sheet-eyebrow{display:block;margin-bottom:6px;color:var(--accent2);font-size:10px;font-weight:900;letter-spacing:.12em}
.purchase-sheet-head strong{display:block;font-size:18px;line-height:1.5}
.purchase-sheet-summary{display:grid;grid-template-columns:150px 1fr;gap:18px;padding:18px 0 14px;align-items:center}
.purchase-sheet-image-wrap{display:grid;place-items:center;aspect-ratio:1/1;border-radius:15px;overflow:hidden;background:#fff;border:1px solid var(--line)}
.purchase-sheet-image-wrap img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.purchase-sheet-image-fallback{width:100%;height:100%;display:grid;place-content:center;justify-items:center;gap:8px;background:linear-gradient(145deg,#202735,#131821);color:#98a2b2}
.purchase-sheet-image-fallback span{font-size:40px;line-height:1}.purchase-sheet-image-fallback small{font-size:10px}
.purchase-sheet-summary-text{min-width:0}
.purchase-sheet-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.purchase-sheet-status .status,.purchase-sheet-status .resale,.purchase-sheet-status .shop-count{font-size:10px}
.purchase-sheet-price{font-size:28px;font-weight:900;line-height:1.25}
.purchase-sheet-price small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:500}
.purchase-sheet-release{margin-top:10px;color:var(--muted);font-size:11px;line-height:1.6}
.purchase-sheet-characters{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 14px}
.purchase-sheet-characters span{font-size:10px;color:#d9dee7;border:1px solid var(--line);padding:4px 7px;border-radius:8px;background:#0f141c}
.purchase-sheet-meta{display:grid;gap:5px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#0d1219;color:#adb6c4;font-size:11px;line-height:1.55}
.purchase-sheet-shops{margin-top:20px}
.purchase-sheet-shop-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:9px}
.purchase-sheet-shop-head strong{font-size:14px}.purchase-sheet-shop-head small{color:var(--muted);font-size:9px;text-align:right}
.purchase-sheet-shop-list{display:grid;gap:8px}
.purchase-sheet-shop-link{display:flex!important;min-height:52px;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px!important;border:1px solid #343d4d!important;border-radius:12px!important;background:#0c121a!important;text-decoration:none!important;transition:border-color .15s ease,transform .15s ease}
.purchase-sheet-shop-link:hover{border-color:#66748a!important;transform:translateY(-1px)}
.purchase-sheet-shop-link strong{font-size:12px!important;line-height:1.45}.purchase-sheet-shop-link span{font-size:10px!important;line-height:1.45;color:#aeb7c5!important;text-align:right}
.purchase-sheet-shop-link .shop-bonus{display:block;margin-top:3px;color:#ffb86b;font-size:9px}
.purchase-sheet-no-shop{padding:18px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted);font-size:11px}
.purchase-sheet-pr{margin:14px 0 0;color:#7f8999;font-size:9px;line-height:1.6}
body.purchase-sheet-open{overflow:hidden}

@media(max-width:620px){
  .product-grid{gap:10px}
  .product-card{grid-template-columns:122px minmax(0,1fr);min-height:206px;border-radius:16px;box-shadow:0 6px 20px rgba(0,0,0,.14)}
  .product-visual,.product-visual.has-image{height:auto;min-height:100%;padding:8px;background:#141a24}
  .product-visual.has-image{background:#fff}
  .product-visual.has-image img{object-fit:contain!important;background:#fff}
  .category-mark{left:8px;right:auto;bottom:8px;max-width:102px;padding:5px 7px;font-size:8px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:7px;background:rgba(10,13,18,.68);backdrop-filter:blur(6px)}
  .photo-count{right:7px;top:7px;padding:4px 6px;font-size:8px}
  .card-body{padding:11px 12px 10px;gap:7px;min-width:0}
  .status-row{gap:4px;flex-wrap:wrap}
  .status-row .status,.status-row .resale,.status-row .shop-count{font-size:9px;padding:3px 6px}
  .product-card h3{font-size:13.5px;line-height:1.42;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .char-tags{gap:4px;max-height:24px;overflow:hidden}
  .char-tag{font-size:9px;padding:3px 5px}
  .char-tag:nth-child(n+3){display:none}
  .price-line{align-items:flex-end;gap:8px;margin-top:1px}
  .price{font-size:20px;line-height:1.2}
  .price small{display:block;margin-top:2px;font-size:8px;line-height:1.2}
  .release{font-size:9px;line-height:1.45;white-space:nowrap}
  .meta-line{display:none}
  .card-sheet-cta{padding-top:7px;font-size:9px}
  .card-sheet-cta b{font-size:17px}

  .purchase-sheet{inset:auto 0 0 0;width:100%;max-width:none;max-height:88dvh;margin:0;border-left:0;border-right:0;border-bottom:0;border-radius:24px 24px 0 0}
  .purchase-sheet-shell{max-height:88dvh;padding:10px 14px calc(18px + env(safe-area-inset-bottom))}
  .purchase-sheet-handle{display:block;width:42px;height:4px;margin:0 auto 8px;border-radius:999px;background:#465064}
  .purchase-sheet-close{right:12px;top:14px;width:34px;height:34px}
  .purchase-sheet-head{padding:2px 44px 12px 2px}
  .purchase-sheet-head strong{font-size:14px;line-height:1.45}
  .purchase-sheet-summary{grid-template-columns:96px minmax(0,1fr);gap:13px;padding:13px 0 11px}
  .purchase-sheet-image-wrap{border-radius:12px}
  .purchase-sheet-price{font-size:23px}
  .purchase-sheet-release{margin-top:7px;font-size:9px}
  .purchase-sheet-status{margin-bottom:8px;gap:4px}
  .purchase-sheet-characters{padding-bottom:10px}
  .purchase-sheet-meta{padding:10px 11px;font-size:10px}
  .purchase-sheet-shops{margin-top:15px}
  .purchase-sheet-shop-head{align-items:flex-start;flex-direction:column;gap:2px;margin-bottom:8px}
  .purchase-sheet-shop-head small{text-align:left}
  .purchase-sheet-shop-link{min-height:56px;padding:11px 12px!important}
  .purchase-sheet-shop-link strong{font-size:11px!important;max-width:58%}
  .purchase-sheet-shop-link span{font-size:9px!important;max-width:42%}
}

@media(max-width:390px){
  .product-card{grid-template-columns:108px minmax(0,1fr)}
  .category-mark{max-width:90px}
  .product-card h3{font-size:13px;-webkit-line-clamp:3}
  .price{font-size:18px}
}
