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

:root {
  --verde: #B8C9AE;
  --verde-claro: #E8F0E3;
  --verde-fondo: #F2F6EF;

  --cafe: #B99B7B;
  --cafe-claro: #D8C3AC;

  --beige: #EFE4D5;
  --crema: #FCFAF6;
  --blanco: #FFFFFF;

  --texto: #62594F;
  --texto-suave: #81786E;
  --borde: #E8DED3;

  --peligro: #C98282;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--crema);
  color: var(--texto);
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.text-soft {
  color: var(--texto-suave);
}

header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 17px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 25px;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--cafe);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--texto);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--cafe);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border: none;

  padding: 14px 21px;

  border-radius: 14px;

  font-size: 15px;
  font-weight: 800;

  cursor: pointer;
  text-decoration: none;

  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--cafe);
  color: white;

  box-shadow:
    0 8px 20px rgba(185, 155, 123, 0.16);
}

.btn-primary:hover {
  background: #AA8B6D;
}

.btn-secondary {
  background: white;
  border: 1px solid var(--verde);
  color: var(--texto);
}

.cart-count {
  min-width: 21px;
  height: 21px;

  padding: 0 5px;

  border-radius: 20px;

  background: var(--verde);
  color: white;

  font-size: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  max-width: 1200px;
  margin: auto;

  padding: 75px 20px;

  display: grid;
  grid-template-columns: 1.15fr 0.85fr;

  gap: 45px;

  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding: 8px 14px;

  border-radius: 999px;

  background: var(--verde-claro);

  margin-bottom: 20px;

  font-weight: 800;
}

h1 {
  font-size: clamp(45px, 7vw, 78px);
  line-height: 0.98;

  margin-bottom: 22px;

  color: var(--cafe);

  letter-spacing: -2px;
}

.hero-text {
  font-size: 19px;

  max-width: 600px;

  margin-bottom: 28px;

  color: var(--texto-suave);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  min-height: 390px;

  border-radius: 34px;

  background:
    linear-gradient(
      135deg,
      var(--verde-claro),
      var(--beige)
    );

  padding: 38px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid var(--borde);

  box-shadow:
    0 25px 60px rgba(185, 155, 123, 0.1);
}

.hero-icon {
  font-size: 75px;
}

.hero-card-label {
  color: var(--texto);

  font-size: 13px;
  font-weight: 800;

  margin-bottom: 8px;
}

.hero-card strong {
  display: block;

  font-size: 31px;

  color: var(--cafe);

  margin-bottom: 8px;
}

.hero-card p {
  color: var(--texto-suave);
}

section {
  padding: 70px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 36px;
  color: var(--cafe);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--texto-suave);
  margin-bottom: 30px;
  max-width: 650px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category {
  background: white;
  border-radius: 24px;
  padding: 26px;

  border: 1px solid var(--borde);

  cursor: pointer;

  transition: 0.2s;

  box-shadow:
    0 10px 30px rgba(185, 155, 123, 0.05);
}

.category:hover {
  transform: translateY(-5px);
  border-color: var(--verde);
}

.category-icon {
  font-size: 37px;
  display: block;
  margin-bottom: 14px;
}

.category h3 {
  color: var(--cafe);
  margin-bottom: 7px;
}

.category p {
  color: var(--texto-suave);
  font-size: 14px;
}

.products-section {
  background: white;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: end;

  gap: 20px;

  margin-bottom: 25px;
}

.search {
  width: 100%;
  max-width: 320px;

  padding: 13px 16px;

  border-radius: 14px;

  border: 1px solid var(--borde);

  background: var(--crema);

  outline: none;
}

.search:focus {
  border-color: var(--verde);
}

.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;

  margin-bottom: 27px;
}

.filter-btn {
  border: 1px solid var(--borde);

  background: white;
  color: var(--texto);

  padding: 10px 16px;

  border-radius: 999px;

  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active {
  background: var(--verde);
  color: white;

  border-color: var(--verde);
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 19px;
}

.product {
  background: white;

  border: 1px solid var(--borde);

  border-radius: 25px;

  overflow: hidden;

  transition: 0.2s ease;

  box-shadow:
    0 12px 30px rgba(185, 155, 123, 0.06);
}

.product:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 210px;

  background:
    linear-gradient(
      135deg,
      var(--beige),
      var(--verde-claro)
    );

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 60px;

  position: relative;
}

.delivery-tag {
  position: absolute;

  top: 13px;
  left: 13px;

  background: white;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
}

.stock-tag {
  position: absolute;

  top: 13px;
  right: 13px;

  background: var(--verde-claro);

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
}

.product-content {
  padding: 19px;
}

.product-category {
  color: #9B938B;

  font-size: 12px;
  font-weight: 700;
}

.product h3 {
  margin: 7px 0 10px;

  color: var(--cafe);

  font-size: 18px;
}

.product-description {
  color: var(--texto-suave);

  font-size: 13px;

  min-height: 40px;

  margin-bottom: 13px;
}

.price {
  font-size: 23px;
  font-weight: 900;

  color: var(--texto);

  margin-bottom: 15px;
}

.product .btn {
  width: 100%;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.benefit {
  padding: 30px;

  border-radius: 25px;

  border: 1px solid var(--borde);
}

.benefit:nth-child(1) {
  background: var(--verde-claro);
}

.benefit:nth-child(2) {
  background: var(--cafe-claro);
}

.benefit:nth-child(3) {
  background: var(--beige);
}

.benefit h3 {
  margin-bottom: 7px;
}

.benefit p {
  color: var(--texto-suave);
  font-size: 14px;
}

.coming {
  background: var(--verde-fondo);
}

.coming-card {
  max-width: 900px;

  margin: auto;

  text-align: center;

  padding: 65px 35px;

  background: white;

  border-radius: 34px;

  border: 1px solid var(--borde);
}

.coming-card h2 {
  font-size: 39px;

  color: var(--cafe);

  margin-bottom: 14px;
}

.coming-card p {
  color: var(--texto-suave);
}

footer {
  background: var(--beige);

  color: var(--texto);

  padding: 45px 20px;

  text-align: center;

  border-top: 1px solid var(--borde);
}

footer strong {
  font-size: 21px;
  color: var(--cafe);
}

footer p {
  margin-top: 7px;
  color: var(--texto-suave);
}

.cart-overlay,
.checkout-overlay {
  position: fixed;
  inset: 0;

  background: rgba(70, 60, 50, 0.28);

  opacity: 0;

  pointer-events: none;

  transition: 0.25s ease;
}

.cart-overlay {
  z-index: 500;
}

.checkout-overlay {
  z-index: 700;
}

.cart-overlay.active,
.checkout-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;

  top: 0;
  right: -460px;

  width: min(430px, 100%);

  height: 100vh;

  background: white;

  z-index: 600;

  transition: 0.3s ease;

  display: flex;
  flex-direction: column;

  box-shadow:
    -20px 0 50px rgba(80, 70, 60, 0.12);
}

.cart-panel.active {
  right: 0;
}

.cart-header,
.checkout-header {
  padding: 22px;

  border-bottom: 1px solid var(--borde);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2,
.checkout-header h2 {
  color: var(--cafe);
}

.cart-body {
  flex: 1;

  overflow-y: auto;

  padding: 18px 22px;
}

.cart-empty {
  text-align: center;

  padding: 55px 20px;

  color: var(--texto-suave);
}

.cart-item {
  display: grid;

  grid-template-columns: 64px 1fr;

  gap: 14px;

  padding: 15px 0;

  border-bottom: 1px solid var(--borde);
}

.cart-item-image {
  width: 64px;
  height: 64px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      var(--beige),
      var(--verde-claro)
    );

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
}

.cart-item-name {
  font-weight: 800;
}

.cart-item-price {
  color: var(--cafe);

  font-weight: 900;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-top: 11px;
}

.quantity {
  display: inline-flex;
  align-items: center;

  border: 1px solid var(--borde);

  border-radius: 12px;

  overflow: hidden;

  background: var(--crema);
}

.quantity button {
  width: 34px;
  height: 34px;

  border: none;

  background: transparent;

  cursor: pointer;
}

.quantity span {
  min-width: 32px;

  text-align: center;

  font-weight: 800;
}

.remove-btn {
  border: none;

  background: transparent;

  color: var(--peligro);

  cursor: pointer;

  font-size: 13px;
  font-weight: 800;
}

.cart-footer {
  border-top: 1px solid var(--borde);

  padding: 20px 22px;

  background: var(--crema);
}

.cart-total {
  display: flex;
  justify-content: space-between;

  font-size: 21px;
  font-weight: 900;

  margin: 15px 0;
}

.cart-footer .btn {
  width: 100%;
}

.checkout-modal {
  position: fixed;

  inset: 30px;

  margin: auto;

  max-width: 980px;
  max-height: calc(100vh - 60px);

  background: white;

  z-index: 800;

  border-radius: 28px;

  overflow: hidden;

  display: none;
  flex-direction: column;

  border: 1px solid var(--borde);
}

.checkout-modal.active {
  display: flex;
}

.checkout-body {
  overflow-y: auto;
  padding: 28px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  gap: 28px;
}

.form-section {
  background: var(--crema);

  border: 1px solid var(--borde);

  border-radius: 22px;

  padding: 22px;
}

.form-section h3 {
  color: var(--cafe);
  margin-bottom: 18px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;

  margin-bottom: 6px;

  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;

  padding: 13px 14px;

  border-radius: 12px;

  border: 1px solid var(--borde);

  background: white;

  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--verde);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.payment-title {
  margin-top: 25px;
}

.payment-card {
  background: var(--verde-claro);

  border: 1px solid var(--verde);

  border-radius: 18px;

  padding: 18px;

  margin-top: 14px;
}

.payment-card strong {
  display: block;
  margin-bottom: 8px;
}

.payment-card p {
  color: var(--texto-suave);

  font-size: 14px;

  margin-bottom: 5px;
}

.pending-config {
  margin-top: 12px;

  padding: 10px 12px;

  background: white;

  border-radius: 12px;

  font-size: 13px;

  color: var(--texto-suave);
}

.summary-box {
  background: white;

  border: 1px solid var(--borde);

  border-radius: 22px;

  padding: 22px;

  position: sticky;
  top: 0;

  height: fit-content;
}

.summary-box h3 {
  color: var(--cafe);
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;

  gap: 15px;

  padding: 10px 0;

  border-bottom: 1px solid var(--borde);

  font-size: 14px;
}

.summary-total {
  display: flex;
  justify-content: space-between;

  margin-top: 18px;

  font-size: 22px;
  font-weight: 900;
}

.checkout-actions {
  display: flex;
  gap: 10px;

  margin-top: 22px;
}

.checkout-actions .btn {
  flex: 1;
}

.order-note {
  margin-top: 14px;

  font-size: 12px;

  color: var(--texto-suave);

  text-align: center;
}

.toast {
  position: fixed;

  left: 50%;
  bottom: 28px;

  transform: translate(-50%, 30px);

  background: var(--verde);
  color: white;

  padding: 12px 18px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 800;

  z-index: 1000;

  opacity: 0;

  pointer-events: none;

  transition: 0.25s;
}

.toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 950px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .benefits,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .product-top {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    max-width: none;
  }

  .summary-box {
    position: static;
  }
}

@media (max-width: 650px) {
  .nav {
    padding: 14px 16px;
  }

  .brand {
    font-size: 19px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 48px 18px 55px;
  }

  h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  section {
    padding: 55px 18px;
  }

  .categories,
  .products {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    width: 100%;
  }

  .checkout-modal {
    inset: 0;

    max-height: 100vh;

    border-radius: 0;
  }

  .checkout-body {
    padding: 18px;
  }

  .checkout-actions {
    flex-direction: column;
  }
}