:root {
  --bg-primary: #01243E;
  --bg-secondary: #03446f;
  --bg-accent: #e22c27;
  --bg-black: #2b2b2b;
  --bg-white: #f5f5f5;
  --bg-light-greed: #b3b3b3;
  --bg-white-s: #fff;
}

body {
  background-color: var(--bg-white);
}

.hide {
  display: none;
}

.show_fadeIn {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bg-navbar {
  background-color: var(--bg-secondary);
}
.navbar {
  background-color: var(--bg-primary);
}

.navbar .navbar-brand img {
  width: 100px;
}

/* aseguramos la posicion de la lista a lado izq del nav */

.navbar .navbar-nav .nav-item .nav-link {
  color: var(--bg-white);
}

/* buscador en el navbar */
.navbar .search-navbar .btn {
  border-radius: 0px;
}
.navbar .search-navbar .form-control {
  border-radius: 0px;
}

/* footer */
.footer {
  background-color: var(--bg-secondary);
  color: var(--bg-white);
}
.footer .back-footer {
  background-color: var(--bg-primary);
}
.footer .red-img {
  width: 50px;
  height: 50px;
}


/* botones */
.btn-outline-accent {
  border-color: var(--bg-accent);
  color: var(--bg-accent);
}
.btn-outline-accent:hover {
  background-color: var(--bg-accent);
  color: var(--bg-white);
}

.btn-accent {
  background-color: var(--bg-accent);
  color: var(--bg-white);
}
.btn-accent:hover {
  background-color: var(--bg-accent);
  color: var(--bg-white);
}

.btn-principal {
  background-color: var(--bg-secondary);
  color: var(--bg-white);
}
.btn-principal:hover {
  background-color: var(--bg-secondary);
  color: var(--bg-white);
}

.btn-outline-principal {
  border-color: var(--bg-secondary);
  color: var(--bg-secondary);
}
.btn-outline-principal:hover {
  background-color: var(--bg-secondary);
  color: var(--bg-white);
}

.card-title {
  font-weight: 200;
  font-size: 26px;
}

#top_top_rated img {
  height: 100px;
}

/* carousel */
.carousel img {
  width: 100%;
  height: auto;
  position: relative;
  object-fit: cover;
}

/* Extra small devices (phones, menos de 576px) */
/*
@media (max-width: 575.98px) {
  .carousel img {
    width: 500px;
    left: -250px;
  }
}
@media (min-width: 576px) {
  .carousel img {
    width: 500px;
    left: -250px;
  }
}
@media (min-width: 768px) {
  .carousel img {
    width: 700px;
    left: -350px;
  }
}
@media (min-width: 992px) {
  .carousel img {
    width: 900px;
    left: -450px;
  }
}
@media (min-width: 1200px) {
  .carousel img {
    width: 1200px;
    left: -600px;
  }
}
@media (min-width: 1400px) {
  .carousel img {
    width: 1400px;
    left: -700px;
  }
}*/


.nav-header {
  background-color: var(--bg-secondary);
}
.nav-header a {
  color: var(--bg-white);
}
.nav-header a:hover{
  color: var(--bg-white-s);
}
.nav-header a.disabled {
  color: var(--bg-light-greed);
}


.menu-nav {
  padding: 20px;
  position: absolute;
  width: 100%;
  background: rgb(255 255 255 / 80%);
  z-index: 100;
}

.menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-nav ul li {
  display: inline-block;
  background-color: var(--bg-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}

.menu-nav ul li a {
  color: var(--bg-white);
  text-decoration: none;
}

.card img {
  border-radius: 0.375rem;
}

.card-product .product-code {
  font-size: 12px;
}
.card-product .product-desc {
  font-size: 14px;
  display: -webkit-box;             /* Necesario para aplicar line-clamp */
  -webkit-line-clamp: 2;            /* Número de líneas que quieres mostrar */
  -webkit-box-orient: vertical;     /* Orientación vertical */
  overflow: hidden;                 /* Oculta el texto que se pase */
  text-overflow: ellipsis; 
}
.card-product .product-stock {
  font-size: 11px;
}
.card-product a {
  text-decoration: none;
  color: var(--bg-black);
}
.card-product img {
  height: 200px;
  object-fit: contain;
}
.card-product:hover {
  box-shadow: var(--bs-box-shadow) !important;
}

.btn-primary {
  background-color: var(--bg-secondary);
  border-color: var(--bg-primary);
}
.btn-primary:hover {
  background-color: var(--bg-primary);
}

.list-group .list-group-item a {
  text-decoration: none;
  color: var(--bg-black);
}

.card-brand {
  max-height: 1000px;
  overflow: scroll;
}

.table th {
  color: var(--bg-light-greed);
  font-weight: 300;
}

.object-fit-contain {
  object-fit: contain;
}

.inp-primary {
  border-color: var(--bg-primary);
  border-radius: 10px;
  text-align: center;
  font-size: 1.5rem;
}

.inp-primary-small {
  border-color: var(--bg-primary);
  border-radius: 10px;
  text-align: center;
  font-size: 1rem;
}

.inline-flex {
  display: inline-flex;
  width: 100%;
}

hr {
  margin: 1.3rem 0;
  opacity: .05;
}

.carousel-product-detail img {
  height: 500px;
}

.right {
  float: right;
}

.fs-mini {
  font-size: 0.7rem;
}

.multiple-images {
  display: flex;
  align-items: center;
  position: relative;
  height: 40px;
}

.multiple-images img,
.multiple-images .extra-count {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.multiple-images img:hover {
  transform: scale(1.15);
  z-index: 5;
}

/* Superposición progresiva */
.multiple-images img:not(:first-child),
.multiple-images .extra-count:not(:first-child) {
  margin-left: -10px;
}

/* Estilo del contador +N */
.multiple-images .extra-count {
  background-color: #ff3c00;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: default;
}

.notification-glow {
  position: relative;
}

.notification-glow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  box-shadow: 0 0 10px red;
  animation: glowPulse 1.5s infinite;
  z-index: 1;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0px red;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 15px 5px red;
    opacity: 0.7;
  }
  100% {
    box-shadow: 0 0 0px red;
    opacity: 1;
  }
}

.badge-cart {
  position: absolute;
  margin-left: 7px;
  margin-top: 4px;
  font-size: 8px;
}

.btn-close-left {
  position: absolute;
  margin-top: 5px;
  margin-left: 5px;
}

#processing_loading {
  background: #0000009c;
  position: fixed;
  top: -16px;
  width: 100%;
  height: 100%;
}

.processing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #ffffff, #f9fafc);
    border-radius: 5px;
    border: 1px solid #d2d2d2;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    max-width: 400px;
    margin: 0 auto;
    margin-top: 124px;
  }

  .processing-spinner {
    width: 3rem;
    height: 3rem;
    border: .35rem solid #e5e7eb;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .processing-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #111827;
    margin-top: 1rem;
  }

  .processing-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 0.25rem;
  }

  .processing-description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.4;
  }

  /* Puntos animados (tres puntitos "…") */
  .dots {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 3px;
    margin-left: 6px;
  }

  .dots > span {
    display: inline-block;
    animation: blink 1.2s infinite;
    opacity: 0.15;
  }

  .dots > span:nth-child(1){ animation-delay: 0s; }
  .dots > span:nth-child(2){ animation-delay: 0.15s; }
  .dots > span:nth-child(3){ animation-delay: 0.3s; }

  @keyframes blink {
    0% { opacity: .15; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
    100% { opacity: .15; transform: translateY(0); }
  }


.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease-in-out;
  text-align: center;
  width: 100%;
  height: 100%;
}

.promo-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  animation: pulse 2s infinite ease-in-out;
}

.promo-icon svg {
  width: 100%;
  height: 100%;
}

.promo-text h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: #ff3c00;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-text p {
  margin: 0.3rem 0 0;
  color: #333;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-unit {
  font-weight: bold;
  font-size: 11px;
  margin-top: -15px;
}