/* tienda.css — estilos de la vitrina pública */

.pagina-tienda {
    background-color: #fafafa;
}

.acceso-admin {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1050;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
}

.acceso-admin:hover {
    color: #fff;
    transform: scale(1.08);
}

.boton-carrito {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #1f2937;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-carrito {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.encabezado-tienda {
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
}

.logo-tienda {
    max-height: 150px;
    width: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
    transition: transform 0.2s ease;
}

@media (max-width: 480px) {
    .logo-tienda {
        max-height: 120px;
    }
}

.titulo-tienda {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.subtitulo-tienda {
    color: #6b7280;
}

.btn-categoria {
    margin: 6px;
    border-radius: 30px;
    padding: 10px 22px;
}

.btn-categoria.activo {
    background-color: #1f2937 !important;
    color: #fff !important;
}

.tarjeta-producto {
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.carousel-producto {
    background: #f3f4f6;
}

.carousel-producto .imagen-producto {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.carousel-producto .carousel-control-prev,
.carousel-producto .carousel-control-next {
    width: 12%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.carousel-producto:hover .carousel-control-prev,
.carousel-producto:hover .carousel-control-next {
    opacity: 0.85;
}

.carousel-producto .carousel-control-prev-icon,
.carousel-producto .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    padding: 4px;
}

.carousel-producto .carousel-indicators {
    margin-bottom: 0.4rem;
}

.carousel-producto .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
}

.fila-talla {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

.selector-cantidad {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-paso {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease;
}

.btn-paso:hover:not(:disabled) {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.btn-paso:active:not(:disabled) {
    transform: scale(0.9);
}

.btn-paso:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.valor-cantidad {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.valor-cantidad.valor-activo {
    color: #1f2937;
}

.titulo-referencia {
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #1f2937;
}
