* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #fcf9f2;
  color: #1e1e1e;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0ece1; }
::-webkit-scrollbar-thumb { background: #b8860b; border-radius: 10px; }

/* HEADER */
.header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 200;
  border-bottom: 2px solid #f0e6d2;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo {
  font-size: 1.9rem; font-weight: 700; color: #1e3a1e;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif;
}
.logo i { color: #b8860b; }
.logo span { color: #b8860b; }
.navbar { display: flex; gap: 32px; }
.navbar a { text-decoration: none; color: #2d2d2d; font-weight: 500; transition: color 0.2s; font-size: 1rem; }
.navbar a:hover { color: #b8860b; }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-contact {
  background: #e6f0e6; padding: 8px 20px; border-radius: 40px;
  font-weight: 600; color: #1e3a1e; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px; border: 1px solid #cfe2cf;
}
.header-contact i { color: #25D366; font-size: 1.2rem; }

.cart-toggle {
  position: relative;
  background: #1e3a1e;
  color: white;
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(30,58,30,0.2);
}
.cart-toggle:hover { background: #2b5e2b; transform: scale(1.05); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: #b8860b;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

/* HERO */
.hero { padding: 70px 0 60px; background: linear-gradient(135deg, #f8f5ed 0%, #fff9f0 100%); border-bottom: 1px solid #ede6d8; }
.hero-content { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.hero-text { flex: 1.2; }
.hero-text h1 { font-size: 3.3rem; font-weight: 700; line-height: 1.15; color: #1e3a1e; font-family: 'Poppins', sans-serif; }
.highlight { color: #b8860b; position: relative; display: inline-block; }
.hero-text p { font-size: 1.2rem; margin: 24px 0 32px; color: #4a4a4a; max-width: 560px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: #1e3a1e; color: white; padding: 16px 36px; border-radius: 60px;
  text-decoration: none; font-weight: 600; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 18px rgba(30,58,30,0.15);
}
.btn-primary:hover { background: #2b5e2b; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30,58,30,0.2); }
.btn-whatsapp {
  background: #25D366; color: white; padding: 16px 36px; border-radius: 60px;
  text-decoration: none; font-weight: 600; display: inline-flex; align-items: center;
  gap: 12px; transition: all 0.25s; box-shadow: 0 8px 18px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,0.35); }
.btn-whatsapp.large { font-size: 1.3rem; padding: 18px 48px; }

.hero-image {
  flex: 0.8; border-radius: 40px; overflow: hidden;
  box-shadow: 0 40px 50px -20px rgba(0,0,0,0.2);
  background: #eae2d3; min-height: 280px;
}
.hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* SECTION TITLES */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 2.6rem; color: #1e3a1e; font-weight: 700; font-family: 'Poppins', sans-serif; }
.section-title p { font-size: 1.15rem; color: #6b6b6b; }

/* PRODUCTS */
.products { padding: 80px 0; background: #ffffff; }
.category { margin-bottom: 60px; }
.category-title {
  font-size: 1.9rem; color: #1e3a1e; margin-bottom: 28px;
  border-left: 6px solid #b8860b; padding-left: 20px;
  display: flex; align-items: center; gap: 12px;
  font-family: 'Poppins', sans-serif;
}
.category-title i { color: #b8860b; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.product-card {
  background: #fefcf5; border-radius: 28px; padding: 22px 20px 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04); border: 1px solid #ede6d8;
  transition: all 0.3s ease; text-align: center;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 28px 38px -12px rgba(0,0,0,0.12); border-color: #d4c5a9; }
.product-img {
  height: 170px; border-radius: 20px; overflow: hidden; margin-bottom: 18px;
  background: #f0e8da; display: flex; align-items: center; justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card h4 { font-size: 1.3rem; margin-bottom: 8px; color: #1e3a1e; font-weight: 600; }
.price { font-weight: 700; color: #b8860b; margin-bottom: 16px; font-size: 1.15rem; }

/* QUANTITY CONTROL */
.qty-control {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 12px;
  border: 2px solid #e0d5c2; border-radius: 50px;
  overflow: hidden; background: #fff;
  width: fit-content; margin-left: auto; margin-right: auto;
}
.qty-btn {
  background: transparent; border: none; cursor: pointer;
  width: 38px; height: 38px;
  font-size: 1.2rem; font-weight: 700;
  color: #1e3a1e; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: #f0e8da; }
.qty-input {
  width: 52px; height: 38px; text-align: center;
  border: none; border-left: 1px solid #e0d5c2; border-right: 1px solid #e0d5c2;
  font-weight: 700; font-size: 1rem; color: #1e3a1e;
  background: #fff;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.order-btn {
  background: transparent; border: 2px solid #1e3a1e; color: #1e3a1e;
  padding: 12px 24px; border-radius: 50px; font-weight: 600; cursor: pointer;
  transition: all 0.25s; width: 100%; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: auto;
}
.order-btn:hover { background: #1e3a1e; color: white; border-color: #1e3a1e; }
.order-btn.added { background: #25D366; color: white; border-color: #25D366; }

/* PAYMENTS */
.payments { padding: 70px 0; background: #f8f5ed; border-top: 1px solid #ede6d8; border-bottom: 1px solid #ede6d8; }
.payment-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.payment-card {
  background: white; padding: 18px 32px; border-radius: 60px;
  font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.02); border: 1px solid #e2dcd0;
  transition: all 0.2s; color: #1e3a1e; min-width: 170px; justify-content: center;
}
.payment-card i { font-size: 1.6rem; color: #b8860b; }
.payment-card:hover { border-color: #b8860b; background: #fffdf8; }

/* CONTACT */
.contact { padding: 70px 0; background: #1e3a1e; color: white; }
.contact-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 32px; }
.contact-text h2 { font-size: 2.3rem; margin-bottom: 12px; font-family: 'Poppins', sans-serif; }
.contact-text p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 28px; }
.contact-icon i { font-size: 7rem; opacity: 0.2; color: #b8860b; }

/* FOOTER */
.footer { text-align: center; padding: 32px 0; background: #0f1f0f; color: #bbbbbb; font-size: 0.95rem; }
.footer i { color: #b8860b; margin: 0 4px; }

/* ========== CART PANEL ========== */
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 998;
}
.cart-backdrop.show { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: 400px; max-width: 92vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.2,0.9,0.3,1.05);
  z-index: 999;
  display: flex; flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px;
  border-bottom: 2px solid #f0e6d2;
  background: #fefcf5;
}
.cart-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem; color: #1e3a1e;
  display: flex; align-items: center; gap: 10px;
}
.cart-header h3 i { color: #b8860b; }
.cart-close {
  background: transparent; border: none;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer; color: #666;
  width: 36px; height: 36px; border-radius: 50%;
  transition: background 0.2s;
}
.cart-close:hover { background: #f0e8da; }

.cart-body {
  flex: 1; overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center; color: #999;
  font-size: 1rem; padding: 40px 20px; line-height: 1.7;
}
.cart-empty small { font-size: 0.85rem; color: #b8860b; }

.cart-items { list-style: none; }
.cart-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0e8da;
  align-items: center;
}
.cart-item-info { flex: 1; }
.cart-item-info h5 {
  font-size: 0.95rem; color: #1e3a1e;
  margin-bottom: 2px; font-weight: 600;
}
.cart-item-info .cart-item-price {
  font-size: 0.8rem; color: #b8860b; font-weight: 600;
}
.cart-item-qty {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid #e0d5c2; border-radius: 30px;
  overflow: hidden; background: #fefcf5;
}
.cart-item-qty button {
  background: transparent; border: none;
  width: 28px; height: 28px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; color: #1e3a1e;
}
.cart-item-qty button:hover { background: #f0e8da; }
.cart-item-qty span {
  min-width: 26px; text-align: center;
  font-weight: 700; font-size: 0.85rem; color: #1e3a1e;
}
.cart-item-total {
  font-weight: 700; font-size: 0.9rem;
  color: #1e3a1e; min-width: 78px; text-align: right;
}
.cart-item-remove {
  background: transparent; border: none;
  color: #c0392b; cursor: pointer;
  font-size: 0.95rem; padding: 4px 6px;
  border-radius: 50%; transition: background 0.2s;
}
.cart-item-remove:hover { background: #fdecea; }

.cart-footer {
  padding: 20px 24px 24px;
  border-top: 2px solid #f0e6d2;
  background: #fefcf5;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.cart-total-row strong { color: #1e3a1e; font-size: 1.4rem; font-family: 'Poppins', sans-serif; }
.cart-min-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: #b8860b;
  margin-bottom: 10px; font-weight: 500;
}
.cart-min-row.met { color: #1e7a3c; }
.cart-min-row.met i::before { content: "\f058"; }

.cart-progress {
  height: 6px; background: #ede6d8;
  border-radius: 10px; overflow: hidden;
  margin-bottom: 16px;
}
.cart-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #b8860b, #25D366);
  transition: width 0.4s ease;
  border-radius: 10px;
}

.place-order-btn {
  width: 100%;
  background: #25D366; color: white;
  border: none; padding: 16px;
  border-radius: 50px;
  font-weight: 700; font-size: 1.05rem;
  cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 18px rgba(37,211,102,0.25);
  margin-bottom: 10px;
}
.place-order-btn:hover:not(:disabled) {
  background: #1da851; transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,211,102,0.35);
}
.place-order-btn:disabled {
  background: #ccc; cursor: not-allowed;
  box-shadow: none; opacity: 0.75;
}
.place-order-btn:disabled:hover { transform: none; background: #ccc; }

.clear-cart-btn {
  width: 100%; background: transparent;
  border: 2px solid #e0d5c2; color: #666;
  padding: 10px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
}
.clear-cart-btn:hover { border-color: #c0392b; color: #c0392b; background: #fdecea; }

/* POPUP */
.popup {
  position: fixed; bottom: 28px; left: 28px; background: #ffffff;
  border-radius: 70px; box-shadow: 0 24px 48px rgba(0,0,0,0.18);
  padding: 10px 28px 10px 18px; display: flex; align-items: center; gap: 14px;
  border-left: 6px solid #25D366; transform: translateY(130px); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2,0.9,0.3,1.1), opacity 0.35s;
  z-index: 1000; max-width: 400px; pointer-events: none;
  background: #fffcf7; border: 1px solid #e8ddcd;
}
.popup.show { transform: translateY(0); opacity: 1; }
.popup-content { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.popup-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #b8860b; background: #f0e8da; }
.popup-flag { font-size: 1.6rem; line-height: 1; margin-left: 4px; }
.popup p { font-size: 0.95rem; margin: 0; font-weight: 500; color: #2d2d2d; }
.popup strong { color: #1e3a1e; }
.popup-icon { color: #25D366; font-size: 1.6rem; margin-left: 4px; }

/* ANIMATIONS */
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.9s forwards; }
.fade-in-right { opacity: 0; transform: translateX(40px); animation: fadeInRight 1s forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }
.delay-6 { animation-delay: 0.9s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { to { opacity: 1; transform: translateX(0); } }

/* RESPONSIVE */
@media (max-width: 900px) { .hero-text h1 { font-size: 2.6rem; } }
@media (max-width: 768px) {
  .nav-container { flex-direction: column; gap: 14px; }
  .navbar { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .hero-content { flex-direction: column-reverse; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .contact-content { flex-direction: column; text-align: center; }
  .popup { left: 16px; right: 16px; max-width: none; bottom: 16px; border-radius: 50px; padding: 8px 20px 8px 14px; }
  .popup-avatar { width: 40px; height: 40px; }
  .payment-card { padding: 14px 22px; font-size: 0.9rem; min-width: 140px; }
  .cart-panel { width: 100%; max-width: 100vw; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 2rem; }
  .category-title { font-size: 1.5rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-card { padding: 16px 12px; }
  .product-img { height: 120px; }
}
/* ============================================================
   CUSTOMER DETAILS MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1200;
  backdrop-filter: blur(3px);
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%) scale(0.95);
  width: 560px; max-width: 94vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  z-index: 1201;
  opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.2,0.9,0.3,1.05), opacity 0.3s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1; pointer-events: auto;
}

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px;
  background: linear-gradient(135deg, #1e3a1e, #2b5e2b);
  color: white;
}
.modal-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  display: flex; align-items: center; gap: 10px;
  color: white;
}
.modal-header h3 i { color: #b8860b; }
.modal-close {
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  font-size: 1.6rem; line-height: 1;
  width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.3); }

.modal-form {
  padding: 22px 26px 26px;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
  color: #1e3a1e; margin-bottom: 6px;
}
.form-group label i { color: #b8860b; width: 16px; }
.form-group label span { color: #c0392b; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0d5c2;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e1e1e;
  background: #fefcf5;
  transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b8860b;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(184,134,11,0.12);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #c0392b;
  background: #fdecea;
}
.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.form-error {
  display: block;
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 16px;
  font-weight: 500;
}

.modal-order-summary {
  background: #f8f5ed;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 8px 0 18px;
  border: 1px dashed #d4c5a9;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.95rem;
  padding: 4px 0;
}
.summary-row strong { color: #1e3a1e; }

.modal-submit {
  width: 100%;
  background: #25D366;
  color: white; border: none;
  padding: 16px; border-radius: 50px;
  font-weight: 700; font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 18px rgba(37,211,102,0.25);
}
.modal-submit:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,211,102,0.35);
}

@media (max-width: 560px) {
  .modal-header { padding: 18px 20px; }
  .modal-header h3 { font-size: 1.05rem; }
  .modal-form { padding: 18px 20px 22px; }
  .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; font-size: 0.9rem; }
}