/* ===================================================
   BLOKAVTO Cars Module - Editorial Tile UI v6
   =================================================== */

.rostcars-cm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 34px 0;
    padding: 16px;
    border-radius: 24px;
    background: var(--theme-bg-light);
    font-family: "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
}

@media (min-width: 600px) {
    .rostcars-cm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .rostcars-cm-grid { grid-template-columns: repeat(3, 1fr); }
}

.rostcars-cm-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #dbe5ee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 24px rgba(12, 28, 49, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.rostcars-cm-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-bg) 100%);
    opacity: 0.8;
}

.rostcars-cm-card:hover {
    box-shadow: 0 18px 34px rgba(12, 28, 49, 0.14);
    border-color: color-mix(in srgb, var(--theme-accent) 30%, #dbe5ee 70%);
    transform: translateY(-5px);
}

.rostcars-cm-media-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.rostcars-cm-img-wrap {
    flex: 1;
    background: #ffffff;
    border-radius: 14px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 104px;
    padding: 4px 6px;
}

.rostcars-cm-img {
    width: 100%;
    max-width: 188px;
    height: 84px;
    object-fit: contain;
    display: block;
}

.rostcars-cm-img-empty {
    width: 100%;
    height: 98px;
    background: #e8e8ed;
    border-radius: 10px;
}

.rostcars-cm-body {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 12px;
}

.rostcars-cm-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    margin-top: 2px;
}

.rostcars-cm-category {
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    padding: 3px 9px;
    background: #f8fbfd;
}

.rostcars-cm-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.2;
    color: var(--theme-accent);
}

.rostcars-cm-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.rostcars-cm-spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 9px;
    padding: 5px 9px 5px 8px;
    border: 1px solid rgba(30, 189, 144, 0.15);
    justify-content: center;
    white-space: nowrap;
}

.rostcars-cm-spec-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rostcars-cm-spec-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.rostcars-cm-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
    gap: 1px;
    min-width: 96px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
}

.rostcars-cm-price-pre {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.rostcars-cm-price-num {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--theme-accent);
    line-height: 1;
}

.rostcars-cm-price-unit {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.rostcars-cm-cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 100%;
    margin-top: 2px;
}

.rostcars-cm-cancel {
    font-size: 11.5px;
    font-weight: 600;
    color: #1a7f3c;
    letter-spacing: 0.01em;
    text-align: center;
}

.rostcars-cm-btn {
    display: block;
    width: 100%;
    padding: 11px 0;
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    background: var(--theme-bg);
}

.rostcars-cm-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.rostcars-cm-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid #e4ecf3;
}

.rostcars-cm-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    color: #1f2937;
}

.rostcars-cm-feature-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rostcars-cm-feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.rostcars-cm-note {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dce7ef;
    background: #ffffff;
    font-size: 12px;
    line-height: 1.6;
    color: #475569;
}

@media (max-width: 640px) {
    .rostcars-cm-grid {
        margin: 26px 0;
        padding: 12px;
        gap: 12px;
        border-radius: 14px;
    }

    .rostcars-cm-card {
        border-radius: 14px;
    }

    .rostcars-cm-body {
        padding: 14px;
        gap: 10px;
    }

    .rostcars-cm-name {
        font-size: 20px;
    }

    .rostcars-cm-media-row {
        gap: 8px;
    }

    .rostcars-cm-img-wrap {
        min-height: 86px;
        border-radius: 10px;
    }

    .rostcars-cm-img {
        max-width: 152px;
        height: 66px;
    }

    .rostcars-cm-price-block {
        min-width: 84px;
        padding: 0;
    }

    .rostcars-cm-price-num {
        font-size: 25px;
    }

    .rostcars-cm-spec {
        font-size: 12px;
    }
}
