/* ============================================
   IPTV Xtream - Product Page Styles
   Subscription/Product detail pages
   ============================================ */

/* ─────────────────────────────────────────
   Product Hero Section
   ───────────────────────────────────────── */

.product-hero {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Product Info */
.product-info {
  padding-right: var(--space-8);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.product-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.product-rating .stars {
  color: #facc15;
  font-size: var(--text-lg);
  letter-spacing: 2px;
}

.product-rating .rating-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.product-price .amount {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-price .currency {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
}

.product-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

/* Product Features List */
.product-features {
  margin-bottom: var(--space-8);
}

.product-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* VIP Product Features */
.product-features.vip li::before {
  background: var(--gradient-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.quantity-selector label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.quantity-input {
  width: 80px;
  padding: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  text-align: center;
}

.quantity-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Add to Cart Button */
.add-to-cart {
  width: 100%;
  padding: var(--space-5);
  font-size: var(--text-lg);
}

.product-category {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-primary);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.product-category strong {
  color: var(--text-secondary);
}

/* Product Sidebar Card */
.product-sidebar .card {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.product-sidebar h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.product-sidebar ul {
  margin-bottom: 0;
}

.product-sidebar li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.product-sidebar li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
}

/* ─────────────────────────────────────────
   Product Description Section
   ───────────────────────────────────────── */

.product-description-section {
  padding: var(--space-16) 0;
}

.product-description-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.product-description-section h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.product-description-section p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* ─────────────────────────────────────────
   Support Section
   ───────────────────────────────────────── */

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.support-card {
  text-align: center;
  padding: var(--space-8);
}

.support-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.support-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   VIP Product Specific Styles
   ───────────────────────────────────────── */

.product-hero.vip::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.product-hero.vip .product-price .amount {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-hero.vip .add-to-cart {
  background: var(--gradient-gold);
  color: var(--bg-primary);
}

.product-hero.vip .add-to-cart:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}

/* ─────────────────────────────────────────
   Responsive
   ───────────────────────────────────────── */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .product-info {
    padding-right: 0;
  }

  .product-sidebar .card {
    position: static;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: var(--space-8) 0;
  }

  .product-title {
    font-size: var(--text-3xl);
  }

  .product-price .amount {
    font-size: var(--text-4xl);
  }

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