:root {
  --red: #d90429;
  --red-dark: #9d0208;
  --black: #161a1d;
  --white: #ffffff;
  --yellow: #ffbe0b;
  --bg: #f7f7f7;
  --text: #202020;
  --muted: #6b7280;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --transition: 0.25s ease;
}

body[data-theme="hamburgueria"] {
  --red: #f04d23;
  --red-dark: #b63110;
  --black: #1f130c;
  --yellow: #ffd166;
}

body[data-theme="lanchonete"] {
  --red: #e63946;
  --red-dark: #af1f2a;
  --black: #0b1d30;
  --yellow: #ffca3a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
}

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 16px;
  width: 100%;
}

.btn {
  align-items: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.btn:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.btn--red {
  background: var(--red);
  box-shadow: var(--shadow);
  color: var(--white);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
}

.btn--green {
  background: #25d366;
  color: var(--white);
  width: 100%;
}

.header {
  background: linear-gradient(135deg, var(--black), #2c2f33);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.2);
  left: 0;
  padding: 12px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
}

.header__content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.logo {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  gap: 8px;
  letter-spacing: 0.6px;
  text-decoration: none;
}

.logo i {
  color: var(--yellow);
}

.menu {
  display: none;
  gap: 18px;
}

.menu a {
  color: #f3f3f3;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.menu a:hover {
  color: var(--yellow);
}

.header__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.theme-switcher {
  display: grid;
  gap: 4px;
}

.theme-switcher label {
  color: #f0f0f0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.theme-switcher select {
  appearance: none;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  min-height: 40px;
  min-width: 132px;
  padding: 8px 10px;
}

.cart-trigger {
  align-items: center;
  background: var(--red);
  border: none;
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  justify-content: center;
  min-height: 44px;
  min-width: 48px;
  position: relative;
}

.cart-count {
  align-items: center;
  background: var(--yellow);
  border-radius: 999px;
  color: var(--black);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  position: absolute;
  right: -7px;
  top: -8px;
}

.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 190, 11, 0.3), transparent 36%),
    radial-gradient(circle at 80% 10%, rgba(217, 4, 41, 0.24), transparent 42%),
    linear-gradient(120deg, #101214, #20252b);
  color: var(--white);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

body[data-theme="hamburgueria"] .hero {
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 209, 102, 0.35), transparent 36%),
    radial-gradient(circle at 80% 10%, rgba(240, 77, 35, 0.3), transparent 42%),
    linear-gradient(120deg, #220f08, #432116);
}

body[data-theme="lanchonete"] .hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 202, 58, 0.33), transparent 36%),
    radial-gradient(circle at 80% 12%, rgba(230, 57, 70, 0.3), transparent 42%),
    linear-gradient(120deg, #071223, #15304b);
}

.hero::after {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 8px,
    transparent 8px,
    transparent 18px
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero__content {
  padding: 58px 16px 64px;
  position: relative;
  z-index: 1;
}

.hero__tag {
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero p {
  color: #f1f1f1;
  margin-bottom: 24px;
  max-width: 560px;
}

section {
  margin-bottom: 28px;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.category-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-btn {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 14px;
  transition: all var(--transition);
}

.category-btn.is-active,
.category-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.products-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.product-card {
  animation: fadeInUp 0.35s ease both;
  background: var(--white);
  border: 1px solid #ededed;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.product-content h3 {
  font-size: 1.05rem;
}

.product-content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  color: var(--red-dark);
  font-size: 1.02rem;
  font-weight: 700;
}

.add-btn {
  background: var(--black);
  border: none;
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
  min-height: 42px;
  min-width: 110px;
  padding: 10px 12px;
}

.steps-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.steps-grid article {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.steps-grid i {
  color: var(--red);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.steps-grid h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.steps-grid p {
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-overlay {
  background: rgba(0, 0, 0, 0.45);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity var(--transition);
  z-index: 40;
}

.cart-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  background: var(--white);
  bottom: 0;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-width: 420px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform var(--transition);
  width: 100%;
  z-index: 50;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-panel__header {
  align-items: center;
  border-bottom: 1px solid #ededed;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--black);
  cursor: pointer;
  font-size: 1.2rem;
  min-height: 36px;
  min-width: 36px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.cart-item {
  align-items: center;
  border-bottom: 1px dashed #e7e7e7;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px 0;
}

.cart-item h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.cart-item p {
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-item-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.qty-btn {
  align-items: center;
  background: #efefef;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--red-dark);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
}

.empty-cart {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 20px;
  text-align: center;
}

.totals {
  border-top: 1px solid #ececec;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.totals div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.total-final {
  color: var(--red-dark);
  font-size: 1.04rem;
}

.checkout-form {
  border-top: 1px solid #ececec;
  display: grid;
  gap: 10px;
  padding: 14px 16px 18px;
}

.checkout-form h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.checkout-form label {
  color: #202020;
  display: grid;
  font-size: 0.86rem;
  font-weight: 600;
  gap: 5px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.93rem;
  min-height: 42px;
  outline: none;
  padding: 10px 12px;
}

.checkout-form textarea {
  min-height: 82px;
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--red);
}

.floating-whatsapp {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  color: var(--white);
  display: inline-flex;
  font-size: 1.8rem;
  height: 56px;
  justify-content: center;
  position: fixed;
  right: 16px;
  text-decoration: none;
  transition: transform var(--transition);
  width: 56px;
  z-index: 30;
}

.floating-whatsapp:hover {
  transform: scale(1.05);
}

@media (max-width: 580px) {
  .theme-switcher {
    width: 100%;
  }

  .theme-switcher select {
    width: 100%;
  }

  .header__actions .btn--yellow {
    flex: 1;
  }
}

@media (min-width: 640px) {
  .category-filters {
    display: flex;
    flex-wrap: wrap;
  }

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

  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 900px) {
  .menu {
    display: flex;
  }

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
