/* Car accessories listing page */
.acc-index-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff8ef 0%, #ffffff 42%, #f8fafc 100%);
}

.acc-index-wrap {
    max-width: 80rem;
    margin: 0 auto;
    padding: 36px 16px 56px;
}

.acc-index-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 36px 36px;
    margin-bottom: 28px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #0b1526 0%, #172554 45%, #14532d 100%);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.acc-index-hero__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.acc-index-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.acc-index-hero__glow--1 {
    width: 320px;
    height: 320px;
    top: -100px;
    right: 10%;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.45) 0%, transparent 70%);
}

.acc-index-hero__glow--2 {
    width: 260px;
    height: 260px;
    bottom: -80px;
    left: 25%;
    background: radial-gradient(circle, rgba(43, 122, 196, 0.35) 0%, transparent 70%);
}

.acc-index-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
}

.acc-index-hero__inner { position: relative; z-index: 2; max-width: 40rem; flex: 1 1 auto; }
.acc-index-hero, .acc-index-hero h1, .acc-index-hero p { color: #fff !important; }

.acc-index-hero__visual {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 230px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-index-hero__visual-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.25) 0%, transparent 70%);
    animation: accGlowPulse 4s ease-in-out infinite alternate;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes accGlowPulse {
    0% { transform: scale(0.92) translateZ(0); opacity: 0.6; }
    100% { transform: scale(1.12) translateZ(0); opacity: 1; }
}

.acc-hero-lottie {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
    contain: layout paint;
    transform: translateZ(0);
}

.acc-hero-lottie svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    transform: translateZ(0);
}

.acc-index-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0 0 10px;
}

.acc-index-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.acc-index-hero__subtitle {
    font-size: 0.95rem;
    opacity: 0.92;
    margin: 0;
    max-width: 640px;
    line-height: 1.55;
}

.acc-index-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .acc-index-hero {
        padding: 28px 22px;
        gap: 16px;
    }
    .acc-index-hero__visual {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 640px) {
    .acc-index-hero {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 24px 18px;
        min-height: auto;
        border-radius: 16px;
    }
    .acc-index-hero__visual {
        width: 130px;
        height: 130px;
        align-self: center;
        margin-bottom: -10px;
    }
}

.acc-index-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    font-weight: 700;
}

.acc-index-city-form {
    margin-top: 14px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 10px 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.acc-index-city-form label {
    font-weight: 700;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
}

.acc-index-city-form .form-select {
    max-width: 220px;
    border-radius: 10px;
    border: 0;
    min-height: 38px;
    font-weight: 600;
    color: #1f2937;
}

.acc-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.acc-sidebar-backdrop {
    display: none;
}

.acc-sidebar {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.acc-sidebar::before {
    content: '';
    display: block;
    height: 3px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f59e0b, #d97706 55%, #92400e);
}

.acc-sidebar__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.acc-sidebar__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.acc-sidebar__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    color: #c2410c;
    border: 1px solid #fed7aa;
    flex-shrink: 0;
}

.acc-sidebar__title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 2px;
    color: #111827;
}

.acc-sidebar__hint {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.acc-sidebar__head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-sidebar__badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.acc-sidebar__close {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.acc-sidebar__form {
    padding: 14px 16px 18px;
    overflow-y: auto;
    flex: 1;
}

.acc-sidebar__section {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.acc-sidebar__section:last-of-type {
    border-bottom: 0;
    margin-bottom: 8px;
    padding-bottom: 0;
}

.acc-sidebar__label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.acc-search-bar {
    position: relative;
}

.acc-search-bar--sidebar .acc-search-bar__input {
    height: 42px;
    font-size: 0.88rem;
}

.acc-search-bar__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.88rem;
    pointer-events: none;
}

.acc-search-bar__input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 40px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.acc-search-bar__input::placeholder { color: #94a3b8; }

.acc-search-bar__input:focus {
    background: #fff;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.acc-sidebar__options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
}

.acc-sidebar__option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    transition: background .15s, color .15s;
}

.acc-sidebar__option:hover { background: #fff7ed; color: #9a3412; }

.acc-sidebar__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.acc-sidebar__option span {
    position: relative;
    padding-left: 26px;
}

.acc-sidebar__option span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
}

.acc-sidebar__option input:checked + span {
    color: #9a3412;
    font-weight: 800;
}

.acc-sidebar__option input:checked + span::before {
    border-color: #d97706;
    box-shadow: inset 0 0 0 4px #d97706;
}

.acc-sidebar__option:has(input:checked) {
    background: #fff7ed;
}

.acc-sidebar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acc-sidebar__chip {
    margin: 0;
    cursor: pointer;
}

.acc-sidebar__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.acc-sidebar__chip span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    transition: all .15s;
}

.acc-sidebar__chip:hover span {
    border-color: #fdba74;
    color: #9a3412;
}

.acc-sidebar__chip input:checked + span {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.acc-sidebar__price-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.acc-sidebar__price-sep {
    color: #94a3b8;
    font-weight: 700;
}

.acc-search-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}

select.acc-search-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.acc-search-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.acc-search-price { position: relative; }

.acc-search-price__prefix {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    pointer-events: none;
}

.acc-search-price .acc-search-input { padding-left: 36px; }

.acc-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.acc-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
    width: 100%;
}

.acc-search-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.acc-search-btn--primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.28);
}

.acc-search-btn--primary:hover {
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.34);
}

.acc-search-btn--ghost {
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
}

.acc-search-btn--ghost:hover {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412 !important;
}

.acc-main { min-width: 0; }

.acc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.acc-toolbar__left,
.acc-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.acc-toolbar__filters-btn {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
}

.acc-toolbar__filters-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d97706;
    color: #fff;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.acc-toolbar__count {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.acc-toolbar__count strong { color: #111827; }

.acc-toolbar__filtered { color: #c2410c; font-weight: 700; }

.acc-toolbar__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #9a3412 !important;
    text-decoration: none;
}

.acc-toolbar__clear:hover { text-decoration: underline; }

.acc-toolbar__sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.acc-toolbar__sort .acc-search-input {
    width: auto;
    min-width: 170px;
    height: 38px;
    text-transform: none;
    letter-spacing: normal;
}

body.acc-sidebar-open { overflow: hidden; }

@media (max-width: 991px) {
    .acc-layout {
        grid-template-columns: 1fr;
    }

    .acc-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1040;
    }

    .acc-sidebar-backdrop[hidden] { display: none !important; }

    .acc-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(340px, 88vw);
        max-height: none;
        border-radius: 0 16px 16px 0;
        z-index: 1050;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
    }

    .acc-sidebar.is-open { transform: translateX(0); }

    .acc-sidebar__close { display: inline-flex; }

    .acc-toolbar__filters-btn { display: inline-flex; }
}

@media (max-width: 520px) {
    .acc-toolbar__sort {
        width: 100%;
        justify-content: space-between;
    }

    .acc-toolbar__sort .acc-search-input {
        flex: 1;
        min-width: 0;
    }
}

.acc-index-cta {
    border-radius: 16px;
    border: 1px solid #fde6c8;
    background: #fff;
    padding: 22px 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 28px rgba(146, 64, 14, 0.06);
}

.acc-index-cta__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.acc-index-cta__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.acc-index-cta__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #111827;
}

.acc-index-cta__text {
    margin: 0;
    color: #6b7280;
    line-height: 1.55;
    font-size: 0.92rem;
}

.acc-index-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.acc-index-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.acc-index-btn:hover { transform: translateY(-1px); text-decoration: none; }
.acc-index-btn--primary { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff !important; box-shadow: 0 8px 22px rgba(217, 119, 6, 0.25); }
.acc-index-btn--outline { border: 1px solid #f59e0b; color: #b45309 !important; background: #fff; }
.acc-index-btn--ghost { background: #fff7ed; color: #92400e !important; border: 1px solid #fed7aa; }

.acc-index-section { margin-bottom: 34px; }

.acc-index-section__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.acc-index-section__bar {
    width: 4px;
    height: 28px;
    border-radius: 999px;
}

.acc-index-section__bar--local { background: #f59e0b; }
.acc-index-section__bar--other { background: #6b7280; }

.acc-index-section__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #111827;
}

.acc-index-section__count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 999px;
}

.acc-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.acc-index-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform .18s, box-shadow .18s;
}

.acc-index-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
    text-decoration: none;
    color: inherit;
}

.acc-index-card__img {
    aspect-ratio: 4/3;
    background: #f3f4f6;
    overflow: hidden;
}

.acc-index-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acc-index-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 2.5rem;
}

.acc-index-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.acc-index-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.acc-index-card__tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
}

.acc-index-card__title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.35;
}

.acc-index-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.acc-index-card__meta span { display: inline-flex; align-items: center; gap: 5px; }

.acc-index-card__price {
    margin-top: auto;
    font-size: 1.15rem;
    font-weight: 900;
    color: #d97706;
}

.acc-index-card__footer {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.acc-index-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #b45309;
    text-decoration: none;
}

.acc-index-card__store {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1d4ed8 !important;
    text-decoration: none !important;
}

.acc-index-card__store:hover {
    color: #1e40af !important;
    text-decoration: underline !important;
}

.acc-index-empty {
    text-align: center;
    padding: 56px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed #fcd34d;
}

.acc-index-empty i {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 12px;
}

.acc-index-empty p {
    color: #6b7280;
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .acc-index-cta__head { flex-direction: column; }
}
