/* Store styles — uses same design system as landing page */

:root {
  --primary: #0f172a;
  --accent: #f97316;
  --accent-light: #fed7aa;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --success: #059669;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface-alt);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Navigation ─────────────────────────────────────── */
.nav {
  background: var(--primary);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: #94a3b8; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }

/* ── Hero ──────────────────────────────────────────── */
.store-hero {
  background: var(--primary);
  padding: 56px 24px;
  text-align: center;
  color: #fff;
}
.store-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.store-hero h1 span { color: var(--accent); }
.store-hero p { color: #94a3b8; font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.category-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.category-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.category-pill:hover, .category-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* ── Container ─────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Product Grid ───────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 40px 0;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.product-img-wrap {
  background: #f1f5f9;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder {
  width: 80px; height: 80px;
  background: var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; font-weight: 600;
}
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-category-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 6px;
}
.product-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.product-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.product-price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ea580c; text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ── Product Detail Page ─────────────────────────────── */
.product-detail { padding: 48px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { background: #f1f5f9; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--primary); }
.product-info .product-price { font-size: 32px; margin-bottom: 20px; display: block; }
.product-info .product-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.option-group { margin-bottom: 20px; }
.option-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  color: var(--text);
}
.option-btn:hover { border-color: var(--accent); }
.option-btn.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.quantity-row { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.qty-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface); font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-value { font-size: 18px; font-weight: 700; min-width: 30px; text-align: center; }
.add-to-cart-btn { width: 100%; padding: 16px; font-size: 16px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: background 0.15s; }
.add-to-cart-btn:hover { background: #ea580c; }
.margin-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* ── Cart Page ──────────────────────────────────────── */
.cart-section { padding: 48px 0; }
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty h2 { font-size: 24px; margin-bottom: 12px; color: var(--primary); }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }
.cart-item { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.cart-item-img { width: 80px; height: 80px; background: #f1f5f9; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cart-item-meta { font-size: 13px; color: var(--text-muted); }
.cart-item-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.cart-remove { color: #ef4444; font-size: 13px; font-weight: 600; cursor: pointer; border: none; background: none; }
.cart-summary { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 24px; border: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--accent); }

/* ── Footer ─────────────────────────────────────────── */
footer {
  background: var(--primary);
  padding: 48px 24px 24px;
  color: #94a3b8;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand { flex: 0 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-decoration: none;
}
.footer-name { color: #fff; font-size: 18px; font-weight: 700; }
.footer-tagline { font-size: 13px; color: #64748b; max-width: 200px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #64748b; margin-bottom: 4px; }
.footer-link { font-size: 13px; color: #94a3b8; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  max-width: 1140px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
}
.footer-bottom a { color: #475569; }
.footer-bottom a:hover { color: #94a3b8; }

/* ── Confirmation ───────────────────────────────────── */
.confirm-box { background: var(--surface); border-radius: var(--radius); padding: 48px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); max-width: 560px; margin: 48px auto; }
.confirm-icon { font-size: 56px; margin-bottom: 16px; }
.confirm-box h1 { font-size: 28px; margin-bottom: 12px; color: var(--primary); }
.confirm-box p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.confirm-order-summary { background: var(--surface-alt); border-radius: var(--radius); padding: 20px; text-align: left; margin-bottom: 24px; font-size: 14px; }
.confirm-order-summary .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.confirm-order-summary .row:last-child { border-bottom: none; font-weight: 700; font-size: 16px; }

/* ── Category Filter Bar ─────────────────────────────── */
.filter-bar { display: flex; align-items: center; gap: 12px; padding: 20px 0; flex-wrap: wrap; }
.filter-count { font-size: 14px; color: var(--text-muted); margin-left: auto; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .store-hero h1 { font-size: 28px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .cart-item { flex-direction: column; align-items: flex-start; }
}

/* ── Error/Alert Banner ─────────────────────────────── */
.alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin: 16px 0;
}