/*----------------------------------- Product Homepage-----------------------------------*/
.ae-root .list-tab-container .list-tab.active {
    font-weight: 500;
}

.ae-root form#products-filter-form select#list-sorting {
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 50%;
    padding: 0;
    padding-right: 1rem;
    padding-left: 1rem;
}

.ae-root form#products-filter-form select#list-sorting {
    padding: 0 5%;
}

@media (max-width:1024px) {

    /* FILTER WRAPPER */
    #filter-right {
        margin-top: 10px;
    }

    button#filterButton {
        background: transparent;
        border: 1px solid #dbdbdb;
        padding: 10px 7%;
        font-size: 9pt;
        font-weight: 500;
    }

    #filterButton {
        position: relative;
        z-index: 1000;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100%;
        background-color: #fff;
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    button#closeButton {
        background: transparent;
        border: none;
        padding: 0;
    }

    button#closeButton svg {
        width: 40px;
        height: 40px;
    }

    .sort-section ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .sort-section ul li:first-child {
        margin-left: 0;
    }

    .sort-section ul li {
        font-size: 9pt;
        display: flex;
        margin: 0;
        align-items: center;
        justify-content: center;
        line-height: 3;
        border: 1px solid #dbdbdb;
        margin-left: -1px;
    }

    .sort-section ul li:first-child {
        margin-left: 0;
    }

    #filter-right .filter-section #filterItems {
        gap: 0;
    }

    #filter-right .filter-section #filterItems #filterItem {
        font-weight: normal;
        font-size: 8pt;
    }

    #filter-right .filter-section #filterItems #filterItem:nth-child(3n+1) {
        margin-left: 0;
    }

    .sidebar-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: absolute;
        right: 3%;
        top: 1%;
        background: transparent;
    }

    .sidebar-content {
        flex: 1;
        overflow-y: auto;
        padding: 0;
        padding-top: 5%;
    }

    .sort-section,
    .filter-section {
        margin-bottom: 20px;
    }

    .sort-section h3,
    .filter-section h3 {
        margin-top: 0;
        font-size: 10pt;
        text-transform: uppercase;
        color: var(--quaternary-color);
        font-weight: 500;
    }

    ul {
        list-style: none;
        padding: 0;
    }

    li {
        margin-bottom: 10px;
    }

    label {
        margin-left: 5px;
    }

    #applyFiltersButton {
        padding: 10px;
        background-color: transparent;
        color: var(--quaternary-color);
        border: none;
        cursor: pointer;
        border: 1px solid #dbdbdb;
        text-transform: uppercase;
        font-size: 10pt;
        font-weight: 500;
    }

    #applyFiltersButton:hover {
        background: var(--quaternary-color);
        color: #fff;
    }

    #overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 500;
    }

    .sidebar.open {
        right: 0;
        padding: 5%;
    }

    #overlay.show {
        display: block;
    }
}

/* --------------------------------------- Filter Widget--------------------------------------- */
@media (min-width:1200px) {
    div#filterItems {
        gap: 20px;
        padding: 10px 0;
    }

    form#products-filter-form {
        border: 1px solid #dbdbdb;
        line-height: 3;
        width: 100%;
    }

    #filter-right {
        gap: 30px;
    }

    form#products-filter-form select#list-sorting {
        display: flex;
        padding: 8% 5%;
        align-items: center;
        justify-content: center;
    }

    form#products-filter-form select#list-sorting option {
        text-align: left;
    }

    .ae-root #filter-right .list-tab-container {
        gap: 30px;
        justify-content: flex-end;
    }
}

@media (max-width:1024px) {
    #filterItems {
        gap: 0;
        display: grid !important;

        grid-template-columns: repeat(3, 1fr);
    }

    #filterItem {
        padding: 0;
        font-size: 9pt;
        line-height: 3;
        border: 1px solid #dbdbdb;
        margin-left: -1px;
        margin-bottom: -1px;
    }

    #filterItem:nth-child(4) {}

    #filterItem.active {
        background: #615245;
        font-weight: bold;
    }

    #filterItem.active a {
        color: white;
    }
}

/* -------------------------------------Sort------------------------------------------ */
ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* Eğer liste dikey olacaksa */
    align-items: stretch;
}

li {
    position: relative;
    text-align: center;
}

input[type="radio"] {
    display: none;
    /* Radio butonları tamamen gizle */
}

input[type="radio"]:checked+label {
    background: #615245;
    border: none;
    background-color: black !important;
    margin: 0px;
    width: 100%;
    justify-content: center;
    align-items: center;
    color: white;
}

input[type="radio"]:checked+label+li {
    background: #615245;
}

/* ----------------------------------- PRODUCT ITEMS ----------------------------------- */
.grid-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.grid-switcher {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 6px;
}

.grid-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #888;
    position: relative;
    transition: background .15s, color .15s;
}



.grid-btn.active {
    background: #1a1a1a;
    color: #fff;
}

.grid-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}



.dots {
    display: grid;
    gap: 2px;
}

.dot {
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 1px;
}

.dots-2 {
    grid-template-columns: repeat(2, 4px);
}

.dots-3 {
    grid-template-columns: repeat(3, 4px);
}

.dots-4 {
    grid-template-columns: repeat(4, 4px);
}

.dots-6 {
    grid-template-columns: repeat(3, 4px);
}

.lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.line {
    width: 18px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

/* Grid modları */
#ae-productItems {
    display: flex !important;
    flex-wrap: wrap;
}

#ae-productItems .ae-product-col {
    padding: 8px;
    transition: width .2s;
}

#ae-productItems.grid-2 .ae-product-col {
    width: 50%;
}

#ae-productItems.grid-3 .ae-product-col {
    width: 33.333%;
}

#ae-productItems.grid-2 .ae-product-col {
    width: 50%;
}

#ae-productItems.grid-3 .ae-product-col {
    width: 33.333%;
}

#ae-productItems.grid-4 .ae-product-col {
    width: 25%;
}

#ae-productItems.grid-6 .ae-product-col {
    flex: 0 0 16.666%;
    max-width: 16.666%;
}

#ae-productItems.list-view .ae-product-col {
    width: 100%;
}

#ae-productItems.list-view .ae-product-col {
    width: 100%;
}

/* Liste görünümünde ürün kartı yatay */
#ae-productItems.list-view .ps-product {
    display: flex;
    flex-direction: row;
    min-height: 130px;
}

#ae-productItems.list-view .ps-product img {
    width: 100px;
    min-width: 100px;
    object-fit: cover;
}

/* Mobil */
@media (max-width: 768px) {

    #ae-productItems.grid-4 .ae-product-col,
    #ae-productItems.grid-6 .ae-product-col {
        width: 50%;
    }

    .grid-btn[data-cols="6"] {
        display: none;
    }
}

@media (max-width: 768px) {
    .grid-toolbar {
        justify-content: flex-start;
        padding-left: 10px;
    }
}

/* Benzersiz Pop-up Modal genel ayarları */
.unique-popup-modal {
    display: none;
    /* Başlangıçta görünmez */
    position: fixed;
    z-index: 10000;
    /* Diğer içeriklerin üstünde olacak şekilde yüksek bir z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    /* Yarı şeffaf siyah arka plan */
}

/* Benzersiz Pop-up içerik alanı */
.unique-popup-content {
    background-color: #fff;
    margin: auto;
    padding: 3%;
    border: 1px solid #dbdbdb;
    width: 35%;
    max-width: 35%;
    position: relative;
}

/* Benzersiz Kapatma butonu */
.unique-popup-close {
    color: var(--quaternary-color);
    font-size: 50px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 25px;
}

.unique-popup-close:hover,
.unique-popup-close:focus {
    color: #000;
    text-decoration: none;
}

.unique-popup-content>div {
    display: flex;
    flex-direction: column;
    margin: 30px auto 50px;
}

.unique-popup-content>div input {
    background: transparent;
    border: 1px solid #dbdbdb;
    line-height: 2.5;
    text-indent: 15px;
}

.unique-popup-content>div button {
    background: transparent;
    border: 1px solid #dbdbdb;
    line-height: 2.5;
}

.unique-popup-content>div button:hover {
    background: var(--quaternary-color);
    color: #fff;
}

.unique-popup-content>a {
    text-decoration: underline;
}

.unique-popup-content title {
    padding-bottom: 10px;
}