/* ═══════════════════════════════════════════════
   SOUKFRESHY — Custom Styles
   Tailwind handles utilities; this file handles
   components, animations, and fine details.
═══════════════════════════════════════════════ */

:root {
  --green:       #1e6b3c;
  --green-light: #27a163;
  --green-dark:  #0f3a1f;
  --accent:      #f0a500;
  --warm:        #faf9f6;
  --radius-card: 16px;
}

/* ─── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--warm);
  overscroll-behavior-y: none;
  min-height: 100vh;
}

/* ─── Page transition ───────────────────────── */
.page {
  animation: pgIn 0.2s ease both;
}
@keyframes pgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Scrollbar hide ────────────────────────── */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ─── Noise overlay ─────────────────────────── */
.noise-overlay {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ─── Splash bar ────────────────────────────── */
#sp-bar { transition: width 2.6s linear; }

/* ─── Nav buttons ───────────────────────────── */
.nav-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #374151; font-size: 15px;
  transition: background 0.15s, transform 0.15s;
}
.nav-btn:hover { background: #f3f4f6; }
.nav-btn:active { transform: scale(0.88); }

/* Dark navbar variant */
.nav-btn-dark {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); font-size: 15px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.nav-btn-dark:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-btn-dark:active { transform: scale(0.88); }

/* Home navbar */
.home-nav {
  background: linear-gradient(90deg, rgba(13,51,28,0.96) 0%, rgba(15,58,31,0.95) 45%, rgba(18,79,44,0.94) 100%);
  border-bottom: 1px solid rgba(183,229,202,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.24);
}

.home-brand {
  padding: 4px 8px 4px 0;
  border-radius: 12px;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), opacity 0.15s;
}
.home-brand:hover { transform: translateY(-1px); opacity: 0.97; }
.home-brand:focus-visible {
  outline: 2px solid rgba(240,165,0,0.5);
  outline-offset: 2px;
}

.nav-link-main {
  position: relative;
  align-items: center;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.83);
  line-height: 1;
  padding: 8px 2px;
  transition: color 0.18s ease, transform 0.18s cubic-bezier(0.22,1,0.36,1);
}
.nav-link-main::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0a500 0%, #ffd57b 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease;
  opacity: 0.9;
}
.nav-link-main:hover {
  color: #fff;
  transform: translateY(-1px);
}
.nav-link-main:hover::after,
.nav-link-main:focus-visible::after {
  transform: scaleX(1);
}
.nav-link-main:focus-visible {
  outline: none;
  color: #fff;
}

.nav-login-btn {
  background: linear-gradient(135deg, rgba(240,165,0,0.18), rgba(217,147,0,0.22));
  color: #f6c566;
  border: 1px solid rgba(240,165,0,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 7px 18px rgba(0,0,0,0.18);
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.nav-login-btn:hover {
  color: #ffe3a8;
  background: linear-gradient(135deg, rgba(240,165,0,0.26), rgba(217,147,0,0.3));
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 22px rgba(0,0,0,0.2);
}
.nav-login-btn:focus-visible {
  outline: 2px solid rgba(240,165,0,0.55);
  outline-offset: 2px;
}
.nav-login-btn:active { transform: scale(0.97); }

/* ─── Badges ────────────────────────────────── */
.cart-badge, .wish-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px; padding: 0 3px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff; font-size: 10px; font-family: 'Nunito', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.wish-badge { background: #ec4899; }

/* ─── Search bar ────────────────────────────── */
.search-bar { animation: slideDown 0.22s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── CTA button ────────────────────────────── */
.cta-btn {
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), opacity 0.15s;
}
.cta-btn:hover  { transform: translateY(-2px); opacity: 0.92; }
.cta-btn:active { transform: scale(0.95); }

/* ─── Contact buttons ───────────────────────── */
.contact-btn {
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), filter 0.15s;
}
.contact-btn:hover  { transform: translateY(-2px); filter: brightness(1.08); }
.contact-btn:active { transform: scale(0.95); }

.footer-wrap {
  background:
    radial-gradient(500px 220px at 12% 8%, rgba(39,161,99,0.06), transparent 65%),
    radial-gradient(420px 220px at 86% 12%, rgba(30,107,60,0.05), transparent 65%),
    #f7faf8;
  border-top: 1px solid #dce7df;
}

.footer-top-card {
  background: #ffffff;
  border: 1px solid #e4ece6;
  box-shadow: 0 12px 24px rgba(15,58,31,0.08);
  backdrop-filter: blur(0);
}

.footer-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c8efd8;
  background: rgba(183,229,202,0.16);
  border: 1px solid rgba(187,234,209,0.24);
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s, filter 0.2s;
}
.footer-social-btn.fb {
  background: linear-gradient(135deg, #2556a8, #2f77dd);
  box-shadow: 0 10px 20px rgba(42,102,192,0.36);
}
.footer-social-btn.wa {
  background: linear-gradient(135deg, #168f48, #22b55d);
  box-shadow: 0 10px 20px rgba(29,163,83,0.34);
}
.footer-social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.footer-social-btn:active { transform: scale(0.97); }

.footer-link-btn {
  position: relative;
  color: #5d6962;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-link-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: #1e6b3c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1);
}
.footer-link-btn:hover {
  color: #1e6b3c;
}
.footer-link-btn:hover::after,
.footer-link-btn:focus-visible::after {
  transform: scaleX(1);
}

.footer-heading {
  font-family: 'Nunito', sans-serif;
  font-size: 27px;
  font-weight: 800;
  color: #101828;
  margin-bottom: 14px;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5e6a63;
  background: #eef4f0;
  border: 1px solid #dde8e0;
  font-size: 15px;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s;
}
.footer-social-icon:hover {
  transform: translateY(-2px);
  color: #1e6b3c;
  border-color: #bcd8c7;
  box-shadow: 0 8px 18px rgba(30,107,60,0.15);
}

.footer-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent 0%, #d9e4dc 10%, #d9e4dc 90%, transparent 100%);
}


/* ─── Category pills (home) ─────────────────── */
.pill {
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 600;
  background: #f1f5f1; color: #6b7280;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 1.5px solid transparent;
}
.pill.active,
.pill:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.pill:active { transform: scale(0.94); }

/* ─── Category filter (shop) ────────────────── */
.filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 600;
  background: #fff; color: #6b7280;
  white-space: nowrap;
  border: 1.5px solid #e5e7eb;
  transition: all 0.2s, transform 0.15s;
}
.filter-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.filter-btn:hover:not(.active) { border-color: var(--green); color: var(--green); }
.filter-btn:active { transform: scale(0.94); }

/* ─── Service cards ─────────────────────────── */
.service-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.svc-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f0faf4; font-size: 16px;
}

/* ─── Section blocks (home veg/fruit) ────────── */
.sec-block {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  cursor: pointer;
}
.sec-block:hover { transform: translateY(-3px); }

/* ─── Labels / tags ─────────────────────────── */
.label-tag {
  display: inline-block;
  font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green);
}
.label-tag-light {
  display: inline-block;
  font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; font-weight: 700; color: #111827;
}

/* ─── Product card ──────────────────────────── */
.prod-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid #e5eee9;
  box-shadow: 0 8px 24px rgba(15,58,31,0.08), 0 1px 2px rgba(15,58,31,0.08);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s;
}
.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(30,107,60,0.15);
}
.prod-card:active { transform: scale(0.97); }

/* ─── Product image wrapper ─────────────────── */
.prod-img {
  position: relative;
  padding-top: 70%;
  overflow: hidden;
  background: #edf5f0;
}
.prod-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.prod-card:hover .prod-img img { transform: scale(1.07); }

/* ─── Availability badges ───────────────────── */
.badge-ok  { background: #dcfce7; color: #15803d; }
.badge-low { background: #fef3c7; color: #92400e; }
.badge-out { background: #fee2e2; color: #991b1b; }

/* ─── Star ratings ──────────────────────────── */
.stars { color: #f59e0b; letter-spacing: 1px; }

/* ─── Mini product cards (home featured) ───── */
.mini-card {
  min-width: 130px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.mini-card:hover  { transform: translateY(-2px); }
.mini-card:active { transform: scale(0.96); }

/* ─── Wishlist heart button ─────────────────── */
.wish-btn {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-size: 12px;
  transition: transform 0.15s, background 0.15s;
  cursor: pointer;
}
.wish-btn:hover  { background: #fff; transform: scale(1.1); }
.wish-btn:active { transform: scale(0.9); }
.wish-btn.active i { color: #ef4444; }

/* ─── Quick add button ──────────────────────── */
.quick-add {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
  transition: transform 0.15s, background 0.15s;
  flex-shrink: 0;
}
.quick-add:hover  { background: var(--green-light); }
.quick-add:active { transform: scale(0.88); }
.quick-add.disabled { opacity: 0.35; cursor: not-allowed; }

.prod-body {
  padding: 11px 12px 12px;
}

.prod-title {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #112218;
  line-height: 1.3;
  margin-bottom: 4px;
}

.prod-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 11px;
  margin-bottom: 6px;
}

.prod-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
}

/* ─── Product detail (redesign) ─────────────── */
.pd-wrap {
  max-width: 580px;
  margin: 0 auto;
}

.pd-hero {
  position: relative;
  overflow: hidden;
}

.pd-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.pd-wish-float {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(0,0,0,0.18);
  transition: transform 0.15s cubic-bezier(0.22,1,0.36,1);
}
.pd-wish-float:active { transform: scale(0.88); }

.pd-sheet {
  background: #fff;
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
  position: relative;
  padding: 24px 20px 28px;
  min-height: 60vh;
}

.pd-label {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}

.pd-divider {
  height: 1px;
  background: #f0f2f5;
  margin: 20px 0;
}

/* ─── Feature badges (home) ─────────────────── */
.feat-badge {
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s;
}
.feat-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

/* ─── Input fields ──────────────────────────── */
.input-field {
  width: 100%; padding: 13px 16px;
  background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 12px;
  font-family: 'Nunito', sans-serif; font-size: 14px; color: #111827;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30,107,60,0.08);
}

/* ─── Toast ─────────────────────────────────── */
#toast {
  white-space: nowrap;
  animation: toastPop 0.28s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes toastPop {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.95); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ─── Login modal box ───────────────────────── */
#modal-box {
  animation: modalIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Product detail image ──────────────────── */
.pd-image {
  width: 100%; height: 320px;
  object-fit: cover;
  display: block;
}

.pd-panel {
  background: #fff;
  border: 1px solid #e2ede7;
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 10px 28px rgba(15,58,31,0.1);
}

/* ─── Quantity pulse ────────────────────────── */
@keyframes qtyPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.qty-pop { animation: qtyPop 0.22s cubic-bezier(0.22,1,0.36,1) both; }

/* ─── Hero elements initial state ───────────── */
.hero-el {
  opacity: 0;
  transform: translateY(24px);
}

/* ─── Mobile viewport height fix ───────────── */
@supports (height: 100dvh) {
  .hero-wrap { min-height: 82dvh; }
}

/* ─── Responsive tweaks ─────────────────────── */
@media (max-width: 380px) {
  .prod-card .text-sm { font-size: 12px; }
}

@media (max-width: 900px) {
  .pd-image { height: 270px; }
}

/* ─── Hero Play Button ──────────────────────── */
.play-btn {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.play-btn:hover {
  background: rgba(240,165,0,0.25);
  border-color: rgba(240,165,0,0.65);
  transform: scale(1.08);
}
.play-btn:active { transform: scale(0.96); }

.play-ripple {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(240,165,0,0.45);
  animation: ripple-pulse 2s ease-out infinite;
  pointer-events: none;
}
.play-ripple::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(240,165,0,0.2);
  animation: ripple-pulse 2s ease-out 0.6s infinite;
}
@keyframes ripple-pulse {
  0%   { transform: scale(0.88); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ─── Video Modal ───────────────────────────── */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5,18,10,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.video-modal-backdrop.open { opacity: 1; }

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.video-modal-backdrop.open .video-modal-container {
  transform: translateY(0) scale(1);
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.07);
  aspect-ratio: 16/9;
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #1e6b3c;
  border: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  transition: background 0.2s, transform 0.2s;
}
.video-modal-close:hover {
  background: #f0a500;
  color: #0f2a0f;
  transform: scale(1.1) rotate(90deg);
}

.video-caption {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  margin-top: 14px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}