/* ========================================
   SR12 Herbal — Stylesheet
   ======================================== */

:root {
  --green-900: #1a3d2e;
  --green-800: #234d3a;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-400: #74c69d;
  --green-100: #d8f3dc;
  --green-50: #f0faf4;
  --gold-500: #c9a227;
  --gold-400: #e6bc3a;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --text: #1a1a2e;
  --text-muted: #5c6370;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fbf9;
  --bg-body: #f0faf4;
  --bg-header: rgba(255, 255, 255, 0.92);
  --border-color: rgba(45, 106, 79, 0.12);
  --border-light: #eeeeee;
  --input-bg: #ffffff;
  --shadow: 0 4px 24px rgba(26, 61, 46, 0.10);
  --shadow-lg: 0 12px 48px rgba(26, 61, 46, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  /* Benefits section — warna tetap kontras (tidak ikut swap dark mode) */
  --benefits-bg-start: #234d3a;
  --benefits-bg-end: #1a3d2e;
  --benefits-heading: #ffffff;
  --benefits-text: rgba(255, 255, 255, 0.88);
  --benefits-tag-bg: rgba(255, 255, 255, 0.15);
  --benefits-tag-text: #d8f3dc;
  --benefits-card-bg: rgba(255, 255, 255, 0.09);
  --benefits-card-border: rgba(255, 255, 255, 0.18);
  /* Footer — warna tetap kontras */
  --footer-bg: #1a3d2e;
  --footer-heading: #ffffff;
  --footer-text: rgba(255, 255, 255, 0.88);
  --footer-link: #74c69d;
  --footer-link-hover: #ffffff;
  --footer-copy: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] {
  color-scheme: dark;
  --green-900: #d1fae5;
  --green-800: #a7f3d0;
  --green-700: #6ee7b7;
  --green-600: #34d399;
  --green-500: #10b981;
  --green-400: #059669;
  --green-100: #1a2e25;
  --green-50: #0d1612;
  --text: #e8f0ec;
  --text-muted: #8fa898;
  --white: #ffffff;
  --surface: #162019;
  --surface-2: #1a2820;
  --bg-body: #0d1612;
  --bg-header: rgba(13, 22, 18, 0.95);
  --border-color: rgba(116, 198, 157, 0.14);
  --border-light: #243028;
  --input-bg: #1a2820;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --benefits-bg-start: #0f2219;
  --benefits-bg-end: #081410;
  --benefits-heading: #ecfdf5;
  --benefits-text: rgba(236, 253, 245, 0.88);
  --benefits-tag-bg: rgba(255, 255, 255, 0.1);
  --benefits-tag-text: #a7f3d0;
  --benefits-card-bg: rgba(255, 255, 255, 0.06);
  --benefits-card-border: rgba(255, 255, 255, 0.12);
  --footer-bg: #060f0b;
  --footer-heading: #ecfdf5;
  --footer-text: rgba(236, 253, 245, 0.88);
  --footer-link: #6ee7b7;
  --footer-link-hover: #ffffff;
  --footer-copy: rgba(236, 253, 245, 0.65);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }

img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.hidden { display: none !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 106, 79, 0.45);
  color: var(--white);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border-light);
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  padding-top: var(--safe-top);
}

.header--scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.logo__img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo__text strong { font-size: 1.15rem; color: var(--green-800); }
.logo__text small { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.nav { display: flex; gap: 1.75rem; }

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav__link:hover { color: var(--green-700); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* ---- Theme Toggle ---- */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--green-400);
  color: var(--white);
}
.theme-toggle__icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-toggle__sun { opacity: 1; transform: rotate(0deg); }
.theme-toggle__moon { opacity: 0; transform: rotate(-30deg) scale(0.8); }
.theme-toggle--dark .theme-toggle__sun { opacity: 0; transform: rotate(30deg) scale(0.8); }
.theme-toggle--dark .theme-toggle__moon { opacity: 1; transform: rotate(0deg); }
.theme-toggle--floating {
  position: fixed;
  top: calc(1rem + var(--safe-top));
  right: 1rem;
  z-index: 200;
  box-shadow: var(--shadow);
}

.cart-btn {
  position: relative;
  background: var(--green-100);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green-700);
  transition: var(--transition);
}
.cart-btn:hover { background: var(--green-400); color: var(--white); }

.cart-btn__badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--gold-500);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--green-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem + var(--safe-top)) 0 calc(3rem + var(--safe-bottom));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(82, 183, 136, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-body) 0%, var(--green-100) 50%, var(--green-100) 100%);
  z-index: 0;
}
[data-theme="dark"] .hero__bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-body) 0%, #0f1a15 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232d6a4f' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-block;
  background: rgba(45, 106, 79, 0.1);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(45, 106, 79, 0.2);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--green-900);
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green-600), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--green-700);
  font-weight: 800;
}
.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Section headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header--light .section-title { color: var(--benefits-heading); }
.section-header--light .section-desc { color: var(--benefits-text); }
.section-header--light .section-tag {
  background: var(--benefits-tag-bg);
  color: var(--benefits-tag-text);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  background: var(--green-100);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: var(--green-900);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  font-size: 0.95rem;
}

/* ---- Products ---- */
.products {
  padding: 80px 0;
}

.products__toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.9rem;
  width: 100%;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

.sort-select {
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  outline: none;
  min-width: 0;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.products__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  font-size: 1rem;
}

/* ---- Product Card ---- */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  animation: fadeUp 0.4s ease both;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__visual {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .product-card__visual {
  cursor: pointer;
  transition: filter 0.25s ease;
}

.product-card .product-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.product-card .product-card__visual:hover::after {
  background: rgba(0, 0, 0, 0.06);
}

.product-card .product-card__visual:hover .product-card__emoji { transform: scale(1.1); }
.product-card .product-card__visual:hover .product-card__photo { transform: scale(1.08); }

.product-card__emoji {
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.product-card__visual--photo {
  padding: 0.75rem;
}

.product-card__photo {
  max-height: 150px;
  max-width: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__emoji { transform: none; }
.product-card:hover .product-card__photo { transform: none; }

.product-card .product-card__name {
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-card .product-card__name:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item__photo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.product-card__photo[src=""],
.product-card__photo:not([src]) {
  display: none;
}

.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold-500);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-600);
  margin-bottom: 0.35rem;
}

.product-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-700);
}

.product-card__price--contact {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-card__actions {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.product-card__actions .btn {
  flex: 1;
  align-items: center;
  justify-content: center;
}

.product-card__actions .btn--sm {
  font-size: 0.8rem;
  padding: 0.55rem 0.75rem;
}

.btn--icon {
  padding: 0.5rem;
  min-height: 36px;
  border-radius: 8px;
}

.btn--icon svg {
  display: block;
  flex-shrink: 0;
}

/* Desktop: tombol teks saja | Mobile: tombol ikon saja */
.product-card__actions .product-card__btn-icon {
  display: none;
}

.product-card__actions .product-card__btn-text {
  display: inline-flex;
}

/* ---- Benefits ---- */
.benefits {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--benefits-bg-start) 0%, var(--benefits-bg-end) 100%);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: var(--benefits-card-bg);
  border: 1px solid var(--benefits-card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.benefit-card__icon { font-size: 2rem; margin-bottom: 1rem; }

.benefit-card h3 {
  color: var(--benefits-heading);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--benefits-text);
  font-size: 0.88rem;
}

/* ---- How to ---- */
.how-to { padding: 80px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.step__num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1rem;
  color: var(--green-900);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__brand strong { color: var(--footer-heading); display: block; }
.footer__brand p { font-size: 0.85rem; color: var(--footer-text); }

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a { color: var(--footer-link); font-size: 0.9rem; font-weight: 600; }
.footer__links a:hover { color: var(--footer-link-hover); }

.footer__copy { font-size: 0.8rem; color: var(--footer-copy); }

/* ---- Cart Sidebar ---- */
.cart-sidebar { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.cart-sidebar--open { pointer-events: auto; }

.cart-sidebar__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}
.cart-sidebar--open .cart-sidebar__overlay { background: rgba(0, 0, 0, 0.45); }

.cart-sidebar__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(400px, 100vw);
  height: 100%;
  height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  padding-bottom: var(--safe-bottom);
}
.cart-sidebar--open .cart-sidebar__panel { transform: translateX(0); }

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.cart-sidebar__header h2 { font-size: 1.15rem; color: var(--green-900); }

.cart-sidebar__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.25rem;
}
.cart-sidebar__close:hover { color: var(--text); }

.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.cart-item__emoji { font-size: 2rem; flex-shrink: 0; }

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 0.9rem; color: var(--green-900); }
.cart-item__price { font-size: 0.82rem; color: var(--green-600); font-weight: 600; }

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.qty-btn {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border-light);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text);
}
.qty-btn:hover { border-color: var(--green-500); color: var(--green-700); }

.cart-item__qty span { font-weight: 700; font-size: 0.9rem; min-width: 20px; text-align: center; }

.cart-item__remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  transition: var(--transition);
}
.cart-item__remove:hover { color: #e74c3c; }

.cart-sidebar__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.cart-total strong { font-size: 1.2rem; color: var(--green-700); }

/* ---- Modal ---- */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  width: min(900px, 92vw);
  max-width: 92vw;
  max-height: 90dvh;
  height: fit-content;
  margin: auto;
  overflow: visible;
  position: fixed;
  inset: 0;
  transform: none;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.modal__content {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.modal__close:hover { color: var(--text); }

.modal__body {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  align-items: stretch;
}

.modal__visual {
  min-height: 380px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal__visual .product-card__emoji { font-size: 6rem; }

.modal__visual .product-card__photo {
  max-height: 320px;
  max-width: 85%;
}

.modal__info {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal__info h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--green-900);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.modal__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-700);
  margin-bottom: 1rem;
}

.modal__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.modal__benefits h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-600);
  margin-bottom: 0.6rem;
}

.modal__benefits ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.modal__benefits li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.modal__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}
.modal__actions .btn { flex: 1; min-width: 140px; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-800);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- FAB WhatsApp ---- */
.fab-whatsapp {
  position: fixed;
  bottom: calc(1.75rem + var(--safe-bottom));
  right: calc(1.75rem + env(safe-area-inset-right, 0px));
  width: 58px; height: 58px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.fab-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.08);
  color: var(--white);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.7); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */

/* Tablet landscape & small laptop */
@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .benefits__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 99;
  }
  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
  }

  .menu-toggle { display: flex; }

  .logo__text small { display: none; }

  .hero__stats { gap: 1.5rem; }
  .hero__desc { font-size: 1rem; }

  .products { padding: 48px 0; }
  .benefits { padding: 48px 0; }
  .how-to { padding: 48px 0; }

  .section-header { margin-bottom: 1.25rem; }
  .section-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .section-desc { font-size: 0.82rem; }
  .section-tag { font-size: 0.65rem; padding: 0.25rem 0.65rem; }

  .products__toolbar { flex-direction: column; margin-bottom: 1rem; gap: 0.5rem; }
  .search-box { padding: 0.5rem 0.9rem; }
  .search-box input { font-size: 0.82rem; }
  .sort-select { width: 100%; font-size: 0.82rem; padding: 0.5rem 0.9rem; }

  /* Katalog compact — 3 kolom */
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-card:hover {
    transform: none;
  }

  .product-card__visual {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-card__visual--photo {
    padding: 0.4rem;
    min-height: 0;
  }

  .product-card__emoji {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

  .product-card__photo {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
  }

  .product-card__badge {
    top: 3px;
    left: 3px;
    font-size: 0.42rem;
    padding: 0.1rem 0.28rem;
    letter-spacing: 0;
  }

  .product-card__body {
    padding: 0.4rem 0.35rem 0.45rem;
  }

  .product-card__category {
    display: none;
  }

  .product-card__name {
    font-size: 0.62rem;
    margin-bottom: 0.15rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .product-card__desc {
    display: none;
  }

  .product-card__footer {
    margin-top: 0.1rem;
  }

  .product-card__price {
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .product-card__price--contact {
    font-size: 0.52rem;
  }

  .product-card__actions {
    flex-direction: row;
    gap: 0.25rem;
    margin-top: 0.3rem;
  }

  .product-card__actions .product-card__btn-text {
    display: none;
  }

  .product-card__actions .product-card__btn-icon {
    display: inline-flex;
  }

  .product-card__actions .btn--icon {
    padding: 0.22rem;
    min-height: 26px;
    border-radius: 6px;
    flex: 1;
  }

  .product-card__actions .btn--icon svg {
    width: 13px;
    height: 13px;
  }

  .modal {
    width: min(560px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    inset: 0;
    margin: auto;
    transform: none;
  }

  .modal__body {
    display: block;
  }

  .modal__visual {
    min-height: 200px;
    height: 200px;
  }

  .modal__visual .product-card__emoji { font-size: 5rem; }

  .modal__visual .product-card__photo {
    max-height: 180px;
    max-width: 92%;
  }

  .modal__info {
    padding: 1.75rem;
  }

  .modal__info h2 {
    font-size: 1.5rem;
  }

  .modal__price {
    font-size: 1.3rem;
  }

  .modal__benefits ul {
    grid-template-columns: 1fr;
  }

  .modal__actions {
    margin-top: 0;
    padding-top: 0;
    flex-direction: column;
  }
  .modal__actions .btn { width: 100%; min-width: 0; }

  .toast {
    max-width: calc(100vw - 2rem);
    white-space: normal;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container { width: min(1140px, 96vw); }

  .logo__text strong { font-size: 0.95rem; }
  .logo__img { width: 32px; height: 32px; }

  .hero__title { font-size: 1.75rem; }
  .hero__desc { font-size: 0.88rem; margin-bottom: 1.25rem; }
  .hero__badge { font-size: 0.68rem; padding: 0.3rem 0.7rem; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; flex: 1; min-width: 0; font-size: 0.82rem; padding: 0.6rem 0.9rem; }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
  }
  .stat { text-align: center; }
  .stat strong { font-size: 1rem; }
  .stat span { font-size: 0.68rem; }

  .products__grid {
    gap: 0.4rem;
  }

  .product-card__emoji { font-size: clamp(1.35rem, 8vw, 1.9rem); }
  .product-card__name { font-size: 0.58rem; }
  .product-card__price { font-size: 0.55rem; }
  .product-card__actions .btn--icon { min-height: 24px; }
  .product-card__actions .btn--icon svg { width: 12px; height: 12px; }

  .steps {
    grid-template-columns: 1fr;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .fab-whatsapp {
    bottom: calc(1rem + var(--safe-bottom));
    right: calc(1rem + env(safe-area-inset-right, 0px));
    width: 48px;
    height: 48px;
  }

  .theme-toggle,
  .cart-btn {
    width: 36px;
    height: 36px;
  }

  .theme-toggle__icon,
  .cart-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .logo__text { display: none; }
  .hero__title { font-size: 1.55rem; }
  .section-title { font-size: 1.2rem; }

  .products__grid { gap: 0.35rem; }
  .product-card__emoji { font-size: clamp(1.2rem, 7vw, 1.6rem); }
  .product-card__body { padding: 0.35rem 0.3rem; }
  .product-card__name { font-size: 0.55rem; }
  .product-card__price { font-size: 0.52rem; }
  .product-card__actions .btn--icon { min-height: 22px; padding: 0.18rem; }
  .product-card__actions .btn--icon svg { width: 11px; height: 11px; }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.5rem + var(--safe-top));
    padding-bottom: 2rem;
  }
  .hero__stats { margin-top: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fab-whatsapp { animation: none; }
}
