:root {
  --primary: #16a34a;
  --primary-2: #22c55e;
  --grad: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  --dark: #14532d;
  --text: #374151;
  --muted: #6b7280;
  --bg: rgba(220, 252, 231, 0.55);
  --surface: rgba(255, 255, 255, 0.65);
  --line: rgba(255, 255, 255, 0.7);
  --shadow: 0 8px 24px rgba(22, 163, 74, 0.10);
  --shadow-lg: 0 16px 40px rgba(22, 163, 74, 0.16);
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.35), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(22, 163, 74, 0.28), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(163, 230, 53, 0.30), transparent 50%),
    linear-gradient(160deg, #f0fdf4 0%, #dcfce7 55%, #bbf7d0 100%);
  line-height: 1.6;
}

.container { width: 90%; max-width: 1150px; margin: 0 auto; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 253, 244, 0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  gap: 12px;
}

.install-btn {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: var(--grad);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  transition: transform 0.2s, opacity 0.2s;
}
.install-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.install-icon { font-size: 1rem; }

.menu-toggle {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.menu-toggle span {
  width: 18px; height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}
.logo-text {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.4px;
  color: var(--dark);
}
.logo-text em {
  font-style: normal;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Search bar ---------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow);
}
.searchbar-icon { font-size: 1.1rem; opacity: 0.6; }
.searchbar-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  padding: 8px 0;
}
.searchbar-input::placeholder { color: var(--muted); }
.searchbar-btn {
  border: none;
  background: var(--grad);
  color: var(--surface);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.searchbar-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.results { padding: 28px 0; }
.results-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

/* ---------- Flash sale banner ---------- */
.flash-banner { margin-top: 22px; }
.flash-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92) 0%, rgba(34, 197, 94, 0.92) 55%, rgba(163, 230, 53, 0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.35);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.flash-inner::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  top: -70px; right: -40px;
}
.flash-inner::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  bottom: -50px; left: 30%;
}
.flash-text { flex: 1; min-width: 200px; position: relative; z-index: 1; }
.flash-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.flash-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.flash-text p { opacity: 0.95; font-size: 0.9rem; }

.flash-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.25);
  position: relative;
  z-index: 1;
}

.flash-timer { display: flex; gap: 10px; position: relative; z-index: 1; }
.flash-unit {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 58px;
}
.flash-unit span { display: block; font-size: 1.3rem; font-weight: 800; }
.flash-unit small { font-size: 0.65rem; opacity: 0.85; text-transform: uppercase; }

.flash-btn {
  background: #ffffff;
  color: #16a34a;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}
.flash-btn:hover { transform: translateY(-2px); }

@media (max-width: 560px) {
  .flash-inner { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* ---------- Slider ---------- */
.slider {
  position: relative;
  max-width: 1150px;
  width: 90%;
  margin: 20px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.slider-track { display: flex; transition: transform 0.5s ease; }
.slide { min-width: 100%; position: relative; height: 300px; }
.slide img, .slide video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px;
  background: linear-gradient(transparent, rgba(17, 24, 39, 0.78));
  color: var(--surface);
}
.slide-caption h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 4px; }
.slide-caption p { opacity: 0.92; font-size: 0.95rem; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
  transition: background 0.2s, transform 0.2s;
  z-index: 5;
}
.slider-btn:hover { background: var(--surface); transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

.slider-dots {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.slider-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.slider-dots span.active { background: var(--surface); width: 22px; border-radius: 6px; }

/* ---------- Top Offer ---------- */
.top-offer { padding-top: 8px; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.offer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.offer-emoji {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--o) 14%, transparent);
}
.offer-info { display: flex; flex-direction: column; }
.offer-name { font-weight: 700; color: var(--dark); font-size: 0.98rem; }
.offer-sub { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ---------- Trending ---------- */
.trending { padding-top: 24px; }
.trending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.trending-head .sg-title { margin-bottom: 0; }
.see-all { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.see-all:hover { text-decoration: underline; }

.trending-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.trending-scroll::-webkit-scrollbar { height: 6px; }
.trending-scroll::-webkit-scrollbar-thumb { background: rgba(22, 163, 74, 0.3); border-radius: 6px; }

.trend-card {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.trend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trend-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.trend-name { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-top: 10px; }
.trend-price { display: block; font-size: 0.82rem; font-weight: 700; color: var(--primary); margin-top: 2px; }

/* ---------- Legal pages ---------- */
.legal { padding: 28px 0 40px; line-height: 1.75; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2rem); color: var(--dark); margin-bottom: 6px; }
.legal h2 { font-size: 1.15rem; color: var(--dark); margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: 0.97rem; }
.legal ul { padding-left: 18px; list-style: disc; }
.legal a { color: var(--primary); }
.legal-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }

.site-footer { padding: 28px 0 20px; text-align: center; border-top: 1px solid var(--line); margin-top: 8px; }
.site-footer .container { display: flex; justify-content: center; align-items: center; }
.site-footer a { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.site-footer a:hover { color: var(--primary); }
.footer-sep { color: var(--muted); margin: 0 10px; }

/* ---------- Services ---------- */
.sg { padding: 24px 0 4px; }
.services-section {
  background: #ffffff;
  padding: 28px 0 48px;
  margin-top: 8px;
}
.sg-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 18px;
  transition: transform 0.25s;
}
.icon-tile:hover {
  transform: translateY(-6px);
}

.icon-circle {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.icon-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}

/* ---------- App bar (top menu) ---------- */
.appbar {
  position: sticky;
  top: 64px;
  z-index: 90;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.06);
  padding: 8px 8px;
}
.appbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  color: var(--muted);
  border-radius: 16px;
  transition: color 0.2s, transform 0.2s;
}
.appbar-item:hover { color: var(--primary); transform: translateY(-2px); }
.appbar-item.active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, rgba(255, 255, 255, 0.4));
}
.appbar-icon { font-size: 1.5rem; }
.appbar-label { font-size: 0.72rem; font-weight: 700; }

/* ---------- GPS location bar ---------- */
.location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.location-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.location-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.location-text.delivery {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  text-align: left;
  align-items: flex-start;
}
.location-value { font-size: 0.98rem; font-weight: 600; color: var(--dark); }
.support-value { color: var(--primary); }
.support-value:hover { text-decoration: underline; }
.wa-link { display: inline-flex; align-items: center; gap: 5px; color: #25d366; }
.wa-icon { width: 22px; height: 22px; flex-shrink: 0; }
.location-refresh {
  background: var(--bg);
  border: 1px solid var(--line);
  width: 34px; height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.location-refresh:hover { transform: rotate(180deg); }

/* ---------- Responsive ---------- */

/* Large tablets / small laptops */
@media (max-width: 900px) {
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets & large phones */
@media (max-width: 768px) {
  .container { width: 92%; }
  .slide { height: 260px; }
  .flash-inner { gap: 18px; }
  .trend-card { width: 140px; }
}

/* Phones */
@media (max-width: 560px) {
  .container { width: 94%; }
  .icon-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .icon-circle { width: 50px; height: 50px; font-size: 1.4rem; border-radius: 14px; }
  .icon-label { font-size: 0.72rem; }
  .slide { height: 200px; }
  .slide-caption { padding: 16px; }
  .slide-caption p { font-size: 0.85rem; }

  /* Location bar stays on a single line, vertically centered */
  .location-bar { flex-wrap: nowrap; gap: 8px; padding: 10px 12px; }
  .location-text { flex: 1 1 auto; align-items: center; text-align: center; }
  .location-text.delivery { border-left: none; padding-left: 0; align-items: center; }
  .location-value { font-size: 0.88rem; white-space: nowrap; }
  .location-refresh { flex: 0 0 auto; }

  /* App bar stays compact */
  .appbar { padding: 6px 4px; }
  .appbar-icon { font-size: 1.35rem; }

  .offer-grid { grid-template-columns: 1fr; }
  .trend-card { width: 130px; }
  .searchbar-btn { padding: 10px 14px; font-size: 0.85rem; }
}

/* Very small phones */
@media (max-width: 360px) {
  .logo-text { font-size: 1.1rem; }
  .logo-img { width: 34px; height: 34px; }
  .nav { height: 56px; }
  .appbar { top: 56px; }
  .icon-circle { width: 44px; height: 44px; font-size: 1.2rem; }
  .flash-img { width: 90px; height: 90px; }
  .install-btn { font-size: 0.75rem; padding: 8px 12px; }
}