/* =========================================================
   MODERN EV AKSESUARLARI - KATEGORİ DETAY
========================================================= */

.category-heading {
    padding: 15px 0 17px;
    background: #ffffff;
    border-bottom: 1px solid #ded2c9;
}

.category-heading__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    overflow-x: auto;
    color: #9a8b82;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.category-heading__breadcrumb a {
    color: #6f5b50;
    text-decoration: none;
}

.category-heading__breadcrumb a:hover {
    color: #925b39;
}

.category-heading__breadcrumb i {
    flex: 0 0 auto;
    font-size: 8px;
}

.category-heading__breadcrumb span {
    color: #925b39;
}

.category-heading__content > span {
    display: block;
    margin-bottom: 4px;
    color: #925b39;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-heading__content h1 {
    margin: 0;
    color: #2e211b;
    font-family: var(--font-display);
    font-size: clamp(25px, 2.6vw, 36px);
    font-weight: 650;
    line-height: 1.1;
}

.category-heading__content p {
    max-width: 780px;
    margin: 7px 0 0;
    color: #7d6d64;
    font-size: 12px;
    line-height: 1.6;
}

.category-page {
    padding: 24px 0 64px;
    background: #f7f3ef;
}

.category-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.category-mobile-tools {
    display: none;
    margin-bottom: 12px;
}

.category-filter-open {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 0;
    background: #4a352b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.category-filter {
    position: static;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfd3ca;
}

.category-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #fdfbf9;
    border-bottom: 1px solid #e7ddd5;
}

.category-filter__head strong {
    display: block;
    color: #2e211b;
    font-size: 14px;
    font-weight: 800;
}

.category-filter__head span {
    display: block;
    margin-top: 3px;
    color: #7c6d64;
    font-size: 11px;
}

.category-filter__close {
    display: none;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #dfd3ca;
    background: #ffffff;
    color: #6f5b50;
    cursor: pointer;
}

.category-filter__form {
    padding: 0 14px 15px;
}

.category-filter__group {
    border-bottom: 1px solid #e9dfd7;
}

.category-filter__toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3d2d25;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.category-filter__toggle i {
    color: #9a8b82;
    font-size: 11px;
    transition: transform 180ms ease;
}

.category-filter__group.is-open .category-filter__toggle i {
    transform: rotate(180deg);
}

.category-filter__body {
    display: none;
    gap: 7px;
    padding: 0 0 12px;
}

.category-filter__group.is-open .category-filter__body {
    display: grid;
}

.category-filter__option {
    display: grid;
    min-height: 34px;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    background: #ffffff;
    color: #5f5048;
    border: 1px solid #eee5de;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.category-filter__option:hover {
    border-color: #cbb2a2;
    color: #925b39;
}

.category-filter__option input {
    width: 14px;
    height: 14px;
    accent-color: #925b39;
}

.category-filter__option span {
    min-width: 0;
}

.category-filter__option em {
    display: inline-flex;
    min-width: 24px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: #f5f0ec;
    color: #85766d;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.category-filter__empty {
    padding: 10px 0 13px;
    color: #8b7c73;
    font-size: 11px;
}

.category-filter__actions {
    padding-top: 14px;
}

.category-filter__actions a {
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #ffffff;
    color: #5e4b41;
    border: 1px solid #dfd3ca;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.category-filter__actions a:hover {
    background: #fff8f3;
    color: #925b39;
    border-color: #cbb2a2;
}

.category-filter-backdrop {
    display: none;
}

.category-products {
    position: relative;
    min-width: 0;
}

.category-products.is-loading {
    opacity: 0.58;
    pointer-events: none;
}

.category-products.is-loading::after {
    content: "Filtreleniyor...";
    position: absolute;
    top: 72px;
    left: 50%;
    z-index: 30;
    transform: translateX(-50%);
    padding: 10px 15px;
    background: #4a352b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid #dfd3ca;
}

.category-toolbar__title strong {
    display: block;
    color: #2e211b;
    font-size: 13px;
    font-weight: 800;
}

.category-toolbar__title span {
    display: block;
    margin-top: 3px;
    color: #7d6e65;
    font-size: 11px;
}

.category-sort {
    margin: 0;
}

.category-sort__control {
    position: relative;
    min-width: 275px;
}

.category-sort__label {
    display: block;
    margin-bottom: 5px;
    color: #7d6e65;
    font-size: 10px;
    font-weight: 800;
}

.category-sort__trigger,
.category-sort__option {
    display: grid;
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 9px;
    text-align: left;
}

.category-sort__trigger {
    min-height: 52px;
    padding: 8px 10px;
    background: #ffffff;
    color: #2e211b;
    border: 1px solid #dfd3ca;
    cursor: pointer;
}

.category-sort__trigger:hover,
.category-sort__control.is-open .category-sort__trigger {
    background: #fffaf6;
    border-color: #cbb2a2;
}

.category-sort__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: #f8eee7;
    color: #925b39;
}

.category-sort__text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.category-sort__text strong {
    color: #2e211b;
    font-size: 11px;
    font-weight: 800;
}

.category-sort__text small {
    color: #817168;
    font-size: 9px;
    line-height: 1.35;
}

.category-sort__chevron {
    color: #8b7c73;
    font-size: 11px;
    transition: transform 180ms ease;
}

.category-sort__control.is-open .category-sort__chevron {
    transform: rotate(180deg);
}

.category-sort__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 100%;
    min-width: 300px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid #dfd3ca;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition:
        opacity 170ms ease,
        visibility 170ms ease,
        transform 170ms ease;
}

.category-sort__control.is-open .category-sort__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.category-sort__option {
    min-height: 52px;
    padding: 7px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.category-sort__option:hover,
.category-sort__option.is-active {
    background: #fff8f3;
}

.category-sort__option.is-active .category-sort__icon {
    background: #925b39;
    color: #ffffff;
}

.category-sort__check {
    color: #925b39;
    font-size: 14px;
    opacity: 0;
}

.category-sort__option.is-active .category-sort__check {
    opacity: 1;
}

.category-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dfd3ca;
}

.category-active-filters span,
.category-active-filters a {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 800;
}

.category-active-filters span {
    background: #f8eee7;
    color: #925b39;
}

.category-active-filters a {
    background: #4a352b;
    color: #ffffff;
    text-decoration: none;
}

.category-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.category-products__item {
    min-width: 0;
    height: 100%;
}

.category-products__item > .product-card {
    height: 100%;
}

.category-pagination {
    display: none;
}

.category-empty {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 34px;
    background: #ffffff;
    border: 1px dashed #cdbeb4;
    text-align: center;
}

.category-empty > span {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    background: #f8eee7;
    color: #925b39;
    font-size: 25px;
}

.category-empty h2 {
    margin: 15px 0 0;
    color: #2e211b;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 650;
}

.category-empty p {
    max-width: 480px;
    margin: 7px 0 0;
    color: #7d6e65;
    font-size: 11px;
    line-height: 1.6;
}

.category-loading {
    display: none;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: #74645b;
    font-size: 11px;
    font-weight: 800;
}

.category-loading.is-visible {
    display: flex;
}

.category-loading > span {
    width: 20px;
    height: 20px;
    border: 2px solid #dfd3ca;
    border-top-color: #925b39;
    border-radius: 50%;
    animation: categorySpin 720ms linear infinite;
}

.category-load-sentinel {
    width: 100%;
    height: 2px;
}

.category-load-sentinel.is-hidden {
    display: none;
}

.category-load-error {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fff6f3;
    color: #8b3d2e;
    border: 1px solid #e7c9bf;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.category-heading *,
.category-page *,
.category-heading *::before,
.category-heading *::after,
.category-page *::before,
.category-page *::after {
    box-shadow: none !important;
}

@keyframes categorySpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1380px) {
    .category-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .category-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 16px;
    }

    .category-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .category-mobile-tools {
        display: block;
    }

    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-filter {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 12020;
        width: min(360px, calc(100vw - 40px));
        height: 100dvh;
        overflow-y: auto;
        transform: translateX(-104%);
        transition: transform 220ms ease;
    }

    .category-filter.is-open {
        transform: translateX(0);
    }

    .category-filter__close {
        display: grid;
    }

    .category-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 12010;
        display: block;
        border: 0;
        background: rgba(46, 33, 27, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 180ms ease,
            visibility 180ms ease;
    }

    .category-filter-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.category-filter-opened {
        overflow: hidden;
    }
}

@media (max-width: 680px) {
    .category-heading {
        padding: 13px 0 15px;
    }

    .category-heading__content h1 {
        font-size: 27px;
    }

    .category-page {
        padding: 16px 0 48px;
    }

    .category-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-sort,
    .category-sort__control {
        width: 100%;
        min-width: 0;
    }

    .category-sort__menu {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .category-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-active-filters {
        padding: 9px;
        gap: 6px;
    }
}


/* =========================================================
   MODERN EV AKSESUARLARI - TÜM KATEGORİLER
========================================================= */

.categories-page {
    padding: 26px 0 64px;
    background: #f7f3ef;
}

.categories-page__header {
    margin-bottom: 18px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #dfd3ca;
}

.categories-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #9a8b82;
    font-size: 11px;
    font-weight: 650;
}

.categories-page__breadcrumb a {
    color: #6f5b50;
    text-decoration: none;
}

.categories-page__breadcrumb a:hover {
    color: #925b39;
}

.categories-page__breadcrumb i {
    font-size: 8px;
}

.categories-page__breadcrumb span {
    color: #925b39;
}

.categories-page__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.categories-page__heading > div:first-child {
    min-width: 0;
    max-width: 760px;
}

.categories-page__kicker {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    padding: 0 9px;
    background: #f8eee7;
    color: #925b39;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.categories-page__heading h1 {
    margin: 0;
    color: #2e211b;
    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 650;
    line-height: 1.08;
}

.categories-page__heading p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #7d6e65;
    font-size: 12px;
    line-height: 1.65;
}

.categories-page__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 10px;
    flex: 0 0 auto;
}

.categories-page__stats div {
    min-height: 72px;
    padding: 13px 14px;
    background: #fdfbf9;
    border: 1px solid #e5dad2;
    text-align: center;
}

.categories-page__stats strong {
    display: block;
    color: #2e211b;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.categories-page__stats span {
    display: block;
    margin-top: 6px;
    color: #7d6e65;
    font-size: 10px;
    font-weight: 750;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.category-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dfd3ca;
    transition:
        border-color 180ms ease,
        transform 180ms ease;
}

.category-card:hover {
    border-color: #c7ad9c;
    transform: translateY(-2px);
}

.category-card__head {
    display: grid;
    min-height: 106px;
    grid-template-columns: 64px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    background: #fdfbf9;
    color: inherit;
    border-bottom: 1px solid #e9dfd7;
    text-decoration: none;
}

.category-card__image {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    overflow: hidden;
    padding: 7px;
    background: #ffffff;
    border: 1px solid #e5dad2;
}

.category-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card__title {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.category-card__title strong {
    overflow: hidden;
    color: #2e211b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card__title small {
    display: inline-flex;
    width: fit-content;
    min-height: 23px;
    align-items: center;
    padding: 0 8px;
    background: #f8eee7;
    color: #925b39;
    font-size: 10px;
    font-weight: 800;
}

.category-card__arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: #ffffff;
    color: #925b39;
    border: 1px solid #dfd3ca;
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.category-card:hover .category-card__arrow {
    background: #925b39;
    color: #ffffff;
    transform: translateX(2px);
}

.category-card__children {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 7px;
    padding: 12px 13px 14px;
}

.category-card__children a {
    display: grid;
    min-height: 37px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 9px 0 10px;
    background: #ffffff;
    color: #5f5048;
    border: 1px solid #eee5de;
    text-decoration: none;
    transition:
        background 170ms ease,
        border-color 170ms ease,
        color 170ms ease,
        transform 170ms ease;
}

.category-card__children a:hover {
    background: #fff8f3;
    border-color: #cbb2a2;
    color: #925b39;
    transform: translateX(2px);
}

.category-card__children a span {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card__children a em {
    display: inline-flex;
    min-width: 28px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    background: #f5f0ec;
    color: #7d6e65;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.category-card__more {
    background: #fdfbf9 !important;
    color: #925b39 !important;
    border-style: dashed !important;
}

.category-card__empty {
    display: flex;
    min-height: 96px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #8a7b72;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.category-card__empty i {
    color: #925b39;
}

.categories-empty {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 34px;
    background: #ffffff;
    border: 1px dashed #cdbeb4;
    text-align: center;
}

.categories-empty > span {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    background: #f8eee7;
    color: #925b39;
    font-size: 25px;
}

.categories-empty h2 {
    margin: 15px 0 0;
    color: #2e211b;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 650;
}

.categories-empty p {
    margin: 7px 0 0;
    color: #7d6e65;
    font-size: 11px;
}

.categories-page *,
.categories-page *::before,
.categories-page *::after {
    box-shadow: none !important;
}

@media (max-width: 1120px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .categories-page {
        padding: 18px 0 48px;
    }

    .categories-page__header {
        padding: 17px;
    }

    .categories-page__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .categories-page__stats {
        width: 100%;
    }

    .categories-page__stats div {
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .categories-page__heading h1 {
        font-size: 28px;
    }

    .category-card__head {
        min-height: 92px;
        grid-template-columns: 54px minmax(0, 1fr) 30px;
        padding: 13px;
    }

    .category-card__image {
        width: 54px;
        height: 54px;
    }

    .category-card__arrow {
        width: 30px;
        height: 30px;
    }
}
