@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --secondary: #1F2937;
  --accent: #10B981;
  --background: #F3F4F6;
  --card-bg: #FFFFFF;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 0.5rem;
  --transition: all 0.25s ease;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
  /* compensate for fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

/* ─────────────────────────────────────────
   TOAST NOTIFICATIONS
───────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 380px;
  background-color: #1F2937;
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  font-size: 0.9rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  background-color: #059669;
}

.toast.error {
  background-color: #DC2626;
}

.toast.info {
  background-color: #2563EB;
}

.toast i {
  margin-right: 8px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   FLOATING CART BUTTON
───────────────────────────────────────── */
#floating-cart-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  background: var(--primary);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transition: var(--transition);
  text-decoration: none;
}

#floating-cart-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
}

#floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ─────────────────────────────────────────
   CHECKOUT CONFIRMATION MODAL
───────────────────────────────────────── */
#checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

#checkout-modal.modal-open {
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

#checkout-modal.modal-open .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6B7280;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #111;
}

.btn-secondary {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #E5E7EB;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

/* ─────────────────────────────────────────
   LAZY-LOAD IMAGE FADE-IN
───────────────────────────────────────── */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-img.loaded {
  opacity: 1;
}

/* ─────────────────────────────────────────
   FAQ ACCORDION
───────────────────────────────────────── */
.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  padding: 1rem 1.25rem;
  color: var(--secondary);
  font-size: 1rem;
  transition: color 0.2s;
}

.faq-toggle:hover {
  color: var(--primary);
}

.faq-icon {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   TRUST BADGE ROW (Why Choose Us icons)
───────────────────────────────────────── */
.trust-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #EFF6FF;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 1.75rem;
}

/* ─────────────────────────────────────────
   LINE CLAMP UTILITY (for product cards)
───────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────
   SCREEN READER ONLY
───────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}