:root {
  --green-primary: #14B8A6;
  --green-dark: #0F766E;
  --green-medium: #2DD4BF;
  --green-light: #99F6E4;
  --green-pale: #F0FDFA;
  --white: #FFFFFF;
  --gray-light: #F8FAFC;
  --gray-text: #334155;
  --gray-dark: #1E293B;
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-dark);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--green-light);
  box-shadow: 0 2px 20px rgba(20, 184, 166, 0.1);
  padding: 15px 0;
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-size: 1.5rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
}
.logo span { color: var(--green-primary); }
.nav-link { font-weight: 600; color: var(--gray-dark); transition: 0.3s; }
.nav-link:hover { color: var(--green-primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
  border: 2px solid transparent;
  transition: 0.3s;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.6);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--green-primary);
  color: var(--green-primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

/* Footer */
footer {
  text-align: center; padding: 40px 0; font-size: 0.9rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  color: var(--white);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 25px; right: 25px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff; width: 65px; height: 65px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 35px; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 1000; animation: pulse 2s infinite; border: 3px solid var(--white);
}
.whatsapp-float:hover {
  transform: scale(1.1); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

/* Product modal shared */
.product-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px); z-index: 2000; align-items: center;
  justify-content: center; padding: 20px;
}
.product-modal-overlay.open { display: flex; }
.product-modal {
  background: var(--white); border-radius: 20px; width: 100%; max-width: 460px;
  max-height: 92vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.25s ease-out; position: relative;
}
.product-modal .modal-close {
  position: absolute; top: 12px; right: 16px; background: rgba(0,0,0,0.45);
  color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; z-index: 5; display: flex;
  align-items: center; justify-content: center; transition: 0.2s; line-height: 1;
}
.product-modal .modal-close:hover { background: rgba(0,0,0,0.7); }
.product-modal-img {
  width: 100%; height: 260px; overflow: hidden; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
}
.product-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-img .placeholder { font-size: 4.5rem; color: var(--green-light); opacity: 0.35; }
.product-modal-body { padding: 22px 24px; }
.product-modal-body .modal-cat {
  font-size: 0.78rem; font-weight: 700; color: var(--green-primary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.product-modal-body .modal-name { font-size: 1.4rem; font-weight: 800; color: var(--gray-dark); margin-bottom: 6px; }
.product-modal-body .modal-desc { color: var(--gray-text); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.6; }
.modal-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-meta .modal-price { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); }
.btn-wpp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: 0.3s; text-decoration: none; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-wpp:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); }

/* Product badge */
.catalog-badge { padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }
.catalog-badge.in { background: #D1FAE5; color: #065F46; }
.catalog-badge.out { background: #FEE2E2; color: #991B1B; }

/* Spinner */
.spinner {
  border: 3px solid var(--green-light);
  border-top-color: var(--green-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media(max-width: 768px) {
  .nav { flex-direction: column; gap: 15px; }
  .nav-actions { flex-wrap: wrap; justify-content: center; }
}
@media(max-width: 480px) {
  .product-modal-img { height: 200px; }
  .product-modal-body { padding: 16px 18px; }
}
