/* ==========================================
   RESET & BASE
   ========================================== */
:root {
  --primary: #008a68;
  --primary-hover: #006b50;
  --bg-light: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --dark-bg: #1e293b;
  --border-color: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Outfit', sans-serif; background: var(--bg-light); color: var(--text-main); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==========================================
   SHARED ANIMATIONS
   ========================================== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

/* ==========================================
   HEADER
   ========================================== */
.main-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(229, 231, 235, 0.5); padding: 16px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.03); transition: all 0.3s ease; }
.header-inner { display: flex; align-items: center; gap: 28px; }

/* ── Brand logo ─────────────────────────── */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { display: block; flex-shrink: 0; border-radius: 13px; box-shadow: 0 4px 14px rgba(0, 138, 104, 0.22); }
.logo-word { display: flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.logo-word-1 { color: #0b1f27; }
.logo-word-2 { background: linear-gradient(100deg, #00b488, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* On the dark footer the first word needs to flip to white */
.logo-word-onDark .logo-word-1 { color: #ffffff; }

/* ── Search ─────────────────────────────── */
.search-wrapper { flex: 1; max-width: 520px; position: relative; display: flex; align-items: center; }
.search-icon { display: none; position: absolute; left: 14px; color: #94a3b8; pointer-events: none; }
.search-input { width: 100%; height: 46px; padding: 0 54px 0 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text-main); background: #fff; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search-input::placeholder { color: #9aa5b1; }
.search-input:focus { border-color: #008a68; box-shadow: 0 0 0 4px rgba(0, 138, 104, 0.12); }
.search-btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; background: #008a68; border: none; border-radius: 9px; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.search-btn:hover { background: #006b50; }

.header-right { display: flex; align-items: center; gap: 24px; margin-left: auto; flex-shrink: 0; }
.help-block { display: flex; align-items: center; gap: 10px; }
.help-label { font-size: 0.7rem; color: #6b7280; font-weight: 600; text-transform: uppercase; }
.help-number { font-size: 0.95rem; font-weight: 700; color: #1a1f36; }
.icon-link { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.72rem; color: #1a1f36; font-weight: 500; cursor: pointer; transition: color 0.2s; }
.icon-link:hover { color: #008a68; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: #008a68; color: white; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar { background: #008a68; }
.nav-inner { display: flex; align-items: stretch; }
.nav-categories { background: rgba(0,0,0,0.2); padding: 14px 20px; display: flex; align-items: center; gap: 8px; color: white; font-weight: 700; font-size: 0.9rem; cursor: pointer; flex-shrink: 0; }
.nav-link { padding: 14px 18px; color: white; font-weight: 500; font-size: 0.9rem; transition: background 0.2s; display: flex; align-items: center; }
.nav-link:hover, .nav-link.active { background: rgba(0,0,0,0.15); }

/* ==========================================
   HERO
   ========================================== */
.hero { background: radial-gradient(circle at 10% 20%, rgb(14, 21, 38) 0%, rgb(20, 68, 56) 100%); color: white; padding: 100px 24px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 40%); animation: rotateGradient 20s linear infinite; pointer-events: none; }
@keyframes rotateGradient { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
/* Badge: small solid pill + plain supporting text */
.hero-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.09); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); padding: 5px 16px 5px 5px; border-radius: 50px; font-size: 0.83rem; font-weight: 500; margin-bottom: 26px; color: #e2e8f0; }
.hero-badge-pill { background: #bef264; color: #17300a; padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; }

.hero-title { font-size: 3.4rem; font-weight: 800; color: white; margin-bottom: 18px; line-height: 1.15; letter-spacing: -0.025em; }
/* Serif italic accent word — the signature touch in this category */
.hero-title em { font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: 0; background: linear-gradient(100deg, #7dd3fc, #34d399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-highlight { background: linear-gradient(to right, #00e5ff, #10b981); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-subtitle { font-size: 1.08rem; color: #b9c6d4; margin-bottom: 34px; line-height: 1.65; font-weight: 400; }
.hero-subtitle strong { color: #fff; font-weight: 700; }

.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 330px; background: linear-gradient(100deg, #00c48f, #00875f); color: white; padding: 15px 34px; border-radius: 50px; font-weight: 700; font-size: 1.02rem; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease; box-shadow: 0 6px 18px rgba(0, 138, 104, 0.42); }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 138, 104, 0.55); }

.hero-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; max-width: 330px; background: rgba(255,255,255,0.07); color: #fff; border: 1.5px solid rgba(255,255,255,0.28); padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 0.98rem; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
.hero-btn-ghost:hover { background: rgba(37, 211, 102, 0.16); border-color: #25d366; transform: translateY(-2px); }
.hero-btn-ghost svg { flex-shrink: 0; }

/* ==========================================
   SECTIONS
   ========================================== */
.section { margin-bottom: 60px; }
.section-title { font-size: 1.9rem; font-weight: 800; color: #0b1f27; margin-bottom: 8px; text-align: center; letter-spacing: -0.02em; }
/* Matching serif italic accent from the hero */
.section-title em { font-family: 'Georgia', 'Times New Roman', serif; font-style: italic; font-weight: 400; color: #00875f; letter-spacing: 0; }
.section-subtitle { font-size: 0.9rem; color: #6b7280; text-align: center; margin-bottom: 36px; }

/* ==========================================
   CATEGORIES
   ========================================== */
.categories-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.cat-img-wrapper { width: 110px; height: 110px; border-radius: 16px; overflow: hidden; border: 2px solid #e5e7eb; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.cat-img-wrapper:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,138,104,0.2); border-color: #008a68; }
.cat-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-weight: 700; font-size: 0.9rem; color: #1a1f36; text-align: center; }
.cat-count { font-size: 0.75rem; color: #6b7280; }

/* ==========================================
   FILTER TABS
   ========================================== */
.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: 50px; border: 1px solid #e5e7eb; font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; background: white; color: #1a1f36; }
.filter-btn:hover { border-color: #008a68; color: #008a68; }
.filter-btn.active { background: #008a68; color: white; border-color: #008a68; }

/* ==========================================
   TRUST
   ========================================== */

.trust-points { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; font-size: 0.75rem; color: #10b981; margin-top: 8px; margin-bottom: 16px; line-height: 1.5; font-weight: 600; text-align: left; }
.trust-points div { display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ==========================================
   PRODUCT CARDS
   ========================================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.product-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); border-color: #d1d5db; }
.badge-row { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 10; pointer-events: none; }
.discount-badge { background: #ef4444; color: white; padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: 0.75rem; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }
.hot-badge { background: #f59e0b; color: white; padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: 0.75rem; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); animation: pulse 2s infinite; }
.product-img { width: 100%; height: 210px; object-fit: cover; background: #f1f5f9; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 0.75rem; font-weight: 700; color: #008a68; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.product-title { font-size: 1.05rem; font-weight: 700; color: #1a1f36; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.original-price { font-size: 0.9rem; color: #94a3b8; text-decoration: line-through; font-weight: 600; }
.current-price { font-size: 1.4rem; font-weight: 800; color: #0f172a; }
.starting-from { font-size: 0.75rem; color: #64748b; font-weight: 500; margin-right: 4px; }
.action-row { margin-top: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.buy-now-btn { width: 100%; background: #008a68; color: white; border: none; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; text-align: center; }
.buy-now-btn:hover { background: #006b50; }
.add-to-cart-btn { width: 100%; background: #f8fafc; color: #1e293b; border: 1px solid #e2e8f0; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; text-align: center; }
.add-to-cart-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.watching-row { margin-top: 16px; background: #fffbeb; border: 1px solid #fef3c7; border-radius: 8px; padding: 10px 12px; font-size: 0.75rem; color: #92400e; display: flex; align-items: center; gap: 6px; justify-content: center; font-weight: 600; }

/* ==========================================
   FAQ
   ========================================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item { background: white; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.faq-question { width: 100%; padding: 18px 24px; background: none; border: none; font-family: inherit; font-size: 1rem; font-weight: 600; color: #1a1f36; cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-align: left; transition: background 0.2s; }
.faq-question:hover { background: #f8fafc; }
.faq-icon { font-size: 1.4rem; color: #008a68; transition: transform 0.3s; flex-shrink: 0; }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; color: #6b7280; font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-answer { padding: 0 24px 18px; max-height: 200px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ==========================================
   WHATSAPP FLOAT & LIVE SALES
   ========================================== */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; background: #25d366; color: white; border-radius: 50px; padding: 14px 24px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 8px 24px rgba(37,211,102,0.4); z-index: 999; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s; }
.whatsapp-float:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 12px 32px rgba(37,211,102,0.5); color: white; }

.live-sales-popup { position: fixed; bottom: 24px; left: -400px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(229, 231, 235, 0.5); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 998; transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1); max-width: 320px; }
.live-sales-popup.show { left: 24px; }
.live-sales-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.live-sales-text { font-size: 0.8rem; color: #374151; line-height: 1.4; }
.live-sales-text strong { color: #111827; }
.live-sales-time { font-size: 0.7rem; color: #6b7280; display: block; margin-top: 2px; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .help-block { display: none; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .header-inner { gap: 12px; }
  .nav-inner { overflow-x: auto; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero { padding: 60px 24px; }
}

/* ==========================================
   VERIFIED PROOFS SLIDER
   ========================================== */
.proofSwiper {
  width: 100%;
}
.proof-slide {
  width: 300px;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.proof-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  .proof-slide {
    width: 220px;
    height: 380px;
  }
}

/* ========================================== 
   PROOF SECTION 
   ========================================== */
.proof-section { overflow: hidden; padding-bottom: 20px; }
.proof-header-badge { text-align: center; margin-bottom: 10px; }
.proof-badge-inner { display:inline-flex; align-items:center; gap:6px; background:#dcfce7; color:#166534; padding:6px 16px; border-radius:50px; font-weight:700; font-size:0.85rem; border:1px solid #bbf7d0; }
.proof-title { margin-bottom: 5px; }
.proof-subtitle { margin-bottom: 5px; }
.proof-note { text-align: center; color: #9ca3af; font-size: 0.75rem; margin-bottom: 40px; }
.proof-swiper-container { padding: 20px 0 50px 0; }

/* ==========================================
   BRAND CHIPS MARQUEE
   Auto-scrolling row of the brands we sell
   ========================================== */
/* Bottom padding carries the gap that the old trust cards used to fill */
.brand-section { padding: 26px 0 34px; }

/* Edge fade so chips melt away at the screen edges instead of
   being sliced off mid-word. */
.brand-strip {
  overflow: hidden;
  padding: 5px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.brand-marquee { display: flex; gap: 10px; width: max-content; animation: brandScroll 38s linear infinite; }
.brand-strip-reverse .brand-marquee { animation-duration: 46s; animation-direction: reverse; }
.brand-strip:hover .brand-marquee { animation-play-state: paused; }
@keyframes brandScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.brand-chip {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  background: #fff; border: 1px solid #e8ecf1; border-radius: 50px;
  padding: 7px 18px 7px 8px;
  font-size: 0.86rem; font-weight: 700; color: #16232e;
  box-shadow: 0 2px 10px rgba(15, 35, 45, 0.06);
  white-space: nowrap; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 35, 45, 0.12); }
.brand-chip-name { line-height: 1; }

/* Real product artwork as the chip icon */
.brand-chip-img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: #f1f5f9; border: 1px solid #eef1f4;
}
/* Fallback tile if an image 404s */
.brand-chip-logo { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 900; color: #fff; flex-shrink: 0; letter-spacing: -0.5px; }

/* Reduced motion: stop the marquee and let it wrap */
@media (prefers-reduced-motion: reduce) {
  .brand-marquee { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .brand-strip { -webkit-mask-image: none; mask-image: none; }
  .brand-strip-reverse { display: none; }
}

/* ==========================================
   TRUST CHIPS (compact social proof pills)
   ========================================== */
.trust-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 8px; }
.trust-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e8ecf1; border-radius: 50px; padding: 7px 14px; font-size: 0.78rem; font-weight: 600; color: #40515e; box-shadow: 0 2px 8px rgba(15, 35, 45, 0.04); }
.trust-chip b { color: #0b1f27; font-weight: 800; }
.trust-chip svg { color: #00a37a; flex-shrink: 0; }

/* ==========================================
   WHATSAPP COMMUNITY CTA
   ========================================== */
.drawer-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.drawer-cta-wa { background: #25d366; color: #fff; }
.drawer-cta-community { background: #fff; color: #075e54; border: 1.5px solid #25d366; }

.footer-community { display: inline-flex; align-items: center; gap: 8px; background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.45); color: #4ade80; padding: 10px 18px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; margin-bottom: 22px; transition: background 0.2s; }
.footer-community:hover { background: rgba(37, 211, 102, 0.2); }

/* ==========================================
   MOBILE BOTTOM TAB BAR
   Hidden on desktop, shown under 768px
   ========================================== */
.bottom-nav { display: none; }

@media (max-width: 768px) {
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e8ecf1;
    box-shadow: 0 -4px 20px rgba(15, 35, 45, 0.07);
    z-index: 900;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 0 7px; font-size: 0.68rem; font-weight: 600; color: #7a8896; text-decoration: none; transition: color 0.2s; }
  .bottom-nav-item svg { width: 22px; height: 22px; }
  .bottom-nav-item.active { color: #008a68; }
  .bottom-nav-icon-wrap { position: relative; display: flex; }
  .bottom-nav-badge { position: absolute; top: -5px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; background: #ef4444; color: #fff; border-radius: 50px; font-size: 0.62rem; font-weight: 800; display: none; align-items: center; justify-content: center; }

  /* Keep page content clear of the fixed bar */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

  /* ------------------------------------------
     Stack the floating elements so they can't
     overlap each other or the tab bar:
       tab bar  -> 0
       WhatsApp -> 72px  (compact circle)
       sales popup -> 134px
     ------------------------------------------ */
  .whatsapp-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  /* The label doesn't fit on a phone; the icon is understood */
  .whatsapp-float .wa-text { display: none; }

  .live-sales-popup {
    bottom: calc(134px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================
   MOBILE SEARCH OVERLAY
   Header magnifier -> centered search sheet
   floating over a blurred page.
   ========================================== */

/* The trigger button only exists on mobile */
.search-trigger { display: none; background: transparent; border: none; padding: 6px; color: #16232e; cursor: pointer; border-radius: 10px; }
.search-trigger:active { background: #f1f5f9; }

.search-overlay { position: fixed; inset: 0; z-index: 1200; display: none; }
.search-overlay.open { display: block; }

.search-overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(232, 234, 231, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: searchFadeIn 0.18s ease;
}

.search-overlay-panel {
  position: relative;
  margin: 84px 16px 0;
  background: #fdfdfb;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(11, 31, 39, 0.18);
  overflow: hidden;
  animation: searchSheetIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-overlay-field { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; color: #94a3b8; }
.search-overlay-field svg { flex-shrink: 0; }
.search-overlay-field input {
  flex: 1; border: none; outline: none; background: transparent;
  /* 16px keeps iOS Safari from zooming the page on focus */
  font-family: inherit; font-size: 16px; font-weight: 500; color: #0b1f27;
}
.search-overlay-field input::placeholder { color: #9aa5b1; font-weight: 400; }

.search-overlay-clear { display: none; align-items: center; justify-content: center; width: 22px; height: 22px; border: none; border-radius: 50%; background: #e2e8ee; color: #5b6b7a; cursor: pointer; flex-shrink: 0; }

.search-overlay-cancel {
  width: 100%; padding: 13px; border: none; border-top: 1px solid #eef1ee;
  background: #f4f6f2; color: #00875f;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.search-overlay-cancel:active { background: #eaeee6; }

/* Results list sits under the sheet */
.search-overlay-results {
  position: relative;
  margin: 10px 16px 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.search-overlay-results:not(:empty) {
  background: #fff; border-radius: 18px; padding: 6px 0;
  box-shadow: 0 18px 44px rgba(11, 31, 39, 0.14);
  animation: searchSheetIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-res-head { padding: 10px 16px 8px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #8b98a5; }
.search-res-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-decoration: none; }
.search-res-item:active { background: #f6f8fa; }
.search-res-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #eef2f5; flex-shrink: 0; }
.search-res-info { flex: 1; min-width: 0; }
.search-res-title { font-size: 0.88rem; font-weight: 700; color: #0b1f27; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-res-cat { font-size: 0.72rem; color: #8b98a5; margin-top: 2px; }
.search-res-price { font-size: 0.92rem; font-weight: 800; color: #00875f; white-space: nowrap; text-align: right; }
.search-res-price span { display: block; font-size: 0.72rem; font-weight: 500; color: #b0bac4; text-decoration: line-through; }

.search-res-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 14px; }
.search-res-tag { background: #f2f5f7; color: #40515e; padding: 7px 13px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.search-res-tag:active { background: #e3f2ec; color: #00734f; }

.search-res-all { display: block; padding: 13px; text-align: center; font-size: 0.85rem; font-weight: 700; color: #00875f; border-top: 1px solid #f1f4f6; text-decoration: none; }

.search-res-empty { padding: 26px 20px 30px; text-align: center; font-size: 0.9rem; font-weight: 600; color: #40515e; }
.search-res-empty-icon { font-size: 1.7rem; margin-bottom: 8px; }
.search-res-empty p { font-size: 0.78rem; font-weight: 400; color: #9aa5b1; margin-top: 6px; }

/* Lock the page behind the overlay */
body.search-open { overflow: hidden; }

@keyframes searchFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes searchSheetIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .search-overlay-backdrop, .search-overlay-panel, .search-overlay-results:not(:empty) { animation: none; }
}

/* ==========================================
   FOOTER
   Rebuilt with real classes instead of the old
   inline-style + onmouseover markup.
   ========================================== */
.site-footer {
  background: linear-gradient(180deg, #0d222b 0%, #06141a 100%);
  color: #9fb0bd;
  padding: 56px 0 26px;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: 'Outfit', sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 44px;
  padding-bottom: 40px;
}

/* ── Brand column ─────────────────────────── */
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-tagline { color: #8fa1af; line-height: 1.7; font-size: 0.92rem; margin-bottom: 20px; max-width: 42ch; }

.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.soc {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #cbd8e2;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.soc svg { width: 18px; height: 18px; }
.soc:hover { transform: translateY(-3px); color: #fff; }
.soc-wa:hover { background: #25d366; border-color: #25d366; }
.soc-ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: #dc2743; }
.soc-fb:hover { background: #1877f2; border-color: #1877f2; }
.soc-tg:hover { background: #229ed9; border-color: #229ed9; }

/* ── Link columns ─────────────────────────── */
.footer-col { display: flex; flex-direction: column; }
.footer-col h4 {
  color: #fff; font-size: 0.95rem; font-weight: 700;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.footer-col a {
  color: #8fa1af; font-size: 0.9rem; text-decoration: none;
  padding: 6px 0; transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-col a:hover { color: #fff; padding-left: 4px; }

/* ── Payments row ─────────────────────────── */
.footer-pay {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-pay-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: #b6c5d1;
}
.footer-pay-label svg { color: #34d399; }
.footer-pay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-pay-chips span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c3d0da;
  padding: 6px 13px; border-radius: 8px;
  font-size: 0.76rem; font-weight: 600;
}

/* ── Bottom bar ───────────────────────────── */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding-top: 22px;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #6f8290; }
.footer-made .heart { color: #ef4444; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .site-footer { padding: 40px 0 22px; margin-top: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-tagline { font-size: 0.88rem; max-width: none; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-col a { padding: 7px 0; font-size: 0.88rem; }
  .footer-pay { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .footer-bottom p { font-size: 0.8rem; }
}

/* ==========================================
   SLIDE-OUT CART DRAWER
   ========================================== */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(11, 31, 39, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 1150;
}
.cart-drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(92vw, 420px);
  height: 100%;
  background: #fdfdfb;
  z-index: 1160;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(11, 31, 39, 0.18);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eef1f4;
  flex-shrink: 0;
}
.cart-drawer-head h3 { font-size: 1.08rem; font-weight: 800; color: #0b1f27; margin: 0; }
.cart-drawer-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 50%;
  color: #0b1f27; cursor: pointer;
}
.cart-drawer-close:active { background: #f1f4f6; }

.cart-drawer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 20px; }

.cart-drawer-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f4f6;
}
.cart-drawer-item img {
  width: 54px; height: 54px; border-radius: 12px;
  object-fit: cover; background: #eef2f5; flex-shrink: 0;
}
.cart-drawer-info { flex: 1; min-width: 0; }
.cart-drawer-title { font-size: 0.9rem; font-weight: 700; color: #0b1f27; line-height: 1.35; overflow-wrap: anywhere; }
.cart-drawer-plan { font-size: 0.78rem; color: #8b98a5; margin-top: 2px; }
.cart-drawer-price { font-size: 0.92rem; font-weight: 800; color: #0b1f27; margin-top: 6px; }
.cart-drawer-qty { font-size: 0.76rem; font-weight: 600; color: #8b98a5; margin-left: 4px; }
.cart-drawer-remove {
  background: none; border: none; padding: 0;
  color: #7a8896; font-family: inherit; font-size: 0.8rem;
  text-decoration: underline; cursor: pointer; flex-shrink: 0;
}
.cart-drawer-remove:hover { color: #ef4444; }

.cart-drawer-empty { text-align: center; padding: 54px 20px; }
.cart-drawer-empty-icon { font-size: 2.2rem; margin-bottom: 10px; }
.cart-drawer-empty p { font-size: 0.98rem; font-weight: 700; color: #0b1f27; margin-bottom: 14px; }
.cart-drawer-empty a { color: #00875f; font-weight: 700; font-size: 0.9rem; }

.cart-drawer-foot {
  flex-shrink: 0;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eef1f4;
  background: #fff;
}
.cart-drawer-sub {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; font-size: 0.95rem; color: #5b6b7a;
}
.cart-drawer-sub strong { font-size: 1.25rem; font-weight: 800; color: #0b1f27; }
.cart-drawer-checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px;
  background: linear-gradient(100deg, #00c48f, #00875f);
  color: #fff; border-radius: 50px;
  font-size: 1.02rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 138, 104, 0.32);
}
.cart-drawer-checkout:active { transform: translateY(1px); }
.cart-drawer-view {
  display: block; text-align: center; margin-top: 12px;
  color: #7a8896; font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.cart-drawer-view:hover { color: #00875f; }

@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-drawer-overlay { transition: none; }
}
