/* Cigar HTML template adaptation for uParts front store. */
:root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --surface-2: #f7f7f7;
    --text: #444444;
    --muted: #666666;
    --border: #dddddd;
    --primary: #2971f5;
    --primary-dark: #444444;
    --success: #44a857;
    --danger: #dc4444;
    --warning: #ffe11b;
    --dark: #242424;
    --radius: 0;
    --shadow: none;
    --container: 1140px;
}

[data-theme="dark"] {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --surface-2: #f7f7f7;
    --text: #444444;
    --muted: #666666;
    --border: #dddddd;
    --primary: #2971f5;
    --primary-dark: #444444;
    --dark: #242424;
    --shadow: none;
}

html,
body {
    background: var(--bg);
}

body {
    color: var(--muted);
    font-family: Rubik, Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 24px;
}

a,
button,
input,
select,
textarea {
    color: var(--text);
}

a,
.btn-primary,
.btn-secondary,
.header-pill,
.product-card,
.category-card,
.brand-card,
.selection-tile,
.offer-row {
    transition: all .3s ease-out;
}

a:hover {
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: var(--container);
    padding-right: 15px;
    padding-left: 15px;
}

.page-shell {
    min-height: 60vh;
}

.card,
.list-card,
.product-card,
.category-card,
.brand-card,
.selection-tile,
.action-tile,
.empty-state,
.search-panel,
.summary-card,
.product-gallery,
.card-buy,
.card-heavy,
.checkout-form,
.auth-card,
.details-card,
.product-brand-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
}

.site-header {
    position: relative;
    z-index: 30;
    background: var(--surface);
    border: 0;
    backdrop-filter: none;
}

[data-theme="dark"] .site-header {
    background: var(--surface);
}

.header_top {
    background: #f7f7f7;
    border: 0;
}

.topbar-inner {
    min-height: 49px;
    font-size: 14px;
}

.topbar-copy,
.topbar-links {
    gap: 18px;
}

.topbar-copy strong,
.topbar-copy span,
.topbar-links a {
    color: var(--text);
    font-weight: 400;
}

.topbar-links a:hover {
    color: var(--primary);
}

.header_middel {
    background: var(--surface);
}

.header-main {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    min-height: 102px;
    padding: 18px 15px;
}

.header-main .logo {
    min-width: 0;
}

.logo-image {
    width: 214px;
    max-width: 100%;
    height: auto;
}

.search_bar {
    min-width: 0;
}

.header-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 50px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 0;
    box-shadow: none;
}

.header-search input {
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--text);
}

.header-search button {
    min-height: 50px;
    height: 50px;
    padding: 0 26px;
    border-radius: 0;
    background: var(--primary);
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
}

.header-search button:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid #ebebeb;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

.header-pill:first-child {
    border-left: 0;
}

.header-pill:hover {
    color: var(--primary);
}

.header-pill--accent {
    background: var(--primary);
    color: #ffffff;
    margin-left: 12px;
    padding: 0 18px;
}

.header-pill--accent:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.burger {
    display: none;
    border-radius: 0;
    border-color: var(--border);
}

.navline {
    position: sticky;
    top: 0;
    z-index: 25;
    background: var(--surface);
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

.navline-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: stretch;
    min-height: 52px;
}

.categories_menu {
    position: relative;
}

.categories_title {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 52px;
    padding: 0 18px;
    background: var(--primary);
    color: #ffffff;
}

.categories_title:hover {
    color: #ffffff;
    background: var(--primary-dark);
}

.categories_title h2 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 52px;
    text-transform: uppercase;
}

.categories_title::before {
    content: "";
    display: inline-block;
    width: 21px;
    height: 14px;
    margin-right: 14px;
    background: linear-gradient(#fff, #fff) 0 0 / 21px 2px no-repeat,
        linear-gradient(#fff, #fff) 0 6px / 21px 2px no-repeat,
        linear-gradient(#fff, #fff) 0 12px / 21px 2px no-repeat;
}

.categories_title::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg) translateY(-2px);
}

.navline-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-height: 52px;
    padding-left: 22px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.navline-inner a {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 14px;
    color: var(--text);
}

.navline-inner a:hover {
    color: var(--primary);
}

.flash {
    margin: 0;
    border-radius: 0;
}

.hero-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    padding-top: 35px;
}

.hero-copy {
    min-height: 390px;
    padding: 55px 52px;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 0;
    box-shadow: none;
}

.hero-copy h1 {
    max-width: 12ch;
    margin-bottom: 18px;
    color: var(--text);
    font-size: clamp(2.4rem, 4.2vw, 4.8rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.02;
}

.hero-text {
    max-width: 58ch;
    color: var(--muted);
    font-size: 16px;
}

.hero-search,
.search-panel,
.oecat-vin-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 0;
    box-shadow: none;
}

.hero-search input,
.search-panel input,
.oecat-vin-form input {
    min-height: 50px;
    padding: 0 16px;
}

.hero-search button,
.search-panel button,
.oecat-vin-form button,
.checkout-form button,
.auth-card button,
.buy-form button,
.btn-primary {
    min-height: 50px;
    padding: 0 24px;
    border-radius: 0;
    background: var(--primary);
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
}

.hero-search button:hover,
.search-panel button:hover,
.oecat-vin-form button:hover,
.checkout-form button:hover,
.auth-card button:hover,
.buy-form button:hover,
.btn-primary:hover {
    background: var(--primary-dark);
}

.quick-links {
    gap: 8px;
}

.quick-chip,
.chip,
.badge,
.btn-secondary {
    border-radius: 0;
    background: #f4f4f4;
    border: 1px solid #ebebeb;
    color: var(--text);
    font-weight: 400;
}

.quick-chip:hover,
.chip:hover,
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-panel {
    padding: 0;
    border: 0;
    background: transparent;
}

.hero-auto-widget {
    gap: 0;
    border: 1px solid #ebebeb;
    background: #ffffff;
}

.hero-auto-widget__catalog {
    min-height: 70px;
    padding: 0 22px;
    border-radius: 0;
    background: var(--primary);
    box-shadow: none;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
}

.hero-auto-widget__catalog:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.hero-auto-widget__steps {
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

.hero-auto-step {
    min-height: 58px;
    border-bottom: 1px solid #ebebeb;
    background: #ffffff;
    color: var(--text);
    font-weight: 400;
}

.hero-auto-step:hover {
    background: #f7f7f7;
}

.hero-auto-step.is-disabled {
    background: #ffffff;
    color: #999999;
}

.section {
    padding: 35px 0 45px;
}

.section-head {
    margin-bottom: 22px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 12px;
}

.section-head h1,
.section-head h2 {
    color: var(--text);
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0;
}

.cards-grid,
.product-grid,
.selection-grid,
.dashboard-grid,
.details-grid {
    gap: 30px;
}

.cards-grid--categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid--brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card,
.brand-card,
.selection-tile {
    min-height: 132px;
    padding: 22px;
}

.category-card:hover,
.brand-card:hover,
.selection-tile:hover {
    border-color: var(--primary);
    transform: none;
}

.category-card__icon,
.brand-card__logo,
.brand-logo,
.search-brand-card__logo {
    width: 62px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 0;
    background: #ffffff;
    border: 1px solid #ebebeb;
    color: var(--primary);
}

.category-card__icon {
    font-size: 0;
}

.category-card__icon::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    border: 3px solid currentColor;
}

.category-card strong,
.brand-card strong,
.selection-tile strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.category-card span,
.brand-card span,
.selection-tile span {
    color: var(--muted);
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.product-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.product-card__media {
    height: 260px;
    margin: 0;
    border: 1px solid #ebebeb;
    border-bottom: 0;
    border-radius: 0;
    background: #ffffff;
}

.product-card__media img {
    padding: 20px;
}

.product-card__head,
.product-card > strong,
.product-card > span.muted {
    background: #ffffff;
    border-right: 1px solid #ebebeb;
    border-left: 1px solid #ebebeb;
}

.product-card__head {
    margin: 0;
    padding: 18px 18px 8px;
}

.product-card .badge {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.product-card .product-card__head .muted {
    color: #999999;
    font-size: 14px;
}

.product-card > strong {
    padding: 0 18px 6px;
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
}

.product-card > span.muted {
    padding: 0 18px 18px;
    border-bottom: 1px solid #ebebeb;
    color: var(--muted);
    font-size: 15px;
}

.product-card:hover .product-card__media,
.product-card:hover .product-card__head,
.product-card:hover > strong,
.product-card:hover > span.muted {
    border-color: var(--primary);
}

.product-card:hover > strong {
    color: var(--primary);
}

.breadcrumbs {
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--text);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.product-hero {
    grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
    gap: 30px;
}

.product-gallery,
.product-brand-card,
.details-card,
.card-heavy,
.checkout-form,
.auth-card,
.summary-card {
    padding: 24px;
}

.product-gallery h1 {
    color: var(--text);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.25;
}

.gallery-main {
    max-height: 470px;
    border-radius: 0;
    background: #ffffff;
    border-color: #ebebeb;
}

.thumb,
.gallery-nav {
    border-radius: 0;
}

.thumb.is-active {
    border-color: var(--primary);
    box-shadow: none;
}

.details-card__head {
    border-bottom-color: #dddddd;
}

.details-card__head h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

.details-card__head span {
    border-radius: 0;
    background: #f4f4f4;
}

.details-feature-list li a,
.fitment-mark,
.fitment-model,
.oem-list a,
.product-compliance-note,
.company-info-card > div,
.rules-grid > div,
.pickup-box,
.pickup-card,
.delivery-box,
.manager-checkout-note {
    border-radius: 0;
}

.details-feature-list strong,
.feature-list a,
.simple-list a,
.fitment-mark h4,
.offer-product-group__link:hover {
    color: var(--primary);
}

.product-brand-card__head {
    border-bottom: 1px solid #dddddd;
    padding-bottom: 18px;
}

.brand-logo--large {
    width: 86px;
    height: 72px;
}

.brand-info-list > div {
    border-top-color: #dddddd;
}

.card-heavy--wide {
    margin-top: 30px;
}

.skeleton-block {
    border-radius: 0;
}

.offer-matrix {
    gap: 18px;
}

.offer-group__title {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.offer-product-group {
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.offer-product-group__head {
    padding: 14px 16px;
    border-bottom: 1px solid #dddddd;
}

.offer-product-group__head strong,
.offer-product-group__link {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
}

.offer-count,
.offer-unavailable {
    border-radius: 0;
    background: #f4f4f4;
}

.offer-row--compact {
    grid-template-columns: 72px minmax(0, 1fr) minmax(126px, 160px) minmax(120px, 150px);
    border-top-color: #ebebeb;
    background: #ffffff;
}

.offer-product-group > .offer-row--compact:first-of-type,
.offer-more__body > .offer-row--compact:first-child {
    background: #f7fbff;
}

.offer-row__media {
    border-radius: 0;
}

.offer-row__main-title strong {
    color: var(--text);
    font-weight: 500;
}

.offer-diag-icon {
    background: var(--primary);
}

.offer-tooltip {
    border-radius: 0;
    background: var(--dark);
}

.btn-buy-row {
    border-radius: 0;
    background: var(--primary);
    color: #ffffff;
}

.btn-buy-row:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.offer-more summary {
    background: #ffffff;
    color: var(--muted);
}

.search-panel--with-brand {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 260px) auto;
}

.search-brand-card {
    border-radius: 0;
}

.search-brand-card:hover {
    border-color: var(--primary);
    transform: none;
}

.list-card {
    overflow: hidden;
}

.list-row {
    background: #ffffff;
}

.checkout-layout {
    gap: 30px;
}

.summary-total {
    color: var(--text);
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.auth-card input,
.buy-form input,
.garage-form select {
    border-radius: 0;
    background: #ffffff;
}

.site-footer {
    margin-top: 45px;
    background: #ffffff;
    color: var(--muted);
}

.footer_top {
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    padding: 38px 0 33px;
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 0 15px;
}

.footer_logo {
    margin-bottom: 22px;
}

.footer_logo img {
    width: 220px;
    max-width: 100%;
}

.single_footer h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
}

.footer-links {
    gap: 0;
}

.footer-links a {
    color: var(--muted);
    font-size: 15px;
    line-height: 36px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-company-line {
    color: var(--text);
}

.footer_bottom {
    padding: 26px 0 30px;
    text-align: center;
}

.footer-copy {
    padding: 0 15px;
    border-top: 0;
    color: var(--muted);
}

@media (max-width: 1279px) {
    .container {
        max-width: 960px;
    }

    .header-main {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .header-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .navline-shell {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .hero-home,
    .product-hero,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cards-grid--categories,
    .cards-grid--brands,
    .selection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .container {
        max-width: 720px;
    }

    .header-main {
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-areas:
            "burger logo"
            "search search"
            "actions actions";
        gap: 14px;
        min-height: auto;
    }

    .burger {
        display: block;
        grid-area: burger;
    }

    .logo {
        grid-area: logo;
    }

    .search_bar {
        grid-area: search;
    }

    .header-actions {
        display: flex;
        grid-area: actions;
        justify-content: flex-start;
    }

    .navline {
        display: none;
        position: static;
    }

    .navline.is-open {
        display: block;
    }

    .navline-shell {
        grid-template-columns: 1fr;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navline-inner {
        display: grid;
        padding-left: 0;
    }

    .navline-inner a {
        min-height: 42px;
        border-bottom: 1px solid #ebebeb;
        padding: 0 16px;
    }

    .cards-grid--categories,
    .cards-grid--brands,
    .product-grid,
    .selection-grid,
    .dashboard-grid,
    .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        width: 100%;
    }

    .topbar {
        display: none;
    }

    .header-main {
        padding: 12px 15px;
    }

    .site-header .header-main {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 12px 15px;
    }

    .site-header .header-search {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .logo-image {
        width: 150px;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .header-pill {
        justify-content: center;
        min-height: 40px;
        padding: 0 8px;
        font-size: 13px;
    }

    .header-pill--accent {
        margin-left: 0;
    }

    .header-search,
    .hero-search,
    .search-panel,
    .search-panel--with-brand {
        grid-template-columns: 1fr;
    }

    .header-search button,
    .hero-search button,
    .search-panel button {
        width: 100%;
    }

    .hero-home {
        gap: 20px;
        padding-top: 20px;
    }

    .hero-copy {
        min-height: 0;
        padding: 28px 22px;
    }

    .quick-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-chip {
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: 2.15rem;
    }

    .section {
        padding: 28px 0 36px;
    }

    .cards-grid--categories,
    .cards-grid--brands,
    .product-grid,
    .selection-grid,
    .dashboard-grid,
    .details-grid,
    .auth-forms,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-card__media {
        height: 220px;
    }

    .product-gallery,
    .product-brand-card,
    .details-card,
    .card-heavy,
    .checkout-form,
    .auth-card,
    .summary-card {
        padding: 18px;
    }

    .offer-row--compact {
        grid-template-columns: 1fr;
        grid-template-areas:
            "diag"
            "main"
            "meta"
            "price"
            "action";
    }

    .offer-row__media {
        width: 100%;
        height: 52px;
    }
}
