:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 45 20% 96%;
  --foreground: 0 0% 17%;
  --card: 40 16% 89%;
  --card-foreground: 0 0% 17%;
  --popover: 42 20% 94%;
  --popover-foreground: 0 0% 17%;
  --primary: 33 25% 53%;
  --primary-foreground: 45 20% 96%;
  --secondary: 40 16% 89%;
  --secondary-foreground: 0 0% 17%;
  --muted: 42 14% 86%;
  --muted-foreground: 0 0% 43%;
  --accent: 33 25% 53%;
  --accent-foreground: 45 20% 96%;
  --destructive: 0 65% 45%;
  --destructive-foreground: 45 20% 96%;
  --success: 145 36% 36%;
  --success-foreground: 45 20% 96%;
  --warning: 38 72% 44%;
  --warning-foreground: 0 0% 17%;
  --info: 210 46% 42%;
  --info-foreground: 45 20% 96%;
  --border: 38 15% 80%;
  --input: 38 15% 80%;
  --ring: 33 25% 53%;
  --radius: .625rem;
  --shadow-sm: 0 1px 2px hsl(var(--foreground) / .05);
  --shadow-md: 0 4px 12px hsl(var(--foreground) / .08);
  --shadow-lg: 0 12px 32px hsl(var(--foreground) / .12);
  --shadow-elegant: 0 24px 70px hsl(var(--primary) / .18);
  --transition-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --transition: 200ms cubic-bezier(.4, 0, .2, 1);
  --transition-smooth: 300ms cubic-bezier(.4, 0, .2, 1);
}

.dark {
  --background: 34 13% 10%;
  --foreground: 45 20% 94%;
  --card: 34 12% 16%;
  --card-foreground: 45 20% 94%;
  --popover: 34 12% 14%;
  --popover-foreground: 45 20% 94%;
  --primary: 33 31% 62%;
  --primary-foreground: 34 13% 10%;
  --secondary: 34 10% 20%;
  --secondary-foreground: 45 20% 94%;
  --muted: 34 9% 22%;
  --muted-foreground: 42 10% 70%;
  --accent: 33 31% 62%;
  --accent-foreground: 34 13% 10%;
  --border: 34 10% 27%;
  --input: 34 10% 27%;
  --ring: 33 31% 62%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 16px;
  line-height: 24px;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(16px, env(safe-area-inset-left));
  background: hsl(var(--background) / .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid hsl(var(--border));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: .22em;
  font-weight: 600;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  letter-spacing: -.08em;
  font-weight: 600;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

.desktop-nav a:hover {
  color: hsl(var(--foreground));
}

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

.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  transition: var(--transition);
}

.icon-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: hsl(var(--foreground) / 0);
  transition: var(--transition-smooth);
}

.mobile-drawer.open {
  pointer-events: auto;
  background: hsl(var(--foreground) / .28);
}

.drawer-panel {
  width: 100%;
  max-width: 384px;
  height: 100%;
  padding: 16px;
  background: hsl(var(--popover));
  transform: translateX(-100%);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

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

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

.drawer-nav {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.drawer-nav a {
  padding: 14px 12px;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--muted-foreground));
}

.drawer-nav a:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 52px;
  letter-spacing: -.06em;
  font-weight: 700;
}

.hero p {
  color: hsl(var(--muted-foreground));
  font-size: 18px;
  line-height: 28px;
}

.hero-actions,
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.featured-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--popover)));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 20px;
  box-shadow: var(--shadow-elegant);
}

.featured-card img,
.product-card img,
.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: hsl(var(--muted));
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -.04em;
  font-weight: 600;
}

.section-head p {
  color: hsl(var(--muted-foreground));
}

.chip {
  min-height: 44px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-radius: 999px;
  padding: 10px 18px;
  transition: var(--transition);
}

.chip.active,
.chip:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card h3 {
  margin: 16px 0 4px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.card-meta {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

.price {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.old-price {
  text-decoration: line-through;
  color: hsl(var(--muted-foreground));
  margin-left: 8px;
  font-weight: 400;
}

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

.badge {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: hsl(var(--primary) / .12);
  color: hsl(var(--primary));
  font-size: 12px;
  font-weight: 500;
}

.empty-state {
  padding: 32px;
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: hsl(var(--success));
  color: hsl(var(--success-foreground));
  box-shadow: var(--shadow-lg);
  font-weight: 600;
}

.footer {
  display: grid;
  gap: 24px;
  padding: 48px 16px;
  margin-top: 48px;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.footer p,
.footer a {
  display: block;
  color: hsl(var(--muted-foreground));
  margin: 0 0 8px;
}

.signature {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: hsl(var(--primary)) !important;
}

.form-status {
  min-height: 24px;
  color: hsl(var(--muted-foreground));
}

.muted {
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero,
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 460px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .menu-button {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 64px max(32px, calc((100vw - 1280px) / 2));
  }

  .site-header {
    padding-left: max(32px, calc((100vw - 1280px) / 2));
    padding-right: max(32px, calc((100vw - 1280px) / 2));
  }
}
