/* ============================================
   ESTILOS PARA PÁGINA DE PRODUCTOS
   ============================================ */

/* Barra de filtros moderna horizontal */
.modern-filter-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.modern-filter-bar form {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
    width: 100%;
}

.modern-filter-bar-left {
    flex: 1;
    min-width: 0;
}

/* Campo de búsqueda */
.modern-search-box {
    position: relative;
    min-width: 200px;
    width: 100%;
    max-width: 300px;
}

.modern-search-box input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.6rem;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 45px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-search-box input:hover {
    border-color: var(--clr-def, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.modern-search-box input:focus {
    border-color: var(--clr-def, #007bff);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2), 0 4px 16px rgba(0, 123, 255, 0.15);
    outline: none;
    background: #ffffff;
    transform: translateY(-2px);
}

.modern-search-box input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.modern-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-def, #007bff);
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.modern-search-box input:focus + .modern-search-icon {
    color: var(--clr-def, #007bff);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.modern-filter-item {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    flex-shrink: 0;
    min-width: 0;
}

.modern-filter-item label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: fit-content;
}

.modern-filter-item:hover label {
    color: var(--clr-def, #007bff);
    transform: translateX(2px);
}

.modern-filter-item .form-select {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    padding: 12px 40px 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.6rem;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23007bff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    appearance: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    height: 45px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.modern-filter-item .form-select:hover {
    border-color: var(--clr-def, #007bff);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2), 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
    background: #ffffff;
}

.modern-filter-item .form-select:focus {
    border-color: var(--clr-def, #007bff);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2), 0 4px 16px rgba(0, 123, 255, 0.15);
    outline: none;
    background: #ffffff;
    transform: translateY(-2px);
}

.modern-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
    height: 45px;
    flex-shrink: 0;
    min-width: 180px;
    box-sizing: border-box;
}

.modern-clear-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.modern-clear-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modern-clear-btn span,
.modern-clear-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.modern-clear-btn:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    border-color: #dc3545;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.4), 0 0 0 3px rgba(220, 53, 69, 0.1);
    text-decoration: none;
}

.modern-clear-btn:hover i {
    transform: rotate(180deg) scale(1.1);
}

.modern-clear-btn i {
    font-size: 1.1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos para imágenes de productos uniformes */
.products-box .products-pic {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.products-box .products-pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.products-box:hover .products-pic img {
    transform: scale(1.05);
}

.products-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-box .products-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 1400px) {
    .modern-filter-bar form {
        gap: 20px;
    }

    .modern-filter-item {
        gap: 12px;
    }

    .modern-filter-item label {
        font-size: 1.3rem;
    }

    .modern-filter-item .form-select {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }

    .modern-search-box {
        max-width: 280px;
    }
}

@media (max-width: 1200px) {
    .modern-filter-bar {
        padding: 20px 25px;
    }

    .modern-filter-bar form {
        gap: 18px;
    }

    .modern-filter-item {
        gap: 12px;
    }

    .modern-filter-item label {
        font-size: 1.25rem;
    }

    .modern-filter-item .form-select {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
    }

    .modern-search-box {
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .modern-filter-bar {
        padding: 20px;
    }

    .modern-filter-bar form {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }

    .modern-filter-bar-left {
        flex: 1 1 100%;
        min-width: 100%;
        order: 1;
    }

    .modern-search-box {
        max-width: 100%;
    }

    .modern-filter-item {
        flex: 0 1 calc(50% - 8px);
        min-width: 250px;
        gap: 12px;
    }

    .modern-filter-item label {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .modern-filter-item .form-select {
        width: 100%;
        min-width: 150px;
        max-width: 100%;
        flex: 1;
    }

    .modern-clear-btn {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        justify-content: center;
        margin-top: 0;
        order: 3;
    }
}

@media (max-width: 768px) {
    .modern-filter-bar {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .modern-filter-bar form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .modern-filter-bar-left {
        width: 100%;
        flex: 1 1 100%;
        order: 1;
    }

    .modern-search-box {
        max-width: 100%;
    }

    .modern-filter-item {
        flex-direction: row;
        align-items: center;
        width: 100%;
        flex: 1 1 100%;
        gap: 12px;
        min-width: 100%;
    }

    .modern-filter-item label {
        margin-bottom: 0;
        font-size: 1.15rem;
        min-width: 90px;
        flex-shrink: 0;
    }

    .modern-filter-item .form-select {
        width: 100% !important;
        min-width: 150px !important;
        max-width: 100% !important;
        flex: 1;
    }

    .modern-clear-btn {
        width: 100%;
        min-width: 100%;
        justify-content: center;
        margin-top: 0;
        order: 3;
    }
}

@media (max-width: 576px) {
    .modern-filter-bar {
        padding: 15px;
    }

    .modern-filter-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .modern-filter-item label {
        margin-bottom: 0;
        font-size: 1.1rem;
        min-width: auto;
        width: 100%;
    }

    .modern-filter-item .form-select {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .modern-filter-item .form-select,
    .modern-search-box input,
    .modern-clear-btn {
        height: 42px;
        font-size: 1.6rem;
    }

    .products-box .products-pic {
        height: 250px;
    }
}

/* Mensaje cuando no hay productos */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    margin: 2rem 0;
}

.no-products-icon {
    font-size: 6rem;
    color: var(--clr-def, #e63946);
    margin-bottom: 2rem;
    opacity: 0.6;
}

.no-products-message h3 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.no-products-message p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .no-products-message {
        padding: 4rem 1.5rem;
    }

    .no-products-icon {
        font-size: 4.5rem;
    }

    .no-products-message h3 {
        font-size: 2rem;
    }

    .no-products-message p {
        font-size: 1.4rem;
    }
}

