:root {
  --cafe: #6f4e37;
  --crema: #fff6e5;
  --rosa: #f6c1cc;
  --choco: #4b2e1e;
}

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background: var(--crema);
}

/* ================= HEADER ================= */
.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: linear-gradient(to right, #f5e1c8, var(--crema));
  border-bottom: 4px dashed var(--cafe);
}

.cat-header h1 {
  font-family: 'Pacifico', cursive;
  color: var(--cafe);
}

.cat-header button {
  background: var(--rosa);
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
}

/* ================= PRODUCTOS ================= */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 20px;
}

.product {
  background: white;
  border-radius: 20px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0,0,0,.15);
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 50;
}

.modal-content {
  background: var(--crema);
  margin: auto;
  max-width: 420px;
  width: 95%;
  max-height: 90vh;
  padding: 20px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
}

/* ================= CARRITO ================= */
#cartItems {
  flex: 1;
  overflow-y: auto;
  margin: 10px 0;
  padding-right: 6px;
}

#cartItems p {
  background: white;
  border-radius: 16px;
  padding: 12px 40px 12px 12px;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,.12);
}

#cartItems button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #ff4d6d;
}

.cart-footer {
  border-top: 2px dashed var(--cafe);
  padding-top: 12px;
}

.cart-footer button {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  background: var(--cafe);
  color: white;
}

/* ================= MENSAJES ================= */
.msg-box {
  text-align: center;
}
/* ================= MODAL PRODUCTO (DISEÑO) ================= */

.modal-content h3 {
  font-family: 'Pacifico', cursive;
  color: var(--cafe);
  text-align: center;
  margin-bottom: 15px;
}

/* labels */
.modal-content label {
  font-weight: 600;
  margin-top: 12px;
  color: var(--choco);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* selects e inputs */
.modal-content select,
.modal-content input[type="number"] {
  width: 93%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  background: white;
}

/* ================= EXTRAS ================= */

#extrasContainer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#extrasContainer label {
  background: white;
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,.1);
  font-weight: 500;
}

#extrasContainer input[type="checkbox"] {
  accent-color: var(--cafe);
}

/* ================= BOTONES MODAL ================= */

.modal-content button {
  margin-top: 14px;
  padding: 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
}

.modal-content button:first-of-type {
  background: var(--cafe);
  color: white;
}

.modal-content button:first-of-type:hover {
  opacity: .9;
}

.modal-content button:last-of-type {
  background: #ddd;
}

/* ================= OPCIONES COMIDA ================= */

#foodOptions {
  margin-top: 10px;
}

/* ================= SCROLL SUAVE ================= */
.modal-content {
  overflow-y: auto;
}

/* ================= CATEGORÍAS ================= */
.category {
  padding: 25px 20px;
}

.category h2 {
  font-family: 'Pacifico', cursive;
  color: var(--cafe);
  font-size: 1.6rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category h2::before {
  content: "🐾";
  font-size: 1.2rem;
}

/* ================= PRODUCTOS (MEJORADOS) ================= */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.product {
  background: white;
  border-radius: 22px;
  padding: 22px 18px 26px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 22px rgba(0,0,0,.18);
}

.product h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--choco);
}

.product p {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--cafe);
}

/* huellita decorativa */
.product::after {
  content: "🐾";
  position: absolute;
  bottom: 14px;
  right: 16px;
  opacity: .4;
  font-size: .9rem;
}

/* ================= BOTÓN ELEGIR ================= */
.product button {
  background: var(--rosa);
  border: none;
  padding: 10px 22px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: bold;
  color: var(--choco);
  font-size: .9rem;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  transition: background .2s ease, transform .1s ease;
}

.product button:hover {
  background: #f2aebc;
  transform: scale(1.05);
}

/* ================= SEPARADORES SUAVES ================= */
.category + .category {
  margin-top: 20px;
  border-top: 3px dashed var(--cafe);
  padding-top: 25px;
}

