* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Page Header */
.page-header {
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 14rem 0 4rem 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: #fff;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 30px;
}

/* Çekmece başlığı ve Filtrele butonu yalnızca mobilde görünür */
.filters-head,
.filters-backdrop,
.btn-filter {
    display: none;
}

/* Filtre akordeonları: dropdown başlık + çizgi vurgulu minimal liste */
.filter-acc {
    border-bottom: 1px solid var(--color-line, rgba(0, 0, 0, 0.08));
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
}

.filter-acc-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1a1a1a;
    padding: 0.9rem 0;
    transition: color 0.2s ease;
}

.filter-acc-head::-webkit-details-marker { display: none; }

.filter-acc-head:hover { color: var(--color-brand, #12315e); }

.filter-acc-caret {
    margin-left: auto;
    color: #999;
    transition: transform 0.25s ease;
}

.filter-acc[open] .filter-acc-caret { transform: rotate(180deg); }

.filter-acc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-brand, #12315e);
    flex-shrink: 0;
}

.filter-list {
    list-style: none;
    padding: 0.15rem 0 0.4rem;
    margin: 0;
}

.filter-sublist {
    margin: 0.1rem 0 0.35rem 0.9rem;
    padding: 0 0 0 0.9rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-item {
    display: block;
    cursor: pointer;
    padding: 0.32rem 0;
}

.filter-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-item span {
    position: relative;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    color: #777;
    letter-spacing: 0.02em;
    transition: color 0.25s ease, transform 0.25s ease;
}

.filter-item span::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.filter-item:hover span {
    color: #1a1a1a;
    transform: translateX(18px);
}

.filter-item:has(input:checked) span {
    color: #1a1a1a;
    font-weight: 500;
    transform: translateX(18px);
}

.filter-item:hover span::before,
.filter-item:has(input:checked) span::before {
    transform: scaleX(1);
}

.filter-item input:focus-visible + span {
    outline: 2px solid var(--color-brand-soft, #5A9FD4);
    outline-offset: 3px;
}

.filter-clear {
    display: inline-block;
    margin-top: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-clear:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* Products Grid */
.products-grid-wrapper {
    background: #fff;
    padding: 0;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.products-count {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

.sort-select {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    cursor: pointer;
    color: #666;
    transition: border-color 0.3s ease;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #1a1a1a;
    outline: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Product Cards */
.product-card {
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card:hover .product-name {
    color: #5A9FD4;
}

.product-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border: 1px solid #eee;
    transition: border-color 0.3s ease;
}

.product-card:hover .product-image {
    border-color: #ddd;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-info {
    padding: 1rem 0 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.product-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex: 1;
    transition: color 0.3s ease;
}

.product-price {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 3rem;
}

.page-btn {
    font-family: 'Poppins', sans-serif;
    padding: 0.5rem 0.9rem;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.page-btn:hover:not(:disabled) {
    color: #1a1a1a;
}

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

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-prev,
.page-next {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    /* Sidebar soldan kayan çekmeceye dönüşür */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 86vw);
        z-index: 1200;
        padding: 0.5rem 1.5rem 2.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
        box-shadow: 24px 0 60px -30px rgba(0, 0, 0, 0.35);
    }

    .filters-sidebar.open {
        transform: none;
    }

    .filters-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    .filters-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .filters-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: 'Poppins', sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: #1a1a1a;
        padding: 1.25rem 0 0.5rem;
    }

    .filters-close {
        background: none;
        border: none;
        font-size: 1.7rem;
        line-height: 1;
        color: #999;
        cursor: pointer;
        padding: 0 0.25rem;
        transition: color 0.2s ease;
    }

    .filters-close:hover { color: #1a1a1a; }

    .btn-filter {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: #fff;
        border: 1px solid #d9d9d9;
        border-radius: 2px;
        font-family: 'Poppins', sans-serif;
        font-size: 0.78rem;
        color: #1a1a1a;
        padding: 0.55rem 1rem;
        cursor: pointer;
        transition: border-color 0.2s ease;
    }

    .btn-filter:hover { border-color: #1a1a1a; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        padding: 6rem 0 3rem 0;
    }
}

@media (max-width: 768px) {
    /* Dar ekranda toolbar: Filtrele + sıralama yan yana sığsın */
    .products-count {
        display: none;
    }

    .products-toolbar {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .products-toolbar .products-sort {
        margin-left: auto;
    }

    .page-header {
        padding: 5rem 0 2.5rem 0;
    }

    .page-header-container {
        padding: 0 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .products-container {
        padding: 0 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------
   Arama, seçili filtreler, kategori alt menüsü, fiyat / renk / beden
   --------------------------------------------------------------------- */

/* Menü yazıları büyütüldü */
.filter-item span {
    font-size: 0.95rem;
}

.filter-sublist .filter-item span {
    font-size: 0.88rem;
}

.filter-item {
    padding: 0.4rem 0;
}

/* Arama kutusu */
.filter-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.7rem 0;
    margin-bottom: 0.9rem;
    color: #999;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.filter-search:focus-within {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.filter-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.filter-search input::placeholder { color: #aaa; }
.filter-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Seçili filtre etiketleri */
.filter-active {
    border-bottom: 1px solid var(--color-line, rgba(0, 0, 0, 0.08));
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
}

.filter-active .filter-clear {
    margin-top: 0.75rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.filter-chip span { opacity: 0.7; font-size: 0.9rem; line-height: 1; }
.filter-chip:hover { background: var(--color-brand, #12315e); }

/* Kategori adı: tıklayınca alt menü açılır */
.filter-parent-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0.4rem 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #777;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.filter-parent-toggle:hover,
.filter-parent-toggle.is-active {
    color: #1a1a1a;
}

.filter-parent-toggle.is-active {
    font-weight: 500;
}

.filter-parent-toggle .chev {
    flex-shrink: 0;
    color: #999;
    transition: transform 0.25s ease;
}

.filter-cat.open .filter-parent-toggle .chev {
    transform: rotate(180deg);
    color: #1a1a1a;
}

/* Fiyat aralığı */
.filter-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0 0.5rem;
}

.filter-price input {
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0.55rem;
    border: 1px solid #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #1a1a1a;
    outline: none;
    -moz-appearance: textfield;
    transition: border-color 0.3s ease;
}

.filter-price input::-webkit-outer-spin-button,
.filter-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter-price input:focus { border-color: #1a1a1a; }
.filter-price-sep { color: #bbb; }

.filter-price-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.filter-price-btn:hover { background: var(--color-brand, #12315e); border-color: var(--color-brand, #12315e); }

/* Renk seçimi */
.filter-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.3rem 0 0.5rem;
}

.filter-swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem 0.3rem 0.35rem;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-swatch input { position: absolute; opacity: 0; pointer-events: none; }

.filter-swatch .swatch-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.filter-swatch .swatch-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    color: #666;
}

.filter-swatch:hover { border-color: #1a1a1a; }
.filter-swatch:has(input:checked) { border-color: #1a1a1a; background: #1a1a1a; }
.filter-swatch:has(input:checked) .swatch-name { color: #fff; }

/* Beden seçimi */
.filter-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.3rem 0 0.5rem;
}

.filter-size { position: relative; cursor: pointer; }
.filter-size input { position: absolute; opacity: 0; pointer-events: none; }

.filter-size span {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    padding: 0.35rem 0.55rem;
    border: 1px solid #e5e5e5;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #666;
    transition: all 0.2s ease;
}

.filter-size:hover span { border-color: #1a1a1a; color: #1a1a1a; }
.filter-size input:checked + span { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }

/* Stok onay kutusu */
.filter-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #777;
    transition: color 0.2s ease;
}

.filter-check:hover { color: #1a1a1a; }

.filter-check input {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    position: relative;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-check input:checked { background: #1a1a1a; border-color: #1a1a1a; }

.filter-check input:checked::after {
    content: '';
    position: absolute;
    top: 2px; left: 4px;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.filter-check:has(input:checked) { color: #1a1a1a; }

/* Boş sonuç */
.products-empty {
    padding: 4rem 1rem;
    text-align: center;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Poppins', sans-serif;
}
