/* store.css — Storefront styles (extends theme.css tokens) */

.store-main { padding-top: 64px; }

/* Store header */
.store-header {
  padding: 80px 40px 60px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.store-header::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.store-header-inner { max-width: 720px; margin: 0 auto; }
.store-header h1 { margin-top: 12px; }
.store-header .lede { margin-top: 16px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Catalog */
.store-catalog { padding: 0 40px 100px; }
.catalog-inner { max-width: 1200px; margin: 0 auto; }

/* Category filters */
.category-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  justify-content: center;
}
.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--fg);
  color: var(--white);
  border-color: var(--fg);
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(26,26,46,0.06);
}
.product-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,26,46,0.12);
}

.product-tile-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-placeholder-icon {
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-tile-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-tile-meta { display: flex; gap: 8px; }
.category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(245,158,11,0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.product-tile-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.product-tile-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1;
}
.product-tile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fg);
}
.product-tile-cta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* Guarantee section */
.store-guarantee {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 60px 40px;
}
.guarantee-inner { max-width: 1200px; margin: 0 auto; }
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.guarantee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.guarantee-icon { font-size: 2rem; }
.guarantee-item h4 { font-size: 0.95rem; }
.guarantee-item p { font-size: 0.875rem; color: var(--fg-muted); max-width: 240px; }

/* Product detail page */
.product-main { padding-top: 64px; }
.product-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.product-preview { position: sticky; top: 80px; }
.preview-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4/3;
}
.preview-img { width: 100%; height: 100%; object-fit: cover; }
.preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}
.preview-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 16px;
  opacity: 0.4;
}
.preview-meta { display: flex; gap: 8px; margin-top: 12px; }

.product-info-inner { display: flex; flex-direction: column; gap: 24px; }
.back-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--fg); }
.product-name {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--fg);
  line-height: 1.15;
}
.product-tagline { color: var(--fg-muted); font-size: 1.05rem; }
.product-price-display {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.price-big {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--fg);
}
.price-note { font-size: 0.85rem; color: var(--fg-muted); }

.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--fg); }
.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--fg);
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--accent); }
.form-hint { font-size: 0.8rem; color: var(--fg-muted); }
.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.buy-btn:hover { background: var(--accent-dark); }
.buy-btn:active { transform: scale(0.98); }

.product-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.product-description {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-description h3 { font-size: 1rem; }
.product-description p { color: var(--fg-muted); line-height: 1.75; }

.related-products { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.related-products h3 { font-size: 0.95rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,26,46,0.1); }
.related-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-alt); }
.related-info { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.related-name { font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--fg); }
.related-price { font-size: 0.8rem; font-weight: 700; color: var(--accent); }

/* Success page */
.success-main { padding: 120px 40px 100px; }
.success-inner { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.success-icon { font-size: 4rem; }
.success-lede { color: var(--fg-muted); font-size: 1.05rem; max-width: 420px; }

.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(26,26,46,0.08);
}
.order-card-header { display: flex; justify-content: space-between; align-items: center; }
.order-label { font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.order-status-badge { font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.order-status-badge.paid { background: #dcfce7; color: #166534; }
.order-detail { display: flex; flex-direction: column; gap: 4px; }
.order-product { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--fg); }
.order-email { font-size: 0.875rem; color: var(--fg-muted); }
.download-section { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.download-label { font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--fg);
  color: var(--white);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.download-btn:hover { background: var(--accent); }
.download-note { font-size: 0.8rem; color: var(--fg-muted); }

.success-actions { margin-top: 8px; }
.continue-shopping { color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; }
.continue-shopping:hover { color: var(--fg); }
.success-trust { font-size: 0.875rem; color: var(--fg-muted); border-top: 1px solid var(--border); padding-top: 20px; width: 100%; text-align: center; }
.success-trust strong { color: var(--fg); }

/* 404 */
.not-found-main { padding: 160px 40px; text-align: center; }
.not-found-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.not-found-inner h1 { font-size: 6rem; color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
  .product-preview { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .guarantee-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .store-header { padding: 60px 20px 40px; }
  .store-catalog { padding: 0 20px 80px; }
  .product-layout { padding: 40px 20px; }
  .success-main { padding: 80px 20px; }
  .product-layout { padding: 40px 20px; }
}