/* Shop-specific styles — extends theme.css */

/* Nav shop variant */
.nav-inner--shop {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link--active { color: var(--text); }
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-count[data-count="0"] { display: none; }

/* Shop Header */
.shop-header {
  padding: 4rem 3rem 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.shop-header-inner { max-width: 1100px; margin: 0 auto; }
.shop-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.15;
}
.shop-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Products Grid */
.products-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Product Card */
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.product-card-link { text-decoration: none; color: inherit; display: block; }

.product-image {
  position: relative;
  background: var(--bg-alt);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
}

.product-info { padding: 1.5rem; }
.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.product-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.product-cta-hint {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* Product Detail Page */
.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 3rem 4rem;
}
.breadcrumb { margin-bottom: 2rem; }
.breadcrumb a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}
.product-detail-image {
  position: sticky;
  top: 2rem;
}
.product-detail-placeholder {
  background: var(--bg-alt);
  border-radius: 20px;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border);
}
.detail-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.product-detail-info { padding-top: 1rem; }
.detail-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0.5rem 0 0.6rem;
  line-height: 1.25;
}
.detail-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.detail-price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.detail-description {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Action buttons */
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.btn-buy {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-buy:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-cart {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.btn-cart:hover { border-color: var(--accent); background: var(--bg-alt); }
.btn-cart.added { border-color: var(--accent); color: var(--accent); }

/* Trust indicators */
.detail-trust { display: flex; flex-direction: column; gap: 0.6rem; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Related */
.related-section {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.related-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.related-image-wrap {
  background: var(--bg-alt);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-info { padding: 1rem; }
.related-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.related-price {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

/* Order Confirmed */
.confirm-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.confirm-inner { max-width: 480px; text-align: center; }
.confirm-icon { margin-bottom: 1.5rem; }
.confirm-headline {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.confirm-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.confirm-actions { display: flex; justify-content: center; }

/* Cart Panel */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 100;
  backdrop-filter: blur(2px);
}
.cart-overlay.active { display: block; }
.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: white;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -4px 0 40px rgba(0,0,0,0.12);
}
.cart-panel.open { right: 0; }
.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
}
.cart-panel-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
}
.cart-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2rem;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  line-height: 1.4;
}
.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.2rem;
  transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--text); }
.cart-footer {
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--border);
}
.cart-total {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.cart-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}
.cart-checkout-btn:hover { background: var(--accent-dark); }

/* Landing page shop CTA */
.cta-shop-link {
  display: inline-block;
  margin-top: 2rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.cta-shop-link:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Mobile */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .products-container { padding: 1.5rem; }
  .shop-header { padding: 3rem 1.5rem 2rem; }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .product-detail-image { position: static; }
  .product-detail-placeholder { height: 280px; }
  .product-page { padding: 1.5rem 1.5rem 3rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .cart-panel { width: 100%; right: -100%; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
