 :root {
    --primary: #495338;
    --bg: #f4f4f4;
    --card: #fff;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }

  .cafe-experiencia {
    display: flex; align-items: center; justify-content: space-between;
    background-color: var(--primary); color: white;
    padding: 20px 40px; gap: 20px; flex-wrap: wrap;
  }
  .cafe-texto { flex: 1; text-align: right; }
  .cafe-texto h2 { font-size: 22px; }
  .cafe-imagen { flex: 1; display: flex; justify-content: flex-start; }
  .cafe-imagen img { max-width: 350px; height: auto; }

  /* Productos */
  .products {
    display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; padding: 40px 0;
  }
  .product-card {
    width: 250px; border: 1px solid #eee; border-radius: 12px; padding: 15px;
    text-align: center; background: #fff; transition: all 0.3s ease;
  }
  .product-card:hover {
    transform: translateY(-5px); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .product-card img {
    width: 100%; height: 220px; object-fit: cover; border-radius: 10px;
  }
  .product-card h3 { margin-top: 10px; font-size: 1.1rem; font-weight: bold; }
  .product-card p { margin: 5px 0; }
  .btn-primary { background-color: #495338; border: none; }
  .btn-primary:hover { background-color: #495338; }

  /* Modal */
  .modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); justify-content: center; align-items: center;
    transition: opacity 0.3s ease;
  }
  .modal.show { opacity: 1; }
  .modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 25px 30px;
  width: 90%;
  max-width: 650px; /* 🔹 Más angosto */
  display: flex;
  flex-direction: row;
  gap: 25px;
  position: relative;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}

  @keyframes fadeIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-left img {
  width: 220px; /* 🔹 Imagen más proporcionada */
  border-radius: 10px;
  object-fit: cover;
}
  .modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
  .modal-right h2 { font-weight: bold; font-size: 1.5rem; margin-bottom: 10px; }
  .close-btn {
    position: absolute; top: 15px; right: 20px; font-size: 1.3rem;
    cursor: pointer; color: #333; transition: color 0.2s;
  }
  .close-btn:hover { color: #c00; }
  .btn-add {
  background-color: #495338 !important; /* ✅ Tu color */
  color: #fff !important;
  border: none !important;
  transition: all 0.3s ease;
}

.btn-add:hover {
  background-color: #5a6444 !important; /* 🔹 Más claro al pasar el mouse */
  transform: scale(1.03);
}
/* === CARRITO LATERAL === */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  padding: 25px;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 3000;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.cart-sidebar.show {
  right: 0;
}

.cart-sidebar h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #495338;
  font-weight: 700;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  background: #fafafa;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.cart-item:hover {
  transform: scale(1.02);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.cart-summary {
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 10px;
  font-size: 1rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2500;
}

.cart-sidebar.show ~ .cart-overlay {
  opacity: 1;
  pointer-events: auto;
}


.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #c0392b;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

/* 🔹 Quitar el cuadro verde y estilo del icono de eliminar */
.cart-item form button.btn-link {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #c0392b !important; /* rojo elegante */
  font-size: 18px;
  line-height: 1;
  outline: none !important;
  box-shadow: none !important;
}

.cart-item form button.btn-link:hover {
  color: #a93226 !important; /* tono más oscuro al pasar el mouse */
  transform: scale(1.1);
  background: none !important;
}

/* Evita que se marque al hacer clic o enfocar */
.cart-item form button.btn-link:focus,
.cart-item form button.btn-link:active {
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* === ESTILO UNIFICADO DE BOTONES DEL CARRITO === */
.cart-sidebar form button,
.cart-sidebar a.btn-link {
  font-family: inherit;        /* usa la misma fuente del sitio */
  font-size: 0.95rem;          /* tamaño equilibrado */
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Botón "Vaciar carrito" */
.cart-sidebar .btn-secondary {
  background-color: #aaa;
  color: white;
  border: none;
}

.cart-sidebar .btn-secondary:hover {
  background-color: #888;
}

/* Botón "Pagar" */
.cart-sidebar .btn-success {
  background-color: #495338;  /* mismo color principal */
  color: white;
  border: none;
}

.cart-sidebar .btn-success:hover {
  background-color: #495338;
}

/* 🔹 Ajustar el botón "Cerrar" para que tenga el mismo ancho que los demás */
.cart-sidebar a.btn-link,
.cart-sidebar button.btn-success.btn-sm.mt-3 {
  display: block;
  width: 100%;
  background-color: #495338;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.cart-sidebar a.btn-link:hover,
.cart-sidebar button.btn-success.btn-sm.mt-3:hover {
  background-color: #495338;
  transform: scale(1.03);
}
