/* --- ESTILO PARA PÁGINA DE TIENDA DE ROPA --- */

/* Fondo general suave */
body {
    background: #18191a;
}

/* Títulos principales */
h1, h4, h5 {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
}

/* Tarjetas de producto */
.product-card-link .card {
    background: #fff;
    border-radius: 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.18s, box-shadow 0.18s;
    color: #333;
    overflow: hidden;
    min-width: 260px;
    max-width: 420px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.product-card-link .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-card-link .card-img-top {
    border-radius: 0;
    height: 320px;
    object-fit: cover;
    transition: filter 0.2s;
}

.product-card-link .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}

.product-card-link .card-body {
    background: transparent !important;
    color: #333 !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem;
    min-height: auto;
}

.product-card-link .card-text {
    color: #333 !important;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.product-card-link strong {
    color: #000 !important;
    font-size: 1.15rem;
    font-weight: 700;
}

/* Filtros - Tema Claro */
#filter-form {
    background: #ffffff;
    padding: 2.5rem 2rem;
    color: #333;
    min-width: 280px;
    max-width: 420px;
    width: 100%;
}

#filter-form h4, #filter-form h5 {
    color: #333 !important;
    font-weight: 600;
}

#filter-form .form-check-label {
    color: #333;
}

#filter-form .form-select,
#filter-form .form-range,
#filter-form input[type="checkbox"] {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #dee2e6;
}

#filter-form .form-select option {
    background: #ffffff !important;
    color: #333 !important;
}

#filter-form .form-select:focus,
#filter-form .form-range:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
    background: #ffffff !important;
    color: #333 !important;
}

/* Filtros: texto en colores apropiados para tema claro */
#filter-form,
#filter-form *,
#filter-form label,
#filter-form h4,
#filter-form h5,
#filter-form .form-check-label,
#filter-form .form-select,
#filter-form .form-range,
#filter-form input[type="checkbox"],
#filter-form option {
    color: #333 !important;
}

#filter-form h4,
#filter-form h5 {
    color: #333 !important;
    font-weight: 600;
}

/* Estilos específicos para opciones del select */
#filter-form .form-select option {
    background-color: #ffffff !important;
    color: #333 !important;
}

#filter-form .form-select option:checked,
#filter-form .form-select option:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
}

/* Botón de filtros y paginación */
.btn-primary, .btn-outline-primary, .page-link {
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    background: #ffd700;
    color: #23272b;
    border: none;
    transition: background 0.18s, color 0.18s;
}

.btn-primary:hover, .btn-outline-primary:hover, .page-link:hover {
    background: #fff;
    color: #23272b;
    border: none;
}

/* Botón de aplicar filtros: tema claro */
#filter-form .btn-primary,
#filter-form .btn {
    background: #000000 !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none !important; /* sin borde por defecto en filtros */
    transition: background 0.18s, color 0.18s;
}

/* Sin efecto hover visible en botones de filtros */
#filter-form .btn-primary:hover,
#filter-form .btn:hover {
    background: #000000 !important;
    color: #fff !important;
}

/* Botón de limpiar filtros - unido al botón principal */
#filter-form .btn-outline-secondary {
    background: #000000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    font-weight: 600;
    transition: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#filter-form .btn-outline-secondary:hover {
    background: #000000 !important;
    color: #fff !important;
    text-decoration: none;
}

/* Grupo Aplicar|X unido visualmente */
#filter-form .apply-clear-group { display: flex; }
#filter-form .apply-clear-group .btn-apply {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    flex: 1 1 auto;
}
#filter-form .apply-clear-group .btn-apply:hover,
#filter-form .apply-clear-group .btn-apply:focus { background:#000000 !important; color:#ffffff !important; }

#filter-form .apply-clear-group .btn-clear {
    position: relative;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-left: 14px;
    padding-right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#filter-form .apply-clear-group .btn-clear::before{
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(0,0,0,0.2);
}
#filter-form .apply-clear-group .btn-clear:hover,
#filter-form .apply-clear-group .btn-clear:focus { background:#ffffff !important; color:#000000 !important; }

/* Spinner */
.spinner-border.text-primary {
    color: #000 !important;
}

.spinner-border.text-dark {
    color: #000 !important;
}

/* Responsive para tarjetas */
@media (max-width: 767px) {
    .product-card-link .card-img-top,
    .card-img-top {
        height: 280px;
    }
    #filter-form {
        padding: 1rem 0.5rem;
    }
}

/* Tarjetas de productos con tema claro: sin bordes redondeados, enfoque en imagen */
.card {
    background-color: #fff !important;
    /*border-radius: 0 !important;*/
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    color: #333;
    transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.card-img-top,
.card-image img {
    border-radius: 0 !important;
    height: 320px;
    object-fit: cover;
    transition: filter 0.2s;
}

.card-content,
.card-body {
    background: transparent !important;
    color: #333 !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem;
    min-height: auto;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333 !important;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.card-title {
    color: #222 !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.card-text {
    color: #333 !important;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.card-text strong {
    color: #000 !important;
    font-weight: 700;
}

.card .btn,
.card .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.18s, color 0.18s;
    border: none;
}

.card .btn:hover,
.card .btn-primary:hover {
    background: #333 !important;
    color: #fff !important;
}

/* Asegurar que las tarjetas tengan altura consistente */
/*.product-card, 
.card {
    min-height: 400px;
}*/

.product-card .card-body,
.card-body {
    padding: 0.75rem 1rem !important;
    flex: 0 0 auto;
}

/* Esquema monocromático - sobrescribir todos los colores */
.text-primary {
    color: #000 !important;
}

.text-info {
    color: #666 !important;
}

.text-success {
    color: #333 !important;
}

.text-warning {
    color: #555 !important;
}

.text-danger {
    color: #000 !important;
}

/* Badges monocromáticos */
.badge.bg-primary {
    background-color: #000 !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: #666 !important;
    color: #fff !important;
}

.badge.bg-success {
    background-color: #333 !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: #555 !important;
    color: #fff !important;
}

.badge.bg-danger {
    background-color: #000 !important;
    color: #fff !important;
}

/* Botones monocromáticos */
.btn-primary {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

.btn-outline-primary {
    border-color: #000 !important;
    color: #000 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

/* Banner Principal */
.banner-principal {
    position: relative;
    overflow: hidden;
}

.banner-principal img {
    transition: transform 0.3s ease;
}

.banner-principal:hover img {
    transform: scale(1.02);
}

.banner-principal .btn {
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #fff;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.banner-principal .btn:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive del banner */
@media (max-width: 768px) {
    .banner-principal img {
        height: 300px !important;
    }
    
    .banner-principal h1 {
        font-size: 2rem !important;
    }
    
    .banner-principal .lead {
        font-size: 1rem !important;
    }
    
    .banner-principal .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1.5rem !important;
    }
}

/* Estilo para el slider de precio: sin recuadro amarillo y más a la izquierda */
#filter-form .form-range {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-left: 0;
    width: 95%;
    padding-left: 0;
}

#filter-form label[for="max_price_slider"] {
    margin-left: 0;
    padding-left: 0;
}

#max_price_slider {
    accent-color: #ffd700; /* Opcional: color del thumb */
}



.lightbox-overlay {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #fff;
    font-weight: bold;
    font-size: 40px;
    user-select: none;
    transition: 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: #ccc;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

