.container-products {
    background-image: url("https://jikiu.pe/images/logo/jikiu-blue-50.webp"), url("https://jikiu.pe/images/backgrounds/background-products.webp");
    background-size: 300px auto, cover;
    background-position: 0 calc(50% + 50px), center;
    background-repeat: no-repeat, no-repeat;
}

.contain-products {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 150px 0 50px;
    font-family: var(--font-text-bold);
}


.catalog-items {
    margin-top: 45px;
    color: var(--blue-low-color);
}

.catalog-items h3 {
    font-size: var(--font-size-lg);
    font-weight: 100;
    margin-bottom: 40px;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.title-products {
    text-align: center;
    color: #194296;
    font-family: var(--font-main);   
}

.title-products span{
    color: var(--red-color);
}

.search-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 1px solid #b3b3b3;
    border-radius: 9px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border: 1px solid #163C88;
    outline: none;
    box-shadow: 0 0 5px #163C88;
    transition: border .4s, box-shadow 0.3s;
}

.search-btn {
    background: #163C88;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 0.9rem 3.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* font-weight: 500; */
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-results p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.no-results i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 57px 0 62px;
    gap: 13px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    color: #454545;
    border: 1px solid #b3b3b3;
    background-color: transparent;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
    background-color: #1a49a5;
    border: 1px solid #1a49a5;
    color: white;
    transform: translateY(-3px);
}

.pagination .current {
    background: #163C88;
    color: white;
    border: none;
}

.pagination .disabled {
    background-color: #ecf0f1;
    color: #bdc3c7;
    border-color: #ecf0f1;
}

.pagination span.disabled {
    border-radius: 7px;
}

.results-info {
    text-align: center;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.results-info strong {
    color: #3498db;
}

/* Estilos para los filtros */
.filter-container {
    display: flex;
    justify-content: start;
    margin-bottom: 2.8rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
    background-color: #F5F7FA;
    border-block: 2px solid var(--red-color);
}

.filter-btn {
    padding: 13px 25px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #F5F7FA;
    gap: 8px;
    border: none;
    outline: none;
    font-family: var(--font-main);
    color: #333;
    min-width: 120px;
    text-align: center;
}

.filter-btn:hover {
    color: var(--red-color);
}

.filter-btn.active {
    background: var(--red-color);
    color: white;
}

.filter-btn i {
    font-size: 1.2rem;
}

.filter-section {
    margin-bottom: 3.6rem;
    border-radius: 15px;
    display: none;
}

.filter-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mark-form,
.category-form,
.model-form,
.year-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.mark-select,
.category-select,
.model-select,
.year-select {
    flex: 1;
    font-size: 15px;
    padding: 0.9rem 1.2rem;
    color: #727272;
    border: 1px solid #ccc;
    border-radius: 9px;
    padding-right: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18"><path fill="%230762C8" d="M7 10l5 5 5-5z"/></svg>');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.mark-select:focus,
.category-select:focus {
    border: 1px solid #163C88;
    outline: none;
    box-shadow: 0 0 5px #163C88;
    transition: border .4s, box-shadow 0.3s;
}

.container-brands,
.container-categories {
    margin-top: 1.8rem;
    font-family: var(--font-text-regular);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}


.major-brands,
.major-categories {
    display: flex;
    gap: 0.6rem;
}

.brand-btn {
    display: inline-block;
    color: var(--white-color);
    background-color: #163C88;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 20px;
    font-size: 15px;
    font-family: var(--font-text-regular);
    transition: all .3s ease;
    min-width: 72px;
}

.brand-btn:hover {
    background-color: #163C88;
    transform: translateY(-2px);
}

.category-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.8rem;
}

.category-btn {
    background: #163C88;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white-color);
    font-family: var(--font-text-regular);
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--blue-color);
    transform: translateY(-2px);
}

/* Resultados de b¨²squeda */
.results-info {
    text-align: center;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 10px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.results-info strong {
    color: #3498db;
}

/* Estilos para los productos */
.link-product {
    text-decoration: none;
    color: #454545;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding-top: 18px;
}

.product-card-standard,
.product-card-horizontal,
.product-card-vertical {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: var(--font-text-regular);
    border: 1px solid #b3b3b3;
    position: relative;
}

.product-card-vertical .grid-header-img {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.product-card-standard:hover,
.product-card-horizontal:hover,
.product-card-vertical:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.product-card-standard .product-title,
.product-card-horizontal .product-title {
    color: #f0f0f0;
    background-color: #163c88;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #252525;
    border-bottom: 1px solid #000;
    padding: 8px 32px;
    min-height: 32px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.product-card-vertical .product-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #f0f0f0;
    background-color: #163c88;
    text-align: center;
    font-size: 14px;
    padding: 10px 40px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.product-card-standard .product-attributes,
.product-card-horizontal .product-attributes {
    background: #f9fbfd;
    border-radius: 10px;
    padding: 15px;
    font-size: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4px;
}

.product-card-vertical .product-attributes {
    background: #fff;
    border-radius: 10px;
    padding: 8px 0 10px 10px;
    font-size: 12px;
    position: absolute;
    top: 140px;
    left: 0;
    max-width: 150px;
}

.product-card-vertical .attribute-valor {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.product-card-standard .header-card,
.product-card-horizontal .header-card {
    display: flex;
    align-items: center;
}

.product-card-vertical .header-card {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-card-standard .id-product,
.product-card-horizontal .id-product {
    background-color: var(--red-color);
    color: var(--white-color);
    padding: 6px 20px;
    font-weight: bold;
}

.product-card-vertical .id-product {
    background-color: var(--red-color);
    color: var(--white-color);
    padding: 6px 20px;
    font-weight: bold;
    text-align: center;
}

.product-card-standard .oem-product,
.product-card-horizontal .oem-product {
    text-align: center;
    padding: 6px 0;
    flex: 1;
    color: #454545;
}

.product-card-vertical .oem-product {
    /* text-align: center; */
    padding: 6px 0;
    flex: 1;
    color: #454545;
    font-size: 13px;
    font-weight: 600;
    padding-left: 8px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.product-card-standard .product-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    position: relative;
}

.product-card-standard .product-image::after,
.product-card-horizontal .product-image::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 9px;
    width: 90px;
    height: 95px;
    background-image: url('../../images/logo/brand-jikiu.webp');
    background-position: center;
    background-size: 100%;
    opacity: 0.6;
    background-repeat: no-repeat;
}

.product-card-vertical .product-image::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 14px;
    width: 90px;
    height: 95px;
    background-image: url('../../images/logo/brand-jikiu.webp');
    background-position: center;
    background-size: 100%;
    opacity: 0.6;
    background-repeat: no-repeat;
}


.product-card-horizontal .product-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    position: relative;
}

.product-card-vertical .product-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0 24px;
    position: relative;
}

.product-card-standard .product-image img {
    width: 210px;
    min-height: 168px;
    max-height: 168px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-horizontal .product-image img {
    width: 338px;
    min-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-vertical .product-image img {
    width: 200px;
    min-height: 310px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.product-details strong {
    display: inline-block;
    width: 80px;
}

.attribute {
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
    width: 100%;
}


.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-results p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.no-results i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.pagination .current {
    color: white;
    border: none;
}

.pagination .disabled {
    background-color: #ecf0f1;
    color: #bdc3c7;
    border-color: #ecf0f1;
    cursor: not-allowed;
}

.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #7f8c8d;
    font-weight: bold;
}

/* Estilos para el filtro de especificaci¨®n */
.specification-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.specification-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.specification-select {
    flex: 1;
    font-size: 15px;
    padding: 0.9rem 1.2rem;
    color: #727272;
    border: 1px solid #ccc;
    border-radius: 9px;
    padding-right: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18"><path fill="%230762C8" d="M7 10l5 5 5-5z"/></svg>');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.specification-select:focus {
    border: 1px solid #163C88;
    outline: none;
    box-shadow: 0 0 5px #163C88;
    transition: border .4s, box-shadow 0.3s;
}

.specification-input {
    flex: 1;
    font-size: 15px;
    padding: 0.9rem 1.2rem;
    color: #727272;
    border: 1px solid #ccc;
    border-radius: 9px;
    padding-right: 35px;
}

.specification-input {
    border: 1px solid #163C88;
    outline: none;
    box-shadow: 0 0 5px #163C88;
    transition: border .4s, box-shadow 0.3s;
}

.category-group {
    width: 100%;
}

.group-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}



@media (max-width: 768px) {
    .specification-fields {
        flex-direction: column;
    }

    .specification-select,
    .specification-input {
        width: 100%;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input,
    .search-btn {
        width: 100%;

    }

    .filter-btn {
        width: 100%;
        justify-content: center;
        flex: 1;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .mark-form,
    .category-form {
        flex-direction: column;
        align-items: stretch;
    }

    .container-brands,
    .container-categories {
        flex-direction: column;
        align-items: start;
        gap: 1.3rem;
    }

    .major-brands,
    .major-categories {
        flex-wrap: wrap;
    }
}

@media(max-width: 600px) {
    .pagination {
        gap: 8px
    }
}

@media(max-width: 480px) {
    .contain-products {
        padding: 100px 0 14px;
    }

    .filter-section {
        margin-bottom: 2.4rem;
    }

    .pagination {
        gap: 4px
    }

    .title-products {
        font-size: 25px;
    }

    .link-product {
        overflow: hidden;
    }

    .product-card-standard .oem-product,
    .product-card-horizontal .oem-product {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-card-standard .product-attributes,
    .product-card-horizontal .product-attributes {
        grid-template-columns: 50% 50%;
    }

    .product-card-vertical .product-attributes {
        background: #fff;
        border-radius: 10px;
        padding: 8px 0 10px 10px;
        font-size: 12px;
        position: absolute;
        top: 140px;
        left: 0;
        max-width: 110px;
    }

    .product-card-standard .attribute-valor,
    .product-card-horizontal .attribute-valor {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }

    .product-card-vertical .grid-header-img {
        grid-template-columns: 130px 1fr;
        gap: 12px;
    }

    .product-card-vertical .product-image img {
        width: 100%;
        min-height: 310px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .pagination a,
    .pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 37px;
        height: 37px;
        border-radius: 7px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .pagination .dots {
        width: 16px;
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--red-light-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 110;
}

#scrollTopBtn img {
    width: 40%;
}

#scrollTopBtn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn.hide {
    opacity: 0;
    transform: translateY(20px);
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    background-color: #ff2332;
}