/* Katalog kartları, kök kategoriler ve metin tabanlı alt kategoriler. */

.collection-grid,.product-grid,.brand-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 28px
}

.collection-card {
    display: block;
    min-width: 0;
    border: 1px solid var(--theme-border);
    background: var(--theme-background);
    transition: box-shadow .25s,transform .25s
}

.category-media {
    aspect-ratio: 4/3;
    background: var(--theme-surface);
    overflow: hidden
}

.category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.collection-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,var(--theme-surface),color-mix(in srgb,var(--theme-secondary) 15%,var(--theme-background)));
    border-bottom: 1px solid var(--theme-border)
}

.collection-card h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 22px;
    margin: 0;
    font-size: 1.12rem;
    min-height: 100px;
    letter-spacing: -.02em;
    overflow-wrap: anywhere
}

.collection-card h3 span {
    color: var(--theme-primary);
    font-size: 1.5rem;
    flex-shrink: 0
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--theme-shadow)
}

.collection-card:hover img {
    transform: scale(1.035)
}

.collection-card:hover h3 {
    color: var(--theme-primary)
}

.subcategory-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    margin-bottom: 48px
}

.subcategory-link {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 22px 26px;
    border: 1px solid var(--theme-border);
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--theme-background);
    color: var(--theme-heading);
    overflow-wrap: anywhere;
    transition: border .2s,background .2s
}

.subcategory-link:hover {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
    background: var(--theme-surface)
}

.product-grid {
    margin-top: 32px
}

.product-card {
    min-width: 0;
    border: 1px solid var(--theme-border);
    background: var(--theme-background);
    transition: box-shadow .25s,transform .25s
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--theme-shadow)
}

.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 28px;
    border-bottom: 1px solid var(--theme-border)
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: transform .3s
}

.product-card:hover .card-image img {
    transform: scale(1.04)
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: var(--theme-surface);
    font-size: 3rem;
    color: var(--theme-muted)
}

.card-body {
    padding: 26px
}

.product-card .eyebrow {
    font-size: .7rem;
    letter-spacing: .08em;
    margin-bottom: 12px;
    color: var(--theme-muted)
}

.product-card .eyebrow:before {
    display: none
}

.product-card h3 {
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0 0 24px;
    min-height: 3em;
    overflow-wrap: anywhere
}

.product-card .text-link {
    font-size: .82rem;
    gap: 12px;
    width: 100%;
    justify-content: space-between
}

.brand-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--theme-border);
    background: var(--theme-background);
    transition: border .2s,box-shadow .2s
}

.brand-card img {
    max-height: 94px;
    max-width: 220px;
    object-fit: contain;
    margin: auto
}

.brand-card h3 {
    font-size: 1.25rem;
    margin: 16px 0 0;
    overflow-wrap: anywhere
}

.brand-name-only h3 {
    font-size: 1.6rem;
    font-weight: 650;
    color: var(--theme-primary);
    margin: 0
}

.brand-card:hover {
    border-color: var(--theme-primary);
    box-shadow: var(--theme-shadow)
}

/* Görsel, kontrol ve metinler banner verisinden gelir. */

.slider {
    position: relative;
    background: var(--theme-primary);
    color: var(--theme-background);
    isolation: isolate
}

.slide {
    position: relative
}

.slide picture img {
    width: 100%;
    height: clamp(500px,44vw,740px);
    object-fit: cover
}

.slide:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,color-mix(in srgb,var(--theme-primary) 85%,transparent) 0%,color-mix(in srgb,var(--theme-heading) 30%,transparent) 55%,transparent);
    pointer-events: none
}

.slide-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24%;
    z-index: 1
}

.slide-copy h2 {
    color: var(--theme-background);
    font-size: clamp(3.2rem,4.7vw,5.3rem);
    font-weight: 650;
    line-height: 1.06;
    max-width: 920px;
    letter-spacing: -.045em;
    margin: 0 0 28px;
    text-shadow: 0 2px 18px rgb(0 0 0 / 12%)
}

.slide-copy p {
    max-width: 620px;
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0 0 30px
}

.slider-controls {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px
}

.slider-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 46px;
    padding: 10px 16px;
    border: 1px solid rgb(255 255 255 / 60%);
    background: color-mix(in srgb,var(--theme-primary) 34%,transparent);
    color: var(--theme-background);
    font-size: .9rem
}

.slider-controls button:hover {
    background: var(--theme-background);
    color: var(--theme-primary)
}

.slider-controls :focus-visible {
    outline-color: var(--theme-secondary)
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin-inline: 10px
}

.slider-dots button {
    padding: 0;
    width: 11px;
    min-width: 11px;
    height: 11px;
    min-height: 11px;
    border-radius: 50%;
    background: transparent
}

.slider-dots button[aria-current=true] {
    background: var(--theme-background)
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start
}

.product-detail h1 {
    font-size: clamp(2.2rem,3.1vw,3.4rem)
}

.product-detail .rich-content {
    font-size: 1rem;
    margin-block: 28px
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px
}

.gallery>a:first-child {
    grid-column: 1/-1
}

.gallery>.image-placeholder {
    grid-column: 1/-1;
    aspect-ratio: 1;
    height: auto
}

.gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 16px;
    border: 1px solid var(--theme-border)
}

.collection-cover {
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 40px
}

.rich-content+.collection-grid {
    margin-top: 40px
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 32px
}

.article-card {
    min-width: 0;
    background: var(--theme-background);
    border: 1px solid var(--theme-border);
    transition: box-shadow .2s
}

.article-card:hover {
    box-shadow: var(--theme-shadow)
}

.article-image {
    display: block;
    aspect-ratio: 8/5;
    overflow: hidden
}

.article-card img {
    width: 100%;
    aspect-ratio: 8/5;
    object-fit: cover
}

.article-placeholder {
    display: block;
    aspect-ratio: 8/5;
    background: color-mix(in srgb,var(--theme-secondary) 12%,var(--theme-background))
}

.article-card .card-body {
    padding: 30px
}

.article-card h2,.article-card h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 18px 0
}

.article-card p {
    font-size: .95rem;
    color: var(--theme-muted);
    line-height: 1.8
}

.article-card time,.article-detail time {
    font-size: .83rem;
    color: var(--theme-muted)
}

.article-detail {
    max-width: 1040px
}

.article-cover {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    margin: 40px 0
}

.article-summary {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--theme-muted)
}

.article-detail .rich-content {
    margin-top: 32px
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 54px;
    font-size: .92rem
}

.pagination a,.pagination button,.pagination select {
    padding: 10px 16px;
    border: 1px solid var(--theme-border);
    background: var(--theme-background);
    color: var(--theme-primary)
}

.pagination a:hover,.pagination button:hover {
    border-color: var(--theme-primary)
}

.pagination form {
    display: flex;
    align-items: center;
    gap: 10px
}

@media(max-width:1100px) {
    .collection-grid,.product-grid {
        gap: 20px
    }
    .collection-card h3 {
        font-size: 1rem;
        padding: 20px;
        min-height: 96px
    }
    .product-detail {
        gap: 40px
    }
    .card-body {
        padding: 20px
    }
    .brand-grid {
        gap: 20px
    }
    .brand-name-only h3 {
        font-size: 1.3rem
    }
}

@media(max-width:1000px) {
    .product-grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }
    .collection-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
    .brand-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
    .subcategory-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
    .slide picture img {
        height: 560px
    }
    .slide-copy h2 {
        font-size: 3.3rem
    }
    .news-grid {
        gap: 22px
    }
    .article-card .card-body {
        padding: 22px
    }
    .article-card h3 {
        font-size: 1.2rem
    }
}

@media(max-width:700px) {
    .product-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 16px
    }
    .product-detail {
        grid-template-columns: 1fr
    }
    .card-image {
        padding: 18px
    }
    .card-body {
        padding: 18px
    }
    .product-card h3 {
        font-size: 1.02rem
    }
    .slide picture img {
        height: 540px
    }
    .slide-copy {
        bottom: 27%
    }
    .slide-copy h2 {
        font-size: 2.8rem;
        max-width: 90%;
        margin-bottom: 22px
    }
    .slide-copy p {
        font-size: 1rem;
        max-width: 92%
    }
    .slider-controls {
        bottom: 28px
    }
    .news-grid {
        grid-template-columns: 1fr
    }
    .article-card h3 {
        font-size: 1.4rem
    }
    .collection-card h3 {
        font-size: 1rem;
        padding: 20px 16px;
        min-height: 90px
    }
    .collection-card h3 span {
        font-size: 1.15rem
    }
    .brand-card {
        min-height: 140px;
        padding: 24px 16px
    }
    .brand-name-only h3 {
        font-size: 1.3rem
    }
    .subcategory-link {
        font-size: 1rem;
        padding: 20px;
        min-height: 74px
    }
}

@media(max-width:420px) {
    .collection-grid,.subcategory-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }
    .collection-card h3 {
        font-size: .95rem;
        min-height: 96px
    }
    .collection-card h3 span {
        display: none
    }
    .subcategory-grid {
        grid-template-columns: 1fr
    }
    .slider-controls {
        gap: 8px
    }
    .slider-controls>button {
        min-width: 42px;
        padding: 10px 13px
    }
    .slider-dots {
        gap: 8px;
        margin-inline: 3px
    }
}
