:root {
  --bg: #f7f5ef;
  --ink: #20201d;
  --muted: #6f6c63;
  --card: #fffefa;
  --line: #e5dfd2;
  --green: #18694f;
  --sun: #f1b83b;
  --coral: #e85b43;
  --shadow: 0 18px 55px rgba(32, 32, 29, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  background: rgba(255, 254, 250, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 223, 210, .8);
}
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand small { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; }
.nav-links a { padding: 8px 12px; border-radius: 8px; transition: background 0.2s; }
.nav-links a:hover { background: rgba(24,105,79,0.1); color: var(--green); }
.hamburger { display: none; }

.hero {
  min-height: min(760px, calc(100svh - 72px));
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: #111;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.26) 55%, rgba(0,0,0,.15));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(28px, 8vw, 82px);
  color: white;
}
.eyebrow {
  display: inline-flex;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 11px;
  background: rgba(241,184,59,.18);
  color: var(--sun);
  border: 1px solid rgba(241,184,59,.38);
  border-radius: 999px;
}
h1, h2, h3 { letter-spacing: 0; margin: 0; }
.hero h1 {
  margin-top: 14px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: .96;
  max-width: 720px;
}
.hero p { color: rgba(255,255,255,.88); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; max-width: 620px; }
.hero-actions, .price-row, .form-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
}
.btn.primary { background: var(--green); color: white; border-color: var(--green); }
.btn.ghost { background: rgba(255,255,255,.1); color: inherit; border-color: rgba(255,255,255,.35); }
.btn.small { min-height: 40px; font-size: 14px; }
.btn.full { width: 100%; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.trust-strip span {
  background: var(--card);
  min-height: 64px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  color: var(--green);
}
.section { padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 44px); }
.section-head { margin-bottom: 24px; }
.section-head h2, .section-head h1 { margin-top: 10px; font-size: clamp(28px, 4vw, 48px); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card, .checkout-card, .success-card, .invoice-card, .settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.product-card { overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-card-body { padding: 18px; display: grid; gap: 10px; }
.product-card p, .micro { color: var(--muted); line-height: 1.5; }
.price-row del { color: var(--muted); }
.price-row strong { color: var(--coral); font-size: 22px; }
.price-row.big strong { font-size: 34px; }

.product-page { padding-bottom: 72px; }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  gap: 24px;
  padding: clamp(16px, 4vw, 44px);
}
.media-stack, .buy-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.media-stack video, .media-stack > img { width: 100%; height: min(68svh, 680px); object-fit: cover; }
.product-video { background: #111; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #fafaf8;
}
.gallery-thumb {
  flex: 0 0 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: white;
  transition: border-color .15s, transform .15s;
}
.gallery-thumb:hover { transform: scale(1.04); }
.gallery-thumb.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(24,105,79,.25); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-viewer {
  display: none;
  border-top: 1px solid var(--line);
  background: #0d1a14;
  color: #fff;
  padding: 12px;
}
.gallery-viewer.open { display: block; }
.gallery-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}
.gallery-zoom-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gallery-zoom-wrap input { width: 120px; min-height: auto; }
.gallery-icon-btn {
  border: 0;
  background: rgba(255,255,255,.15);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
}
.gallery-viewer-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.gallery-main-wrap {
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  min-height: min(50vh, 420px);
  display: grid;
  place-items: center;
}
.gallery-main-wrap img {
  max-width: 100%;
  max-height: min(50vh, 420px);
  object-fit: contain;
  transition: transform .2s ease;
  cursor: zoom-in;
}
.gallery-nav {
  border: 0;
  background: rgba(255,255,255,.12);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.gallery-hint { margin: 10px 0 0; font-size: 12px; opacity: .7; text-align: center; }
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.proof-row span { padding: 14px; text-align: center; font-weight: 800; color: var(--green); border-right: 1px solid var(--line); }
.buy-panel { padding: 24px; position: sticky; top: 92px; align-self: start; }
.buy-panel h1 { margin-top: 12px; font-size: clamp(28px, 4vw, 48px); line-height: 1.06; }
.buy-panel > p { color: var(--muted); line-height: 1.6; }
.countdown { padding: 12px; background: #fff3d4; border-radius: 8px; margin: 14px 0; font-weight: 800; }

.checkout-card { padding: 16px; display: grid; gap: 12px; box-shadow: none; }
label { display: grid; gap: 6px; font-weight: 800; }
label span { color: var(--muted); font-weight: 600; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: white;
}
textarea { min-height: 86px; resize: vertical; }
.form-row { align-items: start; }
.form-row > label { flex: 1 1 150px; }
.order-bumps { display: grid; gap: 10px; padding: 12px; background: #f5f8f3; border-radius: 8px; }
.order-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.order-summary > div { display: flex; justify-content: space-between; }
.order-summary .total-line { font-weight: 800; font-size: 16px; padding-top: 8px; border-top: 1px dashed var(--line); }
.chat-loading { opacity: .5; font-style: italic; }
.admin-side small { display: block; color: var(--muted); margin-bottom: 8px; font-size: 12px; }
.bump-item { grid-template-columns: auto 48px 1fr; align-items: center; display: grid; }
.bump-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.bump-item small { display: block; color: var(--muted); }
.tiny-save { display: none; }
.details-band { background: #eef4ed; }
.feature-grid, .kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-grid > div, .kpi-grid > div, .track-result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.mobile-sticky { display: none; }
.floating-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 900;
  box-shadow: var(--shadow);
}
.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: min(380px, calc(100vw - 32px));
  max-height: 560px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 35;
  display: none;
  overflow: hidden;
}
.chat-panel.open { display: grid; grid-template-rows: auto 1fr auto; }
.chat-head { display: flex; justify-content: space-between; padding: 14px; background: var(--green); color: white; }
.chat-head button { border: 0; background: transparent; color: white; font-size: 24px; }
.chat-body { padding: 14px; max-height: 320px; overflow: auto; }
.chat-body p { background: #f4f6f1; padding: 10px; border-radius: 8px; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form button { border: 0; background: var(--green); color: white; border-radius: 8px; padding-inline: 12px; font-weight: 800; }

.center-page { min-height: 70svh; display: grid; place-items: center; padding: 28px 16px; }
.success-card, .invoice-card { width: min(720px, 100%); padding: clamp(20px, 4vw, 38px); }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 34px; }
.invoice-top { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
dt { color: var(--muted); }
.faq-list { display: grid; gap: 12px; max-width: 860px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
summary { cursor: pointer; font-weight: 900; }

.site-footer { padding: 32px 16px 96px; text-align: center; color: var(--muted); }

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100svh; }
.admin-side { background: #173c31; color: white; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.admin-main { padding: 28px; }
.status { padding: 12px; border-radius: 8px; margin: 16px 0; }
.status.ok { background: #dff5e9; }
.status.warn { background: #fff3d4; }
.status small { display: block; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.kpi-grid { grid-template-columns: repeat(4, 1fr); margin: 18px 0 28px; }
.kpi-grid span { color: var(--muted); display: block; }
.kpi-grid strong { font-size: 30px; }
.table-wrap { overflow: auto; background: white; border-radius: 8px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.settings-card { padding: 20px; max-width: 720px; display: grid; gap: 12px; margin-bottom: 16px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; min-height: auto; }
.notice { background: #dff5e9; padding: 12px; border-radius: 8px; }
.error { color: #b3261e; }

@media (max-width: 840px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    position: absolute;
    right: 16px;
    top: 20px;
  }
  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: 0.3s;
  }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

  .nav-links { 
    width: 100%; 
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px; 
    display: none;
  }
  .nav-links.active {
    display: flex;
  }

  .trust-strip, .product-grid, .product-hero, .feature-grid, .kpi-grid, .admin-shell { grid-template-columns: 1fr; }
  .hero { min-height: 680px; }
  .product-hero { padding: 12px; }
  .buy-panel { position: static; }
  .media-stack video, .media-stack > img { height: 420px; }
  .mobile-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--green); }
  .mobile-sticky a { min-height: 56px; display: grid; place-items: center; color: white; font-weight: 900; }
  .floating-chat { bottom: 70px; }
  .chat-panel { bottom: 134px; right: 12px; }
  .admin-side { min-height: auto; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 38px; }
  .proof-row { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
}

/* ========== Modern Homepage ========== */
.home-hero {
  position: relative;
  min-height: min(92svh, 920px);
  overflow: hidden;
  background: #0d1f18;
}
.home-hero-bg { position: absolute; inset: 0; }
.home-hero-bg video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .45;
  transform: scale(1.04);
}
.home-hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(241,184,59,.35), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(24,105,79,.5), transparent 55%),
    linear-gradient(135deg, rgba(13,31,24,.92) 0%, rgba(13,31,24,.75) 50%, rgba(13,31,24,.55) 100%);
}
.home-hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: min(92svh, 920px);
}
.home-hero-copy { color: #fff; }
.home-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 12px; font-weight: 800;
  color: var(--sun);
  backdrop-filter: blur(8px);
}
.home-pill.small { font-size: 11px; padding: 6px 10px; }
.home-hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.home-hero-copy > p {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 48ch;
  margin: 0 0 24px;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.home-cta {
  box-shadow: 0 12px 40px rgba(24,105,79,.45);
  transform: translateY(0);
  transition: transform .2s, box-shadow .2s;
}
.home-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(24,105,79,.55); }
.home-cta-ghost {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.home-stats {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
}
.home-stats div { display: grid; gap: 2px; }
.home-stats strong { font-size: 22px; color: var(--sun); }
.home-stats span { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; }

.home-hero-card {
  display: grid;
  background: rgba(255,254,250,.96);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .25s;
  color: var(--ink);
}
.home-hero-card:hover { transform: translateY(-6px) scale(1.01); }
.home-hero-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.home-hero-card-body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.home-hero-card h3 { font-size: 20px; line-height: 1.25; }
.home-card-link { font-weight: 800; color: var(--green); font-size: 14px; }

.home-marquee {
  overflow: hidden;
  background: var(--green);
  color: white;
  padding: 14px 0;
  border-block: 1px solid rgba(0,0,0,.08);
}
.home-marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: marquee 22s linear infinite;
  font-weight: 800; font-size: 14px;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-categories {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 32px; padding-bottom: 0;
}
.home-cat {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
}
.home-cat:hover, .home-cat.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.home-section-head p { color: var(--muted); margin-top: 8px; }
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.home-product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(32,32,29,.06);
  transition: transform .25s, box-shadow .25s;
  animation: cardIn .5s ease backwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(32,32,29,.12);
}
.home-product-card.is-hot {
  border-color: rgba(241,184,59,.6);
  box-shadow: 0 12px 40px rgba(241,184,59,.15);
}
.home-product-media { position: relative; display: block; overflow: hidden; }
.home-product-media img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  transition: transform .4s;
}
.home-product-card:hover .home-product-media img { transform: scale(1.06); }
.home-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--coral); color: white;
  font-size: 11px; font-weight: 900;
  padding: 6px 10px; border-radius: 6px;
}
.home-product-body { padding: 18px; display: grid; gap: 8px; }
.home-product-body h3 { font-size: 17px; line-height: 1.3; }
.home-product-body h3 a:hover { color: var(--green); }
.home-product-body p {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-product-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted);
}

.home-cta-band {
  margin: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 44px);
  padding: clamp(36px, 6vw, 64px);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--green) 0%, #0f4a38 100%);
  color: white;
  text-align: center;
  box-shadow: 0 24px 60px rgba(24,105,79,.25);
}
.home-cta-inner { max-width: 560px; margin: 0 auto; }
.home-cta-band h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 10px; }
.home-cta-band p { opacity: .88; margin-bottom: 22px; }
.home-cta-band .btn { background: var(--sun); color: #1a1a1a; border-color: var(--sun); }

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; min-height: auto; padding-bottom: 48px; }
  .home-hero-card { max-width: 400px; }
  .home-hero-copy h1 { max-width: none; }
}
@media (max-width: 840px) {
  .home-product-grid { grid-template-columns: 1fr; }
}
