/* Public shell, home page and shared marketplace cards. */

@media (max-width: 991.98px) {
    .wc-theme .wc-desktop-header .nav-auth-mobile {
        display: none !important;
    }

    .wc-theme .wc-desktop-header .navbar-toggler,
    .wc-theme .wc-desktop-header .navbar-toggler:is(:hover, :focus, :active, [aria-expanded="true"]) {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .wc-theme .wc-desktop-header .nav-actions :is(.nav-bell-btn, .nav-favorites-btn),
    .wc-theme .wc-desktop-header .nav-actions :is(.nav-bell-btn, .nav-favorites-btn):is(:hover, :focus, :active, .is-active) {
        background: transparent;
        border: 0;
        box-shadow: none;
    }
}

.wc-theme:not(.wc-admin-theme):not(.wc-business-theme) .wc-desktop-header {
    min-height: 70px;
    padding: 0;
    border-bottom: 1px solid var(--theme-line);
    color: var(--theme-ink);
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 8px 28px rgba(23, 53, 62, .07) !important;
    backdrop-filter: blur(16px);
}

.wc-theme .wc-desktop-header .container {
    min-height: 70px;
}

.wc-theme .wc-desktop-header .site-logo {
    width: auto;
    height: 47px;
    object-fit: contain;
}

.wc-theme .wc-desktop-header .navbar-brand {
    padding: .4rem 0;
}

.wc-theme .wc-desktop-header .nav-link,
.wc-theme .wc-desktop-header .megacat-link,
.wc-theme .wc-desktop-header .nav-auth-link {
    color: var(--theme-ink-2) !important;
    font-size: .9rem;
    font-weight: 700;
}

.wc-theme .wc-desktop-header .nav-link:hover,
.wc-theme .wc-desktop-header .megacat-link:hover,
.wc-theme .wc-desktop-header .megacat-link.show {
    color: var(--theme-accent-dark) !important;
}

.wc-theme .wc-desktop-header :is(.nav-favorites-btn, .js-nav-notifs, .js-nav-messages).is-active {
    border-color: #f0c8cf;
    color: #c53e58 !important;
    background: #fff1f3;
}

.wc-theme .wc-desktop-header :is(.nav-favorites-btn, .js-nav-notifs, .js-nav-messages).is-active:hover,
.wc-theme .wc-desktop-header :is(.nav-favorites-btn, .js-nav-notifs, .js-nav-messages).is-active:focus {
    color: #a92f47 !important;
    background: #ffe7eb;
}

.wc-theme .wc-desktop-header .btn-publish {
    min-height: 44px;
    padding-inline: 1rem;
    border: 1px solid var(--theme-accent);
    border-radius: 9px;
    color: #fff;
    background: var(--theme-accent);
    box-shadow: none;
    transform: none;
    transition: background-color .15s ease;
}

.wc-theme .wc-desktop-header .btn-publish:hover,
.wc-theme .wc-desktop-header .btn-publish:focus,
.wc-theme .wc-desktop-header .btn-publish:active {
    color: #fff;
    background: var(--theme-accent-dark);
    box-shadow: none;
    transform: none;
}

.wc-theme .megacat-menu {
    border-top: 4px solid var(--theme-accent);
}

.wc-theme .mobile-search-bar,
.wc-theme .search-strip {
    border-bottom: 1px solid var(--theme-line) !important;
    background: var(--theme-surface) !important;
    box-shadow: none !important;
}

.wc-theme .mobile-search-bar .nav-search,
.wc-theme .search-strip .nav-search {
    border: 1px solid var(--theme-line-strong);
    border-radius: 10px;
    background: var(--theme-surface-soft);
    box-shadow: none;
}

.wc-theme .nav-search-btn {
    border-radius: 8px;
    color: #fff;
    background: var(--theme-ink);
}

/* Mobile category rail */
@media (max-width: 991.98px) {
    .wc-theme.page-home .mobile-cats-strip {
        height: 88px;
        min-height: 88px;
        gap: 8px;
        padding: 10px 12px 9px;
        border-bottom: 1px solid #e9e7ee;
        background: #fff;
        box-shadow: none;
        scrollbar-width: none;
    }

    .wc-theme.page-home .mobile-cats-strip::before,
    .wc-theme.page-home .mobile-cats-strip::after {
        content: "";
        flex: 0 0 2px;
    }

    .wc-theme.page-home .mobile-cat-circle {
        width: 62px;
        gap: 6px;
        color: #73707e;
    }

    .wc-theme.page-home .mobile-cat-circle .mcc-img {
        width: 46px;
        height: 46px;
        border: 1px solid #e7edef;
        border-radius: 10px;
        color: #81788f;
        background: #f9fbfc;
        box-shadow: none;
        transition: border-color .16s ease, color .16s ease, background-color .16s ease;
    }

    .wc-theme.page-home .mobile-cat-circle .mcc-img i {
        color: inherit;
        font-size: 18px;
    }

    .wc-theme.page-home .mobile-cat-circle .mcc-img img {
        border-radius: 9px;
    }

    .wc-theme.page-home .mobile-cat-circle .mcc-label {
        max-width: 62px;
        color: #73707e;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.3;
        letter-spacing: normal;
        -webkit-line-clamp: 1;
    }

    .wc-theme.page-home .mobile-cat-circle:hover .mcc-img,
    .wc-theme.page-home .mobile-cat-circle:focus-visible .mcc-img {
        border-color: #bddde9;
        color: #00aeef;
        background: #edf7fb;
        box-shadow: none;
        transform: none;
    }

    .wc-theme.page-home .mobile-cat-circle:hover .mcc-img i,
    .wc-theme.page-home .mobile-cat-circle:focus-visible .mcc-img i {
        color: #00aeef;
    }

    .wc-theme.page-home .mobile-cat-circle:active .mcc-img {
        color: #00aeef;
        border-color: #bddde9;
        background: #edf7fb;
        transform: none;
        box-shadow: none;
    }
    .wc-theme.page-home .mobile-cat-circle:focus-visible { outline: 2px solid #00aeef; outline-offset: 2px; border-radius: 10px; }
}

/* Home */
.wc-theme.page-home .hero {
    position: relative;
    overflow: hidden;
    padding: 68px 0 60px;
    color: #fff;
    background: var(--theme-ink);
}

.wc-theme.page-home .hero::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    inset-inline-end: -48px;
    bottom: -68px;
    border: 34px solid var(--theme-accent);
    border-radius: 50%;
    opacity: .9;
}

.wc-theme.page-home .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin-inline: auto;
}

.wc-theme.page-home .hero-kicker {
    padding: .42rem .7rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 7px;
    color: #f6e4b2;
    background: rgba(255,255,255,.06);
}

.wc-theme.page-home .hero-title {
    max-width: 860px;
    margin: 1rem auto .8rem;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.55rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.wc-theme.page-home .hero-title-brand {
    color: var(--theme-sand);
}

.wc-theme.page-home .hero-title-sep {
    color: var(--theme-accent);
}

.wc-theme.page-home .hero-sub {
    max-width: 700px;
    margin: 0 auto 1.55rem;
    color: #d6e1df;
    font-size: 1.03rem;
    line-height: 1.75;
}

.wc-theme.page-home .hs-bar {
    max-width: 750px;
    min-height: 62px;
    margin-inline: auto;
    padding: 7px 8px 7px 17px;
    border: 2px solid #fff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 0 rgba(7, 28, 34, .38);
}

.wc-theme.page-home .hs-icon {
    color: var(--theme-accent);
}

.wc-theme.page-home .hs-input {
    color: var(--theme-ink);
}

.wc-theme.page-home .hs-btn {
    width: 49px;
    height: 49px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--theme-accent);
}

.wc-theme.page-home .hero-suggest {
    color: #fff;
    font-weight: 700;
}

.wc-theme.page-home .hero-suggest i {
    color: var(--theme-sand);
}

.wc-theme.page-home .hero-trust {
    border-top-color: rgba(255,255,255,.18);
}

.wc-theme.page-home .ht-item + .ht-item {
    border-inline-start-color: rgba(255,255,255,.18);
}

.wc-theme.page-home .ht-icon {
    color: var(--theme-ink);
    background: var(--theme-sand);
}

.wc-theme.page-home .ht-title {
    color: #fff;
}

.wc-theme.page-home .ht-sub {
    color: #a8bdbc;
}

.wc-theme .desktop-category-discovery {
    padding-block: 2.8rem;
    border-bottom: 1px solid var(--theme-line);
    background: #e9eeea;
}

.wc-theme .home-section-eyebrow {
    color: var(--theme-accent-dark);
    font-weight: 800;
    letter-spacing: .055em;
}

.wc-theme .home-section-head h2,
.wc-theme .desktop-category-discovery h2 {
    color: var(--theme-ink);
}

.wc-theme .home-section-link {
    color: var(--theme-ink-2);
    font-weight: 800;
}

.wc-theme .desktop-category-card {
    border: 1px solid var(--theme-line);
    border-radius: 11px;
    color: var(--theme-ink);
    background: var(--theme-surface);
    box-shadow: 3px 3px 0 var(--theme-line-strong);
}

.wc-theme .desktop-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--theme-mint);
    box-shadow: 5px 6px 0 var(--theme-mint-soft);
}

.wc-theme .desktop-category-icon,
.wc-theme .category-section-icon {
    border-color: var(--theme-line);
    border-radius: 9px;
    color: var(--theme-accent-dark);
    background: #fff5ec;
}

.wc-theme .car-prices-banner {
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
    box-shadow: 4px 5px 0 rgba(23, 53, 62, .11);
}

/* Shared listing card — visual only; existing responsive layout remains intact. */
.wc-theme .listing-card {
    overflow: hidden;
    border: 1px solid var(--theme-line);
    border-radius: 12px;
    color: var(--theme-ink);
    background: var(--theme-surface);
    box-shadow: 3px 3px 0 rgba(23, 53, 62, .09);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.wc-theme .listing-card:hover {
    transform: translateY(-3px);
    border-color: var(--theme-line-strong);
    color: var(--theme-ink);
    box-shadow: 6px 7px 0 var(--theme-mint-soft);
}

.wc-theme .listing-card .img-wrap {
    border-bottom: 1px solid var(--theme-line);
    background: #e8ece8;
}

.wc-theme .listing-card .img-wrap img {
    transition: transform .25s ease;
}

.wc-theme .listing-card:hover .img-wrap img {
    transform: scale(1.02);
}

.wc-theme .listing-card .title {
    color: var(--theme-ink);
    font-weight: 800;
}

.wc-theme .listing-card .meta {
    color: var(--theme-muted);
}

.wc-theme .listing-card .price {
    color: var(--theme-ink);
    font-weight: 900;
}

.wc-theme .listing-card .badge-featured {
    border: 1px solid rgba(23, 53, 62, .14);
    border-radius: 50%;
    color: var(--theme-ink);
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 7px rgba(23, 53, 62, .12);
}

.wc-theme .listing-card .fav-btn {
    border: 1px solid rgba(23, 53, 62, .18);
    border-radius: 8px;
    color: var(--theme-ink);
    background: rgba(255,255,255,.94);
}

.wc-theme .listing-card .fav-btn.active {
    color: #fff;
    border-color: var(--theme-accent);
    background: var(--theme-accent);
}

/* Footer */
.wc-theme .site-footer {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid #e8e5ec;
    color: #514a5d;
    background: #f9fbfc;
}

.wc-theme .site-footer > .container,
.wc-theme .site-footer .footer-navigation > * {
    min-width: 0;
}

.wc-theme .site-footer > .container { max-width: 1320px; }
.wc-theme .site-footer .footer-navigation {
    display: grid;
    grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(110px, 1fr)) minmax(180px, 1.2fr);
    gap: 32px;
}

.wc-theme .site-footer .footer-seo {
    width: 100%;
    min-width: 0;
    display: block;
    margin-bottom: 32px;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 1px solid #e8e5ec;
    border-radius: 0;
    background: transparent;
    text-align: start;
}

.wc-theme .site-footer .footer-seo-title,
.wc-theme .site-footer .footer-title {
    color: #25212d;
}

.wc-theme .site-footer .footer-title {
    margin-bottom: 16px;
    padding-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: normal;
}
.wc-theme .site-footer .footer-title::after { display: none; }

.wc-theme .site-footer .footer-seo-title {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.5;
}

.wc-theme .site-footer .footer-seo-text,
.wc-theme .site-footer .footer-tagline {
    color: #716b78;
}

.wc-theme .site-footer .footer-seo-text {
    max-width: none;
    overflow-wrap: anywhere;
    white-space: normal;
}

.wc-theme .site-footer a {
    color: #514a5d;
}

.wc-theme .site-footer a:hover {
    color: #007eaf;
}

.wc-theme .site-footer a:focus-visible {
    outline: 2px solid #008bc2;
    outline-offset: 4px;
    border-radius: 4px;
}
.wc-theme .site-footer .footer-links li { margin-bottom: 6px; }
.wc-theme .site-footer .footer-links a { padding-block: 3px; }
.wc-theme .site-footer .footer-links a:hover { padding-inline-start: 0; text-decoration: underline; text-underline-offset: 4px; }
.wc-theme .site-footer .footer-contact li { align-items: flex-start; }
.wc-theme .site-footer .footer-contact a { min-width: 0; overflow-wrap: anywhere; word-break: normal; padding-block: 5px; }
.wc-theme .site-footer .footer-contact span { padding-block: 5px; }
.wc-theme .site-footer .footer-contact i { color: #008bc2; background: transparent; }

.wc-theme .site-footer .footer-logo {
    height: 64px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    filter: none;
}

.wc-theme .site-footer .footer-social a {
    border: 1px solid #e0e7eb;
    border-radius: 8px;
    background: #fff;
}

.wc-theme .site-footer .footer-social a:hover { color: #007eaf; border-color: #9bdcf4; background: #ecfaff; transform: none; }

.wc-theme .site-footer .footer-bottom {
    margin-top: 32px;
    border-top-color: #e8e5ec;
    color: #716b78;
}

.wc-theme .site-footer .footer-bottom-links span { color: #aaa3b0; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .wc-theme .site-footer .footer-navigation { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
    .wc-theme .site-footer .footer-brand { grid-column: 1 / -1; }
}

.wc-theme .mobile-app-nav {
    border-top: 1px solid var(--theme-line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 26px rgba(23, 53, 62, .11);
    backdrop-filter: blur(14px);
}

.wc-theme .mobile-app-nav > a {
    color: var(--theme-muted);
    font-weight: 700;
}

.wc-theme .mobile-app-nav > a.is-active {
    color: var(--theme-accent-dark);
}

.wc-theme .mobile-app-nav-plus {
    border-radius: 9px;
    color: #fff;
    background: var(--theme-accent);
    box-shadow: 0 4px 0 var(--theme-accent-dark);
}

@media (max-width: 991.98px) {
    .wc-theme .mobile-guest-entry {
        min-height: 72px;
        margin: 4px 0 10px;
        padding: 12px 13px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 11px;
        border: 1px solid var(--theme-line-strong);
        border-radius: 12px;
        color: var(--theme-ink);
        background: var(--theme-surface-soft);
        text-decoration: none;
        transition: border-color .18s ease, background-color .18s ease;
    }

    .wc-theme .mobile-guest-entry:hover,
    .wc-theme .mobile-guest-entry:focus-visible {
        border-color: var(--theme-mint);
        color: var(--theme-ink);
        background: var(--theme-mint-soft);
    }

    .wc-theme .mobile-guest-entry:focus-visible {
        outline: 3px solid rgba(47, 142, 130, .2);
        outline-offset: 2px;
    }

    .wc-theme .mobile-guest-entry-icon {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        color: var(--theme-mint);
        background: var(--theme-mint-soft);
        font-size: 17px;
    }

    .wc-theme .mobile-guest-entry-copy {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .wc-theme .mobile-guest-entry-copy strong {
        color: var(--theme-ink);
        font-size: 14px;
        font-weight: 850;
    }

    .wc-theme .mobile-guest-entry-copy small {
        color: var(--theme-muted);
        font-size: 11.5px;
        font-weight: 600;
    }

    .wc-theme .mobile-guest-entry-arrow {
        color: var(--theme-muted);
        font-size: 11px;
    }

    .wc-theme:not(.wc-admin-theme):not(.wc-business-theme) {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .wc-theme:not(.wc-admin-theme):not(.wc-business-theme) .wc-desktop-header,
    .wc-theme .wc-desktop-header .container {
        min-height: 60px;
    }

    .wc-theme:not(.wc-admin-theme):not(.wc-business-theme) .wc-desktop-header {
        overflow: visible;
        z-index: 1090;
    }

    .wc-theme .wc-desktop-header > .container > .navbar-brand {
        top: 50%;
        padding: 0;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .wc-theme .wc-desktop-header .site-logo {
        height: 49px;
        display: block;
    }

    .wc-theme.page-home .hero {
        padding: 42px 0 48px;
    }
}

@media (max-width: 767.98px) {
    .wc-theme.page-home .hero-title {
        font-size: clamp(2rem, 10vw, 3.05rem);
        line-height: 1.04;
    }

    .wc-theme.page-home .hero-sub {
        font-size: .95rem;
    }

    .wc-theme.page-home .hs-bar {
        min-height: 58px;
        padding: 5px 6px 5px 13px;
        box-shadow: 0 8px 0 rgba(7, 28, 34, .38);
    }

    .wc-theme.page-home .hs-btn {
        width: 46px;
        height: 46px;
    }

    .wc-theme .site-footer {
        margin-top: 2.5rem;
        padding-top: 2.2rem;
    }

    .wc-theme .site-footer .footer-seo {
        padding: 18px;
    }
}
