:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-2: #1a1a1a;
  --color-accent: #6abf3f;
  --color-accent-dark: #4e9a2a;
  --color-text: #f0f0f0;
  --color-text-muted: #888888;
  --color-border: #2a2a2a;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, button { font: inherit; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 36px; width: auto; }
.cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.15s, background 0.15s;
}
.cart-trigger:hover { border-color: var(--color-accent); }
.cart-icon { width: 20px; height: 20px; }
.cart-count {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-count:not(.visible) { display: none; }

/* Hero */
.hero {
  padding: 72px 20px 56px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(106,191,63,0.08), transparent 60%);
}
.hero-logo { max-width: 160px; margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
}

/* Catalog */
.catalog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.tab:hover { color: var(--color-text); border-color: var(--color-accent-dark); }
.tab.active {
  background: var(--color-accent);
  color: #0a0a0a;
  border-color: var(--color-accent);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-dark);
}
.product-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-surface-2);
}
.product-media-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 40%, rgba(106,191,63,0.14), transparent 60%),
    var(--color-surface-2);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.carousel-slide.active {
  opacity: 1;
  position: relative;
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-media:hover .carousel-prev,
.product-media:hover .carousel-next {
  opacity: 1;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: #fff;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
}
.badge-hot { background: var(--color-accent); color: #0a0a0a; }
.badge-soon { background: var(--color-border); color: var(--color-text-muted); }

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.product-format {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
}
.product-description {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.variant-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.variant-select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
}
.variant-select:disabled { opacity: 0.5; }
.product-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-price {
  font-size: 20px;
  font-weight: 700;
}

.btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--color-accent);
  color: #0a0a0a;
}
.btn-primary:hover:not(:disabled) { background: var(--color-accent-dark); color: #fff; }
.btn-primary:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Cart drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 60;
}
.drawer-overlay.visible { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 380px;
  max-width: 100%;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  z-index: 70;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h2 { margin: 0; font-size: 18px; }
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-text-muted);
}
.drawer-close:hover { background: var(--color-surface-2); color: var(--color-text); }

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.drawer-empty {
  color: var(--color-text-muted);
  text-align: center;
  padding: 40px 0;
}
.drawer-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.drawer-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-surface-2), #222);
}
.drawer-item-name {
  font-weight: 600;
  font-size: 14px;
}
.drawer-item-variant {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.drawer-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { border-color: var(--color-accent); }
.qty { min-width: 20px; text-align: center; font-size: 14px; }
.drawer-item-remove {
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: underline;
}
.drawer-item-remove:hover { color: var(--color-accent); }
.drawer-item-price { font-weight: 600; font-size: 14px; }

.drawer-footer {
  border-top: 1px solid var(--color-border);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}
.subtotal-row strong { font-size: 20px; }

.customer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.customer-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
}
.customer-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.checkout-error {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(220, 50, 50, 0.1);
  color: #ff8585;
  border: 1px solid rgba(220, 50, 50, 0.3);
  font-size: 13px;
}
.checkout-error.visible { display: block; }

.btn-checkout {
  padding: 14px 20px;
  font-size: 15px;
  background: var(--color-accent);
  color: #0a0a0a;
  border-radius: 10px;
  font-weight: 700;
}
.btn-checkout:hover:not(:disabled) { background: var(--color-accent-dark); color: #fff; }
.btn-checkout:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

body.drawer-open { overflow: hidden; }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #075e54;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 40;
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; fill: #25D366; }

/* Footer */
.footer {
  background: #000;
  border-top: 1px solid var(--color-border);
  padding: 40px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { height: 28px; }
.footer-links {
  display: flex;
  gap: 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-note {
  color: var(--color-text-muted);
  font-size: 13px;
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 420px) {
  .cart-drawer { width: 100%; }
  .nav-inner { padding: 12px 16px; }
  .catalog { padding: 24px 16px 60px; }
}
