/* Letafet alt koleksiyonları */

[data-subcategory-panel][hidden],
.ltf-subcategory-close[hidden] {
    display: none !important;
}

.collection[data-category-toggle] {
    cursor: pointer;
}

.collection[data-category-toggle][aria-expanded="true"] {
    outline: 2px solid #b79550;
    outline-offset: 5px;
}

.collection[data-category-toggle]:focus-visible,
.ltf-subcategory-card:focus-visible,
.ltf-subcategory-close:focus-visible {
    outline: 3px solid #b79550;
    outline-offset: 5px;
}

.ltf-subcategory-panel {
    margin-top: 30px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #dfd7c4;
    border-radius: 24px;
    background: #faf7ef;
    box-shadow: 0 14px 45px rgba(23, 62, 53, 0.04);
    scroll-margin-top: 110px;
    animation: ltf-panel-enter 280ms ease both;
}

.ltf-subcategory-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.ltf-subcategory-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #8b713d;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.ltf-subcategory-heading h3 {
    margin: 0;
    color: #173e35;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.2;
}

.ltf-subcategory-heading h3:focus {
    outline: none;
}

.ltf-subcategory-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ltf-subcategory-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d8cfb8;
    border-radius: 50%;
    background: transparent;
    color: #173e35;
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.ltf-subcategory-close:hover {
    background: #eee7d7;
    transform: rotate(8deg);
}

.ltf-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ltf-subcategory-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5dece;
    border-radius: 17px;
    background: #fffdf8;
    color: #173e35;
    text-decoration: none;
    animation: ltf-card-enter 320ms ease both;
    animation-delay: var(--ltf-delay, 0ms);
    transition:
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.ltf-subcategory-card:hover {
    border-color: #b79550;
    box-shadow: 0 12px 24px rgba(23, 62, 53, 0.08);
}

.ltf-subcategory-image {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #eee8da;
}

.ltf-subcategory-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.ltf-subcategory-card:hover .ltf-subcategory-image img {
    transform: scale(1.045);
}

.ltf-subcategory-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 14px;
    padding: 20px;
}

.ltf-subcategory-copy > div > span {
    display: block;
    color: #8a7851;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.ltf-subcategory-copy h4 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ltf-subcategory-copy p {
    margin: 9px 0 0;
    color: #6c776f;
    font-size: 13px;
    line-height: 1.6;
}

.ltf-subcategory-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #ddd3bb;
    border-radius: 50%;
    color: #173e35;
}

.ltf-subcategory-filter {
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid #e1d9c5;
    border-left: 3px solid #b79550;
    border-radius: 14px;
    background: #faf7ef;
    animation: ltf-panel-enter 260ms ease both;
}

.ltf-subcategory-filter > p {
    margin: 0 0 14px;
    color: #173e35;
    font-size: 14px;
    font-weight: 600;
}

.ltf-child-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

@keyframes ltf-panel-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ltf-card-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .ltf-subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ltf-subcategory-grid {
        grid-template-columns: 1fr;
    }

    .ltf-subcategory-panel {
        padding: 18px;
        border-radius: 18px;
    }

    .ltf-subcategory-copy {
        padding: 17px;
    }

    .ltf-subcategory-filter {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ltf-subcategory-panel,
    .ltf-subcategory-card,
    .ltf-subcategory-filter {
        animation: none;
    }

    .ltf-subcategory-card,
    .ltf-subcategory-image img,
    .ltf-subcategory-close {
        transition: none;
    }

    .ltf-subcategory-card:hover .ltf-subcategory-image img,
    .ltf-subcategory-close:hover {
        transform: none;
    }
}