/**
 * Modern Product Page - Mobile First
 * Simplified and clean design based on v0.app
 */

/* ============================================
   RESET & HIDE OLD ELEMENTS
   ============================================ */

/* Hide all default WooCommerce elements we're replacing */
.modern-product-page .woocommerce-product-gallery,
.modern-product-page .summary,
.modern-product-page .woocommerce-tabs,
.modern-product-page .related,
.modern-product-page .upsells,
.modern-product-page > .product_title,
.modern-product-page > .price,
.modern-product-page > .woocommerce-product-rating,
.modern-product-page > .woocommerce-product-details__short-description {
  display: none !important;
}

/* Reset product layout */
.modern-product-page {
  background: #f5f5f5 !important;
  padding: 0 !important;
  margin: 0 !important;
  padding-bottom: 200px !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.mp-hero-section {
  background: #ffffff;
  padding: 0;
  margin: 0 0 24px 0;
}

.mp-shipping-banner {
  background: #EA580C;
  color: #ffffff;
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 16px 16px 0;
  border-radius: 8px;
}

.mp-product-image {
  padding: 32px 24px;
  text-align: center;
}

.mp-product-image img {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.mp-product-info {
  padding: 0 20px 24px;
}

.mp-category {
  font-size: 12px;
  font-weight: 600;
  color: #3F880B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.mp-title {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  line-height: 1.2 !important;
  margin: 0 0 8px 0 !important;
}

.mp-subtitle {
  font-size: 14px;
  color: #666666;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.mp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.mp-stars {
  display: flex;
  gap: 2px;
}

.mp-star {
  font-size: 18px;
  color: #e0e0e0;
}

.mp-star.filled {
  color: #3F880B;
}

.mp-rating-number {
  font-weight: 700;
  color: #000000;
  font-size: 16px;
}

.mp-rating-count {
  font-size: 14px;
  color: #666666;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.mp-main-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px;
}

.mp-section {
  margin-bottom: 24px;
}

.mp-section-label {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 12px 0;
}

.mp-section-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin: 0 0 16px 0 !important;
}

.mp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mp-view-all {
  font-size: 14px;
  font-weight: 600;
  color: #3F880B;
  text-decoration: none;
}

/* ============================================
   VARIANT SELECTOR
   ============================================ */

.mp-variant-selector {
  display: flex;
  gap: 8px;
  background: #f0f0f0;
  padding: 4px;
  border-radius: 50px;
  width: fit-content;
}

.mp-variant-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s;
}

.mp-variant-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================
   PRICE BLOCK
   ============================================ */

.mp-price-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  margin-bottom: 24px;
}

.mp-price-label {
  font-size: 11px;
  font-weight: 700;
  color: #666666;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}

.mp-price-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mp-price {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #EA580C !important;
  line-height: 1 !important;
}

.mp-price .amount,
.mp-price ins,
.mp-price .woocommerce-Price-amount {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #EA580C !important;
  text-decoration: none !important;
}

.mp-price del {
  font-size: 16px !important;
  color: #999999 !important;
  margin-left: 8px;
}

.mp-discount {
  background: #3F880B;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: auto;
}

.mp-product-details {
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.mp-product-details p {
  font-size: 12px;
  color: #666666;
  margin: 0;
}

.mp-loyalty {
  background: rgba(63, 136, 11, 0.05);
  border: 1px solid rgba(63, 136, 11, 0.2);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.mp-loyalty-label {
  font-size: 11px;
  color: #666666;
  margin: 0 0 2px 0;
}

.mp-loyalty-value {
  font-size: 13px;
  font-weight: 700;
  color: #3F880B;
  margin: 0;
}

/* ============================================
   BENEFITS
   ============================================ */

.mp-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-benefit-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mp-benefit-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.mp-benefit-content {
  flex: 1;
}

.mp-benefit-title {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 4px 0;
}

.mp-benefit-desc {
  font-size: 13px;
  color: #666666;
  margin: 0;
  line-height: 1.4;
}

/* ============================================
   REVIEWS
   ============================================ */

.mp-reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-review-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #f0f0f0;
}

.mp-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mp-reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

.mp-verified {
  font-size: 11px;
  font-weight: 600;
  color: #3F880B;
}

.mp-review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.mp-review-stars .mp-star {
  font-size: 14px;
}

.mp-review-text {
  font-size: 13px;
  color: #666666;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   ACCORDION
   ============================================ */

.mp-accordion-heading {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 12px 0 !important;
}

.mp-accordion-item {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  margin-bottom: 8px;
  overflow: hidden;
}

.mp-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  text-align: left;
  cursor: pointer;
}

.mp-accordion-icon {
  font-size: 12px;
  color: #666666;
  transition: transform 0.2s;
}

.mp-accordion-item.active .mp-accordion-icon {
  transform: rotate(180deg);
}

.mp-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mp-accordion-item.active .mp-accordion-content {
  max-height: 1000px;
}

.mp-accordion-inner {
  padding: 0 16px 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
}

/* ============================================
   STICKY CART BAR
   ============================================ */

.mp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 16px;
}

.mp-sticky-content {
  max-width: 700px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mp-sticky-left {
  flex: 1;
}

.mp-sticky-label {
  font-size: 11px;
  color: #666666;
  margin: 0 0 2px 0;
}

.mp-sticky-price {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #3F880B !important;
  margin: 0 !important;
}

.mp-sticky-price .amount {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #3F880B !important;
}

.mp-sticky-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 8px;
}

.mp-qty-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  font-weight: 700;
  color: #666666;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.mp-qty-value {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  min-width: 24px;
  text-align: center;
}

.mp-sticky-bar .cart {
  max-width: 700px;
  margin: 0 auto 12px;
}

.mp-add-to-cart-btn {
  width: 100% !important;
  background: #3F880B !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: all 0.2s !important;
}

.mp-add-to-cart-btn:hover {
  background: #357a09 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(63, 136, 11, 0.3);
}

.mp-trust-badges {
  text-align: center;
  font-size: 11px;
  color: #666666;
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 640px) {
  .mp-shipping-banner {
    margin: 20px 20px 0;
    font-size: 14px;
  }

  .mp-product-image {
    padding: 40px 32px;
  }

  .mp-product-image img {
    max-height: 400px;
  }

  .mp-product-info {
    padding: 0 24px 32px;
  }

  .mp-title {
    font-size: 36px !important;
  }

  .mp-main-content {
    padding: 0 20px;
  }
}

@media (min-width: 768px) {
  .mp-product-image img {
    max-height: 450px;
  }

  .mp-title {
    font-size: 40px !important;
  }

  .mp-sticky-bar {
    padding: 20px;
  }

  .mp-add-to-cart-btn {
    padding: 16px 24px !important;
    font-size: 16px !important;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.mp-benefit-card,
.mp-review-card {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.mp-benefit-card:nth-child(1) { animation-delay: 0.1s; }
.mp-benefit-card:nth-child(2) { animation-delay: 0.2s; }
.mp-benefit-card:nth-child(3) { animation-delay: 0.3s; }

.mp-review-card:nth-child(1) { animation-delay: 0.1s; }
.mp-review-card:nth-child(2) { animation-delay: 0.2s; }
.mp-review-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
