/* ═══════════════════════════════════════════════════════
   OLYMPIC DCHEIRA — STORE / PRODUCT / CHECKOUT STYLES
═══════════════════════════════════════════════════════ */

/* ── Store Button in Nav ── */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--green-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  border-radius: 6px;
  text-decoration: none;
  position: relative;
  transition: background .2s, transform .15s;
  letter-spacing: .3px;
}
.store-btn:hover { background: var(--green-mid); transform: translateY(-1px); }
.store-btn.active { background: var(--green-bright); }

.cart-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 5px;
  line-height: 1;
}
.cart-badge.pop {
  animation: badgePop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badgePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ── Store Hero ── */
.store-hero {
  background: var(--black);
  padding: 36px 32px 32px;
  text-align: center;
  position: relative;
  overflow: visible;
  /* Paint brush stroke shape — ragged top & bottom edges */
  clip-path: polygon(
    0% 14%, 2% 2%, 5% 10%, 8% 0%, 14% 7%,
    25% 2%, 40% 6%, 50% 0%, 62% 4%, 75% 1%,
    84% 6%, 91% 0%, 95% 8%, 98% 1%, 100% 12%,
    100% 86%, 98% 100%, 95% 91%, 91% 99%, 84% 93%,
    75% 100%, 62% 95%, 50% 100%, 40% 94%, 25% 99%,
    14% 92%, 8% 100%, 5% 90%, 2% 98%, 0% 86%
  );
}
.store-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26,107,53,.18) 0%, transparent 60%);
  pointer-events: none;
}
.store-hero-inner { position: relative; z-index: 1; }
.store-hero-badge {
  display: inline-block;
  background: rgba(74,222,128,.15);
  border: 1px solid rgba(74,222,128,.3);
  color: var(--green-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.store-hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.store-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Store Layout ── */
.store-layout {
  display: block; /* override legacy pages.css grid rule that constrained .store-container */
  isolation: isolate; /* contain product-card stacking contexts so they can't escape above the cart overlay */
  background: var(--black-bg);
  padding: 40px 0 80px;
  min-height: 70vh;
}
.store-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
/* ══════════════════════════════════════
   MOBILE — 860px and below
══════════════════════════════════════ */
@media (max-width: 860px) {
  .store-container {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .store-sidebar {
    position: static !important;
    top: auto !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }
  .sidebar-card     { margin-bottom: 0; }
  .sort-select      { max-width: 100%; }
}

/* ══════════════════════════════════════
   MOBILE — 600px and below
══════════════════════════════════════ */
@media (max-width: 600px) {

  /* ─ Hero ─ */
  .store-hero {
    padding: 24px 16px 20px;
    clip-path: none; /* simpler on mobile — no ragged edge */
  }
  .store-hero-title { font-size: clamp(22px, 7vw, 32px); }
  .store-hero-sub   { font-size: 13px; }
  .store-hero-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 10px; }

  /* ─ Store container ─ */
  .store-container { padding: 0 12px; gap: 12px; }
  .store-layout    { padding-top: 0; }

  /* ─ Sidebar → compact horizontal filter strip ─ */
  .store-sidebar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 0 0 6px;
    margin-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch;
  }
  .store-sidebar::-webkit-scrollbar { display: none; }

  /* Category card becomes a compact chip */
  .sidebar-card {
    flex-shrink: 0;
    min-width: 0;
    padding: 12px 14px;
    margin-bottom: 0;
    border-radius: 10px;
  }

  /* Categories card — just wide enough */
  .sidebar-card:first-child { min-width: 160px; }

  /* Sort card — compact */
  .sidebar-card:nth-child(2) { min-width: 150px; }

  /* Hide the delivery/security info cards on mobile — saves vertical space */
  .sidebar-info { display: none !important; }

  .sidebar-title    { font-size: 9px; letter-spacing: 1px; margin-bottom: 8px; }

  /* Category list → horizontal scrollable pills */
  .cat-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
  }
  .cat-list::-webkit-scrollbar { display: none; }
  .cat-list li button {
    font-size: 11px;
    padding: 4px 10px;
    white-space: nowrap;
    border-radius: 20px;
    justify-content: center;
  }
  .cat-list li button .cat-count {
    display: none; /* hide count badges on tiny chips */
  }
  .cat-list li button.active {
    border-left: none;
    border: 1.5px solid var(--green-bright);
    padding: 4px 10px;
  }

  .sort-select { font-size: 12px; padding: 8px 28px 8px 10px; }

  /* ─ Toolbar ─ */
  .store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .product-count { font-size: 12px; }
  .view-btn      { padding: 6px; }

  /* ─ Product grid — 2 columns ─ */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ─ Product card ─ */
  .product-card { border-radius: 10px; }
  .product-card-img { aspect-ratio: 3/4; } /* taller image on mobile */
  .product-card-body { padding: 8px 10px 10px; }
  .product-card-name { font-size: 12px; line-height: 1.3; }
  .product-card-price { font-size: 14px; }
  .product-stock-info { font-size: 10px; }
  .product-badge { font-size: 9px; padding: 3px 7px; }

  /* Action button — full width, compact */
  .product-card-action {
    font-size: 11px;
    padding: 8px 10px;
    margin: 0 8px 8px;
    width: calc(100% - 16px);
    border-radius: 7px;
  }
}

/* ══════════════════════════════════════
   MOBILE — 380px and below
══════════════════════════════════════ */
@media (max-width: 380px) {
  .product-grid  { grid-template-columns: 1fr; }
  .store-hero-title { font-size: 22px; }
}

/* ── Sidebar ── */
@media (min-width: 861px) {
  .store-sidebar {
    position: sticky;
    top: calc(var(--util-h) + var(--nav-h) + 16px);
    max-height: calc(100vh - var(--util-h) - var(--nav-h) - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-right: 2px;
  }
  .store-sidebar::-webkit-scrollbar { width: 4px; }
  .store-sidebar::-webkit-scrollbar-track { background: transparent; }
  .store-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
}
.sidebar-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 10px;
}
.sidebar-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list li button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white-dim);
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  font-weight: 400;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s, color .15s;
}
.cat-list li button:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.cat-list li button.active {
  background: var(--green-dark);
  color: var(--green-bright);
  font-weight: 600;
  border-left: 2px solid var(--green-bright);
  padding-left: 8px;
}
.cat-list li button .cat-count {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 2px 7px;
  min-width: 22px;
  text-align: center;
}
.cat-list li button.active .cat-count {
  background: rgba(74,222,128,.2);
  color: var(--green-bright);
}

.sort-select {
  width: 100%;
  background: var(--black-bg);
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  padding: 9px 32px 9px 12px;
  border-radius: 7px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .15s;
}
.sort-select:focus { border-color: var(--green-mid); color: var(--ink); }

/* ── Info cards — horizontal pill style ── */
.sidebar-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
}
.sidebar-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-bright);
}
.sidebar-info-icon svg { width: 16px; height: 16px; }
.sidebar-info p {
  font-size: 12px;
  color: var(--white-dim);
  margin: 0;
  line-height: 1.4;
}

/* ── Toolbar ── */
.store-main { min-width: 0; }
.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.product-count { font-size: 13px; color: var(--text-muted); }
.toolbar-views { display: flex; gap: 4px; }
.view-btn {
  width: 32px; height: 32px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.view-btn.active, .view-btn:hover { border-color: var(--green-mid); color: var(--green-bright); }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-grid.list-view {
  grid-template-columns: 1fr;
}

/* ── Product Card ── */
.product-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-dark);
  box-shadow: 0 12px 40px rgba(26,107,53,.18);
}

.product-card-img {
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,.1);
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

/* ── Pre-order placeholder: bold text instead of icon ── */
.preorder-ph {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(74,222,128,.04) 14px 28px),
    linear-gradient(135deg, #0d1a10 0%, #111 60%, #0a0a0a 100%);
}
.preorder-ph-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  color: var(--green-bright);
  text-shadow: 0 0 24px rgba(74,222,128,.45);
  border: 1.5px dashed rgba(74,222,128,.4);
  border-radius: 10px;
  padding: 14px 18px;
  animation: preorderPulse 2.4s ease-in-out infinite;
}
@keyframes preorderPulse {
  0%, 100% { opacity: .75; text-shadow: 0 0 12px rgba(74,222,128,.25); }
  50%      { opacity: 1;   text-shadow: 0 0 28px rgba(74,222,128,.6); }
}

/* Pre-order badge + stock label */
.product-badge.badge-pre { background: var(--green-mid); }
.product-stock-info.pre  { color: var(--green-bright); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--green-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.product-badge.badge-out { background: #374151; }

.product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.product-cat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-bright);
}
.product-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.product-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--green-bright);
  margin-top: auto;
  padding-top: 8px;
}
.product-stock-info {
  font-size: 11px;
  color: var(--text-muted);
}
.product-stock-info.low { color: #f59e0b; }
.product-stock-info.out { color: #ef4444; }

.product-card-action {
  margin: 0 16px 16px;
  padding: 9px;
  background: var(--green-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background .2s;
  width: calc(100% - 32px);
}
.product-card-action:hover { background: var(--green-mid); }
.product-card-action.disabled { background: #374151; cursor: not-allowed; }

/* List view overrides */
.product-grid.list-view .product-card {
  flex-direction: row;
  max-height: 140px;
}
.product-grid.list-view .product-card-img {
  width: 120px;
  min-width: 120px;
  aspect-ratio: auto;
  height: 140px;
}
.product-grid.list-view .product-card-body {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}
.product-grid.list-view .product-card-name { flex: 1 1 200px; }
.product-grid.list-view .product-card-price { margin: 0; padding: 0; }
.product-grid.list-view .product-card-action { margin: 0; width: 130px; }
.product-grid.list-view .product-stock-info { flex-basis: 100%; margin-top: -8px; }

/* ── Empty state ── */
.store-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.store-empty h3 { font-size: 20px; font-weight: 700; color: var(--white-dim); margin-bottom: 8px; }

/* ══════════════════════════════════════
   CART DRAWER
══════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;  /* cover full viewport incl. hero */
  background: rgba(0,0,0,.6);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: calc(var(--util-h) + var(--nav-h));
  right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--black-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  z-index: 8001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0; }
.cart-drawer-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px;
  transition: color .15s;
}
.cart-drawer-close:hover { color: var(--ink); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 160px; /* bottom padding clears the pinned footer */
  min-height: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 60px; height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
}
.cart-item-img-ph {
  width: 60px; height: 60px;
  border-radius: 6px;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.cart-item-info { min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-size { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 6px;
}
.qty-btn {
  width: 24px; height: 24px;
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: rgba(255,255,255,.16); }
.qty-num { font-size: 13px; color: var(--ink); min-width: 18px; text-align: center; }

.cart-item-right { text-align: right; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--green-bright); white-space: nowrap; }
.cart-item-remove {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; font-size: 11px;
  padding: 0; margin-top: 6px;
  display: block;
  transition: color .15s;
}
.cart-item-remove:hover { color: #ef4444; }

.cart-empty-msg {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty-msg span { font-size: 40px; display: block; margin-bottom: 12px; }

.cart-drawer-footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--black-card);
  z-index: 2;
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; margin-bottom: 16px;
}
.cart-subtotal span:last-child { font-weight: 800; color: var(--ink); }
.cart-checkout-btn {
  width: 100%;
  padding: 13px;
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.cart-checkout-btn:hover { background: var(--green-mid); }
.cart-continue-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: color .15s;
}
.cart-continue-btn:hover { color: var(--ink); }

/* ── Toast ── */
.cart-toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: #1a1a1a;
  border: 1px solid var(--green-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  max-width: 280px;
}
.cart-toast.show { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════════════ */
.product-page {
  background: var(--black-bg);
  padding: 40px 0 80px;
  min-height: 80vh;
}
.product-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.product-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.product-breadcrumb a:hover { color: var(--green-bright); }
.product-breadcrumb span { color: #555; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { position: static !important; top: auto !important; }
  .product-trust-row { flex-wrap: wrap; gap: 12px; }
}

/* Gallery */
.product-gallery { position: static; }
@media (min-width: 901px) {
  .product-gallery { position: sticky; top: 90px; }
}
.product-gallery-main {
  border-radius: 14px;
  overflow: hidden;
  background: var(--black-card);
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 68px; height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .2s;
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--green-mid); }
.gallery-thumb:hover { border-color: var(--green-bright); }

/* Product Info Panel */
.product-info-panel {}
.product-info-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 10px;
}
.product-info-name {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
}
.product-info-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-bright);
  margin-bottom: 24px;
}

.product-info-section { margin-bottom: 24px; }
.product-info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-btn {
  padding: 8px 16px;
  background: var(--black-bg);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  color: var(--white-dim);
  font-size: 13px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  position: relative;
}
.size-btn:hover:not(.size-btn-out) { border-color: var(--green-mid); color: var(--ink); }
.size-btn.selected { border-color: var(--green-bright); background: var(--green-dark); color: #fff; }
.size-btn.size-btn-out {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.size-stock-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.size-stock-hint.low { color: #f59e0b; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--black-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.qty-row .qty-btn {
  width: 38px; height: 40px;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
}
.qty-row .qty-num { width: 40px; font-size: 15px; }

.product-add-btn {
  width: 100%;
  padding: 14px;
  background: var(--green-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product-add-btn:hover:not(:disabled) { background: var(--green-mid); transform: translateY(-1px); }
.product-add-btn:disabled { background: #374151; cursor: not-allowed; transform: none; }
.product-add-btn svg { flex-shrink: 0; }

.product-checkout-btn {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--white-dim);
  font-size: 14px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  margin-top: 10px;
}
.product-checkout-btn:hover { border-color: var(--green-mid); color: var(--ink); }

.product-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.product-desc { font-size: 14px; color: var(--white-dim); line-height: 1.7; }
.product-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-features li {
  font-size: 13px;
  color: var(--white-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-bright);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.product-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.product-trust-item span:first-child { font-size: 16px; }

/* Related products */
.related-section {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* ══════════════════════════════════════
   CHECKOUT PAGE
══════════════════════════════════════ */
.checkout-page {
  background: var(--black-bg);
  padding: 40px 0 80px;
  min-height: 80vh;
}
.checkout-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-container { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
}

.checkout-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 32px;
}

/* Steps */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.checkout-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.checkout-step.active { color: var(--ink); }
.checkout-step.active .checkout-step-num { border-color: var(--green-bright); background: var(--green-dark); color: #fff; }
.checkout-step.done { color: var(--green-bright); }
.checkout-step.done .checkout-step-num { border-color: var(--green-bright); background: var(--green-dark); color: #fff; }
.checkout-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 10px;
  min-width: 20px;
}
.checkout-step.done + .checkout-step-line { background: var(--green-dark); }

/* Form panels */
.checkout-panel { display: none; }
.checkout-panel.active { display: block; }

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.form-input, .form-select {
  width: 100%;
  background: var(--black-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.form-input:focus, .form-select:focus { border-color: var(--green-mid); }
.form-input::placeholder { color: #555; }
.form-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.checkout-next-btn {
  width: 100%;
  padding: 14px;
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}
.checkout-next-btn:hover { background: var(--green-mid); }
.checkout-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Cascadia Mono', monospace;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
  margin-bottom: 24px;
}
.checkout-back-btn:hover { color: var(--ink); }

/* Payment section */
.payment-card {
  background: var(--black-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.payment-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-stripe-placeholder {
  background: var(--black-bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
}
.payment-stripe-placeholder .stripe-logo {
  font-size: 22px;
  font-weight: 800;
  color: #635bff;
  margin-bottom: 8px;
}
.payment-stripe-placeholder p { font-size: 12px; line-height: 1.6; margin: 0; }

.secure-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
}
.secure-badge { display: flex; align-items: center; gap: 5px; }

/* Confirmation */
.checkout-confirmation {
  text-align: center;
  padding: 48px 20px;
}
.confirmation-icon {
  width: 72px; height: 72px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.checkout-confirmation h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.checkout-confirmation p { font-size: 14px; color: var(--text-muted); max-width: 400px; margin: 0 auto 28px; line-height: 1.7; }
.confirm-ref {
  display: inline-block;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--white-dim);
  margin-bottom: 28px;
}
.confirm-ref strong { color: var(--green-bright); }

/* Order summary sidebar */
.checkout-summary {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: static;
}
@media (min-width: 861px) {
  .checkout-summary { position: sticky; top: 90px; }
}
.summary-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.summary-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.summary-item-img {
  width: 48px; height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-name { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-item-meta { font-size: 11px; color: var(--text-muted); }
.summary-item-price { font-size: 13px; font-weight: 700; color: var(--green-bright); white-space: nowrap; }

.summary-totals { margin-top: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
}
.summary-row.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}
.summary-row.total span:last-child { color: var(--green-bright); }

/* ══════════════════════════════════════
   CHECKOUT RESPONSIVE
══════════════════════════════════════ */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
@media (max-width: 960px) {
  .checkout-container {
    grid-template-columns: 1fr;
    padding: 32px 20px 60px;
  }
  .checkout-summary {
    position: static !important;
    top: auto !important;
    order: -1; /* summary above form on tablet */
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .checkout-container { padding: 24px 16px 60px; gap: 24px; }
  .checkout-steps { gap: 0; }
  .checkout-step { font-size: 11px; gap: 6px; }
  .checkout-step-num { width: 22px; height: 22px; font-size: 10px; }
  .checkout-step-line { margin: 0 6px; min-width: 12px; }
  /* Only the active step shows its label — circles alone for the rest */
  .checkout-step:not(.active) span:not(.checkout-step-num) { display: none; }
  .checkout-panel-title { font-size: 18px; }
  .checkout-panel { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr !important; }
  .summary-item { gap: 10px; }
  .summary-item-img { width: 52px; height: 52px; }
  .cart-checkout-btn, .cart-continue-btn { font-size: 14px; padding: 12px; }
}

/* ══════════════════════════════════════
   PRODUCT PAGE RESPONSIVE
══════════════════════════════════════ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
@media (max-width: 960px) {
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    padding: 24px 20px 60px;
    gap: 32px;
  }
  .product-gallery { position: static !important; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .product-detail-grid { padding: 20px 16px 48px; gap: 24px; }
  .product-title { font-size: 22px; }
  .product-price { font-size: 26px; }
  .size-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .product-add-btn { font-size: 15px; padding: 14px; }
}

/* ══════════════════════════════════════
   CART DRAWER RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .cart-drawer-header { padding: 16px 20px; }
  .cart-drawer-body { padding: 12px 16px 160px; }
  .cart-drawer-footer { padding: 16px 20px; }
  .cart-subtotal { font-size: 14px; }
  .cart-checkout-btn { font-size: 14px; padding: 12px; }
}
