/* ==========================================================================
   KATEGORİ ŞERİDİ (#quickCatsCircle) - MODERN MOBİL UYGULAMA TASARIMI
   ========================================================================== */
:root {
    --cat-bg-surface: #0F1419;
    --cat-card-bg: #151B23;
    --cat-card-border: #2A3441;
    --cat-text-primary: #E6EAF0;
    --cat-text-secondary: #B4C0D0;
    --cat-accent: #FF6B00;
    --cat-accent-light: #FF8826;
}

.tkn-svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Dış sarmalayıcı ve kenar solma (fade) maskesi */
.quick-cats {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 20px 4px 12px;
    margin: 4px 0 8px;
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
}

.quick-cats::-webkit-scrollbar {
    display: none;
}

.quick-cats.fade-both {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.quick-cats.fade-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 100%);
}

/* Tekil Kategori Butonu */
.quick-cats .q-cat-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 84px;
    min-width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 4px 2px 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
    position: relative;
    color: var(--cat-text-secondary);
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Yuvarlak Kare Kart (Squircle) */
.quick-cats .q-cat-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, var(--cat-card-bg) 100%);
    border: 1.5px solid var(--cat-card-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cat-accent);
    position: relative;
    transition:
        transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

/* İç SVG İkon */
.quick-cats .q-cat-icon {
    width: 31px;
    height: 31px;
    display: block;
    flex-shrink: 0;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Kategori Etiketi (12.5px - 13px Kalın, Yüksek Kontrast) */
.quick-cats .q-cat-label {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.1px;
    color: var(--cat-text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 180ms ease, font-weight 180ms ease;
}

/* Alt Nokta / Çizgi Göstergesi */
.quick-cats .q-cat-indicator {
    width: 6px;
    height: 3.5px;
    border-radius: 999px;
    background: transparent;
    transition: width 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease, box-shadow 180ms ease;
}

/* Hover & Dokunma Durumu */
@media (hover: hover) {
    .quick-cats .q-cat-item:hover .q-cat-box {
        transform: translateY(-3px);
        border-color: rgba(255, 107, 0, 0.65);
        box-shadow: 0 8px 18px rgba(255, 107, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    .quick-cats .q-cat-item:hover .q-cat-icon {
        transform: scale(1.06);
    }
}

.quick-cats .q-cat-item:active .q-cat-box {
    transform: scale(0.95);
}

/* Seçili (Active) Kategori Durumu */
.quick-cats .q-cat-item.active .q-cat-box {
    background: linear-gradient(135deg, var(--cat-accent) 0%, var(--cat-accent-light) 100%);
    border-color: #FFA352;
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 10px 22px -4px rgba(255, 107, 0, 0.48),
        0 0 0 3px rgba(255, 107, 0, 0.16),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.quick-cats .q-cat-item.active .q-cat-label {
    color: #FFFFFF;
    font-weight: 700;
}

.quick-cats .q-cat-item.active .q-cat-indicator {
    width: 20px;
    background: linear-gradient(90deg, var(--cat-accent), #FFA352);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.7);
}

/* Klavye Odak (Focus-Visible) */
.quick-cats .q-cat-item:focus-visible {
    outline: none;
}

.quick-cats .q-cat-item:focus-visible .q-cat-box {
    outline: 2px solid var(--cat-accent);
    outline-offset: 3px;
}

/* Masaüstü Geniş Ekran İyileştirmesi */
@media (min-width: 768px) {
    .quick-cats {
        gap: 16px;
        padding: 24px 6px 14px;
    }
    .quick-cats .q-cat-item {
        width: 96px;
        min-width: 96px;
    }
    .quick-cats .q-cat-box {
        width: 68px;
        height: 68px;
    }
    .quick-cats .q-cat-icon {
        width: 33px;
        height: 33px;
    }
    .quick-cats .q-cat-label {
        font-size: 13px;
    }
}

/* Hareket Azaltma Tercihi */
@media (prefers-reduced-motion: reduce) {
    .quick-cats,
    .quick-cats .q-cat-item,
    .quick-cats .q-cat-box,
    .quick-cats .q-cat-icon,
    .quick-cats .q-cat-indicator {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}