/* ============================================================
   Shop & Product pages — extends theme.css tokens
   ============================================================ */

/* ---- Shop Header ---- */
.shop-page {
  padding-top: 72px; /* nav height offset */
}

.shop-header {
  padding: 80px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-header::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, var(--accent-light) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.shop-header-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.shop-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
  margin-top: 20px;
}

.shop-lede {
  font-size: 17px;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ---- Filter Bar ---- */
.filter-bar {
  padding: 0 32px 40px;
  border-bottom: 1px solid rgba(42, 37, 32, 0.07);
}

.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
  background: var(--card-bg);
  border: 1px solid rgba(42, 37, 32, 0.1);
  text-decoration: none;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 500;
}

/* ---- Product Grid ---- */
.product-section {
  padding: 48px 32px 80px;
}

.product-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(42, 37, 32, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(42, 37, 32, 0.09);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Image / Placeholder */
.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category-specific placeholder backgrounds */
.product-card--planners .product-image-placeholder { background: var(--accent-light); }
.product-card--study    .product-image-placeholder { background: var(--sage-light); }
.product-card--budgeting .product-image-placeholder { background: var(--blush-light); }
.product-card--wellness .product-image-placeholder { background: var(--sage-light); }
.product-card--business .product-image-placeholder { background: var(--cream); }

.placeholder-icon {
  font-size: 48px;
  opacity: 0.55;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Product info */
.product-info {
  padding: 24px;
}

.product-category-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(42, 37, 32, 0.07);
}

.product-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}

.product-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: none;
}

.product-cta--soon {
  color: var(--fg-muted);
  font-weight: 400;
  font-style: italic;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ============================================================
   Product Detail Page
   ============================================================ */
.product-detail-page {
  padding-top: 72px;
}

.product-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 100px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--accent);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Visual */
.product-detail-visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.product-detail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}

.product-detail-placeholder--planners { background: var(--accent-light); }
.product-detail-placeholder--study    { background: var(--sage-light); }
.product-detail-placeholder--budgeting { background: var(--blush-light); }
.product-detail-placeholder--wellness { background: var(--sage-light); }
.product-detail-placeholder--business { background: var(--cream); }

.detail-placeholder-icon {
  font-size: 80px;
  opacity: 0.5;
}

.detail-placeholder-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--fg);
  opacity: 0.6;
  line-height: 1.4;
}

/* Content */
.product-category-tag--lg {
  font-size: 12px;
  margin-bottom: 12px;
}

.product-detail-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 20px;
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 24px;
}

.product-detail-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 36px;
}

/* Formats block */
.formats-block {
  margin-bottom: 20px;
}

.formats-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.formats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(184, 151, 126, 0.2);
  letter-spacing: 0.02em;
}

.format-tag--bonus {
  background: var(--sage-light);
  color: #3A5E38;
  border-color: rgba(140, 185, 128, 0.25);
}

/* Product detail action group */
.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

/* Preview button */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
  text-align: center;
  align-self: flex-start;
}

.btn-secondary:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

/* Buy button */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Coming soon */
.coming-soon-block {
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  border: 1px solid rgba(42, 37, 32, 0.07);
}

.coming-soon-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.coming-soon-note {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.6;
}

.coming-soon-note a {
  color: var(--accent);
  text-decoration: none;
}

/* Meta */
.product-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(42, 37, 32, 0.08);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 300;
}

.meta-icon {
  font-size: 16px;
  color: var(--accent);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ---- What's Included (full collection products) ---- */
.product-includes {
  margin-bottom: 32px;
  padding: 24px 28px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 37, 32, 0.07);
}

.includes-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 11px;
}

.includes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.include-icon {
  color: var(--accent);
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

.include-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.include-item strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.include-item span {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.5;
}

.include-item--stickers .include-icon {
  color: var(--accent-dark);
}

.include-item--stickers strong {
  color: var(--accent-dark);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-detail-visual {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .shop-header {
    padding: 60px 20px 40px;
  }
  .filter-bar {
    padding: 0 20px 32px;
  }
  .product-section {
    padding: 32px 20px 60px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-inner {
    padding: 32px 20px 60px;
  }
}
