/* Modern Product Page Styles - Inspired by Industry Leaders */

/* ========================================
   1. HERO SECTION & PRODUCT HEADER
   ======================================== */
.product-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 40px 0;
  border-bottom: 1px solid #e1e8ed;
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.product-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.trust-badges {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: white;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 0.9rem;
  color: #495057;
}

.trust-badge i {
  color: #28a745;
  font-size: 1.1rem;
}

/* ========================================
   2. PRODUCT CONFIGURATION CARD
   ======================================== */
.product-configurator {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 30px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .product-configurator {
    position: sticky;
    top: 20px;
  }
}

.price-display {
  background: linear-gradient(135deg, #3b5d50 0%, #2c4940 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
}

.price-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.price-amount small {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
}

.price-unit {
  font-size: 0.85rem;
  opacity: 0.8;
}

.price-calculation {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.price-breakdown {
  text-align: center;
}

.price-breakdown-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-breakdown-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 5px;
}

/* ========================================
   3. CONFIGURATION OPTIONS
   ======================================== */
.config-section {
  margin-bottom: 30px;
}

.config-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.option-card {
  position: relative;
  padding: 15px;
  background: #f8f9fa;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.option-card.selected {
  background: white;
  border-color: #3b5d50;
  box-shadow: 0 3px 10px rgba(59, 93, 80, 0.15);
}

.option-card.selected::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #3b5d50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.option-card input[type="radio"] {
  display: none;
}

.option-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.option-card-subtitle {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}

.quantity-input-group {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  border: 2px solid #e1e8ed;
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #6c757d;
  font-size: 1.2rem;
}

.quantity-btn:hover {
  background: #f8f9fa;
  color: #333;
}

.quantity-input {
  width: 80px;
  text-align: center;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 8px;
}

.quantity-presets {
  display: flex;
  gap: 8px;
}

.quantity-preset {
  padding: 8px 15px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.quantity-preset:hover {
  background: #3b5d50;
  color: white;
  border-color: #3b5d50;
}

/* ========================================
   4. PRODUCT FEATURES
   ======================================== */
.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
  padding: 40px 0;
  border-top: 1px solid #e1e8ed;
  border-bottom: 1px solid #e1e8ed;
}

.feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f0f4f7 0%, #e8ecef 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.3rem;
  color: #3b5d50;
}

.feature-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.feature-content p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

/* ========================================
   5. DELIVERY TIMELINE
   ======================================== */
.delivery-timeline {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 20px;
  border-radius: 12px;
  margin-top: 25px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 20px;
}

.timeline-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #dee2e6;
  z-index: 0;
}

.timeline-step {
  position: relative;
  text-align: center;
  flex: 1;
  z-index: 1;
}

.timeline-step-icon {
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.timeline-step.active .timeline-step-icon {
  background: #3b5d50;
  border-color: #3b5d50;
  color: white;
}

.timeline-step.completed .timeline-step-icon {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.timeline-step-label {
  font-size: 0.85rem;
  color: #6c757d;
}

.timeline-step-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-top: 5px;
}

/* ========================================
   6. ADD TO CART SECTION
   ======================================== */
.add-to-cart-section {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid #e1e8ed;
  padding: 20px 0;
  margin-top: 40px;
  z-index: 100;
}

.add-to-cart-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.final-price {
  flex: 1;
}

.final-price-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 5px;
}

.final-price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

.btn-add-to-cart {
  background: linear-gradient(135deg, #3b5d50 0%, #2c4940 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 93, 80, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 93, 80, 0.4);
}

.btn-add-to-cart i {
  font-size: 1.2rem;
}

/* ========================================
   7. PRODUCT GALLERY
   ======================================== */
.product-gallery-modern {
  position: sticky;
  top: 100px;
}

.gallery-main {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.gallery-main img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  padding: 20px;
}

.gallery-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ff4757;
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-thumb {
  background: white;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: #3b5d50;
  transform: scale(1.05);
}

.gallery-thumb img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  padding: 10px;
}

/* ========================================
   8. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .product-hero {
    padding: 20px 0;
  }
  
  .product-title {
    font-size: 1.6rem;
  }
  
  .product-subtitle {
    font-size: 0.95rem;
  }
  
  .trust-badges {
    gap: 10px;
  }
  
  .trust-badge {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .hero-price-preview {
    margin-top: 20px;
  }
  
  .product-configurator {
    margin-top: 0;
    padding: 20px;
  }
  
  .price-display {
    padding: 20px;
  }
  
  .price-amount {
    font-size: 2.2rem;
  }
  
  .option-cards {
    grid-template-columns: 1fr 1fr;
  }
  
  .quantity-selector {
    flex-direction: column;
    gap: 10px;
  }
  
  .quantity-presets {
    width: 100%;
    justify-content: space-between;
  }
  
  .timeline-steps {
    padding: 0 10px;
  }
  
  .timeline-step-label {
    font-size: 0.75rem;
  }
  
  .timeline-step-date {
    font-size: 0.8rem;
  }
  
  .product-features {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  
  .add-to-cart-section {
    padding: 15px 0;
  }
  
  .add-to-cart-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  
  .final-price-amount {
    font-size: 1.6rem;
  }
  
  .btn-add-to-cart {
    width: 100%;
    justify-content: center;
    padding: 15px 30px;
  }
  
  .product-gallery-modern {
    position: static;
    margin-bottom: 30px;
  }
  
  .gallery-main img {
    height: 350px;
  }
  
  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.4rem;
  }
  
  .trust-badges {
    flex-direction: column;
    align-items: stretch;
  }
  
  .trust-badge {
    justify-content: center;
  }
  
  .option-cards {
    grid-template-columns: 1fr;
  }
  
  .option-card {
    padding: 12px;
  }
  
  .timeline-steps {
    flex-direction: column;
    gap: 20px;
  }
  
  .timeline-steps::before {
    display: none;
  }
  
  .gallery-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   9. LOADING & ANIMATIONS
   ======================================== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

/* ========================================
   10. TOOLTIPS & HELP
   ======================================== */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #e1e8ed;
  border-radius: 50%;
  color: #6c757d;
  font-size: 0.75rem;
  cursor: help;
  margin-left: 5px;
}

.help-icon:hover {
  background: #3b5d50;
  color: white;
}

/* Tooltip */
.tooltip-modern {
  position: relative;
}

.tooltip-modern .tooltip-content {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-modern:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.tooltip-modern .tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}