﻿:root {
    --bg-main: #FAF9F7;
    --bg-soft: #E6E1DA;
    --text-main: #2E2E2E;
    --accent: #C9A96A;
    --card: #ffffff;
    --line: rgba(46,46,46,.10);
    --shadow: 0 18px 40px rgba(0,0,0,.06);
    --r: 16px;
}

.plp {
    background: var(--bg-main);
    padding-bottom: 40px;
}

.plp-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 16px 0; /* ← 60px kaldırıldı, sıfırlandı */
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    align-items: start;
}

/* Desktop: sidebar sticky */
.plp-filters {
    position: sticky;
    top: 90px; /* header yüksekliğine göre ayarla */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,169,106,.35) transparent;
}

.plp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin: 6px 0 14px;
}

.plp-title h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.plp-count {
    display: inline-block;
    margin-top: 4px;
    color: rgba(46,46,46,.70);
    font-size: .9rem;
}

.plp-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .plp-sort label {
        font-size: .9rem;
        color: rgba(46,46,46,.80);
    }

    .plp-sort select {
        background: #fff;
        border: 1px solid rgba(46,46,46,.12);
        border-radius: 12px;
        padding: 10px 12px;
        color: var(--text-main);
    }

.filter-box {
    background: #fff;
    border: 1px solid rgba(46,46,46,.10);
    border-radius: 16px;
    padding: 14px;
    /* sticky aside üzerinde taşınıyor, buradan kaldır */
}

.filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(46,46,46,.08);
    margin-bottom: 10px;
}

    .filter-head h3 {
        margin: 0;
        font-size: 1.02rem;
        font-weight: 500;
    }

.filter-clear {
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(46,46,46,.70);
}

    .filter-clear:hover {
        color: var(--accent);
    }

.filter-group {
    padding: 12px 0;
    border-bottom: 1px solid rgba(46,46,46,.06);
}

    .filter-group:last-child {
        border-bottom: none;
    }

    .filter-group h4 {
        margin: 0 0 10px;
        font-size: .92rem;
        font-weight: 500;
        color: var(--text-main);
    }

.check {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
    font-size: .92rem;
    color: rgba(46,46,46,.88);
}

    .check input {
        accent-color: var(--accent);
    }

.swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(46,46,46,.18);
    background: var(--bg-soft);
    cursor: pointer;
}

    .swatch:nth-child(1) {
        background: rgba(201,169,106,.45);
    }

    .swatch:nth-child(2) {
        background: #EDEDED;
    }

    .swatch:nth-child(3) {
        background: #E8C2B0;
    }

    .swatch:nth-child(4) {
        background: #2E2E2E;
    }

.range {
    display: flex;
    gap: 10px;
}

    .range input {
        width: 100%;
        border: 1px solid rgba(46,46,46,.12);
        border-radius: 12px;
        padding: 10px 12px;
        background: #fff;
    }

.btn-filter {
    margin-top: 10px;
    width: 100%;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(201,169,106,.55);
    background: rgba(201,169,106,.14);
    cursor: pointer;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: rgba(201,169,106,.35);
    }

.pc-media {
    position: relative;
    background: linear-gradient(180deg, rgba(230,225,218,.55), rgba(250,249,247,.85));
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

    .pc-media > a {
        display: block;
        height: 100%;
    }

    .pc-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1);
        transition: transform .35s ease;
    }

.product-card:hover .pc-media img {
    transform: scale(1.04);
}

.pc-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(250,249,247,.92);
    border: 1px solid rgba(201,169,106,.35);
    color: var(--text-main);
    font-size: .78rem;
    padding: 6px 10px;
    border-radius: 999px;
}

.pc-wish {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--text-main);
    transition: transform .15s ease, border-color .15s ease, color .15s ease;
    z-index: 2;
}

    .pc-wish:hover {
        transform: scale(1.05);
        border-color: rgba(201,169,106,.5);
        color: var(--accent);
    }

.pc-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: rgba(46,46,46,.80);
    margin-bottom: 8px;
}

.pc-title {
    margin: 0 0 10px;
    font-size: .98rem;
    line-height: 1.25;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.25em * 2);
}

    .pc-title a {
        color: var(--text-main);
        text-decoration: none;
    }

        .pc-title a:hover {
            color: var(--accent);
        }

.pc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.pc-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-price-now {
    font-weight: 600;
    letter-spacing: .2px;
}

.pc-price-old {
    font-size: .82rem;
    color: rgba(46,46,46,.55);
    text-decoration: line-through;
}

.pc-add {
    border: 1px solid rgba(201,169,106,.55);
    background: rgba(201,169,106,.14);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 500;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}

    .pc-add:hover {
        transform: translateY(-1px);
        background: rgba(201,169,106,.20);
        border-color: rgba(201,169,106,.75);
    }

.plp-footerbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.plp-pageinfo {
    color: rgba(46,46,46,.70);
    font-size: .9rem;
    margin-right: auto;
}

.plp-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pager-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(46,46,46,.12);
    background: #fff;
    cursor: pointer;
    font-size: 22px;
}

    .pager-btn:hover {
        border-color: rgba(201,169,106,.55);
    }

.page {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(46,46,46,.10);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}

    .page.is-active {
        border-color: rgba(201,169,106,.75);
        background: rgba(201,169,106,.16);
    }

.page-ellipsis {
    color: rgba(46,46,46,.55);
    padding: 0 6px;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .plp-shell {
        grid-template-columns: 1fr;
    }

    .filter-box {
        position: relative;
        top: 0;
    }
}

@media (max-width: 820px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plp-footerbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    /* Kart içi font ve padding'i küçült */
    .pc-body {
        padding: 8px 8px 10px;
    }

    .pc-title {
        font-size: .78rem;
        margin-bottom: 6px;
        min-height: calc(1.25em * 2);
    }

    .pc-meta {
        font-size: .70rem;
        margin-bottom: 4px;
    }

    .pc-price-now {
        font-size: .82rem;
    }

    .pc-price-old {
        font-size: .72rem;
    }

    /* Sepet butonu mobilde gizle, karta tıklasın */
    .pc-add {
        display: none;
    }

    .pc-wish {
        width: 28px;
        height: 28px;
        font-size: 13px;
        top: 6px;
        right: 6px;
    }

    .pc-badge {
        font-size: .65rem;
        padding: 4px 7px;
        top: 6px;
        left: 6px;
    }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobil filtre overlay */
.plp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99;
}

    .plp-overlay.is-visible {
        display: block;
    }

/* Mobil filtre toggle butonu — sadece mobilde görünür */
.plp-filter-toggle {
    display: none;
    padding: 9px 16px;
    border: 1px solid rgba(46,46,46,.18);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Kapat butonu — sadece mobilde görünür */
.filter-close {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: rgba(46,46,46,.6);
    padding: 4px;
}

@media (max-width: 920px) {
    .plp-filter-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .filter-close {
        display: block;
    }

    .plp-filters {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100dvh;
        width: 300px;
        z-index: 100;
        background: #fff;
        overflow-y: auto;
        transition: left .3s ease;
        padding: 16px;
        box-shadow: 4px 0 24px rgba(0,0,0,.12);
    }

        .plp-filters.is-open {
            left: 0;
        }
}