/* LADYSAN - Koleksiyon sayfası */
.collection-page {
    min-height: 100vh;
    background: #fbf7f5;
    color: #111;
}

.collection-hero {
    padding: 28px 20px 22px;
    text-align: center;
}

.collection-hero span {
    color: #ff5ca8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 5px;
}

.collection-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
}

.collection-hero p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.collection-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    width: 92%;
    max-width: 1180px;
    margin: 0 auto 80px;
}

.mobile-filter-toggle { display: none; }

@media (max-width: 768px) {
    .mobile-filter-toggle {
        width: 100%;
        min-height: 54px;
        display: grid;
        grid-template-columns: 34px 1fr 24px;
        align-items: center;
        gap: 10px;
        margin: 0 0 14px;
        padding: 9px 14px;
        border: 1px solid rgba(255, 79, 154, .2);
        border-radius: 18px;
        background: linear-gradient(135deg, #fff 0%, #fff6fa 100%);
        color: #171217;
        font: 700 14px/1.2 Inter, sans-serif;
        text-align: left;
        box-shadow: 0 12px 30px rgba(47, 20, 33, .08);
        cursor: pointer;
    }
    .mobile-filter-toggle > i:first-child {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border-radius: 11px;
        color: #fff;
        background: linear-gradient(135deg, #ff4f9a, #e92d7f);
        box-shadow: 0 7px 16px rgba(233, 45, 127, .24);
    }
    .mobile-filter-toggle .filter-toggle-arrow {
        text-align: center;
        color: #ef3b88;
        transition: transform .25s ease;
    }
    .mobile-filter-toggle[aria-expanded="true"] .filter-toggle-arrow { transform: rotate(180deg); }
    .mobile-filter-panel {
        display: none !important;
        margin: 0 0 18px !important;
        padding: 18px !important;
        border: 1px solid rgba(255, 79, 154, .16) !important;
        border-radius: 22px !important;
        background: linear-gradient(160deg, #fff 0%, #fff9fb 100%) !important;
        box-shadow: 0 18px 40px rgba(47, 20, 33, .09) !important;
    }
    .mobile-filter-panel.is-open { display: block !important; animation: filterReveal .25s ease both; }
    .mobile-filter-panel h2 { margin: 0 0 16px; font-size: 21px; }
    .mobile-filter-panel .filter-group { margin-bottom: 13px; }
    .mobile-filter-panel label { margin-bottom: 7px; font-size: 12px; font-weight: 700; color: #564751; }
    .mobile-filter-panel select,
    .mobile-filter-panel input {
        min-height: 47px;
        border-color: #eadde3;
        border-radius: 13px;
        background-color: #fff;
    }
    .mobile-filter-panel .filter-button { min-height: 48px; border-radius: 14px; background: linear-gradient(135deg, #171217, #35202b); }
    .mobile-filter-panel .clear-filter { min-height: 44px; border-radius: 13px; }
    @keyframes filterReveal { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
}

.filter-box {
    position: sticky;
    top: 25px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 92, 168, .14);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
}

.filter-box h2 {
    margin: 0 0 20px;
    font-size: 23px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 15px;
}

.filter-group label,
.filter-box label {
    color: #2e292b;
    font-size: 13px;
    font-weight: 700;
}

.filter-group select,
.filter-group input,
.filter-box select,
.filter-box input {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e7dfe2;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #292426;
    font-size: 13px;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #ff5ca8;
    box-shadow: 0 0 0 3px rgba(255, 92, 168, .08);
}

.price-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.filter-button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.filter-button:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.clear-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 10px;
    border: 1px solid #e7dfe2;
    border-radius: 10px;
    color: #4d4548;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.products-area {
    min-width: 0;
}

.collection-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.collection-result-bar p {
    margin: 0;
    color: #393235;
}

.collection-result-bar span {
    color: #8d737d;
    font-size: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.collection-page .product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .06);
}

/* Her görsel alanı aynı 3:4 oranındadır. */
.collection-page .product-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f3eff0;
}

.collection-page .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.collection-page .product-img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    transition: transform .4s ease;
}

.collection-page .product-card:hover .product-img img {
    transform: scale(1.035);
}

.product-badges {
    position: absolute;
    z-index: 5;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    pointer-events: none;
}

.product-badges .badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
}

.product-badges .badge-new,
.badge.new {
    background: #191516;
}

.product-badges .badge-discount,
.badge.discount {
    background: #ff5ca8;
}

.product-badges .badge-wholesale {
    gap: 6px;
    min-width: 76px;
    border: 1px solid rgba(139, 94, 60, .22);
    background: rgba(255, 255, 255, .94);
    color: #754829;
    box-shadow: 0 7px 18px rgba(54, 31, 18, .14);
    backdrop-filter: blur(8px);
}

.product-badges .badge-wholesale i {
    color: #a36a43;
    font-size: 10px;
}

.collection-page .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.product-code,
.product-info small {
    display: block;
    margin-bottom: 7px;
    overflow: hidden;
    color: #91868a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info h3 {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111;
    font-size: 15px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.price {
    margin: auto 0 14px;
}

.price del {
    margin-right: 7px;
    color: #999;
    font-size: 13px;
}

.price strong {
    color: #111;
    font-size: 16px;
}

.detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    background: #ff5ca8;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease;
}

.detail-btn:hover {
    background: #e94794;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 30px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #eadfe3;
    border-radius: 10px;
    background: #fff;
    color: #332d2f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.pagination a.active,
.pagination a:hover {
    border-color: #ff5ca8;
    background: #ff5ca8;
    color: #fff;
}

.empty-box {
    grid-column: 1 / -1;
    padding: 70px 25px;
    border: 1px solid #eee5e8;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.empty-box i {
    margin-bottom: 18px;
    color: #c997aa;
    font-size: 32px;
}

.empty-box h3 { margin: 0 0 8px; }
.empty-box p { margin: 0 0 22px; color: #81767a; }
.empty-box a {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 8px;
    background: #211b1d;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .collection-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .collection-layout { grid-template-columns: 1fr; width: 94%; }
    .filter-box { position: static; }
}

@media (max-width: 540px) {
    .collection-hero { padding: 22px 15px 18px; }
    .collection-hero h1 { font-size: 26px; }
    .product-grid { grid-template-columns: 1fr; }
    .price-filter-row { grid-template-columns: 1fr; gap: 0; }
    .collection-result-bar { align-items: flex-start; flex-direction: column; }
    .collection-page .product-img { aspect-ratio: 3 / 4; }
}
