.product-page {
    display: flex;
    flex-direction: column;
    position: relative;
}
    .page-header-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        background: linear-gradient(76deg, #333333a1 0%, #8080804a 25%, #e6e6e638 50%, #8080804a 75% 75%, #333333a1 100%);
        padding: 30px 0 20px;
        text-align: center;
    }
        .page-header-mobile h1,
        .page-header-desktop h1 {
            font-size: 2rem;
            font-weight: 650;
            text-shadow: 2px 2px 1px #ffd2008c;
            color: #333;
            margin-bottom: 0px;
        }

        .page-header-mobile p,
        .page-header-desktop p {
            font-size: 1rem;
            text-shadow: 2px 2px 1px #ffd2008c;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
        }
    .product-item-page {
        display: flex;
        flex-direction: column-reverse;
    }
        .left-side-product {
            display: none;
            justify-content: space-between;
            background: linear-gradient(274deg, #ffffff 0%, #fff2da42 35%, #f2cc8845 50%, #ffa50070 70%, #ffa500ad 90%, #FFA500 100%);
            /*background-image: url('../images/background_menu_lateral.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;*/
            min-width: 100vw;
            height: auto;
            position: relative;
            text-align: start;
            flex-direction: row;
            padding: 6px 6px 10px 18px;
            margin-bottom: 6px;
        }
            .filters-section-desktop {
                display: block;
            }
                .categories-filter {
                    display: inline-flex;
                    flex-wrap: wrap;
                    justify-content: center;
                    flex-direction: row;
                    gap: 10px;
                    margin: 9px 0 0 0;
                }
                    .category-btn,
                    .category-btn-mobile {
                        background: #f8f9fa;
                        border: 2px solid #ddd;
                        padding: 8px 10px;
                        border-radius: 13px;
                        font-weight: 600;
                        cursor: pointer;
                        transition: all 0.3s ease;
                        text-align: start;
                        font-size: 1.5vw;
                    }
                        .category-btn-mobile:hover,
                        .category-btn-mobile.active,
                        .category-btn:hover,
                        .category-btn.active {
                            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
                            border-color: #FFD700;
                            color: #000;
                            transform: translateY(-2px);
                        }


        .right-side-product {
            display: flex;
            flex-direction: column;
            position: relative;
            padding-bottom: 5px;
        }
            .page-header-desktop {
                display: none;
            }
                .search-filters {
                    position: relative;
                    width: 100%;
                    background-size: contain;
                    background-image: url('../images/bg_filterProd450.png');
                }
                    .container-search-prod {
                        position: relative;
                        max-width: 100%;
                        padding: 10px 20px;
                        align-content: center;
                        text-align: -webkit-center;
                        z-index: 2;
                    }
                        .search-bar {
                            display: flex;
                            max-width: 80vw;
                            margin: 0 auto 10px;
                            position: relative;
                        }
                            .search-input {
                                flex: 1;
                                padding: 10px 20px;
                                border: 2px solid #ddd;
                                border-radius: 13px 0 0 13px;
                                font-size: 16px;
                                outline: none;
                                transition: border-color 0.3s ease;
                            }
                                .search-input:focus {
                                    border-color: #FFD700;
                                }
                                .search-submit {
                                    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
                                    border: none;
                                    padding: 15px 25px;
                                    border-radius: 0 13px 13px 0;
                                    color: #000;
                                    cursor: pointer;
                                    transition: all 0.3s ease;
                                }
                                    .search-submit:hover {
                                        transform: translateY(-2px);
                                        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
                                    }
                        .filters-section-mobile {
                            display: flex;
                            flex-direction: column;
                            position: relative;
                            overflow-y: auto;
                        }
                            .filters-section-mobile h3 {
                                text-align: center;
                                margin: 0px 0 3px 0;
                                font-size: 1.3rem;
                                color: #333;
                            }


                /* Products Section */
                .products-section {
                    display: flex;
                    padding: 0px 0 80px 0px;
                    background: linear-gradient(97deg, #ffffff 0%, #b5b3b042 35%, #c7c1b645 50%, #b3aa9a4a 70%, #9f998f52 90%, #a1a09d42 100%);
                    position: relative;
                    min-block-size: -webkit-fill-available;
                }
                    .products-header {
                        display: flex;
                        justify-content: space-between;
                        width: auto;
                        align-items: center;
                        margin-bottom: 30px;
                    }
                    .products-container {
                        min-height: 400px;
                    }
                        .products-grid {
                            display: grid;
                            grid-template-columns: repeat(2, 1fr);
                            gap: 1.5vw;
                        }
                            .product-card {
                                aspect-ratio: 2.94 / 4;
                                background: linear-gradient(135deg, #FFD200 0%, #f8de6b79 52%);
                                border-radius: 15px;
                                overflow: hidden;
                                transition: all 0.1s ease;
                                cursor: pointer;
                                /*position: relative;*/
                                transform-origin: center;
                                max-width: 350px;
                                /*max-width: 186px;
                                max-height: 247px;*/
                            }
                                .product-card:hover {
                                    transform: translateY(-3px);
                                    box-shadow: 7px 7px 5px #ffd70052;
                                }

                                .product-image {
                                    position: relative;
                                    overflow: hidden;
                                    height: 63%;
                                }
                                    .product-img {
                                        width: 100%;
                                        height: 100%;
                                        object-fit: cover;
                                        transition: transform 0.3s ease;
                                        background: white;
                                    }
                                        .product-card:hover .product-img {
                                            transform: scale(1.1);
                                        }

                                    .product-badge {
                                        position: absolute;
                                        top: 4px;
                                        left: 4px;
                                        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
                                        color: #000;
                                        padding: 0px 6px;
                                        border-radius: 7px 6px 6px 6px;
                                        font-size: 12px;
                                        font-weight: 600;
                                    }

                                .product-info {
                                    text-align: center;
                                    padding: 3px 3px 5px 3px;
                                }

                                .product-title {
                                    height: 32px;
                                    font-size: 0.89rem;
                                    font-weight: 600;
                                    color: #333;
                                    margin: 0vh 0vw 9px 0vw;
                                    line-height: 1.1;
                                    text-shadow: 2px 2px 1px #ffd2008c;
                                }

                                .product-description {
                                    position: relative;
                                    color: #666;
                                    font-size: 0.8rem;
                                    line-height: 1.2;
                                    padding: 0px 4px 0 6px;
                                }

                        .products-grid.list-view {
                            grid-template-columns: 1fr;
                            width: 100%;
                        }
                            .products-grid.list-view .product-card {
                                display: flex;
                                align-items: center;
                                max-width: 100%;
                                aspect-ratio: 5 / 1;
                                padding: 0px 0px 0px 1.5vw;
                            }
                                .products-grid.list-view .product-image {
                                    width: 26vw;
                                    height: 16vw;
                                    flex-shrink: 0;
                                    border-radius: 7px;
                                }
                                    .products-grid.list-view .product-badge {
                                        top: 0px;
                                        left: 0px;
                                    }

                                    .products-grid.list-view .product-img {
                                        display: flex;
                                        width: 100%;
                                        height: 100%;
                                        object-fit: fill;
                                        transition: transform 0.3s ease;
                                    }
                                .products-grid.list-view .product-info {
                                    flex: 1;
                                    padding: 10px 12px;
                                    text-align: left;
                                }

                    .pagination {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        gap: 10px;
                        margin-top: 50px;
                    }
                        .pagination-btn {
                            background: #fff;
                            border: 2px solid #ddd;
                            padding: 10px 15px;
                            border-radius: 8px;
                            cursor: pointer;
                            transition: all 0.3s ease;
                            font-weight: 600;
                        }
                            .pagination-btn:hover,
                            .pagination-btn.active {
                                background: #FFD700;
                                border-color: #FFD700;
                                color: #000;
                            }
                            .pagination-btn:disabled {
                                opacity: 0.5;
                                cursor: not-allowed;
                            }

.results-info {
    font-size: 1.1rem;
    color: #666;
}
    .view-options {
        display: flex;
        gap: 10px;
    }
    .view-btn {
        background: #fff;
        border: 2px solid #ddd;
        padding: 10px 15px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
        .view-btn:hover,
        .view-btn.active {
            background: #FFD700;
            border-color: #FFD700;
            color: #000;
        }





/* Pagination */

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    margin: auto;
    max-width: 1200px;
    width: auto;
    max-height: 73vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1 / 2;
    z-index: 10000;
}
.modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding: 4px 0;
    background: linear-gradient(180deg, #ffa50059 0%, #ffa50070 35%, #f2cc88b0 50%, #ffa50070 70%, #ffa500ad 90%, #FFA500 100%);
}
.modal-sku {
    margin: auto auto auto auto;
    font-weight: 700;
    text-shadow: 2px 2px 4px #484845ab;
}
.modal-close {
    align-self: center;
    margin: 0 10px 0 0;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-body {
    height: 100%;
    margin: 0vh 0px 7vh 0px;
    overflow-x: hidden;
    overflow-y: auto;
}
.modal-detail {
    max-height: 97%;
}
/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: row;
    background: #f8f9fa;
    padding: 0.5vh 1vw 10px 1vw;
    border-radius: 16px;
    gap: 1vw;
    width: 100%;
    justify-self: center;
}

.main-image {
    position: relative;
    width: 73%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1.2;
    max-height: fit-content;
    box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.2);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.modal-item-image {
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    width: 30%;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 0px 10px 7px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px 2px rgba(0, 0, 0, 0.2);

}

.thumbnail:hover,
.thumbnail.active {
    border-color: #FFD700;
    transform: scale(1.05);
}

/* Product Details */
.product-details {
    padding: 0px 1vh 9px 7px;
    height: 100%;
}

.modal-product-title {
    max-width: 100%;
    font-size: 0.9rem;
    font-weight: 550;
    color: #444343;
    line-height: 1.3;
    padding: 5px 7px 0 7px;
    text-align: center;
    text-shadow: 2px 2px 4px #484845ab;

}

.modal-product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 30px;
}

.modal-product-description,
.modal-product-specs {
    margin-bottom: 0vh;
}

.modal-product-description h3,
.modal-product-specs h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
    margin: 10px 0 4px 0;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0px;
}

.modal-product-description p,
.modal-product-specs p {
    color: #666;
    line-height: 1.4;
    margin: 0 8px 3px 10px;
    font-size: 0.8rem;
    bottom: 2px;
}

.modal-product-specs ul {
    display: inline;
    list-style: none;
    padding: 0;
    line-height: 1.4;
    font-size: 0.8rem;
}

.modal-product-specs li {
    padding: 0.5vh 0;
    margin: 0 0 3px 10px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.modal-product-specs li:last-child {
    border-bottom: none;
}

/* Video Container */
.modal-product-video {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.buttons-modal-product {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 3vh;
}

/* Modal Actions */
.modal-actions {
    display: inline-flex;
    gap: 1vw;
    margin: 6px auto 1vh auto;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
    padding: 0.9vh 1vw;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}
.btn-share {
    background: var(--accent);
    color: #FFFFFF;
    transform-origin: center;
    transition: all 0.2s ease;

}
.btn-share:hover {
    background: linear-gradient(275deg,  #7ab9f8 0%, #0469cf 100%);
    color: var(--secondary-color);
    border-color: #adb5bd;
    transform: scale(1.005);
}

/* Form Styles */
.warranty-contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}
/* Responsive Design for Products */
@media (min-width: 450px) {
    .search-filters {
        background-image: url('../images/bg_filterProd450.png');
        padding: 0vw 0;
    }
    .product-gallery {
        width: 100%;
    }   
    .product-title {
        height: 32px;
        font-size: 3.3vw;
        font-weight: 800;
        margin: 0vh 0vw 2vw 0vw;
        line-height: 1.3;
    }

    .product-description {
        font-size: 2.9vw;
        line-height: 1.2;
        padding: 0px 4px 0 6px;
    }
    .modal-content {
        max-width: 80vw;
        max-height: 73vh;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        aspect-ratio: 1 / 1.65;
        z-index: 10000;
    }

}
/* Responsive Design for Products */
@media (min-width: 575px) {
        .search-bar {
            max-width: 80vw;
            max-height: 5vw;
        }

            .search-input {
                border-radius: 7px 0 0 7px;
            }   
            .search-submit {
                border-radius: 0 7px 7px 0;
                padding: 9px 18px;
            }   

    .product-item-page {
        flex-direction: row;
        height: -webkit-fill-available;
    }
    .search-filters {
        background-image: url('../images/bg_filterProd1024.png');
        background-size: auto;
        background-repeat: round;
    }
    .filters-section-mobile {
        display: none;
    }
    .products-header {
        max-width: 68vw;
    }
    .product-page {
        display: grid;
    }
        .left-side-product {
            display: block;
            justify-content: space-between;
            min-width: 20vw;
            width: -webkit-fill-available;
            height: auto;
            position: relative;
            text-align: start;
            flex-direction: column;
            padding: 6px 6px 10px 18px;
            margin-bottom: 6px;
        }
            .filters-section-desktop {
                display: block;
                /*position: fixed;*/
                overflow-y: auto;
                padding: 20px 17px 230px 0px;
            }

        .right-side-product {
            display: flex;
            flex-direction: column;
            position: relative;
            min-width: 72vw;
            padding-bottom: 5px;
        }
    .categories-filter {
        justify-content: start;
        flex-direction: column;
        padding-left: 20px;
        gap: 1vw;
    }
    .page-header-mobile {
        display: none;
    }

    .page-header-desktop {
        display: flex;
        flex-direction: row;
        /*background-image: url('../images/mostruario.png');*/
        background: linear-gradient(76deg, #333333a1 0%, #8080804a 25%, #e6e6e638 50%, #8080804a 75% 75%, #333333a1 100%);
        padding: 5px 0 4px 0;
        text-align: center;
    }
    .category-btn-mobile,
    .category-btn {
        padding: 8px 10px;
        font-size: 1.2vw;
    }

    .products-grid {
        gap: 15px;
    }

        .product-card {
            border-radius: 12px;
            max-width: 30vw;
        }
            .product-info {
                padding: 0.5vh 0.5vw 1vh 0.5vw;
            }
                .products-grid.list-view .product-badge {
                    font-size: 7px;
                    top: 1vw;
                    left: 4px;
                    padding: 1px 5px;
                    border-radius: 12px 8px 8px 8px;

                }
                .product-badge {
                    font-size: 7px;
                    top: 1vw;
                    left: 1vw;
                    padding: 1px 5px;
                    border-radius: 12px 8px 8px 8px;

                }
                .product-image {
                    height: 67%;
                }
                .product-title {
                    font-size: 0.88rem;
                    line-height: 1.1;
                    font-weight: 650;
                    height: 32px;
                    margin: 0px 0px 2px 0px;
                    padding: 0;
                }

                .product-description {
                    position: relative;
                    font-size: 0.72rem;
                    bottom: 0px;
                    line-height: 1.1;
                }

                .products-grid.list-view .product-image {
                    width: 18vw;
                    height: 11vw;
                    padding: 6px 1px;
                    border-radius: 20px;
                }

    .modal-content {
        max-height: 90vh;
    }

}
@media (min-width: 670px) {
    .product-title {
        font-size: 0.9rem;
        line-height: 1.15;
        font-weight: 800;
        height: 32px;
        margin: 0px 0px 4px 0px;
        padding: 0;
    }

    .product-description {
        position: relative;
        font-size: 0.85rem;
        bottom: 0px;
        line-height: 1.15;
    }
    .thumbnail-gallery {
        width: 30%;
    }
    .btn-secondary {
        padding: 0.8vh 2vw;
    }
}
/* Responsive Design for Products */
@media (min-width: 768px) {
    .search-filters {
        background-image: url('../images/bg_filterProd1024.png');
        padding: 0vw 0;
    }
    .filters-section-desktop h3 {
        text-align: left;
        margin: 20px 0 16px 0;
        font-size: 1.3rem;
        color: #333;
        text-shadow: 2px 2px 4px var(--primary-color);
    }

    .search-submit {
        padding: 17px 30px;
    }

    .search-bar {
        max-width: 60vw;
        margin: 12px 0px 12px 12px;
    }
        
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
        .product-card {
            border-radius: 12px;
            max-width: 30vw;
        }
            .product-title {
                font-size: 0.8rem;
                font-weight: 800;
                height: 32px;
                padding: 0px 0px 0px 0px;
                margin: 0px 0 8px 0;
            }

            .product-description {
                position: relative;
                font-size: 0.75rem;
                bottom: 5px;
                line-height: 1.2;
            }
    
    .products-grid.list-view .product-image {
        width: 19vw;
        height: 13.5vw;
    }


    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .product-gallery,
    .product-details {
        padding: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .warranty-contact-form {
        padding: 20px;
    }

/* Loading States */
.products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    flex-direction: column;
    gap: 20px;
}

.products-loading .spinner {
    width: 50px;
    height: 50px;
}

/* Empty States */
.products-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.products-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.products-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Modal Open Body */
body.modal-open {
    overflow: hidden;
}
}

@media(min-width: 1024px) {
    .right-side-product {
        min-width: 80vw;
    }
    .search-filters {
        background-image: url('../images/bg_filterProd1024.png');
        background-size: auto;
        background-repeat: round;
        padding: 0px 0;
    }
    .container-search-prod {
        padding: 0px;
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5vw;
    }
        .product-card {
            border-radius: 12px;
            max-width: 16vw;
        }

        .product-badge {
            font-size: 10px;
        }
        .product-title {
            padding: 0px 0px 5px 0px;
            margin: 0;
            line-height: 1;
        }

        .product-description {
            position: relative;
            font-size: 0.75rem;
            bottom: 5px;
            line-height: 1.2;
        }

    .category-btn-mobile,
    .category-btn {
        padding: 8px 10px;
        font-size: 1vw;
    }
}
