/* FILTROS */
#tienda-controles {
    width: 100%;
    margin-bottom: 2rem;
}

/* BUSCADOR */
.search-shop {
    width: 100%;
    background-color: rgba(18, 20, 28, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50rem;
    padding: 0.35rem 0.5rem;
    transition: var(--transition-smooth);
}

.search-input-inner {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

.search-input-inner .search-icon-shop {
    color: var(--bs-gray-600);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-input-inner input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-textos);
    font-size: 0.85rem;
    padding: 0.5rem;
}

.search-input-inner input:focus {
    outline: none;
}

.search-input-inner .btn-clear-shop {
    background: transparent;
    border: none;
    color: var(--bs-gray-600);
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    padding: 0;
}

.search-input-inner .btn-clear-shop:hover {
    color: var(--cyan-custom);
}

.search-shop:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.search-shop:focus-within {
    border-color: var(--cyan-custom) !important;
}

.search-shop:focus-within .search-icon-shop {
    color: var(--cyan-custom);
}

/* SUB FILTRO */
.btn-subfilter {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 50rem;
    color: var(--bs-gray-500);
    font-size: 0.75rem;
    padding: 0.5rem 1.25rem;
    transition: var(--transition-smooth);
}

.btn-subfilter:not([disabled]):hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--bs-gray-300);
}

.btn-subfilter.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 700;
}

.btn-subfilter.active:hover {
    border-color: white;
}

.btn-subfilter.btn-clear-subfilter {
    background-color: var(--cyan-custom-10);
    color: var(--cyan-custom);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
}

.btn-subfilter.btn-clear-subfilter:disabled {
    cursor: not-allowed;
    opacity: 0.25;
}

.btn-subfilter.btn-clear-subfilter:not([disabled]) {
    opacity: 1;
}

.btn-subfilter.btn-clear-subfilter:not([disabled]):hover {
    background-color: var(--cyan-custom-10) !important;
    border-color: var(--cyan-custom);
    color: var(--cyan-custom) !important;
}

#subfiltro-guia {
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ORDENADOR */
.input-orden-tienda {
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    max-width: 170px;
}

.input-orden-tienda option {
    background-color: var(--dark-custom);
    color: white;
}

.select-orden-tienda-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 50rem;
    padding: 0.5rem 1.25rem;
    color: var(--bs-gray-500);
    transition: var(--transition-smooth);
}

.select-orden-tienda-wrapper i {
    font-size: 0.85rem;
}

.select-orden-tienda-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--bs-gray-300);
}

.select-orden-tienda-wrapper:has(select:focus-visible) {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* MODAL DE TALLES */
.btn-trigger-sizes-global {
    color: var(--bs-gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.btn-trigger-sizes-global:hover {
    color: var(--cyan-custom) !important;
}

.btn-trigger-sizes-global i {
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-trigger-sizes-global:hover i {
    transform: scale(1.25);
}

#modal-guia-talles .modal-content {
    max-height: 70vh;
}

#modal-guia-talles .modal-title {
    color: black;
    line-height: 1;
}
#modal-guia-talles .nav {
    background-color: var(--cyan-custom-10);
    align-items: center;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

#modal-guia-talles .nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

/* TARJETA DE PRODUCTO */
.card-product {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    padding: 1rem;
    position: relative;
}

.card-product:has(.product-price-old) {
    border-color: rgba(255, 255, 255, 0.25) !important
}

.card-product:has(.product-price-old):hover {
    border-color: var(--cyan-custom) !important;
}

.card-product .tag-oferta {
    display: none !important;
}

.card-product:has(.product-price-old) .tag-oferta {
    display: inline-block !important;
    z-index: 3;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 71, 87, 0.3);
    border-color: #ff4757;
    color: #ff4757;
}

.card-product:has(.product-price-old) .tag-percentage {
    background-color: rgba(184, 134, 11, 0.3);
    border-color: #b8860b;
    color: #b8860b;
}

.card-product .tag-colores-varios {
    z-index: 3;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(253, 126, 20, 0.3);
    border-color: #fd7e14;
    color: #fd7e14;
}
.card-product:hover .tag-colores-varios {
    background-color: #fd7e14;
    color: white;
}

.card-product .product-img {
    width: 100%;
    height: 180px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-product .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: white;
    filter: brightness(0.85);
    will-change: transform;
    transition: var(--transition-smooth);
}

.card-product .product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between !important;
    gap: 0.75rem;
    flex-grow: 1;
}

.product-info>.box-column-custom:first-of-type {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: flex-start !important;
}

.product-title {
    flex-grow: 1 !important;
    margin-bottom: 1rem !important;
}

.product-info>.box-row-custom:last-of-type {
    margin-top: auto !important;
    width: 100% !important;
}

.product-info .box-column-custom,
.product-info .box-row-custom {
    gap: 0.5rem;
}

.product-info .label-custom {
    font-size: 0.65rem;
    color: var(--bs-gray-600);
}

.product-info .product-title {
    font-size: 1.25rem;
}

.card-product .value-sizes-custom {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-product .value-sizes-custom .btn-size-item {
    width: fit-content;
    min-width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.35rem;
    color: var(--bs-gray-500);
    font-size: 0.85rem;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.card-product .value-sizes-custom .btn-size-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.card-product .value-sizes-custom .btn-size-item.active {
    background-color: var(--cyan-custom-10);
    border-color: var(--cyan-custom);
    color: var(--cyan-custom);
}

.card-product .box-row-custom {
    width: 100%;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-product .box-price {
    display: flex;
    align-items: baseline;
    column-gap: 0.5rem;
}

.card-product .product-price {
    font-family: var(--font-titulos);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--cyan-custom);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.card-product .product-price-old {
    font-family: var(--font-titulos);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-gray-500);
    text-decoration: line-through;
}

.card-product .btn-product {
    width: 35px;
    height: 35px;
    border-radius: 0.35rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-color: #25D366;
    color: #25d366;
}

.card-product .btn-product:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    color: white !important;
}

.card-product:has(.product-price-old):hover .tag-oferta {
    background-color: #ff4757;
    color: white;
}

.card-product:has(.product-price-old):hover .tag-percentage {
    background-color: #b8860b;
    color: black;
}

.card-product:hover .product-img img {
    transform: scale(1.04) translateY(-2px);
}

.card-product:hover .product-price {
    opacity: 1;
}

.card-product:hover .btn-product {
    background-color: #25d366;
    border-color: #25d366;
    color: black;
}

/* SIN BUSQUEDA */
.tienda-sin-resultados {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 3rem 1rem;
  color: var(--bs-gray-500);
}

.tienda-sin-resultados i {
  font-size: 2rem;
  color: var(--cyan-custom);
  margin-bottom: 0.5rem;
}

.tienda-sin-resultados_titulo {
  color: white;
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.tienda-sin-resultados_texto {
  font-size: 0.85rem;
}

/* PAGINADOR */
#tienda-paginacion {
    width: 100%;
    justify-content: center;
    margin-top: 2rem;
}

#btn-pag-anterior,
#btn-pag-siguiente {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50rem;
    color: var(--bs-gray-500);
    font-size: 0.75rem;
    cursor: pointer;
}

#btn-pag-anterior:not(:disabled):hover,
#btn-pag-siguiente:not(:disabled):hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--bs-gray-300);
}

#btn-pag-anterior:disabled,
#btn-pag-siguiente:disabled {
    cursor: not-allowed;
    opacity: 0.25;
}

@media (max-width: 991.98px) {
    #tienda-controles {
        flex-direction: column;
    }

    .btn-group-subfilters, #orden-guia {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    #grid-productos-tienda.sin-paginador {
        margin-bottom: 5rem;
    }
    .btn-text {
        display: none;
    }

    #btn-pag-anterior,
    #btn-pag-siguiente {
        width: 35px;
        height: 35px;
        padding: 0;
    }
}
