:root {
    --ym-ink: #12203a;
    --ym-muted: #6b7686;
    --ym-line: #e3e9f2;
    --ym-link: #1f6feb;
    --ym-ok: #1f8f4e;
    --ym-surface: #f6f9fd;
}

.ymcat__lead {
    margin: -6px 0 0;
    max-width: 60ch;
}

.ymcat__sections {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ymcat__section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ym-ink);
    font-size: 14.5px;
    text-decoration: none;
}

.ymcat__section:hover {
    background: var(--ym-surface);
    color: var(--ym-ink);
}

.ymcat__section.is-active {
    background: var(--bulma-link, #1f6feb);
    color: #fff;
    font-weight: 600;
}

.ymcat__section--model {
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.35;
    padding: 6px 10px;
}

.ymcat__count {
    flex: none;
    font-size: 12px;
    color: var(--ym-muted);
    background: #fff;
    border: 1px solid var(--ym-line);
    border-radius: 20px;
    padding: 1px 8px;
}

.ymcat__section.is-active .ymcat__count {
    border-color: transparent;
    color: var(--bulma-link, #1f6feb);
}

.ymcat__price {
    color: var(--ym-ink);
}

.productcards-item-info .tags {
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
}

.productcards-item-info .tags .tag {
    font-size: 10.5px !important;
    height: 21px;
    line-height: 21px;
    padding: 0 6px;
    margin: 0;
    white-space: nowrap;
    display: block;
}

.productcards-item-info .tags .tag.is-white {
    padding-left: 0;
    padding-right: 0;
}

.productcards-item-info .tags .tag:first-child {
    flex: none;
}

.productcards-item-info .tags .tag:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@container productcards (max-width: 501px) {
    .productcards-item {
        --cols: 1;
    }
}

@container productcards (min-width: 502px) and (max-width: 764px) {
    .productcards-item {
        --cols: 2;
    }
}

@container productcards (min-width: 765px) and (max-width: 1027px) {
    .productcards-item {
        --cols: 3;
    }
}

@container productcards (min-width: 1028px) and (max-width: 1290px) {
    .productcards-item {
        --cols: 4;
    }
}

@container productcards (min-width: 1291px) {
    .productcards-item {
        --cols: 5;
    }
}

.ymcat__photo {
    cursor: zoom-in;
}

.ymcat-gallery {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
}

.ymcat-gallery__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 240ms ease;
}

.ymcat-gallery__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.ymcat-gallery__label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(18, 32, 58, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.ymcat-gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 34px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ym-ink);
    font: 28px/1 Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(18, 32, 58, 0.18);
}

.ymcat-gallery__arrow--prev { left: 7px; }
.ymcat-gallery__arrow--next { right: 7px; }

.ymcat-gallery__dots {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 7px;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.ymcat-gallery__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(18, 32, 58, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.ymcat-gallery__dots button.is-active {
    background: var(--ym-link);
    border-color: #fff;
}

.productcards-item-info a[data-xaction="askprice"] {
    cursor: pointer;
}

.productcards-item-info a[data-xaction="askprice"]:hover {
    text-decoration: underline;
}

.productcards-item-info a[data-xaction="askprice"] {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.productcards-item[hidden] {
    display: none;
}

.ymcat__intro {
    margin: 10px 0 0;
    color: var(--ym-ink);
    line-height: 1.55;
}

.ymcat__intro p {
    margin: 0 0 8px;
}

.ymcat__intro p:last-child {
    margin-bottom: 0;
    color: var(--ym-muted);
}

.ymcat__hub {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--ym-line);
}

.ymcat__hub > .title {
    margin-bottom: 14px;
}

.ymcat__hubgroup {
    margin-bottom: 18px;
    break-inside: avoid;
}

.ymcat__hubtitle {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--ym-ink);
    font-weight: 600;
    font-size: 14.5px;
}

.ymcat__hublist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ymcat__hublist li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
    font-size: 13.5px;
}

.ymcat__hublist a {
    color: var(--ym-link);
}

.ymcat__hublist .ymcat__count {
    background: none;
    border: none;
    padding: 0;
}
