/* Panel lateral (85% móvil, máx 400, mín 280) */
.mini-cart{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 85vw; max-width: 400px; min-width: 280px;
  background: #fff;
  z-index: 1055;               /* por encima del backdrop */
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.mini-cart.open{ transform: translateX(0); }

/* Área scroll de productos */
.mini-cart-body{
  overflow-y: auto;
  max-height: calc(100vh - 190px); /* ajusta según tu header/footer del panel */
}

/* Backdrop */
.mini-cart-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1050;
}
.mini-cart-backdrop.show{ opacity: 1; visibility: visible; }

/* Evitar scroll del body cuando está abierto */
.body-no-scroll{ overflow: hidden; }

.cart-fab{
  position: fixed;
  right: 16px;           /* ajústalo */
  top: 16px;             /* o bottom:16px si lo quieres abajo */
  z-index: 2001;         /* por encima del contenido */
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #007bff;   /* Bootstrap primary */
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.cart-fab i { font-size: 20px; }

/* Badge contador */
.cart-badge{
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: #dc3545;   /* Bootstrap danger */
  color: #fff; font-size: 12px; line-height: 20px;
  border-radius: 999px;
  pointer-events: none;
}

.navbar-light .navbar-toggler-icon{
  background-image: url("data:image/svg+xml;charset=utf8,\
  %3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E\
  %3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' \
  d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
//.navbar-light .navbar-toggler { border-color: rgba(255,255,255,.25); }

/* Panel lateral derecho reutilizable */
.side-panel{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 85vw; max-width: 400px; min-width: 280px;
  background: #fff;
  z-index: 1055;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.side-panel.open{ transform: translateX(0); }

.side-panel-body{
  overflow-y: auto;
  max-height: calc(100vh - 56px); /* ajusta según tu header dentro del panel */
}

/* Backdrop único */
.side-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1050;
}
.side-backdrop.show{ opacity: 1; visibility: visible; }

/* Evitar scroll de fondo cuando hay panel abierto */
.body-no-scroll{ overflow: hidden; }

/*Modal sucursales*/
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.btn-cancelar {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
}

.btn-cancelar:hover {
    background-color: #5a6268;
}

.btn-seleccionar {
    flex: 1;
}

/*boton cargar modal sucursal*/
.btn-cambiar-tienda {
    background-color: #ffc107;
    color: #212529;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin: 10px;
}

.btn-cambiar-tienda:hover {
    background-color: #e0a800;
}

/* Estilos para el modal (si no los tienes) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-content select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-seleccionar {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.btn-seleccionar:hover {
    background-color: #0056b3;
}
