/* Shop condition filter — premium chip UI */
.shop-condition-bar {
    margin: 0 0 28px;
    padding: 20px 22px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(209, 0, 36, 0.05) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.shop-condition-bar__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.shop-condition-bar__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #D10024;
    margin-bottom: 4px;
}

.shop-condition-bar__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.shop-condition-bar__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.shop-condition-bar__clear:hover {
    border-color: #D10024;
    color: #D10024;
    background: rgba(209, 0, 36, 0.04);
}

.shop-condition-bar__chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.shop-condition-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.shop-condition-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: #0f172a;
}

.shop-condition-chip.is-disabled,
.shop-condition-chip.is-disabled:hover {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.shop-condition-sidebar__input:disabled + .shop-condition-chip {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.shop-condition-chip__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.shop-condition-chip__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.shop-condition-chip__label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.shop-condition-chip__meta {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.shop-condition-chip__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D10024;
    color: #fff;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tone variants */
.shop-condition-chip--all .shop-condition-chip__icon {
    background: #f1f5f9;
    color: #475569;
}

.shop-condition-chip--new .shop-condition-chip__icon {
    background: #ecfdf5;
    color: #059669;
}

.shop-condition-chip--like-new .shop-condition-chip__icon {
    background: #eff6ff;
    color: #2563eb;
}

.shop-condition-chip--used .shop-condition-chip__icon {
    background: #fffbeb;
    color: #d97706;
}

.shop-condition-chip--all.is-active {
    border-color: #64748b;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 6px 18px rgba(100, 116, 139, 0.15);
}

.shop-condition-chip--new.is-active {
    border-color: #059669;
    background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.18);
}

.shop-condition-chip--like-new.is-active {
    border-color: #2563eb;
    background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
}

.shop-condition-chip--used.is-active {
    border-color: #d97706;
    background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.16);
}

/* Sidebar compact grid */
.shop-condition-sidebar__hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.shop-condition-sidebar__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.shop-condition-sidebar__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-condition-sidebar__item {
    position: relative;
}

.shop-condition-chip--compact {
    min-height: 58px;
    padding: 10px 12px;
    gap: 10px;
    width: 100%;
    margin: 0;
}

.shop-condition-chip--compact .shop-condition-chip__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 9px;
}

.shop-condition-chip--compact .shop-condition-chip__label {
    font-size: 13px;
}

.shop-condition-chip--compact .shop-condition-chip__meta {
    font-size: 11px;
}

.shop-condition-sidebar__input:focus-visible + .shop-condition-chip {
    outline: 2px solid #D10024;
    outline-offset: 2px;
}

.shop-condition-sidebar__input:checked + .shop-condition-chip {
    transform: translateY(-1px);
}

.shop-condition-sidebar__input:checked + .shop-condition-chip--all {
    border-color: #64748b;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 4px 14px rgba(100, 116, 139, 0.12);
}

.shop-condition-sidebar__input:checked + .shop-condition-chip--new {
    border-color: #059669;
    background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.14);
}

.shop-condition-sidebar__input:checked + .shop-condition-chip--like-new {
    border-color: #2563eb;
    background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}

.shop-condition-sidebar__input:checked + .shop-condition-chip--used {
    border-color: #d97706;
    background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.14);
}

label.shop-condition-chip {
    font-weight: inherit;
    margin-bottom: 0;
}

.shop-condition-sidebar__input:checked + .shop-condition-chip .shop-condition-chip__check {
    display: inline-flex;
}

.aside.shop-condition-filter {
    padding-bottom: 4px;
}

.aside.shop-condition-filter .aside-title {
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .shop-condition-bar__chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .shop-condition-bar {
        padding: 16px;
        border-radius: 14px;
    }

    .shop-condition-bar__head {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-condition-bar__title {
        font-size: 16px;
    }

    .shop-condition-bar__chips,
    .shop-condition-sidebar__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-condition-chip {
        min-height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-condition-chip {
        transition: none;
    }

    .shop-condition-chip:hover {
        transform: none;
    }
}
