/* ===========================================================================
   Shop — the few layouts site.css does not already have: the shop hero and
   filter, the product detail page, basket/checkout columns, the printable
   receipt, and the admin image/file managers. Tokens only.
   ======================================================================== */

/* ------------------------------------------------------------ listing --- */
.shop-hero { padding-bottom: clamp(24px, 4vw, 40px); }
.shop-hero .hero-title { font-size: var(--fs-1); max-width: 900px; margin-left: auto; margin-right: auto; }
.shop-filter { display: flex; justify-content: center; margin-bottom: 8px; }
.product-card .media { position: relative; }
.product-flag { position: absolute; top: 12px; left: 12px; }

/* ------------------------------------------------------------ product --- */
.product-buy h1 { margin-bottom: 4px; }
.price-note { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.buy-notes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.buy-notes li { display: flex; align-items: center; gap: 8px; }
.buy-notes .icon { color: var(--teal-deep); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-description > h2:first-child { margin-top: 0; }
.included { position: sticky; top: 76px; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-sm); }
.included li { display: flex; gap: 10px; align-items: flex-start; }
.included .icon { color: var(--teal-deep); margin-top: 3px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: minmax(0, 1fr); } .included { position: static; } }

/* --------------------------------------------------- basket + checkout --- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; margin-top: 24px; }
.checkout-layout .summary { position: sticky; top: 76px; }
.checkout-layout .summary .basket-line { grid-template-columns: 56px 1fr auto; gap: 12px; padding: 10px 0; font-size: var(--fs-sm); }
.checkout-layout .summary .basket-line .media { width: 56px; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } .checkout-layout .summary { position: static; } }
.coupon-box { margin-top: 16px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { min-height: 40px; background: var(--surface-2); }
.summary .coupon-form .input { background: var(--surface-2); }
.consent { background: var(--mint-soft); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 8px; }
.consent .check { color: var(--ink); font-weight: 500; }
.consent .check input { background: var(--surface); }
.consent .check input:checked { background: var(--navy); }
.error-text { color: var(--danger); }
.shop-empty-icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--faint); }
.shop-done-icon { width: 48px; height: 48px; margin: 0 auto; color: var(--teal-deep); stroke-width: 1.5; }
.shop-center { justify-content: center; }

/* ------------------------------------------------------------ receipt --- */
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.receipt-head img { height: 22px; width: auto; }
.receipt-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.receipt .table th:first-child, .receipt .table td:first-child { padding-left: 0; }
.receipt .table th:last-child, .receipt .table td:last-child { padding-right: 0; }
.receipt-totals { max-width: 320px; margin: 16px 0 0 auto; }
@media print {
  .account-side, .flash, .toasts { display: none !important; }
  .account { display: block; padding: 0; }
  .receipt { padding: 0; }
  .receipt .table tbody tr:hover td { background: none; }
}

/* -------------------------------------------------------------- admin --- */
.shop-thumb-cell { width: 56px; }
.shop-thumb { display: block; width: 44px; height: 44px; border-radius: var(--r-xs); object-fit: cover; background: var(--surface-2); }
.shop-cell-items { display: block; max-width: 320px; }
.shop-prefix { display: flex; align-items: center; background: var(--surface-2); border-radius: var(--r); padding-left: 14px; }
.shop-prefix span { color: var(--faint); font-size: var(--fs-sm); }
.form .shop-prefix input { padding-left: 2px; background: transparent; }
.form .shop-prefix input:focus { background: var(--surface); }
.shop-images { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shop-image { display: grid; gap: 8px; }
.shop-image:first-child .media { box-shadow: inset 0 0 0 3px var(--teal); }
.shop-image .media { border-radius: var(--r); }
.shop-file { background: var(--surface-2); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; }
.shop-file .input { background: var(--surface); }
.shop-version { width: 80px; }
.shop-upload { display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
