.barra-de-botones {
  margin: 20px auto;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-start;
  overflow-x: auto;
}

.barra-de-botones a {
  display: inline-block;
  padding: 8px 14px;
  background: #015c13;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.3s;
}

.barra-de-botones a:hover {
  background: #015c13;
}

.siguiente::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px;
  border-color: transparent transparent transparent #015c13;
}

.siguiente:hover::after {
  border-left-color: #0585e8;
}

@media(min-width: 768px) {
  .barra-de-botones {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}

@media(max-width: 767px) {
  .barra-de-botones a {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* Contenedor del dropdown */
.dropdown-menu {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 6px 0;
}

/* Item principal (categoría) */
.dropdown-menu .categoria-summary,
.dropdown-menu .dropdown-item.fw-bold {
  font-weight: 600;
  color: #1f2933;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hover limpio */
.dropdown-menu .categoria-summary:hover,
.dropdown-menu .dropdown-item.fw-bold:hover {
  background-color: #e6f4ea;   /* verde claro */
  color: #2e7d32;
  border-radius: 6px;
}

/* Flecha solo en summary */
.dropdown-menu .categoria-summary::after {
  content: "▶";
  font-size: 0.65rem;
  color: #6b7280;
  transition: transform 0.2s ease;
}

/* Girar cuando abre */
.dropdown-menu details[open] > summary::after {
  transform: rotate(90deg);
  color: #2e7d32;
}

.dropdown-item.small {
  font-size: 0.85rem;
  color: #6b7280;
  padding: 8px 26px;
}

.dropdown-item.small:hover {
  background-color: #e6f4ea;
  color: #2e7d32;
  border-radius: 6px;
}

.offcanvas .categoria-summary {
  font-weight: 600;
  color: #1f2933;
  padding: 8px 4px;
}

.offcanvas .categoria-summary:hover {
  color: #2e7d32;
}

.offcanvas .categoria-link.fw-bold {
  color: #1f2933;
  text-decoration: none;
  padding: 6px 4px;
}

.offcanvas .categoria-link.fw-bold:hover {
  color: #2e7d32;
}

.offcanvas .categoria-link.small {
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 768px) {

  .offcanvas .list-group-item {
    padding: 14px 0;
  }

  .offcanvas .categoria-summary {
    font-size: 1rem;
    font-weight: 700;
    color: #2e7d32;             
    padding: 12px 6px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
  }

  .offcanvas details > summary::after {
    color: #2e7d32;
  }

  .offcanvas .categoria-link.small {
    font-size: 0.9rem;
    color: #81c784;             
    padding: 6px 0;
    margin-left: 10px;
    display: block;
    line-height: 1.6;            
  }

  .offcanvas .categoria-link.small:hover {
    color: #a5d6a7;
  }

  .offcanvas .categoria-link.fw-bold {
    font-size: 0.95rem;
    padding: 10px 6px;
    line-height: 1.5;
  }

}

.producto-agotado {
  opacity: 0.45;
  filter: grayscale(100%);
}

.producto-agotado img {
  pointer-events: none;
}
.resultados-grid {
  display: grid;
  gap: 1.5rem;
  padding: 0 1rem;
}

@media (max-width: 767px) {
  .resultados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .resultados-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


.producto-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.producto-agotado {
  opacity: 0.55;
  filter: grayscale(100%);
}

.producto-agotado img {
  pointer-events: none;
}

.btn-agregar {
  padding: 8px 12px !important;
  line-height: 1 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-agregar i {
  line-height: 1;
  font-size: 15px;
}
.btn-agregar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 12px !important;
  line-height: 1 !important;
}
.btn-agregar i {
  font-size: 15px;
  line-height: 1;
}

.btn-agregar::before {
  content: none;
}


.card-producto {
  display: flex;
  flex-direction: column;
  height: 100%;
}


.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}


.btn-agregar {
  margin-top: auto;
  width: 100%;
  padding: clamp(10px, 2.5vw, 14px);
  font-size: clamp(0.8rem, 2.8vw, 1rem);
  border-radius: 999px;
  white-space: nowrap;
}

.dropdown-item {
  color: #00c853 !important;
}

.dropdown-item:hover {
  color: #00ff73 !important;
  background-color: transparent !important;
}

.categoria-summary {
  list-style: none;
  position: relative;
  padding: 12px 35px 12px 0;
  font-weight: 500;
  cursor: pointer;
  color: #00c853; 
}

.categoria-summary::-webkit-details-marker {
  display: none;
}


.categoria-summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #00c853;
  border-bottom: 2px solid #00c853;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.25s ease;
}

details[open] .categoria-summary::after {
  transform: translateY(-50%) rotate(225deg);
}

.submenu a {
  color: #00c853;
}

.submenu a:hover {
  color: #00ff73;
}











