/* =========================================================
   Cars (Woo shop archive) — LC layout
   ========================================================= */

.lc-carsPage {
    margin: 0 auto;
    padding: 18px 18px 70px;
}

/* HERO */
.lc-carsHero {
    margin: 10px 0 14px;
}

.lc-carsHero__inner {
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    padding: 18px;
    backdrop-filter: blur(10px);
}

.lc-carsHero__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
    color: rgba(255, 255, 255, .92);
}

.lc-carsHero__sub {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

.lc-carsHero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.lc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .88);
}

.lc-carsHero__cta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}


.lc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
    text-decoration: none !important;
}

.lc-btn--primary {
    background: rgba(220, 0, 0, .95);
    color: #fff !important;
}

.lc-btn--ghost {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .92) !important;
}

.lc-carsHero__desc {
    margin-top: 12px;
}

/* TOOLBAR */
.lc-carsToolbar {
    margin: 12px 0 12px;
}

.lc-carsToolbar__inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
}

.lc-carsToolbar__inner * {
    color: rgba(255, 255, 255, .92) !important;
}

.lc-carsToolbar select {
    border-radius: 12px !important;
}

/* GRID */
.lc-carsGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lc-carCard {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.lc-carCard__link {
    display: block;
    text-decoration: none !important;
}

.lc-carCard__top {
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, rgba(220, 0, 0, .55), rgba(0, 0, 0, .10));
}

.lc-carCard__title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: rgba(255, 255, 255, .96);
}

.lc-carCard__sub {
    margin-top: 4px;
    color: rgba(255, 255, 255, .86);
    font-weight: 700;
}

.lc-carCard__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.lc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(255, 255, 255, .10);
    font-size: 13px;
    color: rgba(255, 255, 255, .90);
}

.lc-carCard__media {
    padding: 14px;
    background: radial-gradient(circle at 50% 40%, rgba(220, 0, 0, .28), rgba(0, 0, 0, 0));
}

.lc-carCard__img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    border-radius: 14px;
}

.lc-carCard__bottom {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.lc-carCard__perk {
    color: rgba(255, 255, 255, .88);
    font-weight: 800;
}

.lc-carCard__price {
    color: rgba(255, 255, 255, .96);
    font-size: 20px;
    font-weight: 900;
}

.lc-carCard__cta {
    margin-top: 2px;
    display: inline-flex;
    width: fit-content;
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .92);
    font-weight: 900;
}

/* SECTIONS */
.lc-carsSection__inner {
    margin-top: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
    padding: 16px;
}

.lc-sectionTitle {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
    color: rgba(255, 255, 255, .92);
}

.lc-whyGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lc-whyItem {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
}

.lc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.lc-step {
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .10);
}

.lc-step__num {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(220, 0, 0, .9);
    color: #fff;
    font-weight: 900;
    margin-bottom: 8px;
}

.lc-step__title {
    color: rgba(255, 255, 255, .92);
    font-weight: 900;
    margin-bottom: 6px;
}

.lc-step__text {
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

/* FAQ */
.lc-faq {
    display: grid;
    gap: 10px;
}

.lc-faqItem {
    border-radius: 14px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .10);
    padding: 10px 12px;
}

.lc-faqItem summary {
    cursor: pointer;
    color: rgba(0, 0, 0, .9) !important;
    font-weight: 900;
}

.lc-faqBody {
    margin-top: 8px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

/* Pagination wrapper */
.lc-carsPagination {
    margin: 18px 0 0;
}

/* Responsive */
@media (max-width: 980px) {
    .lc-carsGrid {
        grid-template-columns: 1fr;
    }

    .lc-whyGrid {
        grid-template-columns: 1fr;
    }

    .lc-steps {
        grid-template-columns: 1fr;
    }

    .lc-carsHero__title {
        font-size: 24px;
    }

    .lc-carsHero__cta .lc-btn {
        font-size: 15px;
    }

}

/* =========================================================
   Cars page: force text to 90% black (override everything)
   ========================================================= */


body.post-type-archive-product .lc-carsPage,
body.post-type-archive-product .lc-carsPage * {
    color: rgba(0, 0, 0, .90) !important;
}


/* Keep buttons readable */
body.post-type-archive-product .lc-btn--primary,
body.post-type-archive-product .lc-btn--primary * {
    color: #fff !important;
}

body.post-type-archive-product .lc-btn--ghost,
body.post-type-archive-product .lc-btn--ghost * {
    color: rgba(0, 0, 0, .90) !important;
}

/* Make badges/chips readable on dark backgrounds */
/* body.post-type-archive-product .lc-chip, */
body.post-type-archive-product .lc-badge {
    color: rgba(0, 0, 0, .90) !important;
}

/* Woo ordering/select text */
body.post-type-archive-product .woocommerce-ordering select,
body.post-type-archive-product .woocommerce-result-count {
    color: rgba(0, 0, 0, .90) !important;
    margin: 0 !important;
}


/* =========================================================
   2) Slick dropdown design (Woo sorting)
   ========================================================= */

/* wrapper alignment if you want it nicer */
.woocommerce .woocommerce-ordering {
    margin: 0 !important;
}

/* Select styling */
.woocommerce .woocommerce-ordering select.orderby {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;

    height: 38px;
    line-height: 38px;

    padding: 0 25px 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .18);
    background: rgba(255, 255, 255, .85);
    color: rgba(0, 0, 0, .9);

    font-weight: 600;
    font-size: 14px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    backdrop-filter: blur(10px);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* Hover + focus */
.woocommerce .woocommerce-ordering select.orderby:hover {
    border-color: rgba(0, 0, 0, .28);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

.woocommerce .woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: rgba(0, 0, 0, .4);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, .18), 0 12px 28px rgba(0, 0, 0, .14);
}

/* Add a chevron icon (pure CSS) */
.woocommerce .woocommerce-ordering {
    position: relative;
    display: inline-block;
}

.woocommerce .woocommerce-ordering::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-55%) rotate(45deg);
    border-right: 2px solid rgba(0, 0, 0, .55);
    border-bottom: 2px solid rgba(0, 0, 0, .55);
    pointer-events: none;
}

/* Make the dropdown options readable (browser limits styling here) */
.woocommerce .woocommerce-ordering select.orderby option {
    color: #111;
}

/* =========================================================
   1) Make ALL text 90% black EXCEPT inside lc-carsHero__inner
   Scope: Woo archive pages + your custom archive wrapper (.woocommerce)
   ========================================================= */


body.post-type-archive-product .lc-carsPage header.lc-carsHero * {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* EXCEPTION: do NOT override anything inside the hero inner area */
.woocommerce .lc-carsHero__inner,
.woocommerce .lc-carsHero__inner * {
    color: inherit !important;
    fill: inherit !important;
    color: rgba(255, 255, 255, 0.9) !important;
}


/* =========================================================
   RC24 Inspect form skin (inside archive product)
   Wrapper exists from our renderer: .rc24-inspect-wrap
========================================================= */

.rc24-inspect-wrap {
    margin: 16px 0 18px;
}

/* Main card */
.rc24-inspect-wrap .inspect-home-search-wrapper {
    background: rgba(16, 16, 16, .35);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    padding: 20px 22px;
}

/* Remove any default white panels if plugin adds them */
.rc24-inspect-wrap .inspect-vertical-search-wrapper,
.rc24-inspect-wrap .header-body,
.rc24-inspect-wrap .inspect-vertical-search-area,
.rc24-inspect-wrap .inspect-obb-vertical-search-form {
    background: transparent !important;
}

/* Header typography */
.rc24-inspect-wrap .search-header h3 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92) !important;
}

.rc24-inspect-wrap .search-header p {
    margin: 0 0 18px;
    font-size: 13px;
    letter-spacing: .2px;
    color: rgba(255, 255, 255, .65) !important;
}

/* Widgets */
.rc24-inspect-wrap .inspect-filter-widget {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.rc24-inspect-wrap h2.inspect-filter-widget-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .25px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65) !important;
    color: inherit;
}

/* Inputs */
.rc24-inspect-wrap input[type="text"].daterange,
.rc24-inspect-wrap select.inspect-search-select,
.rc24-inspect-wrap .select2-container .select2-selection--single {
    height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    background: rgba(0, 0, 0, .35) !important;
    color: rgba(255, 255, 255, .90) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

/* Daterange specifics */
.rc24-inspect-wrap input[type="text"].daterange {
    padding: 10px 14px !important;
    outline: none;
}

/* Select2: rendered text & placeholder */
.rc24-inspect-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding-left: 14px !important;
    color: rgba(255, 255, 255, .90) !important;
}

.rc24-inspect-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, .55) !important;
}

/* Select2 arrow */
.rc24-inspect-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 10px !important;
}

.rc24-inspect-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, .65) transparent transparent transparent !important;
}

/* Select2 dropdown panel */
.select2-container--default .select2-dropdown {
    border: 1px solid rgba(255, 255, 255, .12) !important;
    background: rgba(18, 18, 18, .96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

/* Select2 search field inside dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, .35) !important;
    color: rgba(255, 255, 255, .90) !important;
    outline: none;
}

/* Dropdown options */
.select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    color: rgba(255, 255, 255, .85) !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(185, 28, 28, .85) !important;
    /* your red */
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: rgba(255, 255, 255, .08) !important;
}

/* Footer / button */
.rc24-inspect-wrap .inspect-home-search-footer {
    margin-top: 14px;
}

.rc24-inspect-wrap .inspect-home-search-footer .submit-search {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(185, 28, 28, .98), rgba(140, 18, 18, .98));
    color: #fff;
    font-weight: 800;
    letter-spacing: .25px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}

.rc24-inspect-wrap .inspect-home-search-footer .submit-search:hover {
    filter: brightness(1.05);
}

.rc24-inspect-wrap .inspect-home-search-footer .submit-search:active {
    transform: translateY(1px);
}

/* Make form look tighter on mobile */
@media (max-width: 730px) {
    .inspect-vertical-search-wrapper {
        padding: 5%;
    }

    .rc24-inspect-wrap .inspect-home-search-wrapper {
        padding: 3%;
    }

    .rc24-inspect-wrap .search-header h3 {
        font-size: 18px;
    }

    div.lc-carsHero__chips {
        display: none !important;
    }
}

/* =========================
   RC24 Inspect collapsible
   Target: .inspect-vertical-search-wrapper .header-body
   ========================= */

.rc24-inspect-wrap .inspect-vertical-search-wrapper .search-header {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 16px;
}

/* Optional: keep the title block left, controls right */
.rc24-inspect-wrap .rc24-collapse-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rc24-inspect-wrap div.rc24-collapse-summary {
    font-size: 14px;
    line-height: 1.2;
    opacity: .85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
    color: rgba(255, 255, 255, .92) !important;
}

/* Toggle button */
.rc24-inspect-wrap button.rc24-collapse-toggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92) !important;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.rc24-inspect-wrap .rc24-collapse-toggle:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
}

.rc24-inspect-wrap .rc24-collapse-toggle:active {
    transform: scale(.98);
}

/* The collapsing part you highlighted */
.rc24-inspect-wrap .inspect-vertical-search-wrapper .header-body {
    overflow: hidden;
    max-height: 10000px;
    /* expanded */
    transition: max-height .28s ease;
    will-change: max-height;
}

/* Collapsed state */
.rc24-inspect-wrap .inspect-vertical-search-wrapper.is-collapsed .header-body {
    max-height: 0 !important;
}

/* Select2 width safety when expanding/collapsing */
.rc24-inspect-wrap .select2-container {
    width: 100% !important;
}

/* Small screen: summary can wrap */
@media (max-width: 720px) {
    .rc24-inspect-wrap .rc24-collapse-summary {
        max-width: 100%;
        white-space: normal;
    }
}


/* Hide the summary text on narrower screens (prevents wrapping above the button) */
@media (max-width: 1227px) {
    .rc24-inspect-wrap .rc24-collapse-summary {
        display: none !important;
    }
}

/* Start collapsed BEFORE JS runs (prevents flash) */
.rc24-inspect-wrap .header-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

/* Open state (JS still sets max-height inline for smooth transition) */
.rc24-inspect-wrap.is-open .header-body {
    overflow: hidden;
}


@media (max-width: 768px) {
    .lc-carsHero__sub {
        position: relative;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        overflow: hidden;
        margin-bottom: 6px;
    }

    /* fade overlay */
    .lc-carsHero__sub:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 34px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .15), rgba(0, 0, 0, .10));
        pointer-events: none;
    }

    .lc-carsHero__sub.is-expanded {
        -webkit-line-clamp: unset;
        display: block;
    }

    .lc-carsHero__sub.is-expanded:after {
        display: none;
    }

    .lc-carsHero__moreBtn {
        display: flex !important;
    }

    /* link-style control */
    .lc-carsHero__moreBtn {
        display: inline-block;
        padding: 0;
        margin: 0 0 12px 0;
        background: none;
        border: 0;
        color: rgba(255, 255, 255, .78);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }

    .lc-carsHero__moreRow {
        display: flex;
        justify-content: flex-end;
    }
}

.lc-carsHero__moreBtn {
    display: none;
}

@media (max-width: 896px) {


    body.post-type-archive-product .lc-carsPage header.lc-carsHero * {
        color: rgba(40, 40, 40, 0.9) !important;
    }

    /* EXCEPTION: do NOT override anything inside the hero inner area */
    .woocommerce .lc-carsHero__inner,
    .woocommerce .lc-carsHero__inner * {
        color: inherit !important;
        fill: inherit !important;
        color: rgba(34, 34, 34, 0.9) !important;
    }
}

.rc24-pagebar {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    border-radius: 18px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}

.rc24-pagebar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    padding: 12px 10px;
    border-radius: 14px;

    font-weight: 700;
    letter-spacing: .2px;

    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);

    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.rc24-pagebar__item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .18);
}

.rc24-pagebar__item.is-active {
    color: #fff;
    background: rgba(185, 28, 28, .92);
    /* your red */
    border-color: rgba(255, 255, 255, .18);
}

@media (max-width: 520px) {
    .rc24-pagebar {

        border-radius: 16px;
    }

    .rc24-pagebar__item {
        padding: 11px 8px;
        font-size: 13px;
        border-radius: 12px;
    }
}

.trp-language-switcher-inner a.trp-language-item span.trp-language-item-name {
    color: #fff !important;
}


/* Mobile fixes for long translations (Greek) */
@media (max-width: 520px) {

  /* The hero paragraph block */
  .lc-carsHero__sub,
  .lc-carsHero__desc {
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: 0;
    word-break: break-word;
    hyphens: auto;
  }

  /* Clamp to ~4 lines so it doesn’t push everything down */
  .lc-carsHero__sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;   /* change 4 -> 3 if you want tighter */
    overflow: hidden;
    position: relative;
    padding-bottom: 6px;
  }

  /* Subtle fade at bottom so clamp looks intentional */
  .lc-carsHero__sub::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 22px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.35));
  }

  /* “Read more” link/button alignment */
  .lc-carsHero__more,
  .lc-carsHero__sub a,
  .lc-carsHero__desc a {
    display: inline-block;
    margin-top: 8px;
    white-space: nowrap;
  }
}

@media (max-width: 520px){
  .lc-carsHero__sub{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;  /* show ~4 lines */
    overflow: hidden;
  }
}
@media (max-width: 520px){
  .rc24-collapse-controls,
  .lc-carsHero__cta,
  .rc24-pagebar{
    min-width: 0;
  }
  .rc24-collapse-controls > *,
  .lc-carsHero__cta > *,
  .rc24-pagebar > *{
    min-width: 0;
  }
}

