.tk-home-category-cards {
    position: relative;
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw) 50px;
    padding: 0 clamp(18px, 5vw, 72px);
    background: transparent;
}

.tk-home-category-cards__inner {
    width: min(100%, 1480px);
    margin-inline: auto;
}

.tk-home-category-cards__header {
    margin: 0 0 18px;
}

.tk-home-category-cards__title {
    margin: 0;
    color: #0f3326;
    font-size: var(--tk-font-section-title);
    line-height: var(--tk-line-title);
    letter-spacing: var(--tk-letter-section);
    font-weight: var(--tk-weight-section-title);
}

.tk-home-category-cards__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(16px, 1.4vw, 24px);
    align-items: start;
}

.tk-home-category-cards__item {
    display: block;
    min-width: 0;
    color: #10251c;
    text-decoration: none;
    outline: 0;
}

.tk-home-category-cards__image-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.56 / 1;
    overflow: hidden;
    border-radius: var(--tk-radius-card);
    background: var(--tk-surface-panel, #FFFDF8);
    border: 1px solid var(--tk-surface-border-soft, rgba(16,37,28,0.07));
    box-shadow: 0 18px 42px rgba(6, 26, 18, 0.10);
    transform: translateZ(0);
}

.tk-home-category-cards__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(6,26,18,0.07) 100%);
    pointer-events: none;
}

.tk-home-category-cards__image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
    transition: transform 220ms ease, filter 220ms ease;
}

.tk-home-category-cards__name {
    display: block;
    margin: 12px auto 0;
    color: #0f3326;
    font-size: clamp(14px, 0.95vw, 17px);
    line-height: var(--tk-line-card-title);
    font-weight: var(--tk-weight-card-title);
    text-align: center;
    letter-spacing: var(--tk-letter-card-title);
}

.tk-home-category-cards__item:hover .tk-home-category-cards__image,
.tk-home-category-cards__item:focus-visible .tk-home-category-cards__image {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.02);
}

.tk-home-category-cards__item:hover .tk-home-category-cards__name,
.tk-home-category-cards__item:focus-visible .tk-home-category-cards__name {
    color: #0b2118;
}

@media (max-width: 1200px) {
    .tk-home-category-cards__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tk-home-category-cards {
        margin-bottom: 42px;
        padding-inline: 18px;
    }

    .tk-home-category-cards__header {
        margin-bottom: 18px;
    }

    .tk-home-category-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
    }

    .tk-home-category-cards__image-wrap {
        border-radius: 16px;
        box-shadow: 0 14px 30px rgba(6, 26, 18, 0.10);
    }

    .tk-home-category-cards__name {
        margin-top: 9px;
        font-size: 14px;
    }
}


/* Mobile category compact grid */
@media (max-width: 767px) {
    .tk-home-category-cards {
        margin-bottom: 32px;
        padding-inline: 14px;
    }

    .tk-home-category-cards__header {
        margin-bottom: 13px;
    }

    .tk-home-category-cards__title {
        font-size: 20px;
        line-height: 1.12;
        font-weight: 640;
    }

    .tk-home-category-cards__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 13px 10px;
    }

    .tk-home-category-cards__item:nth-child(7) {
        grid-column: 2;
    }

    .tk-home-category-cards__image-wrap {
        border-radius: 12px;
        aspect-ratio: 1.35 / 1;
        box-shadow: 0 8px 20px rgba(6, 26, 18, 0.08);
    }

    .tk-home-category-cards__name {
        margin-top: 7px;
        font-size: 11.5px;
        line-height: 1.18;
        font-weight: 650;
        letter-spacing: -0.01em;
    }
}

/* V30 - Mobile category horizontal strip only, refined swipe hint */
@media (max-width: 767px) {
    .tk-home-category-cards {
        margin-bottom: 32px;
        padding-inline: 0;
        overflow: hidden;
    }

    .tk-home-category-cards__inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 14px;
    }

    .tk-home-category-cards__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 0 13px;
        padding-right: 14px;
    }

    .tk-home-category-cards__header::after {
        content: "Kaydırın →";
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 26px;
        padding: 5px 9px;
        border-radius: 999px;
        border: 1px solid rgba(224, 173, 24, 0.42);
        background: rgba(224, 173, 24, 0.13);
        color: #0f3326;
        font-size: 11px;
        line-height: 1;
        font-weight: 700;
        letter-spacing: -0.01em;
        white-space: nowrap;
    }

    .tk-home-category-cards__title {
        font-size: 20px;
        line-height: 1.12;
        font-weight: 640;
    }

    .tk-home-category-cards__grid {
        display: flex;
        grid-template-columns: none;
        align-items: stretch;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 14px 12px 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(15, 51, 38, 0.34) rgba(15, 51, 38, 0.08);
    }

    .tk-home-category-cards__grid::-webkit-scrollbar {
        height: 4px;
    }

    .tk-home-category-cards__grid::-webkit-scrollbar-track {
        background: rgba(15, 51, 38, 0.08);
        border-radius: 999px;
    }

    .tk-home-category-cards__grid::-webkit-scrollbar-thumb {
        background: rgba(15, 51, 38, 0.34);
        border-radius: 999px;
    }

    .tk-home-category-cards__item {
        flex: 0 0 calc((100% - 20px) / 3);
        max-width: calc((100% - 20px) / 3);
        scroll-snap-align: start;
    }

    .tk-home-category-cards__item:nth-child(7) {
        grid-column: auto;
    }

    .tk-home-category-cards__image-wrap {
        border-radius: 12px;
        aspect-ratio: 1.35 / 1;
        box-shadow: 0 8px 20px rgba(6, 26, 18, 0.08);
    }

    .tk-home-category-cards__name {
        margin-top: 7px;
        font-size: 11.5px;
        line-height: 1.18;
        font-weight: 650;
        letter-spacing: -0.01em;
    }
}

