/* Product page styles — extends theme.css */

/* Product nav link active */
.nav-link--product {
  color: var(--accent);
}

/* Product hero */
.product-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(217, 119, 6, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(217, 119, 6, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Strain detail card */
.strain-detail {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.4), 0 0 120px rgba(217,119,6,0.06);
}

.strain-detail-header {
  padding: 48px 48px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.strain-detail-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.strain-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.strain-type-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  padding: 4px 10px;
}

.strain-effect-tag {
  font-size: 11px;
  color: var(--text-muted);
}

.strain-detail-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 8px;
}

.strain-detail-origin {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* Strain body */
.strain-detail-body {
  padding: 32px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Flavor & notes */
.strain-flavor {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.strain-flavor-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.strain-flavor-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* Terpene profile */
.terpene-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.terpene-profile-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}

.terpene-bar-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terpene-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terpene-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terpene-bar-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.terpene-bar-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.terpene-bar-track {
  height: 4px;
  background: rgba(245, 240, 232, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.terpene-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.terpene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.terp-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 3px;
  padding: 4px 10px;
}

/* Upsell section */
.upsell-section {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  background: rgba(217, 119, 6, 0.03);
}

.upsell-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.upsell-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.upsell-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}

.upsell-text {}

.upsell-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.upsell-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.upsell-price {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}

.upsell-price strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}

/* Toggle */
.upsell-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upsell-toggle-label {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.upsell-toggle-label:hover {
  color: var(--text);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

.toggle-switch input:checked + .toggle-track {
  background: rgba(217, 119, 6, 0.2);
  border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(20px);
  background: var(--accent);
}

/* CTA row */
.cta-section {
  padding: 32px 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.cta-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.cta-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cta-amount.with-bundle {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 20px;
}

.cta-amount.bundle-total {
  color: var(--accent);
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-checkout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(217, 119, 6, 0.3);
  letter-spacing: 0.02em;
}

.btn-checkout:hover {
  background: #F59E0B;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(217, 119, 6, 0.4);
}

.btn-checkout:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

/* JS: bundle indicator */
.bundle-badge {
  display: none;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 3px;
  padding: 3px 8px;
  vertical-align: middle;
}

.bundle-badge.visible {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.success-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.success-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--accent);
  font-size: 32px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.success-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.success-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.2s;
}

.success-cta:hover {
  background: #F59E0B;
}

/* Responsive */
@media (max-width: 768px) {
  .product-hero { padding: 80px 20px 40px; }
  .strain-detail-header { padding: 32px 24px 24px; }
  .strain-detail-body { padding: 24px; grid-template-columns: 1fr; gap: 32px; }
  .upsell-section { padding: 24px; }
  .cta-section { padding: 24px 24px 32px; }
  .upsell-row { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .btn-checkout, .btn-secondary { width: 100%; justify-content: center; }
  .success-page { padding: 80px 20px; }
}