/* =============================== GLOBAL HELPERS =============================== */

body {
  font-family: "Poppins", sans-serif;
}

.section.light {
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}

/* =============================== PRODUCT PAGE STYLES =============================== */

/* ---- Product Details Layout ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Product Image Gallary ---- */
/* IMAGE COLUMN */
.product-images {
  width: 100%;
  max-width: 520px;
}

/* MAIN IMAGE — BIG */
.main-image {
  width: 100%;
  height: 520px;
  background: #fafafa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* THUMBNAIL STRIP BELOW */
.thumbnail-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

/* THUMBNAILS */
.thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
}

.thumb.active,
.thumb:hover {
  border-color: #ff9900;
}

/* ---- Product Info ---- */
.product-info h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.short-desc {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ---- Price Box ---- */
.apl-price {
  background: #f6fff3;
  border: 1px solid #dff2d6;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 22px;
}

.price-big {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2e7d32;
}

.per-unit {
  color: #666;
  font-size: 0.95rem;
}

.mrp {
  text-decoration: line-through;
  color: #999;
  margin-right: 6px;
}

.discount {
  color: #c62828;
  font-weight: 600;
}

/* ---- Options ---- */
.product-options {
  margin-bottom: 14px;
}

.product-options label {
  display: inline-block;
  margin-bottom: 6px;
}

.product-options select,
.product-options input {
  width: 160px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* ---- Total ---- */
.product-info p strong {
  font-size: 1.2rem;
}

/* ---- Action buttons ---- */
.product-actions {
  display: flex;
  gap: 14px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.product-actions button {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.add-to-cart-btn {
  background: #ff9800;
  color: #fff;
}

.add-to-cart-btn:hover {
  background: #fb8c00;
}

.order-btn {
  background: #2e7d32;
  color: #fff;
}

.order-btn:hover {
  background: #256528;
}

/* ---- Delivery Note ---- */
.delivery-note {
  margin-top: 10px;
  color: #2e7d32;
  font-size: 0.95rem;
}

/*---------- RESPONSIVE LAYOUT ----------*/
@media (max-width: 900px) {
  .product-images {
    min-height: auto;
    padding: 20px;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }  
}

/* =============================== PRODUCT DETAILS =============================== */
.product-bullets {
  list-style: disc;
  padding-left: 1.2rem;
}

.product-bullets li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.compare-strip {
  margin-top: 1rem;
  padding: 0.7rem;
  background: #f9f9f9;
  border-left: 4px solid #2e7d32;
  font-size: 0.95rem;
}

.quick-facts {
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

/* =============================== FAQs =============================== */
.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.8rem 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: bold;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.6rem;
  line-height: 1.6;
  color: #444;
}

/* CTA */
.faq-cta {
  margin-top: 1.2rem;
  padding: 1rem;
  background: #f9f9f9;
  text-align: center;
  border-radius: 6px;
}

.faq-whatsapp-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}

/* =============================== SIMILAR PRODUCTS =============================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.product-card img {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.product-card p {
  color: #2e7d32;
  font-weight: 600;
}

/* =============================== SELECT VARIANT =============================== */
/* Desktop */
.variant-section {
  margin-top: 24px;
}

.variant-section h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* Variant Card Style*/
.variant-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;

  display: block;
}

.variant-card:hover {
  border-color: #2e7d32;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* hide radio */
.variant-card input {
  display: none;
}

.variant-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.variant-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.variant-price {
  font-weight: 700;
  color: #2e7d32;
}

.variant-price .mrp {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  margin-left: 6px;
}

.variant-price .off {
  color: #c62828;
  font-size: 0.8rem;
  margin-left: 6px;
}

.price-per-liter {
  font-size: 0.8rem;
  color: #666;
}

/* Selected variant state */
.variant-card input:checked + .variant-content {
  border-radius: 10px;
}

.variant-card input:checked + .variant-content::before {
  content: "";
}

.variant-card:has(input:checked) {
  border-color: #2e7d32;
  background: #f6fff3;
}

/* BEST SELLER */
.variant-card {
  position: relative;
  overflow: visible;
  padding-top: 30px;
}

.top-ribbon {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  left: 12px;

  background: linear-gradient(135deg, #ff9800, #ffb300);
  color: #fff;

  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;

  padding: 6px 12px;
  border-radius: 6px 6px 3px 3px;

  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 4;
  white-space: nowrap;
}

.variant-card.popular {
  border: 2px solid #4caf50;
  background: #f6fff6;
}

/*---------- RESPONSIVE VARIANT LAYOUT ----------*/
@media (max-width: 768px) {

  .variant-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    padding-top: 22px;
  }

  .variant-card {
    min-width: 160px;
    flex-shrink: 0;
  }

  .variant-grid::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .variant-grid {
    padding-top: 22px;
  }

  .variant-card {
    padding-top: 34px;
  }

  .top-ribbon {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ================= SIMILAR PRODUCTS - HORIZONTAL SLIDER ================= */

.product-grid {
  display: flex;
  gap: 20px;

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 10px;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide ugly scrollbar (optional) */
.product-grid::-webkit-scrollbar {
  height: 6px;
}

.product-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Card size fixed so it scrolls horizontally */
.product-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

/* =============================== MOBILE CART BAR =============================== */
.mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2f8733;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
}

.cart-bar-btn {
  background: #fff;
  color: #2e7d32;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.cart-bar-btn:hover{
  background-color: #fff;
}

/* =============================== MOBILE TWEAKS =============================== */
@media (max-width: 480px) {
  .price-big {
    font-size: 1.9rem;
  }

  .product-actions button {
    min-width: 100%;
  }

  .product-card img {
    height: 150px;
  }
}

