/* ============================================================
   Voltera Internal Test Store — shop.css
   Private, for Qusto team tracking verification only.
   Brand tokens mirrored from Qusto landing /css/qusto.css
   ============================================================ */

:root {
  --bg-base:        #eeece2;
  --bg-surface:     #ffffff;
  --bg-elevated:    #f8f7f2;
  --bg-subtle:      #e8e6de;
  --bg-hover:       #e2e0d6;
  --text-primary:   #1a1a1a;
  --text-secondary: #666666;
  --text-tertiary:  #999999;
  --heading:        #2d3a4f;
  --primary:        #1661be;
  --primary-hover:  #002d9c;
  --accent:         #c55130;
  --accent-hover:   #a03d20;
  --accent-bg:      rgba(197, 81, 48, 0.10);
  --accent-border:  rgba(197, 81, 48, 0.25);
  --border:         rgba(0, 0, 0, 0.10);
  --border-strong:  rgba(0, 0, 0, 0.18);
  --shadow:         0 4px 6px -1px rgba(0,0,0,0.10);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Test Banner ─────────────────────────────────────────── */
.test-banner {
  background: var(--primary);
  color: white;
  font-size: 0.775rem;
  text-align: center;
  padding: 0.35rem 1rem;
}
.test-banner button {
  background: none; border: none; color: rgba(255,255,255,0.65);
  cursor: pointer; margin-left: 1rem; font-size: 0.95rem; line-height: 1; padding: 0;
}

/* ── Header ─────────────────────────────────────────────── */
.shop-header {
  background: rgba(248, 247, 242, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.shop-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.shop-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.035em;
}
.shop-brand .accent { color: var(--accent); }
.shop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.shop-nav a:not(.cart-btn) {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.shop-nav a:not(.cart-btn):hover { color: var(--text-primary); }
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--heading);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}
.cart-btn:hover { background: #1e3a5f; color: white; }
.cart-badge {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #2d3a4f 0%, #1a2a3f 100%);
  color: white;
  padding: 5.5rem 1.5rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
  padding: 0.3rem 0.875rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero p { font-size: 1.1rem; opacity: 0.78; max-width: 520px; margin: 0 auto 2.25rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(197,81,48,0.32);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(197,81,48,0.40);
  color: white;
}
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: white;
  margin-left: 0.75rem;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.65);
  color: white;
}
.btn-dark { background: var(--heading); color: white; }
.btn-dark:hover { background: #1e3a5f; color: white; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.section-link { color: var(--primary); font-size: 0.9rem; font-weight: 600; }
.section-link:hover { color: var(--primary-hover); }

/* ── Feature Grid ────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.feature-tile {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}
.feature-tile .fi { font-size: 1.875rem; margin-bottom: 0.625rem; }
.feature-tile .fl { font-weight: 600; color: var(--heading); font-size: 0.9rem; margin-bottom: 0.3rem; }
.feature-tile .fd { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Product Grid ────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card > a { display: flex; flex-direction: column; flex: 1; }
.product-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  flex-shrink: 0;
}
.badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-new  { background: #d4edda; color: #155724; }
.badge-sale { background: #fff3cd; color: #856404; }
.product-body { padding: 1.125rem; flex: 1; }
.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.325rem;
  line-height: 1.35;
}
.product-desc {
  font-size: 0.81rem;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
  line-height: 1.5;
}
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--heading); }
.price-original { font-size: 0.85rem; color: var(--text-tertiary); text-decoration: line-through; }
.price-discount {
  font-size: 0.75rem;
  font-weight: 700;
  color: #856404;
  background: #fff3cd;
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
}
.btn-add-cart {
  display: block;
  width: calc(100% - 2.25rem);
  margin: 0 1.125rem 1.125rem;
  background: var(--heading);
  color: white;
  padding: 0.625rem;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  text-align: center;
}
.btn-add-cart:hover { background: var(--accent); }

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-chip {
  padding: 0.38rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.81rem;
  color: var(--text-tertiary);
  padding: 1.25rem 0 0;
}
.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.4; }

/* ── Product Detail ──────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  padding: 2rem 0 3.5rem;
}
@media (max-width: 720px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
}
.product-detail-image {
  border-radius: 16px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6.5rem;
  border: 1px solid var(--border);
}
.detail-sku {
  font-size: 0.775rem;
  color: var(--text-tertiary);
  font-family: monospace;
  margin-bottom: 0.625rem;
}
.product-detail-body h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}
.detail-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.detail-price-main { font-size: 2rem; font-weight: 800; color: var(--heading); }
.detail-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.specs-list {
  list-style: none;
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.specs-list li {
  padding: 0.525rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.specs-list li:last-child { border-bottom: none; }
.specs-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.qty-label { font-size: 0.875rem; font-weight: 600; color: var(--heading); }
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 36px; border: none;
  background: var(--bg-subtle); cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; color: var(--heading);
}
.qty-stepper button:hover { background: var(--bg-hover); }
.qty-stepper input {
  width: 52px; height: 36px; border: none;
  border-left: 1.5px solid var(--border-strong);
  border-right: 1.5px solid var(--border-strong);
  text-align: center; font-size: 0.9rem; font-weight: 700; background: white;
}
.qty-stepper input:focus { outline: none; }
.btn-detail-cart {
  display: block; width: 100%;
  background: var(--accent); color: white;
  padding: 0.875rem; border-radius: 9px;
  font-size: 1rem; font-weight: 700; cursor: pointer; border: none;
  transition: all 0.15s; text-align: center;
  box-shadow: 0 4px 14px rgba(197,81,48,0.28);
}
.btn-detail-cart:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(197,81,48,0.38);
}
.trust-row {
  display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.775rem; color: var(--text-tertiary);
}

/* ── Page header ─────────────────────────────────────────── */
.page-head { padding: 2rem 0 1.5rem; }
.page-title {
  font-size: 1.75rem; font-weight: 800;
  color: var(--heading); letter-spacing: -0.02em; margin-bottom: 0.25rem;
}
.page-subtitle { font-size: 0.875rem; color: var(--text-tertiary); }

/* ── Cart ────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}
@media (max-width: 800px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
  text-align: left;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0 0 0.75rem;
  border-bottom: 2px solid var(--border-strong);
}
.cart-table tbody td {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-item-info { display: flex; align-items: center; gap: 0.875rem; }
.cart-thumb {
  width: 60px; height: 60px;
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.625rem;
  flex-shrink: 0; border: 1px solid var(--border);
}
.cart-item-name { font-size: 0.9rem; font-weight: 600; color: var(--heading); margin-bottom: 0.15rem; }
.cart-item-sku { font-size: 0.73rem; color: var(--text-tertiary); font-family: monospace; }
.cart-qty-input {
  width: 58px; padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--border-strong); border-radius: 6px;
  text-align: center; font-size: 0.875rem; font-weight: 600;
}
.cart-qty-input:focus { outline: none; border-color: var(--primary); }
.cart-price { font-weight: 700; color: var(--heading); }
.btn-remove {
  background: none; border: none; color: var(--text-tertiary);
  cursor: pointer; font-size: 1.1rem; padding: 0.3rem;
  border-radius: 4px; transition: color 0.15s;
}
.btn-remove:hover { color: var(--accent); }
.empty-cart { text-align: center; padding: 5rem 2rem; }
.empty-cart .ei { font-size: 3.5rem; margin-bottom: 1.25rem; }
.empty-cart h2 { font-size: 1.4rem; font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; }
.empty-cart p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── Summary Sidebar ─────────────────────────────────────── */
.summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.summary-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--heading);
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.875rem; color: var(--text-secondary); padding: 0.35rem 0;
}
.summary-row.total {
  border-top: 2px solid var(--border-strong);
  margin-top: 0.75rem; padding-top: 0.875rem;
  font-size: 1.05rem; font-weight: 700; color: var(--heading);
}
.btn-cta-full {
  display: block; width: 100%;
  background: var(--accent); color: white;
  padding: 0.875rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer; border: none;
  text-align: center; margin-top: 1.25rem;
  transition: all 0.15s; text-decoration: none;
}
.btn-cta-full:hover { background: var(--accent-hover); transform: translateY(-1px); color: white; }
.secure-note {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; margin-top: 0.875rem;
  font-size: 0.775rem; color: var(--text-tertiary);
}

/* ── Checkout ────────────────────────────────────────────── */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 2.5rem; align-items: start; padding-bottom: 4rem;
}
@media (max-width: 820px) { .checkout-layout { grid-template-columns: 1fr; } }
.form-section {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem;
}
.form-section h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--heading);
  margin-bottom: 1.125rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block; font-size: 0.825rem;
  font-weight: 600; color: var(--heading); margin-bottom: 0.35rem;
}
.form-group input, .form-group select {
  width: 100%; padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--border-strong); border-radius: 7px;
  font-size: 0.9rem; background: white; color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,97,190,0.14);
}
.test-notice {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 8px; padding: 0.7rem 1rem;
  font-size: 0.81rem; color: #856404;
  margin-bottom: 1.25rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.checkout-items { margin-bottom: 1rem; }
.checkout-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-thumb {
  width: 44px; height: 44px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; border: 1px solid var(--border); flex-shrink: 0;
}
.checkout-item-name { flex: 1; font-weight: 500; color: var(--heading); line-height: 1.3; }
.checkout-item-qty { font-size: 0.775rem; color: var(--text-tertiary); margin-right: 0.5rem; }
.checkout-item-price { font-weight: 700; color: var(--heading); }

/* ── Confirmation ────────────────────────────────────────── */
.confirmation-wrapper { max-width: 580px; margin: 3.5rem auto; padding: 0 1.5rem 5rem; }
.confirmation-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.75rem 2.5rem; text-align: center;
}
.confirm-icon {
  width: 72px; height: 72px; background: #d4edda; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.5rem;
}
.confirmation-card h1 {
  font-size: 1.7rem; font-weight: 800; color: var(--heading);
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.confirmation-card .sub { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.9rem; }
.order-id-chip {
  display: inline-block;
  background: var(--bg-subtle); border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 0.35rem 0.875rem;
  font-family: monospace; font-size: 0.9rem;
  color: var(--heading); font-weight: 600; margin-bottom: 2rem;
}
.confirm-items-list {
  text-align: left; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem;
}
.confirm-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.confirm-item:last-child { border-bottom: none; }
.confirm-item-name { flex: 1; font-weight: 500; color: var(--heading); }
.confirm-item-total { font-weight: 700; color: var(--heading); }
.confirm-summary {
  background: var(--bg-elevated); border-radius: 8px;
  padding: 1rem 1.25rem; text-align: left; margin-bottom: 1.75rem;
}
.confirm-sum-row {
  display: flex; justify-content: space-between;
  font-size: 0.875rem; color: var(--text-secondary); padding: 0.25rem 0;
}
.confirm-sum-row.total {
  border-top: 1px solid var(--border-strong);
  margin-top: 0.5rem; padding-top: 0.625rem;
  font-weight: 700; color: var(--heading); font-size: 1rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.shop-footer {
  background: var(--heading);
  color: rgba(255,255,255,0.55);
  text-align: center; padding: 1.5rem;
  font-size: 0.78rem; margin-top: auto;
}
.shop-footer a { color: rgba(255,255,255,0.4); }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: #1a2a3f; color: white;
  padding: 0.75rem 1.25rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 9999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; max-width: 280px;
}
.toast.visible { transform: translateY(0); opacity: 1; }
