/* ========== PRODUCT PAGE STYLES ========== */

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--foreground-muted);
  margin-bottom: 40px;
  transition: color var(--transition);
}

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

.back-link svg {
  transition: transform var(--transition);
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Product Hero */
.product-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.product-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.product-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Product Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 32px;
  margin-bottom: 16px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.5s var(--easing);
}

.product-gallery-main:hover img {
  transform: scale(1.05);
}

.product-gallery-main video {
  width: 100%;
  border-radius: var(--radius-md);
}

.product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-thumbs::-webkit-scrollbar {
  height: 4px;
}

.product-thumbs::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 2px;
}

.product-thumbs::-webkit-scrollbar-thumb {
  background: var(--foreground-subtle);
  border-radius: 2px;
}

.thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 2px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.thumb:hover,
.thumb.active {
  border-color: var(--accent-light);
  box-shadow: 0 0 12px var(--accent-glow);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-video {
  position: relative;
}

.thumb-video::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
}

.thumb-video .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #fff;
  pointer-events: none;
}

/* Product Info */
.product-detail-info {
  padding-top: 8px;
}

.product-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: rgba(139, 34, 82, 0.15);
  border: 1px solid rgba(139, 34, 82, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.product-detail-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.product-detail-tagline {
  font-size: 1.15rem;
  color: var(--accent-light);
  margin-bottom: 20px;
  font-weight: 500;
}

.product-detail-desc {
  font-size: 1rem;
  color: var(--foreground-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Price Block */
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.product-detail-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.product-price-label {
  font-size: 0.85rem;
  color: var(--foreground-subtle);
}

/* Warranty Badge */
.warranty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.warranty-badge svg {
  flex-shrink: 0;
}

/* Buy Actions */
.buy-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* Available On */
.available-on {
  margin-bottom: 32px;
}

.available-on-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground-subtle);
  margin-bottom: 12px;
}

.store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
  text-decoration: none;
}

.store-badge:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.store-badge img {
  height: 22px;
  width: auto;
}

.store-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Quick Features */
.quick-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.quick-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.quick-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(139, 34, 82, 0.15);
  color: var(--accent-light);
  flex-shrink: 0;
}

.quick-feature span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground-muted);
}

/* ========== PRODUCT SECTIONS ========== */
.product-section {
  padding: 100px 0;
}

.product-section:nth-child(even) {
  background: var(--bg-base);
}

.product-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.product-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}

.product-section-desc {
  font-size: 1rem;
  color: var(--foreground-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Feature Cards Grid */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(139, 34, 82, 0.15);
  color: var(--accent-light);
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--foreground-muted);
  line-height: 1.6;
}

/* Specs Table */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--glass-border);
}

.specs-table td {
  padding: 14px 0;
  font-size: 0.9rem;
}

.specs-table td:first-child {
  color: var(--foreground-muted);
  width: 45%;
}

.specs-table td:last-child {
  color: var(--foreground);
  font-weight: 500;
}

.specs-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.specs-image img {
  max-height: 400px;
  object-fit: contain;
}

/* Video Section */
.product-video-section {
  text-align: center;
}

.product-video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-elevated);
}

.product-video-wrapper video {
  width: 100%;
  display: block;
}

/* Access Methods */
.access-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.access-method {
  text-align: center;
  padding: 28px 20px;
}

.access-method-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 34, 82, 0.15);
  color: var(--accent-light);
  margin: 0 auto 14px;
}

.access-method h4 {
  font-size: 0.95rem;
  color: var(--foreground);
  margin-bottom: 4px;
}

.access-method p {
  font-size: 0.8rem;
  color: var(--foreground-muted);
}

/* Safety Grid */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.safety-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.safety-item h4 {
  font-size: 0.9rem;
  color: var(--foreground);
  margin-bottom: 4px;
}

.safety-item p {
  font-size: 0.82rem;
  color: var(--foreground-muted);
  line-height: 1.5;
}

/* Power Variants */
.variant-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.variant-card {
  padding: 32px;
  text-align: center;
}

.variant-card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.variant-card .variant-watts {
  font-size: 0.9rem;
  color: var(--foreground-muted);
  margin-bottom: 16px;
}

.variant-card .variant-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground-subtle);
  margin-bottom: 8px;
}

.variant-card .variant-uses {
  font-size: 0.85rem;
  color: var(--foreground-muted);
  line-height: 1.6;
}

/* Bottom CTA */
.product-bottom-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-bottom-cta .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.3;
}

.product-bottom-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.product-bottom-cta p {
  font-size: 1.05rem;
  color: var(--foreground-muted);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.product-bottom-cta .buy-actions {
  justify-content: center;
  position: relative;
  z-index: 1;
}

.product-bottom-cta .store-badges {
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }

  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 120px 0 60px;
  }

  .quick-features {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .variant-cards {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .access-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge {
    justify-content: center;
  }

  .buy-actions {
    flex-direction: column;
  }

  .buy-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .access-methods {
    grid-template-columns: 1fr;
  }
}
