:root {
  --poppins: 'Poppins', sans-serif;
  --lato: 'Lato', sans-serif;

  /* Base de neutros */
  --1: #000000;
  /* Negro absoluto */
  --2: #111111;
  /* Negro intenso */
  --3: #1C1C1C;
  /* Negro grafito */
  --4: #2E2E2E;
  /* Gris carbón */
  --5: #444444;
  /* Gris oscuro elegante */
  --6: #777777;
  /* Gris medio */
  --7: #B3B3B3;
  /* Gris claro */
  --8: #E0E0E0;
  /* Gris muy claro */
  --9: #FFFFFF;
  /* Blanco puro */

  /* Tonos de acento elegantes */
  --10: #C0C0C0;
  /* Plata metálica */
  --11: #D4AF37;
  /* Dorado elegante para destacar */
  --12: #A9A9A9;
  /* Gris metálico */

  /* Opcionales para hover/acciones */
  --success: #27AE60;
  /* Verde esmeralda para estados positivos */
  --error: #E42018;
  /* Rojo intenso para errores */
  --warning: #FF8C00;
  /* Naranja oscuro para advertencias */
  --text: #ffffff;
  /* Negro absoluto */
   --primary: #25D366;        /* Verde WhatsApp */
  --primary-dark: #20b954;   /* Verde más oscuro */
}

:root {

    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --header-height: 60px;
    --drawer-height: 80vh;
  }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--1);
  color: var(--7);
  line-height: 1.5;
  padding-bottom: 80px;
  /* Espacio para el botón de carrito */
}

/* MAIN */
#content main {
  width: 100%;
  padding: 36px 24px;
  font-family: var(--poppins);

}

header {
  background: var(--9);
  color: var(--text);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  height: var(--header-height);
  display: flex;
  align-items: center;
  /* centra verticalmente img + texto */
  gap: 1rem;
  /* espacio entre imagen y texto */
}

header img {
  width: 50px;
  height: 90px;
  margin: 0;
  /* quité el 10px para que alinee bien */
  border-radius: 5%;
  object-fit: cover;
  image-rendering: auto;
  /* Suavizado normal */
  image-rendering: smooth;
  /* (algunos navegadores) */
  -ms-interpolation-mode: bicubic;
  /* Para IE antiguo */
}

.header-text {
  display: flex;
  flex-direction: column;
  /* h1 arriba, p abajo */
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

header p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}


.container {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Categorías */
/* .categorias {
  margin-bottom: 1rem;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  
} */

.categorias {
  position: sticky;
  top: 0;
  z-index: 100;
  position: fixed;
  /* se queda siempre visible */
  top: 0px;
  /* altura del header (ajusta según tu header) */
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  /* centra botones horizontalmente */
  align-items: center;
  /* centra verticalmente */
  gap: 1rem;

  background: var(--9);
  padding: 1rem;
  height: var(--header-height);
  box-shadow: var(--shadow);
  border: none;
  border-radius: 0;
   overflow-x: auto;
    /* permite scroll horizontal en móviles */
    white-space: nowrap;
    /* evita que los botones se envuelvan */
    -webkit-overflow-scrolling: touch;
    /* suaviza el scroll en iOS */
}




.categorias::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}


.categorias button {
  background: none;
  border: none;
  color: var(--1);
  padding: 0 8px;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: bold;
}

.categorias button.active::after,
.categorias button:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  /* ajusta este valor según lo lejos que quieras la línea */
  width: 100%;
  height: 2px;
  background-color: var(--1);
}

/* product-list */
.product-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.product {
  background: var(--10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.product-img {
  height: 140px;
  background-color: #f0f0f0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 48px;
}

.product-info {
  padding: 1rem;
}

.product-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.product-button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.product-button:hover {
  background: var(--primary-dark);
}

.product.agotado {
  opacity: 0.7;
}

.product.agotado .product-img {
  position: relative;
}

.product.agotado .product-img::after {
  content: 'Agotado';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.product.agotado .product-button {
  background: #ccc;
  cursor: not-allowed;
}

/* Carrito flotante */
.cart-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  background: var(--8); /* Gris claro */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: var(--drawer-height);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  color: var(--1); /* Texto negro */
}

.cart-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Carrito flotante */
.cart-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  background: var(--1); /* Negro absoluto */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: var(--drawer-height);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  color: var(--9); /* Texto blanco */
}

.cart-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Encabezado del carrito */
.cart-drawer-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--8); /* Gris claro */
  background-color: var(--9); /* Blanco */
  color: var(--1); /* Negro */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.cart-drawer-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--1); /* Negro */
}

/* Cantidad de productos */
.cart-drawer-pill {
  background: var(--1); /* Negro */
  color: var(--9); /* Blanco */
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--8); /* Gris claro */
}

/* Manija superior */
.cart-drawer-handle {
  width: 50px;
  height: 5px;
  background: var(--7); /* Gris claro */
  border-radius: 3px;
  margin: 0 auto 0.5rem;
}

/* Contenido del carrito */
.cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--1); /* Fondo negro */
  color: var(--9); /* Texto blanco */
  scrollbar-width: thin;
  scrollbar-color: var(--7) var(--3);
}

.cart-drawer-content::-webkit-scrollbar {
  width: 6px;
}

.cart-drawer-content::-webkit-scrollbar-thumb {
  background-color: var(--7); /* Gris claro */
  border-radius: 10px;
}

/* Textos internos */
.cart-drawer-content h4,
.cart-drawer-content p,
.cart-drawer-content span {
  color: var(--9); /* Blanco */
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: var(--radius);
  margin-right: 1rem;
  background-size: cover;     /* que ocupe todo el div */
  background-position: center;
  background-repeat: no-repeat;
}


.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--text-light);
}

.cart-item-controls {
  display: flex;
  align-items: center;
}

.cart-item-quantity {
  margin: 0 0.5rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-quantity-btn {
  background: var(--secondary);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border-color: var(--9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: background-color 0.2s ease;
}

.cart-quantity-btn:hover {
  background: var(--border);
}

.cart-empty {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-light);
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cart-summary {
  padding: 1rem;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cart-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.cart-footer {
  padding: 1rem;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.cart-checkout-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.cart-checkout-btn:hover {
  background: var(--primary-dark);
}

.cart-clear-btn {
  background: transparent;
  color: var(--text-light);
  border: none;
  padding: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  width: 100%;
  margin-top: 0.5rem;
}

.cart-clear-btn:hover {
  text-decoration: underline;
}

/* Botón flotante de carrito */
.cart-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--9);
  color: var(--1);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s ease;

}

.cart-fab:hover {
  background: var(--6);
  transform: scale(1.05) rotate(5deg);
  opacity: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* incono de la cantidad */
.cart-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--7);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

/* Checkout steps */
.checkout-steps {
  margin-top: 1.5rem;
}

.checkout-step {
  margin-bottom: 1rem;
  border: 1px solid var(--9);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--background);
}

.checkout-step-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: var(--background);
  transition: background-color 0.2s ease;
}

.checkout-step-header:hover {
  background: var(--secondary);
}

.checkout-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  margin-right: 0.75rem;
}

.checkout-step-title {
  flex: 1;
  font-weight: 600;
}

.checkout-step-content {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: none;
}

.checkout-step-content.active {
  display: block;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Mapa */
.map-container {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  height: 250px;
  /* Asegurar que el contenedor tenga altura */
  width: 100%;
  display: block;
}

#map {
  height: 100% !important;
  /* Forzar altura */
  width: 100% !important;
  z-index: 1;
  display: block !important;
  position: relative !important;
}

.map-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.map-control-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--1);   /* negro absoluto */
  border: 1px solid var(--9); /* borde blanco */
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  min-width: 150px;
  color: var(--9); /* texto blanco */
}


.map-control-btn:hover {
  background: var(--6);   /* gris oscuro */
  border-color: var(--11); /* dorado elegante */
  color: var(--11);        /* texto dorado */
}

.map-address-preview {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Estilos específicos para Leaflet */
.leaflet-container {
  height: 100% !important;
  width: 100% !important;
  z-index: 1;
}

.leaflet-control-container {
  z-index: 10;
}

.leaflet-tile-pane {
  opacity: 1 !important;
}

.leaflet-tile {
  visibility: visible !important;
}

/* Asegurar que los controles de zoom sean visibles */
.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.map-address-preview svg {
  margin-top: 0.25rem;
  flex-shrink: 0;
  color: var(--primary);
}

.map-distance-info {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-mapa {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-mapa button {
  border: none;
  background: white;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-mapa button.active {
  background: var(--primary);
  color: white;
}

.leaflet-marker-icon {
  transition: all 0.3s ease;
}

/* Opciones de pago */
.payment-options {
  display: flex;
  gap: 1rem;
}

.payment-option {
  flex: 1;
  position: relative;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-option-label {
  display: block;
  background: var(--secondary);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option input:checked+.payment-option-label {
  border-color: var(--primary);
  background: rgba(252, 173, 2, 0.1);
}

.payment-option-icon {
  display: block;
  margin: 0 auto 0.5rem;
  font-size: 1.5rem;
}

/* Tipo de entrega */
.tipo-entrega {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tipo-entrega label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.route-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #007bff;
  text-decoration: underline;
}

/* Utilidades */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

/* Responsive */
@media (min-width: 768px) {

  :root{
       --radius: 8px;
    --header-height: 60px;
    --drawer-height: 60vh;
  }
  .product-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }


  .cart-drawer {
    width: 400px;
    max-width: 40%;
    right: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: translateY(calc(100% - 60px));
    height: var(--drawer-height);
    bottom: 0;
    top: auto;
  }

  .cart-drawer.open {
    transform: translateY(0);
  }

  .checkout-steps {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  #map {
    height: 300px;
  }
}

@media (max-width: 767px) {

    :root{
       --radius: 8px;
    --header-height: 60px;
    --drawer-height: 80vh;
  }
  .cart-drawer {
    width: 100%;
    max-width: 100%;
    right: 0;
  }

  .map-container {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }

  #map {
    height: 220px;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .checkout-step-content {
    padding: 1rem 0.5rem;
  }

  .cart-fab {
    bottom: 1rem;
    right: 1rem;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 600px) {

    :root{
       --radius: 8px;
    --header-height: 60px;
    --drawer-height: 60vh;
  }
  .categorias {
    position: fixed;
    /* siempre visible */
    top: 0px;
    /* ajusta según tu header */
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    gap: 1rem;
    align-items: center;

    background: var(--9);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);

    overflow-x: auto;
    /* permite scroll horizontal en móviles */
    white-space: nowrap;
    /* evita que los botones se envuelvan */
    -webkit-overflow-scrolling: touch;
    /* suaviza el scroll en iOS */
  }

  /* Oculta scrollbar en navegadores webkit, opcional */
  .categorias::-webkit-scrollbar {
    display: none;
  }

  /* Botones centrados y línea inferior */
  .categorias button {
    flex: 0 0 auto;
    /* evita que los botones se compriman */
    background: none;
    border: none;
    color: var(--text);
    padding: 0.5rem 1rem;
    position: relative;
    cursor: pointer;
    font-weight: 500;
  }

  .categorias button.active::after,
  .categorias button:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--1);
    /* línea amarilla */
  }

  .cart-summary,
  .cart-footer {
    position: static !important;
    bottom: auto !important;
    width: 100%;
    box-shadow: none;
  }

  .container {
    padding: 0.75rem;
  }

  .product-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .product-info {
    padding: 0.75rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .map-controls {
    flex-direction: column;
  }

  .map-control-btn {
    width: 100%;
    min-width: auto;
  }
}


/* Tabla data home*/

#content main .table-data-home>div {
  border-radius: 20px;
  padding: 0px;
  overflow-x: auto;
}


#content main .table-data-home .card-header {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;

}

/* borde  de logfo card */
#content main .table-data-home .card-header img {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #fff;
}

#content main .table-data-home .card-body .btn {
  display: block;
  margin: 10px auto 0;
  /* top auto bottom */
  text-align: center;
  margin-top: auto;
}

.card-body {
  display: flex;
  flex-direction: column;
  /* apila el contenido en columna */
  height: 60%;
  /* ocupa todo el alto disponible */
}

#content main .table-data-home .card-body {
  padding: 50px 20px 20px;
}

#content main .table-data-home .card-body h3 {
  margin: 10px 0;
  font-size: 18px;
  color: var(--text);
  text-align: center;
  /* centrado */
}

#content main .table-data-home .card-body p {
  font-size: 16px;
  color: var(--5);
  text-align: center;
  /* centrado */
}


#content main .table-data-home .card-body .btn.active {
  background: var(--primary-dark);
  color: var(--9);
  border: 3px;
  border-color: #000000;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
  margin-top: auto;

}

#content main .table-data-home .card-body .btn.inactive {
  background: var(--error);
  color: var(--9);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
  margin-top: auto;
}

.table-data-home .card-body button:hover {
  background: var(--1);
}

/* Botón Actualizar */
#content main .table-data-product .order table tr td .btn.update {
  background: var(--1);
}

/* Botón Actualizar */
#content main .table-data-product .order table tr td .btn.delete {
  background: var(--11);
}



/* forzar 5 columas para desktop*/
/* === Product list como GRID (reemplaza el flex) === */
#content main .table-data-home {
  display: grid !important;
  /* anula el display:flex anterior */
  grid-template-columns: 1fr;
  /* móvil: 1 columna */
  gap: 24px;
  margin-top: 24px;
  width: 100%;
  justify-content: initial;
  /* limpia lo que venía del flex */
}

/* aqui se modifica en general los estilos de las cards*/
#content main .table-data-home .card {
  width: 100% !important;
  max-width: none;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--9);
  overflow: hidden;

  border: none;
  box-shadow: 0 0 5px 1px var(--9);

  /* Transición suave para hover */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse */
#content main .table-data-home .card:hover {
  transform: scale(1.05); /* agranda un 5% */
  box-shadow: 0 0 15px 3px var(--9); /* resplandor más fuerte */
}

/* Tablet */
@media (min-width: 768px) {
  #content main .table-data-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptop */
@media (min-width: 1024px) {
  #content main .table-data-home {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: exactamente 5 columnas */
@media (min-width: 1280px) {
  #content main .table-data-home {
    grid-template-columns: repeat(5, 1fr);
  }
}
/* Pantalla completa del carrito en móviles */
@media (max-width: 768px) {
  .cart-drawer {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }
}



footer {
  background: none; /* fondo blanco */
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--9);
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* opcional: sombra superior */
}