/* Shop page extras: offer strip, phone-first product grid, sticky checkout bar. Loaded on shop.html only. */

/* ---- Offer strip (shows only while a sale is running) ---- */
.sale-strip { background: #1a1a1a; color: #fff; border-bottom: 3px solid var(--gold); }
.sale-strip-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sale-strip strong { color: var(--gold-bright); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.sale-strip .ss-text { font-size: 0.82rem; color: #e8e2d6; flex: 1 1 260px; line-height: 1.35; }
.sale-strip .ss-timer { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; background: var(--deal); color: #fff; padding: 4px 11px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Sticky checkout bar (shows once something is in the cart) ---- */
#cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: #1a1a1a; color: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,0.25); }
#cart-bar .cb-info { font-size: 0.86rem; line-height: 1.3; }
#cart-bar .cb-info b { display: block; font-size: 1rem; }
#cart-bar a { background: var(--gold); color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 20px; border-radius: 2px; white-space: nowrap; }
body.has-cart-bar { padding-bottom: 76px; }

/* ---- Phone layout ---- */
@media (max-width: 640px) {
  .sale-strip-in { padding: 9px 14px; gap: 3px 10px; }
  .sale-strip .ss-text { font-size: 0.76rem; flex-basis: 100%; order: 3; }
  .page-header { padding: 16px 0 14px; }
  .page-header .eyebrow, .page-header .crumb { display: none; }
  .page-header h1 { font-size: 1.2rem; letter-spacing: 0.04em; }
  .section { padding-top: 16px; padding-bottom: 28px; }
  .shop-toolbar { margin-bottom: 12px; gap: 8px; }
  select.sort { padding: 8px 10px; font-size: 0.78rem; }
  #shop-grid.grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #shop-grid .card-body { padding: 10px 10px 12px; }
  #shop-grid .card-body .tag, #shop-grid .sale-countdown, #shop-grid .card-actions .btn:not(.btn-solid) { display: none !important; }
  #shop-grid .card-body h3 { font-size: 0.92rem; margin: 0 0 4px; line-height: 1.25; }
  #shop-grid .price-row { margin: 2px 0 9px; gap: 6px; flex-wrap: wrap; }
  #shop-grid .price-now { font-size: 1.02rem; }
  #shop-grid .price-old { font-size: 0.76rem; }
  #shop-grid .card-size { font-size: 0.66rem; }
  #shop-grid .card-actions .btn { padding: 11px 6px; font-size: 0.66rem; }
  #shop-grid .card-badge { top: 6px; left: 6px; font-size: 0.5rem; padding: 3px 6px; }
  #shop-grid .discount-badge { top: 6px; right: 6px; font-size: 0.58rem; padding: 3px 6px; }
  #shop-grid .stock-badge { font-size: 0.5rem; }
  #shop-grid .card-product .discount-badge + .stock-badge { top: 30px; }
  #shop-grid .card-product .thumb img { width: 88%; height: 88%; }
}

/* keep the "added to cart" toast above the checkout bar */
body.has-cart-bar .toast { bottom: 92px; }
