:root {
  --color-primary: #0f5132;
  --color-primary-dark: #0a3a24;
  --color-accent: #d4af37;
  --color-bg: #f7f7f5;
  --color-surface: #ffffff;
  --color-text: #1c1c1c;
  --color-text-muted: #6b6b6b;
  --color-border: #e5e5e0;
  --color-whatsapp: #25D366;
  --color-header: #FFC107;
  --color-header-dark: #E0A800;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
}

/* Header */
.site-header {
  background: var(--color-header);
  color: #1c1c1c;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1c1c1c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-accent { color: #c0392b; }
.cart-toggle {
  background: var(--color-header-dark);
  color: #1c1c1c;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-icon { font-size: 1.6rem; line-height: 1; }
.cart-count {
  background: var(--color-accent);
  color: #1c1c1c;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 32px;
  height: min(70vh, 600px);
  overflow: hidden;
  background: #111;
  border-radius: var(--radius);
}
.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.hero-slide {
  flex: 0 0 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hero-nav:hover { background: rgba(0,0,0,0.7); }
.hero-nav-prev { left: 14px; }
.hero-nav-next { right: 14px; }

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-dot.active { background: #fff; }

@media (max-width: 600px) {
  .hero-carousel { height: 60vh; }
}

/* Product grid */
.product-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eee;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-info h3 { margin: 0; font-size: 1.1rem; }
.product-desc { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.product-price { color: var(--color-primary); font-weight: 700; font-size: 1.15rem; }

.field-row { display: flex; flex-direction: column; gap: 4px; }
.field-row label { font-size: 0.85rem; color: var(--color-text-muted); }
.field-row select, .field-row input[type="number"] {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
}

.btn {
  border: none;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; margin-bottom: 10px; }
.btn-whatsapp:hover { filter: brightness(0.95); }
.btn-block { width: 100%; }

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 30;
}
.cart-overlay.active { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: var(--color-surface);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.cart-drawer.active { right: 0; }

.cart-header, .checkout-modal-inner {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-modal-inner { border-bottom: none; flex-direction: column; align-items: stretch; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px;
}
.cart-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 4px; font-size: 0.95rem; }
.cart-item-meta { font-size: 0.82rem; color: var(--color-text-muted); }
.cart-item-remove {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}
.cart-empty { text-align: center; color: var(--color-text-muted); padding: 40px 10px; }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
}
.cart-total-row, .checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* Checkout modal */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  z-index: 50;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.checkout-modal.active { display: block; }
.checkout-modal .cart-close { align-self: flex-end; }

.checkout-summary {
  margin: 10px 0;
  font-size: 0.9rem;
}
.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.checkout-form label { font-size: 0.85rem; color: var(--color-text-muted); }
.checkout-form input, .checkout-form textarea {
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
.checkout-form textarea { min-height: 60px; resize: vertical; }

.checkout-steps { border-top: 1px solid var(--color-border); padding-top: 14px; }
.checkout-steps p { font-size: 0.88rem; margin: 6px 0; }
.checkout-note { color: var(--color-text-muted); font-size: 0.8rem !important; text-align: center; }
.checkout-error { color: #c0392b; font-size: 0.85rem !important; text-align: center; min-height: 1.2em; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px 20px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 101;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 480px) {
  .cart-drawer { max-width: 100%; }
}
