/* Store styles — navy/gold palette matching theme.css */

/* ─── Store Header / Nav ─── */
.store-nav {
  padding: 20px 0;
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.store-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.store-nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg-primary);
  text-decoration: none;
}
.store-nav-brand span { color: var(--accent); }
.store-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.store-nav-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.store-nav-links a:hover { color: var(--accent); }
.nav-cart-link { color: var(--fg-primary) \!important; }

/* ─── Store Hero ─── */
.store-hero {
  padding: 80px 0 60px;
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.store-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 12px 0;
}
.store-hero-desc {
  color: var(--fg-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.6;
  margin-top: 12px;
}

/* ─── Catalog Grid ─── */
.catalog { padding: 64px 0 120px; background: var(--bg-mid); }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.product-card {
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}
.product-card:hover {
  border-color: rgba(232,168,56,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.product-image-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-placeholder span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
}
.product-placeholder.small span { font-size: 1.5rem; }
.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--bg-deep);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-info { padding: 20px; }
.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.product-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg-primary);
  margin: 6px 0 4px;
}
.product-tagline {
  font-size: 0.88rem;
  color: var(--fg-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-primary);
}
.product-cta { font-size: 0.85rem; color: var(--accent); font-weight: 500; }

/* ─── Product Detail ─── */
.product-page { padding: 40px 0 100px; background: var(--bg-deep); }
.breadcrumb { margin-bottom: 40px; }
.breadcrumb a { color: var(--fg-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.product-main-img { width: 100%; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.08); }
.product-hero-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-mid);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.product-hero-placeholder span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
}
.product-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 12px 0 8px;
}
.product-tagline-detail { color: var(--fg-secondary); font-size: 1.05rem; margin-bottom: 24px; line-height: 1.6; }
.product-price-display { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--accent); margin-bottom: 24px; }
.product-description { color: var(--fg-secondary); line-height: 1.8; font-size: 1rem; margin-bottom: 32px; }
.product-category-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  border: 1px solid rgba(232,168,56,0.3);
  padding: 4px 10px;
  border-radius: 100px;
}
.add-to-cart-form { margin: 32px 0; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--fg-primary);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }
.product-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.feature { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--fg-secondary); }
.feature-icon { color: var(--accent); font-weight: 700; }

/* ─── Related products ─── */
.featured-products { margin-top: 80px; padding-top: 80px; border-top: 1px solid rgba(255,255,255,0.06); }
.featured-products h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 600; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card.compact .product-image-wrap { aspect-ratio: 16/9; }

/* ─── Cart ─── */
.cart-page { padding: 40px 0 100px; background: var(--bg-deep); min-height: 70vh; }
.cart-page h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 40px; }
.empty-cart { text-align: center; padding: 80px 0; }
.empty-cart p { color: var(--fg-secondary); margin-bottom: 24px; font-size: 1.1rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  background: var(--bg-mid);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}
.cart-item-image {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--fg-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.cart-item-name:hover { color: var(--accent); }
.cart-item-price { font-size: 0.85rem; color: var(--fg-secondary); }
.qty-form { display: flex; align-items: center; gap: 8px; }
.qty-input {
  width: 52px;
  padding: 8px;
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--fg-primary);
  text-align: center;
  font-size: 0.9rem;
}
.qty-update {
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--fg-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.qty-update:hover { border-color: var(--accent); color: var(--accent); }
.cart-item-subtotal { font-family: 'Space Grotesk', sans-serif; font-weight: 600; min-width: 60px; text-align: right; }
.remove-btn {
  background: none;
  border: none;
  color: var(--fg-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.remove-btn:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

/* Cart Summary */
.cart-summary {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.cart-summary h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 24px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--fg-secondary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-primary);
  padding: 16px 0 24px;
}

/* ─── Checkout ─── */
.checkout-page { padding: 40px 0 100px; background: var(--bg-deep); }
.checkout-page h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 40px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.checkout-form-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; margin: 28px 0 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--fg-secondary); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--fg-primary);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--accent); }
.checkout-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--fg-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-primary);
  padding: 16px 0 24px;
}

/* ─── Success ─── */
.success-page { padding: 80px 0; background: var(--bg-deep); min-height: 60vh; display: flex; align-items: center; }
.success-inner { max-width: 500px; margin: 0 auto; text-align: center; }
.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #10b981;
  margin: 0 auto 32px;
}
.success-inner h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.success-inner p { color: var(--fg-secondary); line-height: 1.6; margin-bottom: 24px; }
.order-summary-mini { background: var(--bg-mid); border-radius: var(--radius); padding: 16px; margin-bottom: 32px; }
.success-actions { display: flex; gap: 16px; justify-content: center; }

/* ─── 404 ─── */
.not-found-page { padding: 120px 0; background: var(--bg-deep); text-align: center; }
.not-found-inner h1 { font-family: 'Space Grotesk', sans-serif; font-size: 8rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.not-found-inner p { color: var(--fg-secondary); margin-bottom: 32px; }

/* ─── Footer ─── */
.store-footer { background: var(--bg-deep); border-top: 1px solid rgba(255,255,255,0.06); padding: 32px 0; }
.store-footer .container { display: flex; justify-content: space-between; align-items: center; }
.store-footer p { font-size: 0.85rem; color: var(--fg-secondary); }
.store-footer nav { display: flex; gap: 24px; }
.store-footer nav a { font-size: 0.85rem; color: var(--fg-secondary); text-decoration: none; transition: color 0.2s; }
.store-footer nav a:hover { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr auto; }
  .cart-item-quantity, .cart-item-subtotal { display: none; }
  .success-actions { flex-direction: column; }
  .store-footer .container { flex-direction: column; gap: 16px; text-align: center; }
}
