﻿/* =============================================================================
   PLP.CSS — Product Listing Page Styles
   Zekeriyaköy Çiçekçilik E-Ticaret
   Modern, clean filter sidebar + product grid
   ============================================================================= */

/* ─── Page Header (breadcrumb + title + controls) ────────────────────────── */

.plp-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    margin-bottom: 0;
    border-bottom: none;
}

.plp-page-header__info {
    flex: 1;
    min-width: 0;
}

.plp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: #b8a09c;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.plp-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.plp-breadcrumb a:hover {
    color: #7E3739;
}

.plp-breadcrumb__sep {
    font-size: 14px;
    opacity: 0.45;
}

.plp-page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: #2d2a2a;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin: 0 0 7px;
}

.plp-page-meta {
    font-size: 12px;
    color: #bbb;
    margin: 0;
    font-weight: 400;
}

.plp-page-meta__dot {
    margin: 0 5px;
}

.plp-page-meta__active {
    color: #7E3739;
    font-weight: 600;
}

.plp-page-header__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */

.plp-container {
    padding-top: 28px;
    padding-bottom: 100px;
}

.product-layout {
    display: grid;
    grid-template-columns: 272px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 28px;
}

.product-layout.filter-collapsed {
    grid-template-columns: 1fr;
}

.product-column {
    min-width: 0;
}

/* ─── Collection Showcase ─────────────────────────────────────────────────── */

.collection-showcase {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0ebe8;
}

.collection-showcase__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}

.collection-showcase__eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c4a49d;
    margin-bottom: 6px;
    font-weight: 700;
    margin-top: 0;
}

.collection-showcase__header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: #2d2a2a;
    margin: 0;
    line-height: 1.2;
}

.collection-showcase__all {
    color: #7E3739;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.collection-showcase__all:hover {
    opacity: 0.7;
}

.collection-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.collection-card {
    position: relative;
    display: block;
    height: 148px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background-color: #efe6e0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(126, 55, 57, 0.16);
}

.collection-card.is-active {
    box-shadow: 0 0 0 2.5px #7E3739;
}

.collection-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 1);
    border-radius: 16px;
}

.collection-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px;
    color: white;
}

.collection-card__badge {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    padding: 3px 9px;
    margin-bottom: 5px;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.collection-card__content strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    display: block;
}

.collection-card__content > span {
    font-size: 11px;
    opacity: 0.82;
    margin-top: 3px;
    display: block;
}

/* ─── Control Bar ─────────────────────────────────────────────────────────── */

.plp-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: #faf8f6;
    border-radius: 12px;
    border: 1px solid #ede8e4;
}

.plp-control-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plp-control-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    font-weight: 600;
    color: #2d2a2a;
}

.plp-control-count {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
}

.plp-control-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 1.5px solid #e2d8d4;
    border-radius: 100px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: #5a4a47;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.2px;
}

.plp-action-btn:hover {
    border-color: #7E3739;
    color: #7E3739;
    background: #fdf8f7;
}

/* Sort dropdown label style */
#sortDropdown label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    border-radius: 6px;
    transition: background 0.15s;
}

#sortDropdown label:hover {
    background: #fdf5f4;
}

#sortDropdown input[type="radio"] {
    accent-color: #7E3739;
}

/* ─── Active Filter Strip ─────────────────────────────────────────────────── */

.active-filter-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.active-filter-strip__items {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    flex: 1;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: #F7E5DF;
    color: #7E3739;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.active-filter-strip__clear {
    color: #aaa;
    font-size: 12px;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
    text-decoration-color: #ddd;
    transition: color 0.2s;
}

.active-filter-strip__clear:hover {
    color: #7E3739;
}

/* ─── Dual-Tab Bar (Filtrele / Sırala) ───────────────────────────────────── */

.plp-tab-bar {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eae4e1;
    margin-bottom: 0;
    background: white;
    position: relative;
}

.plp-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b5550;
    letter-spacing: 0.1px;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
    position: relative;
}

.plp-tab-btn:hover {
    color: #2d2a2a;
}

.plp-tab-btn.is-active {
    color: #2d2a2a;
    border-bottom-color: #2d2a2a;
    font-weight: 600;
}

.plp-tab-btn svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.plp-tab-btn.is-active svg {
    opacity: 1;
}

.plp-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    background: #7E3739;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* Sort tabs inline sort dropdown */
.plp-sort-panel {
    display: none;
    border-top: 1px solid #eae4e1;
    padding: 12px 0 6px;
    flex-direction: column;
    gap: 2px;
}

.plp-sort-panel.is-open {
    display: flex;
}

.plp-sort-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
    font-size: 13.5px;
    color: #3a2f2d;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}

.plp-sort-option:hover {
    background: #fdf5f4;
    color: #7E3739;
}

.plp-sort-option.is-selected {
    color: #7E3739;
    font-weight: 600;
}

.plp-sort-option input[type="radio"] {
    accent-color: #7E3739;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ─── Inline Filter Panel ─────────────────────────────────────────────────── */

.plp-filter-inline {
    display: none;
    flex-direction: column;
    background: white;
}

.plp-filter-inline.is-open {
    display: flex;
}

/* ─── Filter Sidebar ──────────────────────────────────────────────────────── */

/* Override bundle-original.css legacy float/width on .filtreboxes */
.filtreboxes.filter-panel {
    width: 272px !important;
    float: none !important;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e5d6d2 transparent;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: opacity 0.32s ease;
}

.filtreboxes.filter-panel::-webkit-scrollbar {
    width: 3px;
}

.filtreboxes.filter-panel::-webkit-scrollbar-track {
    background: transparent;
}

.filtreboxes.filter-panel::-webkit-scrollbar-thumb {
    background: #e5d6d2;
    border-radius: 2px;
}

.filter-panel.filter-hidden {
    display: none !important;
}

.filter-panel-card {
    background: white;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 10px;
    border: 1px solid #f0ebe8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Breadcrumb card */
.filter-breadcrumb.filter-panel-card {
    padding-bottom: 16px;
}

.filter-breadcrumb__path {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #c4a09a;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-breadcrumb__path a {
    color: #c4a09a;
    text-decoration: none;
    transition: color 0.2s;
}

.filter-breadcrumb__path a:hover {
    color: #7E3739;
}

.filter-breadcrumb__path span:not(:first-child)::before {
    content: '/';
    margin-right: 5px;
    color: #ddd;
}

.filter-breadcrumb h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: #2d2a2a;
    letter-spacing: -0.2px;
    margin: 0 0 5px;
    line-height: 1.25;
}

.filter-breadcrumb p {
    font-size: 12px;
    color: #bbb;
    margin: 0;
}

/* ─── Quick Links — Categories / Collections ──────────────────────────────── */

.mini-section-title {
    font-size: 9.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c8b0a8;
    font-weight: 700;
    margin-bottom: 12px;
}

.quick-links-card.filter-panel-card {
    padding: 14px 0;
}

.quick-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-link-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1.5px solid #ece4e0;
    background: #fdfaf9;
    color: #6b5550;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.2;
    white-space: nowrap;
}

.quick-link-chip:hover {
    border-color: #D88486;
    color: #7E3739;
    background: white;
}

.quick-link-chip.is-active {
    background: #7E3739;
    border-color: #7E3739;
    color: white;
    font-weight: 600;
}

/* ─── Filter Groups ───────────────────────────────────────────────────────── */

/* filtreler2: wrap all filter sections — clean borderless on desktop sidebar */
.filtreler2 {
    background: white;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

/* ─── Filter Group Header ─────────────────────────────────────────────────── */
/* Matches Zekeriyaköy Çiçekçilik.com: normal-case, 14px medium, with clean chevron */
.categoryFilterTitle {
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #2d2a2a !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 17px 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eae4e1;
    user-select: none;
    position: relative;
    transition: color 0.15s;
}

.categoryFilterTitle:last-child {
    border-bottom: none;
}

.categoryFilterTitle:hover {
    color: #7E3739 !important;
}

/* Replace CSS char with SVG chevron */
.categoryFilterTitle::after {
    content: none !important;
    display: none !important;
}

.categoryFilterTitle .filter-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #aaa;
}

.categoryFilterTitle.filup .filter-chevron {
    transform: rotate(180deg);
}

.specialFilterList {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    scrollbar-width: thin;
    scrollbar-color: #e5d6d2 transparent;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    border-bottom: 1px solid #eae4e1;
}

/* Open state set via JS */
.specialFilterList.is-open {
    overflow-y: auto;
    max-height: 260px;
    opacity: 1;
}

.specialFilterList li {
    margin: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13.5px;
    color: #2d2a2a;
    border: none;
    background: none;
    width: 100%;
}

.filter-option:hover {
    color: #7E3739;
}

/* Custom clean checkbox */
.filter-option .filter-cb {
    width: 17px;
    height: 17px;
    border: 1.5px solid #d4cac6;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    background: white;
}

.filter-option input[type="checkbox"]:checked ~ .filter-cb,
.filter-option.is-checked .filter-cb {
    background: #7E3739;
    border-color: #7E3739;
}

.filter-cb-check {
    display: none;
    width: 10px;
    height: 10px;
    color: white;
}

.filter-option input[type="checkbox"]:checked ~ .filter-cb .filter-cb-check,
.filter-option.is-checked .filter-cb .filter-cb-check {
    display: block;
}

/* Override bundle checkbox styles inside plp */
.filtreboxes.filter-panel .filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Remove the pseudo-element from bundle that creates custom checkbox */
.filtreboxes.filter-panel .filter-option input[type="checkbox"] + label,
.filtreboxes.filter-panel .specialFilterList [type="checkbox"] + label {
    padding-left: 0 !important;
}

.filtreboxes.filter-panel .specialFilterList [type=checkbox] + label::before {
    display: none !important;
}

.filter-option .filter-label-text {
    flex: 1;
    font-size: 13.5px;
    color: inherit;
    line-height: 1.35;
}

.filter-option small {
    margin-left: auto;
    font-size: 11.5px;
    color: #bbb;
    flex-shrink: 0;
    min-width: 18px;
    text-align: right;
}

/* Color swatch */
.renkfiltre {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

/* ─── Filter Footer ───────────────────────────────────────────────────────── */

.filtfooter {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding: 16px 0 8px;
    border-top: 1px solid #eae4e1;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 2;
}

.filttemizle {
    flex: 1;
    padding: 11px;
    border: 1.5px solid #e0d4d0;
    border-radius: 100px;
    background: white;
    color: #7E3739;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Manrope', sans-serif;
}

.filttemizle:hover {
    border-color: #7E3739;
    background: #fdf8f7;
}

.filtuygula {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 100px;
    background: #7E3739;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Manrope', sans-serif;
}

.filtuygula:hover {
    background: #5e2a2c;
}

/* ─── Selected Collection Hero ────────────────────────────────────────────── */

.selected-collection-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 28px;
    background: #f0e6e0;
    background-size: cover;
    background-position: center;
}

.selected-collection-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 1);
    pointer-events: none;
}

.selected-collection-hero__content {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
    color: white;
}

.selected-collection-hero__badge {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 3px 11px;
    margin-bottom: 9px;
    backdrop-filter: blur(4px);
}

.selected-collection-hero__content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 7px;
    line-height: 1.15;
}

.selected-collection-hero__content p {
    font-size: 14px;
    opacity: 0.82;
    margin: 0;
}

/* ─── Products Grid ───────────────────────────────────────────────────────── */

.products-grid-plp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ─── Product Card ────────────────────────────────────────────────────────── */

.plp-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f2ece8;
}

.plp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(126, 55, 57, 0.11);
}

.plp-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.plp-product-image a {
    display: block;
    height: 100%;
}

.plp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

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

.wishlist-icon-container {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 2;
}

.wishlist-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    text-decoration: none;
    color: #ccc;
    font-size: 15px;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: #D88486;
    box-shadow: 0 4px 14px rgba(216, 132, 134, 0.28);
}

.plp-product-info {
    padding: 13px 15px 17px;
}

.product-micro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    align-items: center;
}

.product-micro-tags span {
    font-size: 10px;
    color: #c4a49d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.product-micro-tags span + span::before {
    content: '·';
    margin-right: 4px;
}

.plp-product-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: #2d2a2a;
    margin: 0 0 7px;
    line-height: 1.3;
}

.plp-product-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.plp-product-info h3 a:hover {
    color: #7E3739;
}

.product-filter-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 9px;
}

.product-filter-preview span {
    font-size: 10px;
    color: #a89490;
    background: #faf4f2;
    padding: 2px 9px;
    border-radius: 100px;
    border: 1px solid #f0e8e5;
}

.plp-product-price {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #7E3739;
}

/* ─── Empty State ─────────────────────────────────────────────────────────── */

.empty-products-state {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}

.empty-products-state h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: #555;
    margin: 16px 0 12px;
}

.empty-products-state p {
    font-size: 14px;
    margin: 0 0 24px;
}

.empty-products-state__link {
    display: inline-block;
    padding: 12px 30px;
    background: #7E3739;
    color: white;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.empty-products-state__link:hover {
    background: #5e2a2c;
}

/* ─── Mobile Overlay ──────────────────────────────────────────────────────── */

#filtremobileheader {
    display: none;
}

#filtremobileheader .modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: #2d2a2a;
}

#filtremobileheader .close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

#filtremobileheader .close:hover {
    opacity: 1;
}

/* ─── Filter Backdrop (mobile overlay) ───────────────────────────────────── */

.plp-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 10, 0.38);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(2px);
}

.plp-filter-backdrop.is-visible {
    opacity: 1;
}

.plp-filter-backdrop.show-block {
    display: block;
}

/* Scroll lock when drawer is open */
body.filter-drawer-open {
    overflow: hidden;
    touch-action: none;
}

/* Desktop sidebar: add subtle top border and adjust sticky position */
@media (min-width: 901px) {
    .filtreboxes.filter-panel {
        border-top: none;
        padding-top: 4px;
    }

    .filtreboxes.filter-panel .filtreler2 {
        border-top: none;
    }

    /* On desktop keep filter-hidden truly hidden */
    .filter-panel.filter-hidden {
        display: none !important;
    }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

/* ── Breakpoint 1: Large tablet / narrow desktop (≤1100px) ─────────────── */
@media (max-width: 1100px) {
    .product-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .filtreboxes.filter-panel {
        width: 240px !important;
    }

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

    .collection-showcase__grid {
        gap: 10px;
    }
}

/* ── Breakpoint 2: Tablet landscape (≤900px) — Left slide-in drawer ─────── */
@media (max-width: 900px) {
    /* Layout becomes full-width single column; filter inline */
    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    /* Filter Panel → inline at mobile, no drawer */
    .filtreboxes.filter-panel {
        position: static !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-height: none !important;
        z-index: auto !important;
        background: white !important;
        overflow-y: visible !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        transition: none !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #eae4e1;
    }

    /* Hidden state: just hide */
    .filtreboxes.filter-panel.filter-hidden {
        display: none !important;
        transform: none !important;
    }

    /* Mobile header: always hidden (no drawer) */
    #filtremobileheader {
        display: none !important;
    }

    .products-grid-plp {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .collection-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .plp-control-bar {
        gap: 10px;
        flex-wrap: wrap;
    }

    .plp-control-actions {
        gap: 6px;
    }

    .plp-action-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ── Breakpoint 3: Phone portrait (≤640px) — Bottom sheet drawer ──────── */
@media (max-width: 640px) {
    /* Filter Panel → inline (same as 900px breakpoint, no drawer) */
    .filtreboxes.filter-panel {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        transition: none !important;
        z-index: auto !important;
        padding: 0 !important;
        background: white !important;
    }

    /* Hidden state: just hide it */
    .filtreboxes.filter-panel.filter-hidden {
        display: none !important;
        transform: none !important;
    }

    /* Mobile header: always hidden */
    #filtremobileheader {
        display: none !important;
    }

    /* Collections: single column on small phones */
    .collection-showcase__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .collection-card {
        height: 110px;
    }
}

/* ── Breakpoint 4: Small phone (≤600px) — Layout tightening ─────────────── */
@media (max-width: 600px) {
    .plp-container {
        padding-top: 12px;
        padding-bottom: 60px;
    }

    .products-grid-plp {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 9px !important;
    }

    .plp-control-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
        gap: 8px;
    }

    .plp-control-actions {
        width: 100%;
        justify-content: space-between;
    }

    .plp-action-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }

    .plp-control-title {
        font-size: 18px;
    }

    .plp-product-info {
        padding: 9px 10px 13px;
    }

    .plp-product-info h3 {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .plp-product-price {
        font-size: 13px;
        font-weight: 700;
    }

    .plp-product-image {
        aspect-ratio: 1 / 1;
    }

    .active-filter-chip {
        font-size: 10px;
        padding: 4px 10px;
    }

    .collection-showcase__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 12px;
    }

    .collection-showcase__header h2 {
        font-size: 20px;
    }

    .selected-collection-hero__content {
        padding: 18px 18px;
    }

    .selected-collection-hero__content h2 {
        font-size: 22px;
    }

    .filter-panel-card {
        padding: 14px 16px;
    }

    .filtreler2 {
        padding: 2px 14px 4px;
    }
}

/* ── Breakpoint 5: Extra small phones (≤380px) ────────────────────────────── */
@media (max-width: 380px) {
    .products-grid-plp {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 7px !important;
    }

    .plp-product-info h3 {
        font-size: 12px;
    }

    .plp-product-price {
        font-size: 12px;
    }

    .plp-action-btn {
        padding: 7px 8px;
        font-size: 11px;
        gap: 4px;
    }
}

/* ─── Page header responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
    .plp-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-bottom: 18px;
        margin-bottom: 20px;
    }

    .plp-page-title {
        font-size: 28px;
    }

    .plp-page-header__controls {
        width: 100%;
        padding-bottom: 0;
    }

    .plp-page-header__controls .plp-action-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .plp-page-header {
        gap: 10px;
        padding-bottom: 14px;
        margin-bottom: 16px;
    }

    .plp-page-title {
        font-size: 24px;
    }

    .plp-breadcrumb {
        font-size: 10px;
        margin-bottom: 6px;
    }
}

/* ─── Filter Active Badge ─────────────────────────────────────────────────── */

.plp-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #7E3739;
    color: white;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

/* Highlight filter button when filters are active */
#filterToggleBtn .plp-filter-badge ~ span,
#filterToggleBtn:has(.plp-filter-badge) {
    border-color: #D88486;
    color: #7E3739;
}

/* ─── Removable Active Filter Chips ──────────────────────────────────────── */

.active-filter-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.65;
    transition: opacity 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.chip-remove:hover {
    opacity: 1;
}

/* ─── Sort button: active state label highlight ───────────────────────────── */

#sortToggleBtn span {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Product Card Quick-View Overlay ────────────────────────────────────── */

.plp-quickview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    z-index: 1;
    background: linear-gradient(to top, rgba(25, 12, 12, 0.44) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.plp-product-card:hover .plp-quickview-overlay {
    opacity: 1;
    pointer-events: auto;
}

.plp-quickview-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.93);
    color: #7E3739;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.22s ease, color 0.15s;
    transform: translateY(5px);
}

.plp-product-card:hover .plp-quickview-btn {
    transform: translateY(0);
}

.plp-quickview-btn:hover {
    background: white;
    color: #5e2a2c;
}

/* ─── Card Entrance Animation ─────────────────────────────────────────────── */

.plp-product-card {
    opacity: 0;
    transform: translateY(18px);
}

.plp-product-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for first 6 visible cards */
.plp-product-card:nth-child(1)  { transition-delay: 0ms;   }
.plp-product-card:nth-child(2)  { transition-delay: 50ms;  }
.plp-product-card:nth-child(3)  { transition-delay: 100ms; }
.plp-product-card:nth-child(4)  { transition-delay: 0ms;   }
.plp-product-card:nth-child(5)  { transition-delay: 50ms;  }
.plp-product-card:nth-child(6)  { transition-delay: 100ms; }

/* ─── Mobile: Sticky filter footer inside drawer ─────────────────────────── */

@media (max-width: 900px) {
    .filtfooter {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 12px 0 22px;
        margin-top: 8px;
        border-top: 1px solid #f0ebe8;
        z-index: 2;
    }
}

/* ─── Mobile: control bar improvements (≤600px) ──────────────────────────── */

@media (max-width: 600px) {
    .plp-control-bar {
        border-radius: 8px;
    }

    /* Ensure filter + sort buttons are equal width and fill row */
    .plp-control-actions .plp-action-btn {
        flex: 1;
        justify-content: center;
    }

    /* Active filter strip: compact on mobile */
    .active-filter-strip {
        gap: 10px;
        padding: 10px 12px;
    }

    .active-filter-chip {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Quick-view hidden on touch devices (tap goes to detail directly) */
    .plp-quickview-overlay {
        display: none;
    }
}
