:root {
  --bg: #f6f1ea;
  --surface: rgba(255, 250, 244, 0.82);
  --surface-strong: #fffaf4;
  --ink: #241a15;
  --muted: #6f6056;
  --line: rgba(88, 58, 34, 0.12);
  --accent: #c49772;
  --accent-2: #213740;
  --danger: #b44545;
  --shadow: 0 18px 45px rgba(34, 22, 12, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(175, 110, 61, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(29, 79, 72, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, #f2e8dc 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.site-shell, .admin-shell { min-height: 100vh; }
.site-shell { width: min(calc(100% - 24px), var(--content)); margin: 0 auto; padding-bottom: 100px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand, .admin-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand strong, .admin-brand strong { display: block; font-size: 1rem; }
.brand small, .admin-brand small { color: var(--muted); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #101922, #2a3942);
  color: #e6c09a;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
}
.topnav { display: none; gap: 18px; color: var(--muted); }
.topnav a:hover, .text-link:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 18px 0 12px;
}

.hero-copy, .hero-media, .highlight-card, .panel-card, .contact-card, .admin-login-card, .kpi-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); }
.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(175, 110, 61, 0.12);
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(29, 79, 72, 0.08);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.03em; line-height: 0.95; }
h1 { font-size: clamp(3.1rem, 11vw, 5.9rem); }
h2 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.muted, .product-description, .highlight-card p, .contact-card p, #hero-description { color: var(--muted); line-height: 1.6; }

.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #cb8b58); color: #fff7f0; box-shadow: 0 16px 28px rgba(175, 110, 61, 0.25); }
.btn-secondary { background: rgba(255, 255, 255, 0.72); color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: rgba(180, 69, 69, 0.12); color: var(--danger); }
.btn-full { width: 100%; }

.hero-points, .filter-row, .check-grid, .dashboard-kpis { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points { margin-top: 24px; }
.hero-points span, .filter-chip, .mini-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.filter-chip.active { background: var(--accent-2); color: #f6efe5; }

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 36px;
  padding: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(109, 124, 138, 0.18), transparent 18%),
    radial-gradient(circle at 50% 44%, rgba(255, 221, 190, 0.08), transparent 10%),
    linear-gradient(180deg, #07101a 0%, #101c27 42%, #0b1520 100%);
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 324px;
  object-fit: contain;
  object-position: center;
  border-radius: 28px;
  padding: 2px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.28));
}
.hero-glow {
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 44%, rgba(124, 139, 151, 0.16), transparent 16%),
    linear-gradient(135deg, rgba(9, 17, 26, 0.98), rgba(30, 44, 54, 0.92)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 16px);
}

.highlights, .products-grid, .admin-grid { display: grid; gap: 18px; }
.highlights { grid-template-columns: 1fr; margin-top: 22px; }
.highlight-card, .contact-card, .panel-card, .admin-login-card { padding: 22px; border-radius: 26px; }
.highlight-card strong, .kpi-card strong { display: block; margin: 10px 0 8px; font-size: 2rem; }
.highlight-label { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.section { padding-top: 40px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading.compact { margin-bottom: 24px; }
.products-grid { grid-template-columns: 1fr; }

.product-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(14px);
  opacity: 0;
  animation: riseIn 420ms ease forwards;
}
.product-image-wrap { position: relative; aspect-ratio: 1 / 0.88; background: linear-gradient(135deg, rgba(29, 79, 72, 0.08), rgba(175, 110, 61, 0.12)); }
.product-image { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 79, 72, 0.9);
  color: #fff7f0;
  font-size: 0.82rem;
  font-weight: 700;
}
.product-body { display: grid; gap: 14px; padding: 18px; }
.product-meta { display: grid; gap: 6px; }
.product-category { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.product-name { font-size: 1.2rem; }
.product-pricing { display: flex; align-items: center; gap: 10px; }
.product-old-price { color: var(--muted); text-decoration: line-through; }
.product-price { font-size: 1.5rem; }
.contact-card { display: grid; gap: 18px; }

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  min-width: 132px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c9f55, #0fce6d);
  color: white;
  box-shadow: 0 18px 30px rgba(10, 140, 74, 0.28);
}

.admin-shell { display: grid; grid-template-columns: 1fr; }
.admin-sidebar { display: flex; flex-direction: column; gap: 18px; padding: 16px; }
.admin-menu { display: flex; gap: 10px; overflow: auto; color: var(--muted); }
.admin-menu a { white-space: nowrap; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.admin-main { padding: 4px 12px 70px; }

.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 500; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}
.admin-form textarea { min-height: 120px; resize: vertical; }
.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}
.switch-row input { width: auto; min-height: auto; }
.admin-product-list { display: grid; gap: 12px; }
.admin-product-item { display: grid; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.78); }
.admin-product-item.dragging { opacity: 0.55; }
.admin-product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-product-item img, .image-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 18px; }
.image-preview-wrap { min-height: 12px; }
.card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-grid { grid-template-columns: 1fr; }
.kpi-card { min-width: 112px; padding: 16px 18px; border-radius: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(31, 140, 95, 0.96);
  color: white;
  box-shadow: var(--shadow);
}
.toast.error { background: rgba(180, 69, 69, 0.96); }
.hidden { display: none !important; }

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

@media (min-width: 720px) {
  .site-shell { width: min(calc(100% - 40px), var(--content)); }
  .topnav { display: flex; }
  .highlights, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .hero { grid-template-columns: 1.02fr 0.98fr; align-items: stretch; }
  .highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 260px 1fr; }
  .admin-sidebar { position: sticky; top: 0; min-height: 100vh; padding: 26px 18px; }
  .admin-menu { display: grid; }
  .admin-main { padding: 28px 24px 70px 0; }
}
