﻿:root {
  --background: #f5f5f5;
  --foreground: #2f1a42;
  --card: #ffffff;
  --muted: #ece9f0;
  --muted-foreground: #6f6280;
  --primary: #4a2160;
  --primary-foreground: #f8f7fb;
  --secondary: #5f2c7b;
  --accent: #a5e35f;
  --accent-foreground: #2a183b;
  --border: #ddd4e6;
  --danger: #e14557;
  --whatsapp: #21b351;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, sans-serif;
}

h1,
h2,
h3,
strong,
.brand {
  font-family: Poppins, sans-serif;
}

.container {
  width: min(860px, 100% - 2rem);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(74, 33, 96, 0.78), rgba(74, 33, 96, 0.86));
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--primary-foreground);
  padding: 4rem 0;
}

.hero-tag,
.section-tag {
  display: inline-block;
  border-radius: 999px;
  background: rgba(165, 227, 95, 0.2);
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.72rem;
}

.hero h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

.hero p {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0.65rem 0 0.4rem;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
}

.section-header p,
.step > p,
.item-muted,
.empty-text {
  color: var(--muted-foreground);
}

.step {
  margin-bottom: 2rem;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1.05rem;
}

.step > p {
  margin: 0.4rem 0 0.85rem 2.15rem;
  font-size: 0.8rem;
}

.step-number {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 0.75rem;
}

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

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

.option,
.combo-card,
.cart-item,
.input-wrap input {
  border: 2px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
}

.option,
.combo-card {
  width: 100%;
  cursor: pointer;
  transition: 0.2s ease;
}

.option:hover,
.combo-card:hover {
  transform: translateY(-1px);
  border-color: #c8b4dd;
}

.option.active,
.combo-card.active {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(165, 227, 95, 0.25);
}

.option-media {
  position: relative;
  height: 112px;
  border-radius: 0.8rem 0.8rem 0 0;
  overflow: hidden;
}

.option-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-content {
  padding: 0.7rem;
  text-align: center;
}

.option-name {
  font-weight: 700;
}

.option-price {
  color: var(--secondary);
  font-family: Poppins, sans-serif;
  font-weight: 800;
  margin-top: 0.25rem;
}

.base-card,
.extra-card {
  padding: 0.95rem 0.7rem;
  text-align: center;
}

.extra-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
}

.extra-meta strong {
  display: block;
  font-size: 0.9rem;
}

.extra-meta span {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.8rem;
}

.combo-list {
  display: grid;
  gap: 0.75rem;
}

.combo-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  overflow: hidden;
  text-align: left;
}

.combo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.combo-content {
  padding: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.combo-content p {
  margin: 0.2rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.combo-price {
  font-family: Poppins, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}

.divider {
  margin: 2rem 0;
  position: relative;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--border);
}

.divider span {
  position: relative;
  background: var(--background);
  padding: 0 0.8rem;
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.9rem;
}

.builder-footer {
  position: sticky;
  bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(165, 227, 95, 0.4);
  border-radius: 1rem;
  padding: 0.95rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

.builder-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.builder-row strong {
  color: var(--secondary);
  font-size: 1.5rem;
}

.btn {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary.added {
  background: var(--accent);
  color: var(--accent-foreground);
}

.cart-fab,
.wa-fab {
  position: fixed;
  right: 1.2rem;
  z-index: 80;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
}

.cart-fab {
  bottom: 6.1rem;
  background: var(--primary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.wa-fab {
  bottom: 1.2rem;
  width: 4rem;
  height: 4rem;
  background: var(--whatsapp);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  animation: pulse 1.7s infinite;
}

.wa-fab svg {
  width: 2rem;
  height: 2rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 179, 81, 0.45);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(33, 179, 81, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 179, 81, 0);
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.drawer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem 1.5rem 0 0;
  background: var(--background);
}

.drawer-header,
.drawer-footer {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.drawer-content {
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.cart-item {
  padding: 0.8rem;
}

.cart-item-top,
.cart-item-bottom,
.total-row,
.qty-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.cart-item-bottom {
  margin-top: 0.6rem;
}

.qty-controls {
  background: #f8f6fb;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
}

.qty-controls button,
.icon-btn,
.remove-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.qty-controls button {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
}

.remove-btn {
  color: var(--danger);
  font-size: 1rem;
}

.input-wrap {
  display: grid;
  gap: 0.25rem;
}

.input-wrap label {
  font-size: 0.74rem;
  font-weight: 600;
}

.input-wrap input {
  width: 100%;
  height: 2.4rem;
  padding: 0 0.7rem;
  font: inherit;
}

.btn-whatsapp {
  width: 100%;
  margin-top: 0.75rem;
  background: var(--whatsapp);
  color: #fff;
}

.clear-btn {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.site-footer {
  background: var(--primary);
  color: rgba(248, 247, 251, 0.8);
  text-align: center;
  padding: 2rem 1rem;
}

.brand {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  color: rgba(248, 247, 251, 0.95);
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .combo-card {
    grid-template-columns: 92px 1fr;
  }

  .hero {
    min-height: 460px;
  }
}
