/* Keep the migrated Cars-page shortcode wrapper full width, matching the
   width:100% Oxygen previously generated for the old code block. */
#shortcode-7-13394 {
    width: 100%;
}

.ct-shortcode:has(.car-cat-listing) {
    width: 100%;
}

/* Category cards */
.car-cat-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    width: 100%;
}
.car-cat-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.car-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.car-cat-thumb {
    width: 100%;
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}
.car-cat-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}
.car-cat-title {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}
.car-cat-desc {
    margin: 0 0 14px 0;
    font-size: 0.93rem;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.car-cat-metas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.car-cat-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 999px;
}
.car-cat-meta svg {
    width: 15px;
    height: 15px;
    fill: #d91f26;
}
@media (max-width: 600px) {
    .car-cat-listing {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .car-cat-thumb { height: 190px; }
}

/* Back to top button */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9990;
    width: 54px;
    height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #d91f26;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease,
                visibility 0.25s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover,
#back-to-top:focus-visible {
    background: #b3171d;
    transform: translateY(-3px);
}

#back-to-top:focus-visible {
    outline: 3px solid #0f172a;
    outline-offset: 2px;
}

#back-to-top svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: currentColor;
}

/* Mobile: centred at the bottom */
@media (max-width: 768px) {
    #back-to-top {
        left: 0;
        right: 0;
        margin: 0 auto;
        bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #back-to-top {
        transition: none;
    }
}

