/* Modern Product Page - Bewakoof/Myntra Style */

/* Typography */
.product-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  margin-bottom: 1rem;
}

.price-main {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #d32f2f;
  margin-bottom: 1.5rem;
}

/* Gallery Modern */
.product-gallery {
  position: relative;
}

.main-gallery {
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  background: #f8fafc;
}

.main-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs-container {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.thumb-modern {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.thumb-modern:hover, .thumb-modern.active {
  border-color: #2563eb;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  transform: scale(1.1);
}

/* Badges */
.badges-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge-custom {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 25px;
}

/* Feature Icons Improved */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: default;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-color: #2563eb;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 1.25rem;
}

.feature-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.4;
}

/* Attributes Modern */
.attributes-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.attributes-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.25rem;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  font-size: 1rem;
}

.attr-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.attr-label {
  font-weight: 600;
  color: #64748b;
  font-size: 0.95rem;
}

.attr-value {
  font-weight: 600;
  color: #1e293b;
}

/* Size Selector */
.size-selector {
  margin-bottom: 2rem;
}

.size-selector label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  display: block;
}

.btn-size {
  min-width: 50px;
  height: 50px;
  margin: 0 0.25rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid #e5e7eb;
}

.btn-size:hover, .btn-size.active {
  border-color: #2563eb;
  background-color: #dbeafe;
  transform: scale(1.05);
}

/* CTA Button Modern */
.btn-buy-modern {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1.25rem 3rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-buy-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Accordion Modern */
.modern-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.accordion-header-modern {
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header-modern:hover {
  background: #f8fafc;
}

.accordion-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e293b;
}

.accordion-subtitle {
  color: #64748b;
  font-size: 0.9rem;
}

.accordion-icon-modern {
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
}

.accordion-icon-modern.rotated {
  transform: rotate(180deg);
}

.accordion-content-modern {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafbfc;
  padding: 0 2rem;
}

.accordion-content-modern.expanded {
  max-height: 400px;
  padding: 1.5rem 2rem;
}

.content-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

/* Reviews Modern */
.reviews-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.reviews-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.review-form {
  padding: 2rem;
}

.star-rating-modern {
  direction: rtl;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  font-size: 28px;
  margin-bottom: 1.5rem;
}

.star-rating-modern input {
  display: none;
}

.star-rating-modern label {
  cursor: pointer;
  color: #e5e7eb;
  transition: color 0.2s ease;
}

.star-rating-modern input:checked ~ label,
.star-rating-modern label:hover,
.star-rating-modern label:hover ~ label {
  color: #fbbf24;
}

.form-floating-modern input,
.form-floating-modern textarea {
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 1rem;
  transition: border-color 0.2s ease;
}

.form-floating-modern input:focus,
.form-floating-modern textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit-review {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-submit-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

/* Related Products Modern */
.related-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.related-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.related-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  margin: 1rem;
  line-height: 1.4;
}

.related-price {
  font-weight: 800;
  font-size: 1.25rem;
  color: #d32f2f;
  margin: 0 1rem 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-gallery {
    height: 350px;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .attributes-grid {
    grid-template-columns: 1fr;
  }
  
  .review-form {
    padding: 1.5rem;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

