/* Products page styles — dark/glassy aesthetic with orange accent */

:root {
  --accent: #FF6B35;
  --bg: #000000;
  --card: #101010;
  --border: #222222;
  --text: #f5f5f5;
  --muted: #bdbdbd;
}

body { background: var(--bg); color: var(--text); }

/* Layout */
.catalog { padding: 80px 0; }
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Hide the mobile cart toggle by default (desktop & tablets) */
.cart-toggle { display: none; }
@media (min-width: 960px) {
  .catalog-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
}

/* Product Card */
.product-card {
  background: rgba(16,16,16,0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: grid;
  grid-template-columns: 1fr;
}
.product-media { position: relative; overflow: hidden; }
.product-media img {
  width: 100%; height: 320px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
}
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; }
.badge { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.chip-bundle { background: rgba(255,107,53,0.15); border: 1px solid rgba(255,107,53,0.5); color: var(--text); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.product-body { padding: 16px; display: grid; gap: 10px; }
.product-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
.product-size { color: var(--muted); font-size: 0.9rem; }
.product-desc { color: #d9d9d9; font-size: 0.95rem; line-height: 1.5; }
.product-price { color: var(--accent); font-size: 1.2rem; font-weight: 800; }

.bundle-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: #fff; }
.bundle-toggle input { accent-color: var(--accent); }

.qty-row { display: inline-flex; align-items: center; gap: 8px; }
.qty-btn { background: #171717; color: #fff; border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 8px; font-size: 20px; cursor: pointer; }
.qty-btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.qty-input { width: 60px; text-align: center; background: #0b0b0b; color: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }

.btn-add { background: linear-gradient(90deg, var(--accent), #ffb347); color: #000; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 800; cursor: pointer; }

/* Cart Panel */
.cart { position: sticky; top: 1rem; background: rgba(16,16,16,0.95); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.cart h2 { margin: 0 0 8px; font-size: 1.2rem; }
.cart-empty { color: var(--muted); padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }
.cart-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.cart-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.cart-meta { display: grid; gap: 4px; }
.cart-name { font-weight: 700; }
.cart-unit { color: var(--muted); font-size: 0.9rem; }
.cart-line-total { font-weight: 800; color: var(--accent); }
.cart-remove { background: transparent; border: 0; color: #ddd; font-size: 22px; cursor: pointer; }
.cart-summary { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; color: #ddd; }
.summary-row strong { color: #fff; }
.ship-options { display: grid; gap: 8px; }
.ship-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.ship-option input { accent-color: var(--accent); }

.btn-checkout { width: 100%; background: linear-gradient(90deg, var(--accent), #ffb347); color: #000; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 900; cursor: pointer; }
.btn-checkout:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-disabled { filter: grayscale(0.8) brightness(0.8); }

/* Toast & Banners */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(24px); background: #111; color: #fff; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; opacity: 0; transition: transform .2s, opacity .2s; z-index: 2000; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.error-banner { position: fixed; top: 0; left: 0; right: 0; background: #3b0d0d; color: #fff; text-align: center; padding: 10px 12px; border-bottom: 1px solid #5a1b1b; z-index: 3000; }
.test-banner { position: sticky; top: 60px; background: #0d1b3b; color: #fff; text-align: center; padding: 8px 12px; border: 1px solid #123; border-radius: 10px; margin: 12px auto; max-width: 960px; }

/* Inline note about Stripe availability */
[data-stripe-note] { color: #ddd; }

/* Mobile cart renders inline after products (no fixed drawer) */
@media (max-width: 959px) {
  .catalog-layout { display: grid; gap: 16px; }
  .cart {
    position: static;
    left: auto; right: auto; bottom: auto;
    transform: none; transition: none;
    max-height: none; overflow: visible;
    border-radius: 16px;
    z-index: auto;
  }
  .cart.open { transform: none; }
  .cart-toggle { display: none; }
}

/* Cart page variants */
.cart-page .cart {
  position: static;
  transform: none !important;
  max-height: none;
  border-radius: 16px;
}
.cart-page .cart-toggle { display: none; }
.cart-page .catalog { padding-top: 20px; }


/* Cash App payment styles */
.pay-methods { display: grid; grid-auto-flow: column; gap: 8px; align-items: center; }
.pay-method { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: #fff; cursor: pointer; }
.pay-method input { accent-color: var(--accent); }
.cashapp-panel { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: rgba(16,16,16,0.9); }
.cashapp-row { display: flex; justify-content: space-between; align-items: center; }
.cashapp-badge { background: rgba(0, 194, 68, 0.14); color: #bfffd2; border: 1px solid rgba(0, 194, 68, 0.35); border-radius: 999px; padding: 6px 10px; font-weight: 800; }
.cashapp-amount { font-weight: 900; color: #fff; }
.cashapp-form { display: grid; gap: 8px; }
.cashapp-field { display: grid; gap: 6px; font-size: 12px; color: #bbb; }
.cashapp-field input { background: #0b0b0b; color: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.cashapp-ack { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #ccc; }
.btn-cashapp { width: 100%; background: linear-gradient(90deg, #00C244, #00d15c); color: #001b09; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 900; cursor: pointer; }
.btn-cashapp:disabled { opacity: .6; cursor: not-allowed; }
.cashapp-status { font-size: 12px; color: #ddd; min-height: 18px; }

