﻿.banner-in-top-of-pages-one.gallery {
    position: relative;
    margin-top: 10px;
    height: 100px;
}

.banner-in-top-of-pages-one.gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    border-bottom-right-radius: 40px;
}

.banner-in-top-of-pages-one__detailes.gallery {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    width: 50%;
    margin: 0 auto;
    flex-direction: column;
}

.banner-in-top-of-pages-one__detailes-p {
    color: var(--text-color-white);
    font-size: clamp(14px, 2vw, 32x);
    font-weight: 500;
}

.banner-in-top-of-pages-one__detailes-span {
    color: var(--text-color-white);
    font-size: clamp(12px, 2vw, 32px);
    font-weight: 400;
}

.gallery-card {
    border-top-right-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    margin-bottom: 16px;
    flex-direction: column;
    cursor: pointer;
}

.img-gallery img {
    width: 100%;
    height: 100%;
}

.gallery-card__detailes-h2 {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 23ch;
    color: #313A48;
    margin-top: 4px;
}

.gallery-card__detailes-h5 {
    font-size: 16px;
    color: #93979E;
    margin-top: 4px;
}

@media (min-width: 992px) {
    .banner-in-top-of-pages-one.gallery {
        height: 150px;
    }
}

/*  Banner */
.slider-container {
    display: flex;
    background-color: #2B7DC0;
    padding: 0 10px 0 0;
    border-radius: 0 30px 0 0;
}

.swiper-button-next,
.swiper-button-prev {
    background: none;
    color: transparent;
    width: 80px;
    height: 80px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
}


.bg-baner-slider_gallery-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.content-baner-slider_gallery-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compare-view_container {
    border: 1px solid var(--bg-color-for-header);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: top;
}

.compare-view-item_wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.compare-view_item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--bg-color-for-header);
    padding: 0 8px;
    border-radius: 0 15px 0 0;
    position: relative;
}

.close-compare-view_item {
    position: absolute;
    top: 5px;
    right: 10px;
}

.compare-view-item_img img {
    width: 80px;
    height: 80px;
}

.compare-view-item_name {
    font-size: 14px;
    color: var(--text-color-dark);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-view-item_desc {
    font-size: 12px;
    color: var(--text-color-first);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-view_btn-wrapper {
    width: 300px;
    padding: 20px;
}

.compare-view_btn {
    display: block;
    color: #fff;
    background-color: var(--text-color-main);
    padding: 15px 50px;
    border-radius: 0 0 0 10px;
}

.form-search-filters {
    border: 1px solid var(--bg-color-for-header);
    padding: 5px;
    margin-top: 10px;
    display: flex;
    align-items: stretch;
}

.form-search-filters input {
    font-size: 20px;
}

.form-search-filters button {
    padding: 10px;
    background-color: var(--bg-color-main);
    border-bottom-left-radius: 15px;
}

.check-clearance-sale {
    width: 20px;
    height: 20px;
}

.check-clearance-sale input[ type="checkbox"] {
    width: 100%;
    height: 100%;
}

.accordion-filter_gallery {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-filter_gallery .accordion-header {
    width: 100%;
    padding: 10px 0;
    color: var(--bg-color-313A48);
    background-color: transparent;
    outline: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-filter_gallery .accordion-header span svg {
    transition: all 0.3s ease-out;
}

.accordion-filter_gallery .accordion-item.active .accordion-header span svg {
    transform: rotate(180deg);
}

.accordion-filter_gallery .accordion-content {
    height: 0;
    overflow: hidden;
    transition: all 0.8s ease-in-out;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
}

.accordion-filter_gallery .accordion-item.active .accordion-content {
    height: auto;
    padding: 10px;
    margin: 0;
    opacity: 1;
    visibility: unset;
}

.accordion-section_color-items__gallery {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-color-ededed);
    padding: 8px;
    cursor: pointer;
}

.accordion-section_color-items__gallery p {
    display: inline-block;
    width: 7ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.accordion-section_color-items__gallery .accordion-section_color-items__input__gallery {
    display: none;
}

.accordion-section_color-items__gallery .svg-container {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 0 0 0 8px;
    border: 1px solid #a3a3a38e;
}

.accordion-section_color-items__gallery .svg-container .toggle-svg {
    opacity: 0;
    transition: opacity linear .3s;
}

.accordion-section_color-items__gallery .accordion-section_color-items__input__gallery:checked~.svg-container .toggle-svg {
    opacity: 1;
}

.accordion-content .accordion-section_glass-type {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.accordion-content .accordion-section_glass-type label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.accordion-content .accordion-section_glass-type input {
    width: 20px;
    height: 20px;
}

.accordion-content .accordion-section_glass-type span {
    font-size: 16px;
}

.accordion-content .accordion-section_glass-type input:checked~span {
    font-weight: bold;
}

.dropdown_sort-by {
    position: relative;
    display: inline-block;
    width: 250px;
}

.dropdown-btn_sort-by {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 0 15px 0 0;
    background-color: white;
    cursor: pointer;
    text-align: left;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-content_sort-by {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s linear, opacity .3s linear;
    opacity: 0;
    position: absolute;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.dropdown-content_sort-by div {
    padding: 10px;
    cursor: pointer;
}

.dropdown-content_sort-by div:hover {
    background-color: #dddddd;
}

.dropdown-btn_sort-by-svg {
    transition: all .3s ease-in-out;
}

.dropdown_sort-by:hover .dropdown-content_sort-by {
    max-height: 500px;
    opacity: 1;
}

.dropdown_sort-by:hover .dropdown-btn_sort-by-svg {
    transform: rotate(180deg);
}




.product-card {
    border: 1px solid var(--bg-color-ededed);
    background-color: #fff;
    margin: 12px 0;
    padding-bottom: 8px;
    border-top-right-radius: 28px;
    border-bottom-left-radius: 28px;
}

.compare-btn {
    background-color: #f2f2f2;
    padding: 5px;
    border-radius: 0 0 10px 0;
}

.compare-btn svg path {
    fill: #93979E;
}

.compare-btn.active {
    background-color: #2B7DC0;
    padding: 5px;
}

.compare-btn.active svg path {
    fill: #fff;
}

.tag-product-container {
    position: absolute;
    right: 10px;
    top: 6px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.indoor-tag-product {
    display: flex;
    flex-wrap: nowrap;
    background-color: #FDE8B3;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 0 10px 0 0;
}





.btn-card_on-hover {
    display: block;
    color: var(--text-color-main-sec);
}



.filters-gallery_butten {
    border: 1px solid var(--text-color-main-sec);
    display: flex;
    padding: 10px 12px;
    border-top-right-radius: 24px;
    color: var(--text-color-main-sec);
}

.section_glass-type-input {
    display: none;
}

.section_glass-type-input:checked+.check-box_custom {
    border-color: #5597CD;
    background-color: #EAF2F9;
    background-image: url(/assets/Images/texture/Vector-tick.png);
    background-repeat: no-repeat;
    background-position: center;
}

.check-box_custom {
    width: 16px;
    height: 16px;
    border: 1px solid #C4C6CA;
}

.filters-section_wrapper {
    z-index: 100;
    background-color: white;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    border-radius: 24px 24px 0 0;
    box-shadow: -40px 0 50px #00000071;
    transition: transform .7s ease-in-out;
    overflow-y: auto;
}

.open-filter-section {
    transform: translateY(0);
    opacity: 1;
    height: auto;
}

.cluse-filter-section {
    transform: translateY(100%);
    opacity: 0;
    height: 0;
    visibility: hidden;
}

.choices[data-type*=select-one] {
    border: none;
    border-radius: 0 24px 0 0;
    background-color: transparent;
    border: 0;
    margin: 0;
    margin-top: 0;
}

.choices[data-type*=select-one] .choices__inner {
    border: none;
    border-radius: 0 24px 0 0;
    background-color: transparent;
    width: 180px;
}

.choices__item--selectable {
    background-color: transparent;
    border: none;
}

.border-top-filters_wrapper {
    border-top: 1px solid #E9EAEA;
}

.filter-item-selected {
    background-color: #FFF6DE;
    padding: 7px;
    border-radius: 0 16px 0 0;
    color: var(--text-color-first);
    font-size: 14px;
    cursor: pointer;
}

.filter-item-selected_wrapper {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    width: 50%;
    overflow-x: scroll;
}

.filter-item-selected_wrapper::-webkit-scrollbar {
    height: 5px;
}

.filter-item-selected_wrapper::-webkit-scrollbar-thumb {
    width: auto;
    height: 5px;
    background-color: #5597CD;
    border-radius: 10px;
}





.modal-preview_container {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

.modal-preview_content {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background-color: #fff;
    padding: 12px;
    border-top-right-radius: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    color: #666;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    color: #333;
}


.modal-preview_img {
    width: 100%;
    border-top-right-radius: 20px;
    text-align: center;
    max-height: calc(90vh - 140px);
    overflow: hidden;
}

.modal-preview_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal responsive adjustments */
@media (min-width: 1400px) {
    .modal-preview_content h2 {
        position: relative;
        bottom: 14px;
    }

    .modal-preview_content {
        max-width: 1400px;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 36px;
        padding-bottom: 12px;
        width: 30vw !important;
    }

    .modal-preview_img {
        max-height: calc(90vh - 160px);
    }
}

@media (max-width: 768px) {
    .modal-preview_content {
        width: 95%;
        max-width: none;
        max-height: 85vh;
        padding: 20px;
        margin: 20px;
    }

    .modal-preview_img {
        margin-top: 16px;
        max-height: calc(85vh - 100px);
    }

    .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .modal-preview_content {
        width: 100%;
        max-height: 90vh;
        padding: 16px;
        margin: 10px;
        border-radius: 8px;
    }

    .modal-preview_img {
        margin-top: 12px;
        max-height: calc(90vh - 80px);
    }
}

.modal-preview_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .modal-preview_content {
        width: 50vw;
    }

    .filters-gallery_butten {
        border: 0;
        color: var(--text-color-dark);
        padding: 0;
    }

    .filters-section_wrapper {
        position: static;
        box-shadow: none;
        padding: 0;
    }

    .cluse-filter-section {
        transform: translateY(0);
        opacity: 1;
        height: auto;
        visibility: unset;
    }

    .border-top-filters_wrapper {
        border-top: none;
    }







    .filter-item-selected_wrapper {
        display: none;
    }
}

/* Gallery AJAX enhancements */


.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 125, 192, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.view-btn {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    text-decoration: none;
}

.gallery-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.gallery-info h5 {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Filter enhancements */
.filter-item-selected {
    display: inline-flex;
    margin: 4px;
    padding: 6px 12px;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-item-selected:hover {
    background: #bbdefb;
    border-color: #1976d2;
}

.filter-item-selected .remove-filter {
    margin-left: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.filter-item-selected .remove-filter:hover {
    transform: scale(1.2);
}

/* Loading states */
#loading-spinner {
    margin: 40px auto;
}

/* Search form enhancements */
.form-search-filters {
    position: relative;
    display: flex;
    overflow: hidden;
}

.form-search-filters input {
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    flex: 1;
}

.form-search-filters button {
    background: #2B7DC0;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-search-filters button:hover {
    background: #1e5a87;
}

/* Color filter animations */
.accordion-section_color-items {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.accordion-section_color-items:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-info h2 {
        font-size: 1rem;
    }

    .gallery-info h5 {
        font-size: 0.8rem;
    }
}

/* Video gallery specific styles */
.video-gallery .aparat-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
}

.video-gallery .aparat {
    width: 100%;
    height: 100%;
}

/* Custom Pagination Styles */
.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #2B7DC0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px;
}

.pagination-btn:hover {
    background: #e3f2fd;
    border-color: #2B7DC0;
    color: #1e5a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(43, 125, 192, 0.15);
}

.pagination-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(43, 125, 192, 0.15);
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-number:hover {
    background: #e3f2fd;
    border-color: #2B7DC0;
    color: #2B7DC0;
    transform: translateY(-1px);
}

.pagination-number.active {
    background: #2B7DC0;
    border-color: #2B7DC0;
    color: white;
    cursor: default;
    transform: none;
    box-shadow: 0 4px 12px rgba(43, 125, 192, 0.3);
}

.pagination-number.active:hover {
    background: #2B7DC0;
    border-color: #2B7DC0;
    color: white;
    transform: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .custom-pagination {
        gap: 8px;
        margin: 16px 0;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }

    .custom-pagination {
        flex-direction: column;
        gap: 12px;
    }

    .pagination-btn {
        min-width: 80px;
        justify-content: center;
    }
}

/* No items message */
#no-items-message {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}