/* Product & store pages — extends Vendify theme.css */

/* ── Navbar update ── */
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }

/* ── Product Detail ── */
.product-page { padding: 0 48px 80px; max-width: 1100px; margin: 0 auto; }
.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

/* Gallery */
.product-gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery-main {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.product-discount {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.gallery-thumbs { display: flex; gap: 10px; }
.thumb {
  width: 80px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.15s;
}
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.product-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 12px;
}
.product-tagline { font-size: 1rem; color: var(--fg-muted); margin-bottom: 24px; font-weight: 300; }

/* Social proof */
.product-social-proof { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.star-row { display: flex; gap: 2px; }
.social-proof-text { font-size: 0.85rem; color: var(--fg-muted); text-decoration: underline; }

/* Pricing */
.product-pricing { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.price-main { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--fg); }
.price-compare { font-size: 1.1rem; color: var(--fg-muted); text-decoration: line-through; }
.price-save { font-size: 0.85rem; font-weight: 600; color: #16a34a; }
.price-note { font-size: 0.82rem; color: var(--fg-muted); margin-bottom: 28px; }

/* CTA */
.product-cta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row label { font-size: 0.85rem; font-weight: 500; color: var(--fg-muted); }
.qty-row select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9rem;
  background: var(--card-bg);
  color: var(--fg);
  cursor: pointer;
}
.btn-add-cart {
  background: var(--fg);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.btn-add-cart:hover { background: #1e293b; }
.btn-add-cart:disabled { background: var(--fg-muted); cursor: not-allowed; }
.btn-browse-more { font-size: 0.85rem; color: var(--accent); text-decoration: none; text-align: center; }

/* Trust signals */
.trust-signals { display: flex; flex-direction: column; gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--fg-muted); }
.trust-item svg { color: #16a34a; flex-shrink: 0; }

/* Tabs */
.product-tabs-section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.tab-btn.active { color: var(--fg); border-bottom-color: var(--accent); }
.tab-content { display: block; }
.tab-content.hidden { display: none; }

.description-body p { font-size: 0.95rem; line-height: 1.8; color: var(--fg-muted); margin-bottom: 28px; font-weight: 300; }
.description-highlights { display: flex; flex-direction: column; gap: 10px; }
.highlight-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--fg); }
.highlight-item svg { flex-shrink: 0; margin-top: 2px; }

.features-list { display: flex; flex-direction: column; gap: 12px; }
.feature-row { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--fg); }
.feature-row svg { flex-shrink: 0; margin-top: 2px; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table th { padding: 10px 0; text-align: left; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); width: 40%; }
.specs-table td { padding: 10px 0; font-size: 0.9rem; color: var(--fg); }

.shipping-info h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; margin-top: 24px; }
.shipping-info p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 16px; }
.shipping-info h3:first-child { margin-top: 0; }
.supplier-note { font-size: 0.82rem; color: var(--accent); font-style: italic; }

/* Reviews */
.reviews-section { padding: 56px 0; }
.section-heading { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 32px; color: var(--fg); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.review-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.65; margin-bottom: 12px; font-style: italic; font-weight: 300; }
.review-meta { font-size: 0.8rem; color: var(--fg-muted); font-weight: 500; }
.reviews-count { margin-top: 20px; font-size: 0.82rem; color: var(--fg-muted); }

/* ── Shop Page ── */
.shop-page { padding: 64px 48px; max-width: 1100px; margin: 0 auto; }
.shop-header { text-align: center; margin-bottom: 56px; }
.shop-title { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.shop-sub { font-size: 1rem; color: var(--fg-muted); }

.empty-state {
  text-align: center;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.empty-state h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; }
.empty-state p { color: var(--fg-muted); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.product-card {
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,0.08); transform: translateY(-2px); }
.card-image-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .card-img { transform: scale(1.03); }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.card-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #16a34a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-name { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.card-tagline { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.5; flex: 1; margin-bottom: 16px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price-row { display: flex; align-items: baseline; gap: 8px; }
.card-price { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--fg); }
.card-compare { font-size: 0.85rem; color: var(--fg-muted); text-decoration: line-through; }
.card-rating { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--fg-muted); }

/* ── Cart Page ── */
.cart-page { padding: 64px 48px; max-width: 1100px; margin: 0 auto; }
.cart-title { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 48px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--border); }
.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.item-img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex-shrink: 0; }
.item-details { flex: 1; }
.item-name { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.item-qty { font-size: 0.82rem; color: var(--fg-muted); }
.item-price-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.item-price { font-weight: 600; font-size: 0.95rem; }
.remove-btn { background: none; border: none; font-size: 0.78rem; color: var(--fg-muted); cursor: pointer; text-decoration: underline; }

/* Order Summary */
.order-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: sticky;
  top: 24px;
}
.summary-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--fg-muted); padding: 8px 0; }
.summary-divider { height: 1px; background: var(--border); margin: 12px 0; }
.summary-total { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--fg); }
.checkout-form { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.checkout-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.checkout-form input, .checkout-form textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  width: 100%;
}
.checkout-form textarea { resize: vertical; }
.btn-checkout {
  background: var(--fg);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  width: 100%;
}
.btn-checkout:hover { background: #1e293b; }
.btn-checkout:disabled { background: var(--fg-muted); cursor: not-allowed; }
.checkout-note { font-size: 0.75rem; color: var(--fg-muted); line-height: 1.5; text-align: center; }

/* ── Success Page ── */
.success-page { padding: 80px 48px; max-width: 1100px; margin: 0 auto; display: flex; justify-content: center; }
.success-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 48px;
  max-width: 500px;
  text-align: center;
  width: 100%;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-title { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--fg); margin-bottom: 8px; }
.success-order { font-size: 0.88rem; color: var(--fg-muted); margin-bottom: 20px; }
.order-number { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--accent); }
.success-body { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; margin-bottom: 32px; font-weight: 300; }
.success-actions { display: flex; flex-direction: column; gap: 12px; }

/* ── Static Pages ── */
.static-page { padding: 64px 48px; max-width: 800px; margin: 0 auto; }
.static-hero { text-align: center; margin-bottom: 56px; padding-top: 32px; }
.static-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.static-hero p { font-size: 1rem; color: var(--fg-muted); }
.static-content h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--fg); margin: 36px 0 12px; letter-spacing: -0.02em; }
.static-content h2:first-child { margin-top: 0; }
.static-content p { font-size: 0.92rem; color: var(--fg-muted); line-height: 1.8; margin-bottom: 16px; font-weight: 300; }
.static-content a { color: var(--accent); text-decoration: underline; }
.static-content ul { padding-left: 20px; margin-bottom: 20px; }
.static-content li { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.8; margin-bottom: 6px; }
.back-link { margin-top: 48px; }
.back-link a { font-size: 0.88rem; color: var(--fg-muted); text-decoration: none; }

/* Contact form */
.contact-form-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 48px; margin-top: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label { font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-form input, .contact-form select, .contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--card-bg);
  color: var(--fg);
  width: 100%;
}
.contact-form textarea { resize: vertical; }
.btn-primary {
  display: inline-block;
  background: var(--fg);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: #1e293b; }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { background: var(--bg-alt); }
.contact-info h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { font-size: 0.88rem; color: var(--fg-muted); margin-bottom: 10px; line-height: 1.6; }
.contact-msg { font-size: 0.85rem; color: var(--fg-muted); min-height: 20px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-container { grid-template-columns: 1fr; gap: 32px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .contact-form-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .product-page, .shop-page, .cart-page, .static-page { padding: 32px 24px; }
  .success-page { padding: 48px 24px; }
  .success-card { padding: 36px 24px; }
}