:root {
  --lime: #a3e635;
  --lime-dark: #65a30d;
  --ink: #14210b;
  --muted: #5d6755;
  --paper: #fbfdf6;
  --line: #dfe8d4;
  --panel: #ffffff;
  --accent: #0f766e;
  --danger: #dc2626;
  --shadow: 0 16px 40px rgba(20, 33, 11, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  animation: pageFade .55s var(--ease) both;
  overflow-x: hidden;
}

body.dark {
  --ink: #f2f7e9;
  --muted: #bac7ad;
  --paper: #10140d;
  --line: #334027;
  --panel: #192114;
  --shadow: 0 16px 40px rgba(0, 0, 0, .36);
}

body.dark .primary-btn,
body.dark .brand-mark,
body.dark .option-pill.active,
body.dark .delivery-chip,
body.dark .detail-promise span,
body.dark .coupon-help {
  color: #14210b;
}

body.dark .secondary-btn,
body.dark .option-pill {
  color: #f2f7e9;
}

body.dark .detail-promise span,
body.dark .delivery-chip {
  background: color-mix(in srgb, var(--lime) 82%, #ffffff);
  border-color: var(--lime);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(14px, 4vw, 44px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  animation: slideDown .55s var(--ease) both;
}

.brand, .top-actions, .nav-links, .hero-actions, .tool-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform .25s var(--ease);
}

.brand:hover { transform: translateY(-1px); }

.brand a {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #14210b;
  background: var(--lime);
  animation: brandPulse 3.2s ease-in-out infinite;
}

.nav-links {
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: .95rem;
}

.nav-links a {
  position: relative;
  transition: color .22s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 99px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.top-actions { gap: 8px; justify-content: end; }

.icon-btn, .cart-button, .primary-btn, .secondary-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
  overflow: hidden;
  position: relative;
}

.icon-btn:hover, .cart-button:hover, .primary-btn:hover, .secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 33, 11, .12);
}

.icon-btn:active, .cart-button:active, .primary-btn:active, .secondary-btn:active {
  transform: translateY(0) scale(.98);
}

.icon-btn {
  min-width: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--panel);
}

.secret-admin {
  width: 30px;
  min-width: 30px;
  height: 34px;
  min-height: 34px;
  border: 0;
  padding: 0;
  color: color-mix(in srgb, var(--muted) 32%, transparent);
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.secret-admin:hover {
  color: var(--lime-dark);
  background: color-mix(in srgb, var(--lime) 16%, transparent);
  box-shadow: none;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #14210b;
  background: var(--lime);
  border-color: transparent;
  font-weight: 700;
}

.cart-button.has-items {
  animation: cartGlow 2.2s ease-in-out infinite;
}

.cart-button.has-items::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -35%;
  width: 28%;
  pointer-events: none;
  background: rgba(255, 255, 255, .65);
  filter: blur(5px);
  transform: skewX(-18deg);
  animation: cartShine 2.2s ease-in-out infinite;
}

.cart-button.has-items #cartCount {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--lime);
  background: #14210b;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .3);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(24px, 5vw, 64px) clamp(14px, 5vw, 70px);
}

.hero-copy {
  animation: riseIn .7s var(--ease) .08s both;
}

.hero h1 {
  margin: 8px 0;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .9;
  letter-spacing: 0;
  background: linear-gradient(90deg, var(--ink), var(--lime-dark), var(--ink));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textSheen 5.5s ease-in-out infinite;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0;
  color: var(--lime-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero-actions { gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
}

.primary-btn {
  color: #14210b;
  background: var(--lime);
  border-color: var(--lime);
  isolation: isolate;
}

.primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.38) 45%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .65s var(--ease);
}

.primary-btn:hover::before { transform: translateX(120%); }

.secondary-btn {
  color: var(--ink);
  background: var(--panel);
}

.buy-now-btn {
  position: relative;
  overflow: hidden;
  color: white;
  border-color: transparent;
  border-width: 2px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.34), transparent 26%) padding-box,
    linear-gradient(135deg, #0f766e 0%, #16a34a 48%, #8de52f 100%) padding-box,
    conic-gradient(from var(--buy-stroke-angle), #8de52f, #ffffff, #0f766e, #8de52f) border-box;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .22), inset 0 1px 0 rgba(255,255,255,.35);
  animation: buyStrokeSpin 2.4s linear infinite;
}

.buy-now-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.46) 45%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}

.buy-now-btn:hover {
  border-color: #16a34a;
  box-shadow: 0 16px 32px rgba(22, 163, 74, .28), inset 0 1px 0 rgba(255,255,255,.42);
}

.buy-now-btn:hover::before { transform: translateX(120%); }

.buy-now-btn:disabled {
  color: var(--muted);
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
  animation: none;
}

body.dark .primary-btn:disabled,
body.dark .secondary-btn:disabled,
body.dark .buy-now-btn:disabled {
  color: #d8e5cb;
  background: #26331e;
  border-color: #51643f;
}

.hero-media {
  aspect-ratio: 1.12;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: scaleIn .75s var(--ease) .16s both;
}

.hero-media img, .product-card img, .product-card video, .detail-media img, .detail-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease), filter .35s var(--ease);
}

.hero-media:hover img { transform: scale(1.04); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(14px, 5vw, 70px) 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-strip span {
  padding: 16px;
  background: var(--panel);
  text-align: center;
  font-weight: 700;
  transition: transform .22s var(--ease), background .22s var(--ease);
}

.trust-strip span:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--lime) 14%, var(--panel));
}

.section-head, .shop-tools, .deal-band, .info-grid, .contact, .follow-section {
  margin-inline: clamp(14px, 5vw, 70px);
}

.section-head, .deal-band, .contact, .follow-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2, .contact h2, .follow-section h2 {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.countdown {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 900;
  font-size: 1.2rem;
}

.deal-band {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  position: relative;
}

.deal-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, color-mix(in srgb, var(--lime) 22%, transparent) 45%, transparent 65%);
  transform: translateX(-120%);
  animation: shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

.deal-band p, .contact p, .info-grid p { color: var(--muted); }

.featured-slider {
  margin: 28px clamp(14px, 5vw, 70px);
}

.featured-slider .section-head {
  margin-inline: 0;
  margin-bottom: 14px;
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.featured-window {
  overflow: hidden;
  border-radius: 8px;
}

.featured-track {
  display: flex;
  gap: 14px;
  transition: transform .55s var(--ease);
  will-change: transform;
}

.featured-slide {
  display: grid;
  gap: 9px;
  min-width: 216px;
  max-width: 216px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(20, 33, 11, .06);
  cursor: pointer;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.featured-slide:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--lime) 70%, var(--line));
  box-shadow: 0 16px 34px rgba(20, 33, 11, .12);
}

.featured-media {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.featured-media img,
.featured-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}

.featured-slide:hover .featured-media img,
.featured-slide:hover .featured-media video {
  transform: scale(1.06);
}

.featured-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 0;
}

.featured-copy h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 28px;
}

.search-wrap input, .tool-row select, .coupon-box input, .admin-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.search-wrap input:focus, .tool-row select:focus, .coupon-box input:focus, .admin-search input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .delivery-settings-form input:focus {
  outline: none;
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 24%, transparent);
}

.tool-row { gap: 10px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px clamp(14px, 5vw, 70px) 34px;
}

.empty-state {
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: start;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--lime) 60%, var(--line));
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 90%, var(--lime));
}

.empty-state strong {
  color: var(--ink);
}

.product-empty {
  grid-column: 1 / -1;
  min-height: 150px;
}

.product-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(20, 33, 11, .06);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transform-style: preserve-3d;
  position: relative;
}

.product-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
  border-color: color-mix(in srgb, var(--lime) 72%, var(--line));
  box-shadow: 0 18px 42px rgba(20, 33, 11, .14);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, transparent, color-mix(in srgb, var(--lime) 46%, transparent), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}

.product-card:hover::after { opacity: 1; }

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.product-image:hover img, .product-image:hover video {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.badge, .stock {
  position: absolute;
  top: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: .72rem;
  animation: badgeIn .36s var(--ease) both;
}

.badge { left: 10px; color: #14210b; background: var(--lime); }
.badge.hot { color: white; background: #dc2626; }
.badge.popular { color: white; background: #0f766e; }
.badge.sold { color: white; background: #52525b; }
.badge.low { color: #14210b; background: #facc15; }
.stock { right: 10px; color: white; background: var(--accent); }
.stock.limited { color: #14210b; background: #facc15; }
.stock.out { background: var(--danger); }

.product-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
}

.delivery-chip {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--lime) 55%, var(--line));
  border-radius: 8px;
  padding: 5px 8px;
  color: #244000;
  background: color-mix(in srgb, var(--lime) 18%, var(--panel));
  font-size: .78rem;
  font-weight: 900;
}

.delivery-chip.muted {
  border-color: var(--line);
  color: var(--muted);
  background: var(--paper);
}

.detail-delivery-chip {
  font-size: .9rem;
}

.price {
  font-weight: 900;
  color: var(--ink);
}

.price-stack {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
  flex-wrap: wrap;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .86rem;
}

.off-tag {
  padding: 3px 6px;
  border-radius: 8px;
  color: white;
  background: var(--danger);
  font-size: .72rem;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
}

.wishlist.active { background: var(--lime); color: #14210b; }

.wishlist.active {
  animation: heartPop .34s var(--ease);
}

.recent-section {
  padding: 0 clamp(14px, 5vw, 70px) 34px;
}

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

.recent-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.recent-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--lime) 70%, var(--line));
  box-shadow: 0 14px 30px rgba(20, 33, 11, .11);
}

.recent-media {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.recent-media img, .recent-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-card strong, .recent-card span {
  display: block;
  min-width: 0;
}

.recent-card span {
  margin: 3px 0;
  color: var(--muted);
  font-size: .86rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.info-grid article, .contact, .follow-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}

.info-grid article:hover, .contact:hover, .follow-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 33, 11, .1);
}

.contact { margin-bottom: 18px; }

.follow-section { margin-bottom: 70px; }

.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--lime-dark);
  box-shadow: 0 10px 22px rgba(20, 33, 11, .12);
}

.social-link.facebook { color: #1877f2; }
.social-link.instagram { color: #c13584; }
.social-link.tiktok { color: #111; }

body.dark .social-link.tiktok { color: #f4f7ef; }

.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #14210b;
  background: var(--lime);
  box-shadow: var(--shadow);
  font-weight: 900;
  cursor: pointer;
  animation: floatButton 2.8s ease-in-out infinite;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: end;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s var(--ease), visibility .24s var(--ease);
}

.drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.drawer-panel {
  width: min(440px, 100%);
  height: 100%;
  overflow: auto;
  padding: 18px;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .32s var(--ease);
}

.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items { display: grid; gap: 10px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  animation: riseIn .32s var(--ease) both;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.cart-item:hover {
  transform: translateX(-3px);
  border-color: color-mix(in srgb, var(--lime) 55%, var(--line));
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--line);
}

.cart-item .price-stack {
  justify-content: start;
}

.cart-options {
  display: block;
  margin: 3px 0 5px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.cart-empty .secondary-btn {
  min-height: 38px;
}

.wishlist-actions {
  display: grid;
  gap: 6px;
}

.wishlist-actions .primary-btn {
  min-height: 34px;
  padding: 0 10px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.free-bar { margin: 16px 0; }
.free-bar-track { height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; }
.free-bar-track span { display: block; height: 100%; width: 0; background: var(--lime); }
.free-bar-track span { transition: width .45s var(--ease); }

.coupon-box { display: grid; gap: 6px; color: var(--muted); }

.coupon-help {
  color: var(--lime-dark);
  font-size: .82rem;
  font-weight: 800;
}

.coupon-status {
  min-height: 18px;
  color: var(--lime-dark);
  font-weight: 800;
}

.coupon-status.applied {
  animation: couponPop .7s ease;
}

.coupon-box.applied input {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 26%, transparent);
}

@keyframes couponPop {
  0% { transform: translateY(6px) scale(.96); opacity: 0; }
  55% { transform: translateY(-2px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@property --buy-stroke-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes buyStrokeSpin {
  to { --buy-stroke-angle: 360deg; }
}

.totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-form {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .92rem;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--panel);
  resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 24%, transparent);
}

.checkout-form select:disabled {
  color: var(--muted);
  opacity: .75;
}

.field-help {
  display: block;
  line-height: 1.45;
  color: var(--muted);
  font-size: .78rem;
}

.field-help.important {
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--lime) 52%, var(--line));
  border-radius: 8px;
  color: #244000;
  background: color-mix(in srgb, var(--lime) 16%, var(--panel));
  font-weight: 800;
}

body.dark .field-help.important {
  color: #14210b;
  background: color-mix(in srgb, var(--lime) 82%, #ffffff);
  border-color: var(--lime);
}

.field-help.error {
  display: none;
  color: var(--danger);
  font-weight: 800;
}

.field-help.error.show {
  display: block;
}

.checkout-form input:invalid {
  border-color: color-mix(in srgb, var(--danger) 72%, var(--line));
}

#customerDeliveryArea:disabled {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}

.checkout { width: 100%; }

dialog {
  width: min(820px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
}

dialog::backdrop { background: rgba(0, 0, 0, .5); }

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.product-detail-page {
  padding: 18px clamp(14px, 5vw, 70px) 44px;
}

.product-detail-page .section-head {
  margin-inline: 0;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
}

.detail-shell > div:first-child {
  position: sticky;
  top: 86px;
  min-width: 0;
}

.detail-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
  animation: scaleIn .5s var(--ease) both;
}

.detail-media.media-switch img {
  animation: gallerySwap .38s var(--ease) both;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.gallery-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  box-shadow: 0 10px 22px rgba(20, 33, 11, .12);
}

.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, .58);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple .58s ease-out;
}

.cart-flyer {
  position: fixed;
  z-index: 80;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  pointer-events: none;
  animation: flyToCart .72s var(--ease) forwards;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 28px));
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--lime) 55%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 92%, var(--lime));
  box-shadow: var(--shadow);
  transform: translate(-50%, 18px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
  font-weight: 800;
}

.toast.show {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.pop-bounce {
  animation: popBounce .42s var(--ease);
}

.page-enter {
  animation: pageSlideIn .45s var(--ease) both;
}

.heart-bit, .confetti-dot {
  position: fixed;
  z-index: 100;
  pointer-events: none;
}

.heart-bit {
  color: var(--danger);
  font-weight: 900;
  animation: heartBurst .72s var(--ease) forwards;
}

.confetti-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime-dark) 28%, transparent);
  animation: confettiPop .85s var(--ease) forwards;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info {
  display: grid;
  gap: 16px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.detail-price {
  font-size: 1.7rem;
  font-weight: 900;
}

.detail-price-stack {
  justify-content: start;
}

.detail-price-stack .old-price {
  font-size: 1rem;
}

.detail-price-stack .off-tag {
  font-size: .82rem;
}

.detail-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-promise span {
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--lime) 45%, var(--line));
  border-radius: 8px;
  color: #244000;
  background: color-mix(in srgb, var(--lime) 15%, var(--panel));
  font-size: .84rem;
  font-weight: 900;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-options {
  display: grid;
  gap: 8px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 8px;
}

.option-pill {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.option-pill:hover {
  transform: translateY(-2px);
  border-color: var(--lime-dark);
}

.option-pill.active {
  border-color: var(--lime-dark);
  background: var(--lime);
  color: #102006;
}

.quantity-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.quantity-box button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.quantity-box input {
  width: 50px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--ink);
  background: var(--panel);
  font-weight: 900;
}

.detail-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-block, .review-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  animation: riseIn .42s var(--ease) both;
}

.detail-description {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.detail-description h3 {
  margin: 0 0 8px;
}

.detail-block h3, .review-card h3 {
  margin: 0 0 8px;
}

.detail-block p, .review-card p, .detail-desc {
  color: var(--muted);
  line-height: 1.6;
}

.related-wrap {
  margin-top: 34px;
}

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

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-search {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--lime));
  color: var(--muted);
  font-size: .92rem;
}

.admin-search span {
  color: var(--ink);
  font-weight: 900;
}

.admin-empty {
  margin-top: 8px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .92rem;
}

.admin-form .check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-form .check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--lime-dark);
}

.admin-form input, .admin-form select, .admin-form textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--paper);
}

.admin-form textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

.admin-textarea {
  grid-column: span 1;
}

.admin-form small {
  color: var(--muted);
  line-height: 1.4;
}

.media-upload-wide {
  grid-column: 1 / -1;
}

.upload-drop-zone {
  border: 1px dashed color-mix(in srgb, var(--lime-dark) 45%, var(--line));
  border-radius: 10px;
  padding: 10px;
  background: color-mix(in srgb, var(--lime) 8%, var(--panel));
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.paste-drop-hint {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--lime-dark) 18%, var(--line));
  color: var(--muted);
  font-weight: 800;
  background: color-mix(in srgb, var(--lime) 10%, transparent);
}

.upload-drop-zone.drag-over, .upload-drop-zone.uploading {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 22%, transparent), 0 12px 28px color-mix(in srgb, var(--lime-dark) 18%, transparent);
  transform: translateY(-1px);
}

.upload-drop-zone.uploading .paste-drop-hint {
  color: var(--ink);
  background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 22%, transparent), color-mix(in srgb, var(--panel) 80%, transparent), color-mix(in srgb, var(--lime) 22%, transparent));
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
}

.admin-preview-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(48px, 1fr));
  gap: 8px;
}

.admin-preview-item {
  display: grid;
  gap: 6px;
}

.admin-preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-preview-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.admin-preview-actions button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inline-field .secondary-btn {
  min-height: 42px;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
}

.backup-panel,
.settings-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.backup-panel h3,
.settings-panel h3 {
  margin: 0 0 6px;
}

.backup-panel p,
.settings-panel p {
  margin: 0;
  color: var(--muted);
}

.delivery-settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(110px, auto);
  gap: 8px;
  align-items: end;
  width: min(100%, 520px);
}

.content-settings-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.content-settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .86rem;
}

.content-settings-form input,
.content-settings-form textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--panel);
  resize: vertical;
}

.content-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.delivery-settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .86rem;
}

.delivery-settings-form input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--panel);
}

.backup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.import-btn input {
  display: none;
}

.admin-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  animation: riseIn .26s var(--ease) both;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes riseIn {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 38%, transparent); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

@keyframes shimmer {
  0%, 55% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

@keyframes badgeIn {
  from { transform: translateY(-4px) scale(.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes heartPop {
  0% { transform: scale(.9); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes floatButton {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes textSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

@keyframes flyToCart {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  70% { opacity: 1; }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(.28) rotate(16deg);
    opacity: 0;
  }
}

@keyframes gallerySwap {
  from { transform: scale(.98); opacity: .35; filter: blur(6px); }
  to { transform: scale(1); opacity: 1; filter: blur(0); }
}

@keyframes popBounce {
  0% { transform: scale(1); }
  42% { transform: scale(1.28); }
  72% { transform: scale(.94); }
  100% { transform: scale(1); }
}

@keyframes cartGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(154, 230, 42, 0), 0 7px 16px rgba(20, 33, 11, .12); }
  50% { box-shadow: 0 0 0 6px rgba(154, 230, 42, .18), 0 10px 26px rgba(86, 140, 13, .34); }
}

@keyframes cartShine {
  0%, 28% { left: -35%; opacity: 0; }
  42% { opacity: .9; }
  62%, 100% { left: 118%; opacity: 0; }
}

@keyframes pageSlideIn {
  from { transform: translateX(18px); opacity: 0; filter: blur(5px); }
  to { transform: translateX(0); opacity: 1; filter: blur(0); }
}

@keyframes heartBurst {
  0% { transform: translate(-50%, -50%) scale(.7); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.45); opacity: 0; }
}

@keyframes confettiPop {
  0% { transform: translate(-50%, -50%) rotate(0) scale(.7); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.admin-row img, .admin-row video {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.option-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-shell { grid-template-columns: 1fr; }
  .detail-shell > div:first-child { position: static; }
  .detail-media { position: relative; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { gap: 10px; }
  .brand { font-size: 1rem; }
  .top-actions { gap: 6px; }
  .cart-button span { display: none; }
  .hero { padding-top: 22px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .section-head, .deal-band, .contact, .follow-section { align-items: stretch; flex-direction: column; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .social-links { justify-content: flex-start; }
  .featured-slider {
    margin-inline: 10px;
  }
  .featured-slide {
    min-width: 154px;
    max-width: 154px;
    padding: 8px;
  }
  .featured-media {
    min-height: 0;
  }
  .featured-copy {
    padding: 0;
  }
  .featured-copy h3 {
    font-size: .82rem;
  }
  .featured-copy p {
    font-size: .68rem;
  }
  .shop-tools { grid-template-columns: 1fr; }
  .tool-row { display: grid; grid-template-columns: 1fr; }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-inline: 10px;
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .recent-section {
    padding-inline: 10px;
  }
  .recent-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-card {
    gap: 8px;
    padding: 8px;
  }
  .product-title {
    font-size: .86rem;
    line-height: 1.2;
  }
  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: .78rem;
  }
  .price {
    font-size: .86rem;
  }
  .old-price, .off-tag {
    font-size: .65rem;
  }
  .badge, .stock {
    top: 6px;
    padding: 4px 5px;
    font-size: .58rem;
  }
  .badge { left: 6px; }
  .stock { right: 6px; }
  .price-stack {
    gap: 4px;
  }
  .card-actions {
    grid-template-columns: 32px 1fr;
    gap: 6px;
  }
  .card-actions .icon-btn {
    min-width: 32px;
    min-height: 34px;
    padding: 0;
    font-size: .82rem;
  }
  .card-actions .primary-btn {
    min-height: 34px;
    padding: 0 8px;
    font-size: .78rem;
  }
  .detail-blocks { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .backup-panel, .settings-panel { align-items: stretch; flex-direction: column; }
  .delivery-settings-form { grid-template-columns: 1fr; }
  .content-editor-grid { grid-template-columns: 1fr; }
  .admin-preview-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-row { grid-template-columns: 48px 1fr; }
  .admin-row .secondary-btn, .admin-row .icon-btn { width: 100%; }
}
