/*
  WaahLife FMCG - Enhanced Styles
  Vibrant, modern, and responsive UI
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
  --brand: #0b5fff;
  --brand-600: #0a4ddb;
  --brand-700: #083fb0;
  --accent: #10b981;
  --accent-600: #059669;
  --hot: #f43f5e;
  --sun: #f59e0b;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --surface: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(2,6,23,0.08);
  --shadow-lg: 0 16px 40px rgba(2,6,23,0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.brand-logo { height: 28px; width: auto; }
.brand span {
  background: linear-gradient(90deg, var(--brand), var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  position: relative;
  transition: color 160ms ease;
}
.nav-links a:after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav-links a:hover { color: var(--brand-700); }
.nav-links a:hover:after, .nav-links a.is-active:after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; padding-bottom: 0.5rem; }
  .nav-links.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  background:
    linear-gradient(180deg, rgba(11,95,255,0.06), rgba(16,185,129,0.06)),
    var(--bg);
  overflow: hidden;
}
.hero:before, .hero:after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}
.hero:before { background: radial-gradient(circle at 30% 30%, rgba(11,95,255,0.25), transparent 60%); top: -220px; left: -180px; }
.hero:after { background: radial-gradient(circle at 70% 20%, rgba(16,185,129,0.25), transparent 60%); top: -240px; right: -160px; }
.hero h1 {
  font-size: clamp(1.8rem, 3.2vw + 1rem, 3rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.hero p { color: var(--muted); margin: 0 0 1rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand), var(--sun)) border-box;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { filter: saturate(110%); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Button variants */
.btn-accent { background: linear-gradient(135deg, var(--accent), #34d399); border-color: transparent; color: #0b2b1f; }
.btn-hot { background: linear-gradient(135deg, var(--hot), #fb7185); border-color: transparent; color: #fff; }
.btn-outline { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--brand), var(--accent)) border-box; color: var(--brand-700); }
.btn-ghost { background: #ffffffaa; border-color: var(--border); }
.btn-pill { border-radius: 999px; }
.btn-lg { padding: 0.85rem 1.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.9rem; }

/* Button icons */
.btn .icon { width: 16px; height: 16px; display: inline-block; }
.btn .icon-left { margin-right: 0.45rem; }
.btn .icon-right { margin-left: 0.45rem; }
.btn svg.icon { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; fill: currentColor; }

/* Sections */
section { padding: 2.5rem 0; }
.section-title { font-size: 1.8rem; margin: 0 0 1rem; position: relative; }
.section-title:after {
  content: "";
  position: absolute; left: 0; bottom: -8px; height: 4px; width: 64px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--sun));
}
.section-subtitle { color: var(--muted); margin: -0.5rem 0 1.25rem; }

/* Cards & Grid */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 180ms ease;
}
.card-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, #f0f5ff, #eefcf7); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(2,6,23,0.08); }
.card-body { padding: 0.9rem; }
.card-title { font-weight: 700; margin: 0 0 0.35rem; }
.card-text { color: var(--muted); margin: 0; }

/* Colorful product widgets */
.product-card {
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--brand), var(--sun)) border-box;
  border: 1px solid transparent;
}
.product-card .card-media:after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,95,255,0.08), rgba(16,185,129,0.08));
}
.product-card .card-title {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}
.product-card::after {
  content: "View";
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: #0f172a;
  background: #ffffffcc;
  border: 1px solid var(--border);
  transform: translateY(6px);
  opacity: 0; transition: all 160ms ease;
}
.product-card:hover::after { opacity: 1; transform: translateY(0); }
.product-card:hover .card-media:after { background: linear-gradient(180deg, rgba(11,95,255,0.12), rgba(16,185,129,0.12)); }

/* Featured products on home */
.featured-products > .card {
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--brand), var(--sun)) border-box;
  border: 1px solid transparent;
  position: relative;
}
.featured-products > .card .card-media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,95,255,0.08), rgba(16,185,129,0.08)); }
.featured-products > .card .card-title { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.featured-products > .card::after { content: "View"; position: absolute; right: 10px; bottom: 10px; padding: 0.25rem 0.55rem; border-radius: 999px; font-size: 12px; font-weight: 600; color: #0f172a; background: #ffffffcc; border: 1px solid var(--border); transform: translateY(6px); opacity: 0; transition: all 160ms ease; }
.featured-products > .card:hover::after { opacity: 1; transform: translateY(0); }

/* Testimonials */
.testimonials {
  background:
    radial-gradient(800px 300px at 20% -10%, rgba(11,95,255,0.08), transparent),
    radial-gradient(800px 300px at 80% -10%, rgba(16,185,129,0.08), transparent),
    var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote {
  display: grid; gap: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.quote p { margin: 0; }
.quote small { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background:
  linear-gradient(180deg, rgba(240, 249, 255, 0.5), rgba(248, 250, 252, 0.9)); }
.footer-grid { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr 1fr; padding: 1.25rem 0; }
.footer-bottom { border-top: 1px solid var(--border); padding: 0.75rem 0; color: var(--muted); font-size: 0.925rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Forms */
.form {
  display: grid; gap: 0.75rem; max-width: 760px;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; }
.input, .textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,95,255,0.12);
}
.input::placeholder, .textarea::placeholder { color: #94a3b8; }
.textarea { min-height: 120px; resize: vertical; }

/* Utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.spacer-sm { height: 0.5rem; }
.spacer { height: 1rem; }
.spacer-lg { height: 2rem; }

/* Form notices */
.notice { margin-top: 0.75rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; }
.notice.success { background: #ecfdf5; border-color: #d1fae5; color: #065f46; }
.notice.error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; }

/* Field validation */
.input.error, .textarea.error { border-color: #fda4af; box-shadow: 0 0 0 3px rgba(253, 164, 175, 0.25); }
.error-text { color: #b91c1c; font-size: 0.875rem; margin-top: 0.25rem; }

/* Reviews slider */
.reviews { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background:
  linear-gradient(180deg, #fff, #f8fafc); }
.reviews-header { text-align: center; }
.rating-strip { display: inline-grid; grid-auto-flow: column; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); }
.rating-score { font-weight: 800; font-size: 1.1rem; color: var(--brand-700); }
.rating-score span { color: var(--muted); font-weight: 600; }
.rating-stars { color: #22c55e; letter-spacing: 1px; font-weight: 800; }
.rating-count { font-size: 0.9rem; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(33.333% - 0.66rem); gap: 1rem; transition: transform 400ms ease; will-change: transform; padding: 0.5rem 0; }
.review-card { border: 1px solid var(--border); border-radius: 16px; padding: 1rem; background:
  linear-gradient(#fff, #fff) padding-box,
  linear-gradient(135deg, var(--brand), var(--accent)) border-box; display: grid; gap: 0.6rem; box-shadow: var(--shadow-sm); }
.review-card .meta { display: grid; grid-auto-flow: column; grid-template-columns: 44px 1fr; align-items: center; gap: 0.75rem; }
.review-card .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--accent)); border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.review-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-verified { color: var(--accent-600); font-weight: 700; }
.review-card .stars { color: #22c55e; letter-spacing: 1px; }
.review-card .text { margin: 0; color: var(--ink); }
.review-card .author { color: var(--muted); }
.stars-row { display: inline-flex; gap: 4px; color: #22c55e; }
.stars-row svg { width: 16px; height: 16px; display: block; }
.reviews-nav { display: flex; gap: 0.5rem; justify-content: center; padding: 0.5rem 0 1.25rem; }
.reviews-dots { display: flex; gap: 6px; justify-content: center; padding-bottom: 1rem; }
.reviews-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(2,6,23,0.25); }
.reviews-dots button[aria-current="true"] { width: 22px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
/* Review footer meta */
.review-meta { display: flex; gap: 0.5rem; align-items: center; color: var(--muted); font-size: 0.9rem; }
.badge-source { padding: 0.15rem 0.45rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
@media (max-width: 1024px) { .reviews-track { grid-auto-columns: calc(50% - 0.5rem); } }
@media (max-width: 640px) { .reviews-track { grid-auto-columns: 100%; } }

/* Breadcrumbs */
.breadcrumb-bar { border-bottom: 1px solid var(--border); background:
  linear-gradient(180deg, rgba(240,249,255,0.6), rgba(248,250,252,0.9)); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.6rem 0; font-size: 0.95rem; }
.breadcrumbs a { color: var(--brand-700); font-weight: 600; }
.breadcrumbs .crumb-current { color: var(--muted); font-weight: 600; }
.breadcrumbs .sep { color: var(--muted); opacity: 0.8; }

/* Image slider */
.slider-section { padding: 0; }
.slider-section .container { width: 100%; margin: 0; }
.slider { position: relative; width: 100%; border: 1px solid var(--border); border-radius: 0; overflow: hidden; background: #fff; box-shadow: none; }
.slider-viewport { overflow: hidden; }
.slider-track { display: flex; transition: transform 450ms ease; will-change: transform; }
.slide { position: relative; min-width: 100%; }
.slide-media { aspect-ratio: 21/9; background: linear-gradient(135deg, #eef2ff, #ecfdf5); position: relative; }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 0.5rem; pointer-events: none; }
.slider-nav button { pointer-events: auto; border: 1px solid var(--border); background: #ffffffcc; backdrop-filter: blur(6px); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-sm); }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center; }
.slider-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(2,6,23,0.25); box-shadow: var(--shadow-sm); }
.slider-dots button[aria-current="true"] { width: 22px; background: linear-gradient(90deg, var(--brand), var(--accent)); }


