/* Product Page Enhancements */

/* Enhanced hero section for product pages */
.product-hero {
  background: linear-gradient(to right, #0066ff, #5e9eff);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.product-hero h1, .product-hero p, .product-hero .hero-features {
  position: relative;
  z-index: 1;
}

.product-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.product-hero p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

.hero-feature svg {
  flex-shrink: 0;
}

.hero-feature span {
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-features {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .product-hero h1 {
    font-size: 2rem;
  }
}

/* Enhanced plan cards for product pages */
.product-plans {
  padding: 4rem 2rem;
  background: var(--bg);
}

.product-plans .grid {
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}

.product-plan {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--primary);
}

/* Product card styles */
.product-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Featured card styling for Asia regions */
.product-card.featured-card {
  border: 2px solid var(--primary);
}

/* Popular badge styling */
.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff6b00;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 0 8px;
  z-index: 2;
}

/* Region-specific info styling */
.region-info {
  background-color: rgba(0, 102, 255, 0.05);
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin: 0.75rem 0;
  border-left: 3px solid var(--primary);
  color: #444;
  line-height: 1.4;
}

/* Product grid layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* SEO heading styling */
.seo-heading {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
  text-align: left;
  background-color: rgba(0, 102, 255, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.seo-heading h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.seo-heading p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Sidebar filter */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-right: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Filter section header styling */
.filter-section-header {
  font-weight: 600;
  padding: 0.5rem 0;
  margin: 0.75rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.95rem;
}

/* Featured region styling */
.country-list label.featured-region {
  font-weight: 500;
  color: var(--primary);
}

.product-plan.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,102,255,0.2);
}

.product-plan.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent);
  color: white;
  padding: 8px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
  text-align: center;
}

/* Enhanced pricing display */
.product-price {
  text-align: center;
  margin: 1.5rem 0;
}

.product-price .original-price {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  display: block;
}

.product-price .current-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin: 0.5rem 0;
}

.product-price .savings {
  background: var(--discount);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

/* Enhanced features list */
.product-features {
  margin: 2rem 0;
}

.product-features h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.product-features ul {
  list-style: none;
  padding: 0;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.product-features svg {
  color: var(--discount);
  flex-shrink: 0;
}

/* PayPal button container */
.paypal-container {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.paypal-container h4 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.125rem;
}

.paypal-button-container {
  max-width: 300px;
  margin: 0 auto;
}

/* Trust indicators */
.trust-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.trust-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.trust-indicator svg {
  color: var(--discount);
}

/* Product guarantee section */
.product-guarantee {
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 800px;
  text-align: center;
  border: 1px solid var(--border);
}

.product-guarantee h3 {
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-guarantee svg {
  color: var(--discount);
}

.product-guarantee p {
  color: var(--muted);
  line-height: 1.6;
}

/* How it works section enhancement */
.how-it-works {
  background: var(--card);
  padding: 4rem 2rem;
  margin: 3rem 0;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h4 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step p {
  color: var(--muted);
  line-height: 1.5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .product-hero {
    padding: 3rem 1rem;
  }
  
  .product-hero h1 {
    font-size: 2.5rem;
  }
  
  .product-plans {
    padding: 3rem 1rem;
  }
  
  .product-plan.featured {
    transform: none;
  }
  
  .product-plan:hover {
    transform: none;
  }
  
  .product-price .current-price {
    font-size: 2rem;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product-guarantee {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }
}

/* Loading state for PayPal buttons */
.paypal-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  color: var(--muted);
}

.paypal-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}