html {
  font-size: clamp(14px, 1.2vw, 16px);
}

/* GENERAL BODY STYLES */
body {
  font-family: 'Poppins', sans-serif;
  background: #fdfbf6;
  color: #333;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/coconut_leaf.png") center/cover no-repeat;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

h2 {
  font-family: 'Playfair Display', serif;
  color: #2f5d3a;
  font-weight: 700;
  margin-bottom: 1rem;
}

:root {
  --green: #2E8B57;
  --dark-green: #2F4F2F;
  --brown: #6B4A2D;
  --cream: #FFF9EE;
  --muted: #777;
}

/* HEADER & NAVBAR */
.main-header {
  padding: 0;
}

.navbar-brand {
  margin-right: 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-brand {
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.brand-link:hover {
  opacity: 0.8;
  text-decoration: none;
  color: inherit;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #2f5d3a;
  margin-top: 5px;
  margin-bottom: 0;
}

.brand-tagline {
  color: #7a6a3d;
  font-size: 14px;
}

.main-logo {
  width: 100px;
}

.navbar-nav .nav-link {
  margin: 0 15px;
  font-weight: 500;
  color: #2f5d3a;
  font-size: 1.1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #c9a227;
}

.navbar-toggler {
  border-color: #2f5d3a;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(47, 93, 58, 0.7 )' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.header-nav a {
  margin: 0 10px;
  font-size: 17px;
  text-decoration: none;
  font-weight: 500;
  color: #2f5d3a;
}

.header-nav a:hover {
  color: #c9a227;
}

.header-right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right .search-box {
  width: 200px;
}

.cart-icon {
  position: sticky;
  top: 12px;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: transparent;
  border-radius: 8px;
  margin-bottom: 30px;
}

.cart-icon {
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.cart-icon:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

#cartCount {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #c9a227;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* 📱 MOBILE FIX */
/* MOBILE */
@media (max-width: 768px) {
  .header-row {
    flex-direction: column;
  }

  .header-brand {
    position: static;
    margin-bottom: 0.5rem;
  }

  .header-right {
    position: static;
    margin-top: 0.5rem;
    align-self: flex-end;
  }

  .header-nav a {
    margin: 0 10px;
    font-size: 17px;
  }

  .header-right .search-box {
    width: 150px;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 15px;
  }
  .navbar-nav .nav-link {
    padding: 10px 0;
  }
  .search-box {
    width: 150px;
  }
}

/* SEARCH */
.search-box {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* CART */
.cart-icon {
  position: relative;
  font-size: 22px;
  cursor: pointer;
}

.cart-icon span {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #3CB371;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* TITLE */
.page-title h1 {
  color: var(--dark-green);
  font-weight: 700;
}

.page-title p {
  color: var(--muted);
  max-width: 720px;
  margin: auto;
}



/* PRODUCT CARDS */
.info-pill {
  background:  #5A3E2B;
  color:#fff;
  padding: 12px;
  border-radius: 30px;
  font-weight: 600;
}

/* PRODUCT CARD */
.product-card {
  background:#fff;
  padding: 15px;
  border-radius: 12px;
  border:5px solid #5A3E2B;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* OFFER BADGE */
.offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #3CB371;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* PRICE SECTION */
.price-section {
  margin: 10px 0;
  min-height: 40px;
}

.price-size {
  color: #888;
  font-size: 12px;
  font-weight: normal;
  margin-left: 5px;
}

.original-price {
  color: #888;
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 8px;
}

.offer-price {
  color: #2F4F2F;
  font-weight: 700;
  font-size: 18px;
}

.regular-price {
  color: var(--green);
  font-weight: 600;
  font-size: 16px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
 background: linear-gradient(135deg, #f3ecd3, #fff8e1);
  color:#5A3E2B;
}

/* IMAGE SWAP */
.image-wrapper {
  position: relative;
  height: 260px;
  width: 100%;
  overflow: hidden; 
   border-radius: 10px;
  justify-content: center; /* centers horizontally */ 
  align-items: center; /* centers vertically */
   display: flex; /* enables flexbox */ 
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  transition: opacity 0.4s ease;

}

/* .img-hover {
  opacity: 0;
} */

/* FIRST IMAGE */
.img-main {
  opacity: 1;
  z-index: 1;
}

/* SECOND IMAGE */
.img-hover {
  opacity: 0;
  z-index: 2;
 
}

/* HOVER SWAP */
.product-card:hover .img-main {
  opacity: 0;
}

.product-card:hover .img-hover {
  opacity: 1;
  border-color: #5A3E2B;
}

/* TEXT */
.price {
  color: var(--green);
  font-weight: 600;
}

.note {
  font-size: 13px;
  color: var(--muted);
}

/* BUTTON */
.product-card button {
  margin-top: 10px;
  background: var(--green);
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 30px;
  transition: 0.3s ease;
}

.product-card button:hover {
  background: #256f48;
  transform: scale(1.03);
}

/* TOAST */
.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--green);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  display: none;
  z-index: 999;
}

/* ================= QUANTITY SELECTION MODAL ================= */
.modal-dialog.modal-sm {
  max-width: 400px;
  margin: 1.75rem auto;
}

.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #2E8B57, #6B4A2D);
  color: white;
  padding: 12px 20px;
  border-bottom: none;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  color: white;
  opacity: 0.8;
  font-size: 20px;
}

.btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 20px;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.product-info img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}

.product-info h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2E8B57;
}

.quantity-options {
  margin-bottom: 20px;
}

.quantity-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.quantity-option:hover {
  border-color: #2E8B57;
  background: #f0fff4;
  transform: translateY(-2px);
}

.quantity-option.selected {
  border-color: #2E8B57;
  background: linear-gradient(135deg, #e8f5e8, #f0fff4);
  box-shadow: 0 4px 12px rgba(46,139,87,0.15);
}

.quantity-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.quantity-size {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.quantity-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quantity-original-price {
  color: #6c757d;
  text-decoration: line-through;
  font-size: 12px;
}

.quantity-final-price {
  color: #2E8B57;
  font-weight: 700;
  font-size: 15px;
}

.quantity-offer-badge {
  background: #ff6b6b;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.bulk-order-section {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.bulk-order-section label {
  font-weight: 600;
  color: #856404;
  margin-bottom: 8px;
  display: block;
}

.bulk-order-section input {
  border-color: #ffc107;
}

.bulk-order-section .text-muted {
  color: #856404;
  font-size: 11px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafbfc;
}

.modal-footer .btn {
  padding: 8px 20px;
  font-weight: 500;
  border-radius: 8px;
}

.modal-footer .btn-primary {
  background: #2E8B57;
  border-color: #2E8B57;
}

.modal-footer .btn-primary:hover {
  background: #256f48;
  border-color: #256f48;
}

.modal-footer .btn-secondary {
  background: #6c757d;
  border-color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .modal-dialog.modal-sm {
    max-width: 95%;
    margin: 1rem auto;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .product-info {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .product-info img {
    width: 40px;
    height: 40px;
  }
  
  .quantity-option {
    padding: 10px 12px;
  }
  
  .quantity-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* floating wats app */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 24px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

.wa-float:hover {
  background: #20b358;
  color: white;
  transform: scale(1.1);
}

/* FAQ Cards */
.faq-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  height: 90px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Question */
.faq-card h6 {
  font-weight: 600;
  color: #1f5f3b;
  margin-bottom: 0;
}

/* Answer (hidden by default) */
.faq-card p {
  font-size: 14px;
  color: #444;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* Hover + Active state */
.faq-card:hover,
.faq-card.active {
  background: linear-gradient(135deg, #e8f5e9, #ffffff);
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

/* Show answer */
.faq-card:hover p,
.faq-card.active p {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
  .faq-card {
    height: auto;
    min-height: 120px;
  }
}