/* =====================================================
   BASE
   ===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #101827;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}


/* =====================================================
   HEADER
   ===================================================== */

.topbar {
    height: 72px;
    background: #0d1520;
    color: #fff;

    display: flex;
    align-items: center;

    gap: 28px;
    padding: 0 32px;
}


/* LOGO */

.logo {
    width: 220px;

    display: flex;
    flex-wrap: wrap;
    align-items: baseline;

    font-weight: 800;
    font-size: 24px;
    letter-spacing: -1px;
}

.logo span {
    color: #fff;
}

.logo b {
    color: #0878ff;
}

.logo small {
    width: 100%;

    font-size: 8px;
    letter-spacing: 4px;

    color: #b7c1ce;

    margin-top: 2px;
}


/* =====================================================
   GLOBAL SEARCH
   ===================================================== */

.search {
    position: relative;

    height: 44px;

    display: flex;
    flex: 1;

    max-width: 660px;

    background: #fff;

    border-radius: 7px;

    /*
     * ВАЖНО:
     * overflow:hidden здесь нельзя использовать,
     * иначе выпадающий список поиска будет обрезан.
     */
    overflow: visible;
}

.search > span {
    color: #607086;

    padding: 11px 12px;

    font-size: 20px;

    flex-shrink: 0;
}

.search input {
    border: 0;
    outline: 0;

    flex: 1;

    min-width: 0;

    color: #334155;
}

.search button {
    border: 0;

    background: #0878ff;
    color: #fff;

    padding: 0 30px;

    font-weight: 700;

    border-radius: 0 7px 7px 0;

    cursor: pointer;
}


/* SEARCH RESULTS */

.search-results {
    display: none;

    position: absolute;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    background: #fff;

    border: 1px solid #dfe5ec;
    border-radius: 8px;

    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);

    overflow: hidden;

    z-index: 1000;

    color: #101827;
}

.search-results.open {
    display: block;
}

.search-result {
    display: block;

    padding: 12px 15px;

    border-bottom: 1px solid #edf0f4;

    cursor: pointer;

    transition: background .15s ease;
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result:hover {
    background: #f5f8fc;
}

.search-result-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.search-result-sku {
    color: #0878ff;

    font-size: 13px;
    font-weight: 800;
}

.search-result-price {
    white-space: nowrap;

    font-size: 13px;
    font-weight: 800;
}

.search-result-name {
    margin-top: 4px;

    font-size: 14px;
    font-weight: 700;

    color: #172033;
}

.search-result-meta {
    margin-top: 5px;

    color: #718096;

    font-size: 12px;
}

.search-result-stock {
    color: #16834b;

    font-weight: 700;
}

.search-result-empty {
    padding: 18px;

    text-align: center;

    color: #718096;

    font-size: 13px;
}

.search-result-loading {
    padding: 15px;

    text-align: center;

    color: #718096;

    font-size: 13px;
}


/* =====================================================
   HEADER ACTIONS
   ===================================================== */

.head-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 24px;

    font-size: 13px;
}

.head-actions small {
    font-size: 10px;
    color: #9eabba;
}

.cart {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart i {
    background: #0878ff;

    border-radius: 12px;

    padding: 2px 6px;

    font-style: normal;
    font-size: 10px;
}


/* =====================================================
   NAVIGATION
   ===================================================== */

.nav {
    height: 44px;

    border-bottom: 1px solid #e6eaf0;

    display: flex;
    align-items: center;

    gap: 38px;

    padding: 0 32px;

    font-size: 14px;
}

.nav-right {
    margin-left: auto;
    color: #607086;
}


/* =====================================================
   HERO
   ===================================================== */

.hero {
    min-height: 390px;

    background:
        linear-gradient(
            90deg,
            #09111b 0%,
            #0b1520 46%,
            #14212e 100%
        );

    color: #fff;

    display: flex;
    align-items: center;

    padding: 48px 64px;

    position: relative;

    overflow: hidden;
}

.hero:after {
    content: "";

    position: absolute;

    right: -5%;
    top: -20%;

    width: 60%;
    height: 140%;

    background:
        radial-gradient(
            ellipse at center,
            #2b3b4c55 0,
            #101b27 55%,
            transparent 70%
        );
}

.hero h1 {
    font-size: 52px;
    line-height: 1.03;

    margin: 0 0 18px;

    position: relative;
    z-index: 1;
}

.hero h1 em {
    font-style: normal;
    color: #0878ff;
}

.hero p {
    font-size: 18px;
    line-height: 1.5;

    color: #c5cfdb;

    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 14px;

    margin: 28px 0;

    position: relative;
    z-index: 1;
}

.primary,
.secondary {
    padding: 15px 22px;

    border-radius: 7px;

    font-weight: 700;
}

.primary {
    background: #0878ff;
}

.secondary {
    border: 1px solid #fff;
}

.hero-features {
    display: flex;
    gap: 38px;

    color: #d3dbe4;

    font-size: 13px;

    position: relative;
    z-index: 1;
}

.hero-note {
    margin-left: auto;

    position: relative;
    z-index: 1;

    color: #c6d0db;

    font-size: 14px;

    text-align: right;
}


/* =====================================================
   SECTIONS
   ===================================================== */

.section {
    padding: 32px 40px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section h2 {
    margin: 0 0 20px;

    font-size: 24px;
}

.section-head a {
    color: #0878ff;
    font-weight: 700;
}


/* =====================================================
   BRANDS
   ===================================================== */

.brand-grid {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 12px;
}

.brand-grid a {
    min-height: 112px;

    border: 1px solid #e3e8ef;
    border-radius: 8px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 10px;

    background: #fff;
}

.brand-grid strong {
    font-size: 21px;
}

.brand-grid span {
    font-size: 13px;
}

.brand-grid .all {
    background: #f7f9fc;
}


/* =====================================================
   SERVICES
   ===================================================== */

.services {
    display: grid;

    grid-template-columns: 1.2fr 1fr 1fr;

    gap: 14px;
}

.service {
    border: 1px solid #e4e8ee;
    border-radius: 8px;

    min-height: 160px;

    padding: 24px;

    display: flex;
    justify-content: space-between;
}

.service.dark {
    background: #101a25;
    color: #fff;
}

.service h3 {
    font-size: 21px;

    margin: 0 0 10px;
}

.service p {
    color: #69778a;

    line-height: 1.45;
}

.service.dark p {
    color: #c6d0db;
}

.service a {
    display: inline-block;

    border: 1px solid currentColor;

    border-radius: 6px;

    padding: 9px 13px;

    margin-top: 8px;
}


/* =====================================================
   TRUST
   ===================================================== */

.trust {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1px;

    background: #e5e9ef;

    padding-top: 0;
    padding-bottom: 0;
}

.trust div {
    background: #f8fafc;

    padding: 20px;
}

.trust b,
.trust span {
    display: block;
}

.trust span {
    color: #6b7788;

    font-size: 13px;

    margin-top: 5px;
}


/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: #0d1520;
    color: #fff;

    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    gap: 50px;

    padding: 38px 40px;
}

.foot-logo {
    font-size: 26px;
    font-weight: 800;
}

.foot-logo span {
    color: #0878ff;
}

.foot-logo small {
    display: block;

    font-size: 8px;
    letter-spacing: 4px;

    color: #9ca8b6;

    margin-top: 5px;
}

.foot-logo ~ div {
    display: flex;
    flex-direction: column;

    gap: 8px;

    color: #aeb8c4;
}

.foot-logo ~ div b {
    color: #fff;

    margin-bottom: 3px;
}


/* =====================================================
   CATALOG LAYOUT
   ===================================================== */

.catalog-layout {
    display: grid;

    grid-template-columns: 292px 1fr;

    min-height: calc(100vh - 116px);
}

.sidebar {
    border-right: 1px solid #e2e7ed;

    padding: 18px;
}

.side-search {
    height: 40px;

    border: 1px solid #dce3eb;
    border-radius: 7px;

    display: flex;
    align-items: center;

    padding: 0 10px;

    color: #6e7b8d;
}

.side-search input {
    border: 0;
    outline: 0;

    width: 100%;

    padding-left: 7px;
}

.tree {
    margin-top: 14px;
}

.tree-brand {
    margin-bottom: 4px;
}

.tree-brand > .tree-toggle {
    border: 0;
    background: none;

    width: 28px;

    cursor: pointer;
}

.brand-name {
    font-weight: 800;
    font-size: 14px;
}

.tree-brand.open {
    background: #f7f9fc;

    border-radius: 7px;

    padding: 4px;
}

.models {
    padding: 4px 0 7px 36px;

    display: flex;
    flex-direction: column;
}

.models a {
    padding: 7px 9px;

    border-radius: 5px;

    font-size: 14px;
}

.models a.active {
    background: #e5f0ff;

    color: #0878ff;

    font-weight: 700;
}


/* =====================================================
   CATALOG MAIN
   ===================================================== */

.catalog-main {
    padding: 20px 22px;

    overflow: auto;
}

.crumbs {
    color: #748197;

    font-size: 13px;

    margin-bottom: 12px;
}

.model-head {
    min-height: 110px;

    background: #f1f5f9;

    border-radius: 9px;

    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.model-head h1 {
    font-size: 34px;

    margin: 0 0 5px;
}

.model-head p {
    margin: 0;

    color: #68768a;
}

.model-banner {
    font-size: 30px;
    font-weight: 800;

    display: flex;

    gap: 22px;

    padding-right: 35px;
}

.model-banner strong {
    font-size: 36px;
}


/* =====================================================
   YEAR TABS
   ===================================================== */

.year-tabs {
    display: flex;

    gap: 8px;

    margin: 14px 0;
}

.year-tab {
    padding: 10px 18px;

    border: 1px solid #dce3eb;

    border-radius: 6px;

    color: #516074;
}

.year-tab.active {
    border-color: #0878ff;

    color: #0878ff;

    background: #f5f9ff;
}


/* =====================================================
   FILTERS
   ===================================================== */

.filters {
    display: flex;

    gap: 10px;

    margin-bottom: 12px;
}

.filters select {
    border: 1px solid #dce3eb;

    border-radius: 6px;

    padding: 9px 14px;

    background: #fff;

    color: #516074;
}

.filters a {
    margin-left: auto;

    color: #0878ff;

    padding: 10px;
}


/* =====================================================
   PRODUCT TABLE
   ===================================================== */

.table-wrap {
    border: 1px solid #dfe5ec;

    border-radius: 8px;

    overflow: hidden;
}

.table-head,
.product-row {
    display: grid;

    /*
     * 9 колонок:
     * Фото | Артикул | Наименование | Применяемость |
     * Склады | Остаток | Цена от | Кол-во | Корзина
     */
    grid-template-columns:
        62px
        190px
        minmax(260px, 1.25fr)
        minmax(150px, 0.8fr)
        120px
        90px
        110px
        100px
        52px;

    align-items: center;
}
.product-row > span,
.product-row > strong {
    min-width: 0;
    overflow: hidden;
}
.product-row .sku {
    min-width: 0;
    color: #0878ff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-row .pname {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-head {
    background: #f7f9fb;

    color: #647286;

    font-size: 12px;

    padding: 10px;
}

.product-row {
    min-height: 60px;

    border-top: 1px solid #edf0f4;

    padding: 0 10px;

    font-size: 13px;

    /*
     * Чередование строк.
     * Через одну строка слегка отличается по фону,
     * чтобы длинный список было проще читать.
     */
    background: #fff;

    transition:
        background .12s ease,
        box-shadow .12s ease;
}

/*
 * Фильтры каталога.
 * JS использует атрибут hidden, а grid иначе может
 * продолжать показывать строку.
 */
.product-row[hidden],
.product-group[hidden] {
    display: none !important;
}


/*
 * Каждая вторая строка немного отличается
 */

.product-group .product-row:nth-of-type(even) {
    background: #f8fafc;
}


/*
 * Наведение мыши.
 * Строка целиком подсвечивается, а не отдельная ячейка.
 */

.product-group .product-row:hover {
    background: #eaf3ff;

    box-shadow:
        inset 3px 0 0 #0878ff;

    position: relative;

    z-index: 2;
}


/*
 * Если строка выбрана/активна,
 * сохраняем заметный фон.
 */

.product-group .product-row:hover .sku {
    color: #006bea;
}

.pname {
    min-width: 0;
    color: #202733;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-row .fit {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #3f4d60;
}


.product-row > span,
.product-row > strong {
    padding: 0 5px;
}


/* PRODUCT CONTROLS */

.row-arrow,
.photo-link,
.warehouses,
.add-cart {
    border: 0;

    background: none;

    cursor: pointer;
}

.photo-link,
.warehouses {
    color: #0878ff;
}

.add-cart {
    background: #0878ff;

    color: #fff;

    border-radius: 5px;

    height: 34px;
    width: 40px;
}


/* =====================================================
   QUANTITY
   ===================================================== */

.qty {
    display: flex;

    height: 32px;
}

.qty button {
    width: 28px;

    border: 1px solid #dbe2ea;

    background: #fff;

    cursor: pointer;
}

.qty input {
    width: 38px;

    border: 1px solid #dbe2ea;

    border-left: 0;
    border-right: 0;

    text-align: center;

    outline: 0;
}


/* =====================================================
   PRODUCT GROUP
   ===================================================== */

.group-title {
    background: #f7f9fb;

    padding: 10px 12px;

    display: flex;

    gap: 9px;

    align-items: center;

    border-top: 1px solid #e5e9ef;
}

.group-title span {
    color: #0878ff;
}

.group-title small {
    color: #7b8797;
}


/* =====================================================
   WAREHOUSE PANEL
   ===================================================== */

.warehouse-panel {
    display: none;

    background: #fbfcfe;

    padding: 12px 70px;

    border-top: 1px solid #edf0f4;
}

.warehouse-panel.open {
    display: block;
}

.warehouse-grid {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr 1fr;

    gap: 7px;

    align-items: center;

    max-width: 700px;
}

.warehouse-grid > * {
    padding: 4px;
}

.add-selected {
    margin-top: 12px;

    background: #0878ff;

    border: 0;

    color: #fff;

    padding: 10px 16px;

    border-radius: 6px;

    cursor: pointer;
}


/* =====================================================
   GALLERY
   ===================================================== */

.gallery[hidden] {
    display: none;
}

.gallery {
    position: fixed;

    inset: 0;

    z-index: 100;
}

.gallery-backdrop {
    position: absolute;

    inset: 0;

    background: #000b;
}

.gallery-box {
    position: relative;

    width: min(700px, 90vw);

    margin: 10vh auto;

    background: #fff;

    border-radius: 10px;

    padding: 30px;
}

.gallery-close {
    position: absolute;

    right: 15px;
    top: 10px;

    border: 0;

    background: none;

    font-size: 30px;

    cursor: pointer;
}

.gallery-placeholder {
    height: 380px;

    background: #f1f4f8;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #7c8796;
}

.gallery-info {
    text-align: center;

    padding-top: 12px;

    color: #69778a;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .topbar {
        padding: 0 16px;
    }

    .logo {
        width: 180px;
    }

    .head-actions {
        gap: 10px;
    }

    .catalog-layout {
        grid-template-columns: 230px 1fr;
    }

    .table-head,
    .product-row {
        grid-template-columns:
            55px
            165px
            minmax(220px, 1.2fr)
            minmax(145px, 0.85fr)
            105px
            80px
            90px
            100px
            45px;
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        padding: 40px 30px;
    }

    .hero h1 {
        font-size: 42px;
    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 720px) {

    .topbar {
        height: auto;

        flex-wrap: wrap;

        padding: 12px;
    }

    .logo {
        width: auto;
    }

    .search {
        order: 3;

        max-width: none;

        flex-basis: 100%;
    }

    .search-results {
        max-height: 60vh;

        overflow-y: auto;
    }

    .nav {
        gap: 14px;

        overflow: auto;
    }

    .catalog-layout {
        display: block;
    }

    .sidebar {
        border-right: 0;

        border-bottom: 1px solid #e2e7ed;
    }

    .hero {
        min-height: 0;
    }

    .hero-note {
        display: none;
    }

    .hero-features {
        flex-direction: column;

        gap: 10px;
    }

    .services,
    .trust,
    footer {
        grid-template-columns: 1fr;
    }

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

    .catalog-main {
        padding: 12px;
    }

    .table-wrap {
        overflow: auto;
    }

    .table-head,
    .product-row {
        min-width: 1000px;
    }

    .model-banner {
        display: none;
    }

}

/* =====================================================
   SEARCH PAGE
   ===================================================== */

.search-page {
    max-width: 1400px;

    margin: 0 auto;

    padding: 24px 32px 50px;
}

.search-page-head {
    margin-bottom: 22px;
}

.search-page-head h1 {
    margin: 0 0 8px;

    font-size: 32px;
}

.search-query {
    margin: 0;

    color: #718096;
}

.search-query strong {
    color: #101827;
}

.search-count {
    margin-bottom: 10px;

    color: #718096;

    font-size: 13px;
}


/* SEARCH LIST */

.search-list {
    border: 1px solid #dfe5ec;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;
}

.search-page-item {
    min-height: 92px;

    display: grid;

    grid-template-columns:
        72px
        minmax(250px, 1fr)
        130px
        150px;

    gap: 18px;

    align-items: center;

    padding: 12px 18px;

    border-bottom: 1px solid #edf0f4;

    transition: background .15s ease;
}

.search-page-item:last-child {
    border-bottom: 0;
}

.search-page-item:hover {
    background: #f7faff;
}


/* PHOTO */

.search-page-photo {
    width: 62px;
    height: 62px;

    border-radius: 6px;

    background: #f1f4f8;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #8a96a6;

    font-size: 11px;
}


/* INFO */

.search-page-sku {
    color: #0878ff;

    font-size: 13px;

    font-weight: 800;

    margin-bottom: 4px;
}

.search-page-name {
    font-size: 15px;

    font-weight: 700;
}

.search-page-meta {
    margin-top: 6px;

    color: #718096;

    font-size: 12px;
}


/* STOCK */

.search-page-stock {
    display: flex;

    flex-direction: column;

    gap: 3px;

    font-size: 13px;
}

.search-page-stock small {
    color: #718096;
}

.stock-ok {
    color: #16834b;
}

.stock-none {
    color: #9a5b00;
}


/* PRICE */

.search-page-price {
    display: flex;

    align-items: baseline;

    justify-content: flex-end;

    gap: 5px;

    white-space: nowrap;
}

.search-page-price small {
    color: #718096;
}

.search-page-price strong {
    font-size: 17px;
}


/* EMPTY */

.search-empty-page {
    min-height: 300px;

    border: 1px solid #dfe5ec;

    border-radius: 8px;

    background: #f8fafc;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px;
}

.search-empty-icon {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    background: #e9eef5;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 26px;

    color: #718096;

    margin-bottom: 15px;
}

.search-empty-page h2 {
    margin: 0 0 8px;

    font-size: 20px;
}

.search-empty-page p {
    margin: 0;

    color: #718096;
}


/* MOBILE */

@media (max-width: 720px) {

    .search-page {
        padding: 18px 12px 40px;
    }

    .search-page-head h1 {
        font-size: 26px;
    }

    .search-page-item {
        grid-template-columns: 62px 1fr;

        gap: 12px;

        padding: 12px;
    }

    .search-page-stock,
    .search-page-price {
        grid-column: 2;
    }

    .search-page-price {
        justify-content: flex-start;
    }

}

/* =====================================================
   PRODUCT PAGE
   ===================================================== */

.product-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px 50px;
}


/* BREADCRUMBS */

.product-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 18px;

    color: #718096;
    font-size: 13px;
}

.product-breadcrumbs a:hover {
    color: #0878ff;
}

.product-breadcrumbs strong {
    color: #101827;
}


/* MAIN CARD */

.product-card {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(380px, 1fr);

    gap: 45px;

    border: 1px solid #dfe5ec;
    border-radius: 10px;

    padding: 30px;

    background: #fff;
}


/* GALLERY */

.product-gallery {
    min-width: 0;
}

.product-main-photo {
    width: 100%;
    height: 430px;

    border-radius: 8px;

    background: #f7f9fb;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-main-photo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.product-main-placeholder {
    width: 100%;
    height: 430px;

    border-radius: 8px;

    background: #f1f4f8;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8995a5;
}

.product-thumbs {
    display: flex;
    gap: 8px;

    margin-top: 12px;

    overflow-x: auto;
}

.product-thumb {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    padding: 3px;

    border: 1px solid #dfe5ec;
    border-radius: 6px;

    background: #fff;

    cursor: pointer;

    overflow: hidden;
}

.product-thumb.active {
    border-color: #0878ff;
}

.product-thumb img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* INFO */

.product-info {
    padding: 8px 5px;
}

.product-brand-model {
    color: #0878ff;

    font-size: 14px;
    font-weight: 800;

    margin-bottom: 10px;
}

.product-brand-model span {
    color: #9aa5b3;

    margin: 0 4px;
}

.product-info h1 {
    margin: 0 0 12px;

    font-size: 34px;
    line-height: 1.15;
}

.product-sku {
    color: #718096;

    font-size: 14px;
}

.product-sku strong {
    color: #101827;

    margin-left: 4px;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 14px;

    padding: 7px 10px;

    background: #f3f6fa;

    border-radius: 5px;

    color: #536174;

    font-size: 12px;
}

.product-separator {
    height: 1px;

    background: #e8ecf1;

    margin: 24px 0;
}

.product-info-block {
    margin-bottom: 23px;
}

.product-label {
    color: #718096;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .4px;

    margin-bottom: 8px;
}

.product-generations {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.product-generations span {
    padding: 8px 12px;

    border: 1px solid #dce3eb;

    border-radius: 6px;

    font-size: 13px;

    color: #334155;
}

.product-fitment {
    font-size: 15px;
    font-weight: 700;
}

.product-muted {
    color: #8995a5;
}

.product-stock-total {
    color: #16834b;

    font-size: 17px;
    font-weight: 800;
}

.product-stock-empty {
    color: #9a5b00;

    font-size: 15px;
    font-weight: 700;
}

.product-start-price {
    display: flex;
    align-items: baseline;
    gap: 8px;

    margin-top: 28px;
}

.product-start-price small {
    color: #718096;

    font-size: 14px;
}

.product-start-price strong {
    font-size: 30px;
}


/* WAREHOUSE SECTION */

.product-stock-section {
    margin-top: 30px;
}

.product-section-title {
    margin-bottom: 14px;
}

.product-section-title h2 {
    margin: 0 0 5px;

    font-size: 23px;
}

.product-section-title p {
    margin: 0;

    color: #718096;

    font-size: 13px;
}


/* WAREHOUSE LIST */

.product-warehouse-list {
    border: 1px solid #dfe5ec;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;
}

.product-warehouse-row {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.5fr)
        130px
        150px
        minmax(250px, 1fr);

    align-items: center;

    gap: 20px;

    min-height: 78px;

    padding: 12px 18px;

    border-bottom: 1px solid #edf0f4;
}

.product-warehouse-row:last-child {
    border-bottom: 0;
}

.product-warehouse-main {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.product-warehouse-main strong {
    font-size: 14px;
}

.product-warehouse-main small {
    color: #718096;

    font-size: 12px;
}

.product-warehouse-stock {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.product-warehouse-stock strong {
    font-size: 14px;
}

.product-warehouse-stock small {
    color: #718096;

    font-size: 11px;
}

.product-warehouse-price strong {
    font-size: 17px;
}

.product-warehouse-cart {
    display: flex;

    justify-content: flex-end;
    align-items: center;

    gap: 10px;
}

.product-qty {
    flex-shrink: 0;
}

.product-add-cart {
    height: 34px;

    border: 0;
    border-radius: 5px;

    padding: 0 17px;

    background: #0878ff;
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.product-add-cart:hover {
    background: #006be8;
}

.product-cart-disabled {
    height: 34px;

    border: 1px solid #dce3eb;

    border-radius: 5px;

    padding: 0 14px;

    background: #f7f9fb;

    color: #8995a5;

    font-size: 12px;
}


/* DETAILS */

.product-details {
    margin-top: 30px;

    border: 1px solid #dfe5ec;

    border-radius: 8px;

    padding: 24px;

    background: #fff;
}

.product-details h2 {
    margin: 0 0 20px;

    font-size: 20px;
}

.product-details-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.product-details-grid div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.product-details-grid span {
    color: #718096;

    font-size: 12px;
}

.product-details-grid strong {
    font-size: 14px;
}


/* EMPTY */

.product-no-warehouse {
    border: 1px solid #dfe5ec;

    border-radius: 8px;

    padding: 30px;

    text-align: center;

    color: #718096;

    background: #f8fafc;
}


/* BACK */

.product-back {
    margin-top: 25px;
}

.product-back a {
    color: #0878ff;

    font-size: 14px;
    font-weight: 700;
}


/* MOBILE */

@media (max-width: 900px) {

    .product-card {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .product-warehouse-row {
        grid-template-columns:
            1fr 120px;
    }

    .product-warehouse-price {
        grid-column: 2;
    }

    .product-warehouse-cart {
        grid-column: 1 / -1;

        justify-content: flex-start;
    }

    .product-details-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 720px) {

    .product-page {
        padding: 16px 12px 40px;
    }

    .product-card {
        padding: 16px;

        border-radius: 8px;
    }

    .product-main-photo,
    .product-main-placeholder {
        height: 300px;
    }

    .product-info h1 {
        font-size: 27px;
    }

    .product-warehouse-row {
        grid-template-columns: 1fr;

        gap: 10px;

        padding: 15px;
    }

    .product-warehouse-price {
        grid-column: auto;
    }

    .product-warehouse-cart {
        grid-column: auto;

        width: 100%;

        justify-content: flex-start;

        flex-wrap: wrap;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
    }

}

.auth-page {
    min-height: 560px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 80px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 36px;
    box-sizing: border-box;
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.auth-header p {
    margin: 0;
    color: #777777;
    font-size: 14px;
}

.auth-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff1f1;
    border: 1px solid #f0caca;
    color: #b42318;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
}

.form-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #ffffff;
    font-size: 15px;
    outline: none;
}

.form-field input:focus {
    border-color: #999999;
}

.auth-submit {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 7px;
    background: #111111;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    background: #292929;
}

.auth-footer {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 14px;
    color: #777777;
}

.auth-footer a {
    color: #111111;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}


@media (max-width: 600px) {

    .auth-page {
        padding: 30px 15px 50px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .auth-header h1 {
        font-size: 26px;
    }

}


/* =====================================================
   ACCOUNT / PERSONAL CABINET
   ===================================================== */

.account-page {
    width: 100%;
    min-height: 560px;
    padding: 34px 32px 60px;
    box-sizing: border-box;
    background: #f7f9fc;
}

.account-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.account-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 22px;
}

.account-overline {
    margin-bottom: 7px;
    color: #7a8797;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.account-head h1 {
    margin: 0;
    color: #101827;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.account-logout {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #d9e0e8;
    border-radius: 6px;
    background: #fff;
    color: #4b5869;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.account-logout:hover {
    border-color: #c4ceda;
    background: #f9fbfd;
    color: #101827;
}


/* ACCOUNT STATUS */

.account-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 16px;
    padding: 18px 20px;
    box-sizing: border-box;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
}

.account-status-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-status-label {
    color: #7b8797;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.account-status-main strong {
    color: #182131;
    font-size: 15px;
}

.account-wholesale-status {
    text-align: right;
}

.account-wholesale-status p {
    margin: 7px 0 0;
    color: #7b8797;
    font-size: 12px;
    line-height: 1.45;
}

.account-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
}

.account-status-badge.pending {
    background: #fff5df;
    color: #996200;
}

.account-status-badge.approved {
    background: #e9f8ef;
    color: #177347;
}

.account-status-badge.rejected {
    background: #fff0f0;
    color: #b42318;
}


/* SECTIONS */

.account-section {
    margin-bottom: 16px;
    padding: 22px 24px;
    box-sizing: border-box;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
}

.account-section-head {
    margin-bottom: 20px;
}

.account-section-head h2 {
    margin: 0 0 6px;
    color: #172131;
    font-size: 19px;
    line-height: 1.3;
}

.account-section-head p {
    margin: 0;
    color: #7b8797;
    font-size: 13px;
    line-height: 1.5;
}


/* DATA GRID */

.account-data-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e5e9ef;
    border-radius: 7px;
    background: #e5e9ef;
}

.account-data-item {
    min-width: 0;
    padding: 15px 16px;
    box-sizing: border-box;
    background: #fff;
}

.account-data-item > span {
    display: block;
    margin-bottom: 6px;
    color: #7b8797;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .25px;
}

.account-data-item > strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #172131;
    font-size: 14px;
    line-height: 1.45;
}

.account-data-wide {
    grid-column: 1 / -1;
}


/* ORDERS */

.account-orders-placeholder {
    margin-bottom: 0;
}

.account-empty {
    min-height: 190px;
    padding: 30px 20px;
    box-sizing: border-box;
    border: 1px dashed #d7dee7;
    border-radius: 7px;
    background: #fafbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.account-empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #eef3f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.account-empty strong {
    margin-bottom: 6px;
    color: #172131;
    font-size: 15px;
}

.account-empty span {
    max-width: 520px;
    color: #7b8797;
    font-size: 13px;
    line-height: 1.5;
}

.account-catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 17px;
    padding: 0 17px;
    border-radius: 6px;
    background: #0878ff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.account-catalog-button:hover {
    background: #006be8;
}


/* ACCOUNT RESPONSIVE */

@media (max-width: 850px) {

    .account-page {
        padding: 25px 18px 45px;
    }

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

}

@media (max-width: 620px) {

    .account-page {
        padding: 18px 12px 35px;
    }

    .account-head {
        display: block;
    }

    .account-head h1 {
        font-size: 27px;
    }

    .account-logout {
        margin-top: 15px;
    }

    .account-status {
        display: block;
    }

    .account-wholesale-status {
        margin-top: 14px;
        text-align: left;
    }

    .account-section {
        padding: 17px 15px;
    }

    .account-data-grid {
        grid-template-columns: 1fr;
    }

    .account-data-wide {
        grid-column: auto;
    }

}
/* =====================================================
   BRAND MODEL LIST
   ===================================================== */

.brand-model-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.brand-model-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 76px;

    padding: 16px 20px;

    border: 1px solid #dfe5ec;
    border-radius: 8px;

    background: #fff;

    color: #101827;

    transition:
        background .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.brand-model-card:hover {
    background: #f7faff;
    border-color: #bcd6f5;

    box-shadow:
        0 5px 16px rgba(15, 23, 42, .07);

    transform: translateY(-1px);
}

.brand-model-card > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.brand-model-card strong {
    font-size: 17px;
    line-height: 1.25;

    color: #172033;
}

.brand-model-card span {
    color: #718096;

    font-size: 12px;
}

.brand-model-card b {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 6px;

    background: #0878ff;
    color: #fff;

    font-size: 18px;
}

.brand-model-card:hover b {
    background: #006be8;
}


/* =====================================================
   BRAND PAGE RESPONSIVE
   ===================================================== */

@media (max-width: 720px) {

    .brand-model-list {
        gap: 8px;
    }

    .brand-model-card {
        min-height: 68px;
        padding: 14px 15px;
    }

    .brand-model-card strong {
        font-size: 15px;
    }

}

/* =====================================================
   CHECKOUT
   ===================================================== */

.checkout-page {
    min-height: 560px;
    padding: 34px 32px 60px;
    background: #f7f9fc;
}

.checkout-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.checkout-head {
    margin-bottom: 22px;
}

.checkout-head h1,
.checkout-title {
    margin: 0 0 7px;
    color: #101827;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.checkout-head p,
.checkout-subtitle {
    margin: 0;
    color: #7b8797;
    font-size: 13px;
    line-height: 1.5;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
    gap: 20px;
    align-items: start;
}

.checkout-main,
.checkout-side {
    min-width: 0;
}

.checkout-card {
    margin-bottom: 16px;
    padding: 22px 24px;
    box-sizing: border-box;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
}

.checkout-card:last-child {
    margin-bottom: 0;
}

.checkout-card h2 {
    margin: 0 0 18px;
    color: #172131;
    font-size: 19px;
    line-height: 1.3;
}

.checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkout-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.checkout-field.full,
.checkout-field-wide {
    grid-column: 1 / -1;
}

.checkout-field label {
    color: #4b5869;
    font-size: 13px;
    font-weight: 700;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    background: #fff;
    color: #172131;
    font-size: 14px;
    outline: none;
}

.checkout-field textarea {
    min-height: 90px;
    resize: vertical;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    border-color: #0878ff;
    box-shadow: 0 0 0 2px rgba(8, 120, 255, .08);
}

.checkout-type-options,
.checkout-delivery-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkout-type-option,
.checkout-delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 15px;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.checkout-type-option:hover,
.checkout-delivery-option:hover {
    border-color: #bcd6f5;
    background: #f7faff;
}

.checkout-type-option input,
.checkout-delivery-option input {
    margin: 3px 0 0;
    flex-shrink: 0;
}

.checkout-type-option strong,
.checkout-delivery-option strong {
    display: block;
    margin-bottom: 3px;
    color: #172131;
    font-size: 14px;
}

.checkout-type-option span,
.checkout-delivery-option span {
    display: block;
    color: #7b8797;
    font-size: 12px;
    line-height: 1.4;
}

.checkout-delivery-fields,
.checkout-pickup-fields {
    margin-top: 16px;
}

.checkout-warning {
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid #ead7a5;
    border-radius: 7px;
    background: #fff8e7;
    color: #76530b;
    font-size: 13px;
    line-height: 1.5;
}

.checkout-error,
.checkout-errors {
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid #efcaca;
    border-radius: 7px;
    background: #fff1f1;
    color: #b42318;
    font-size: 13px;
    line-height: 1.5;
}

.checkout-message,
.checkout-success {
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid #c8e6d4;
    border-radius: 7px;
    background: #effaf3;
    color: #177347;
    font-size: 13px;
    line-height: 1.5;
}

.checkout-summary {
    position: sticky;
    top: 20px;
}

.checkout-summary h2 {
    margin-bottom: 16px;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #edf0f4;
}

.checkout-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.checkout-item-main {
    min-width: 0;
}

.checkout-item-name {
    color: #172131;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.checkout-item-sku,
.checkout-item-meta {
    margin-top: 4px;
    color: #7b8797;
    font-size: 12px;
    line-height: 1.4;
}

.checkout-item-price {
    white-space: nowrap;
    color: #172131;
    font-size: 14px;
    font-weight: 800;
}

.checkout-item-qty {
    margin-top: 4px;
    color: #7b8797;
    font-size: 12px;
}

.checkout-totals {
    margin-top: 16px;
}

.checkout-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    padding: 6px 0;
    color: #657286;
    font-size: 13px;
}

.checkout-total-row strong {
    color: #172131;
    white-space: nowrap;
}

.checkout-total-row.total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #dfe5ec;
    color: #172131;
    font-size: 15px;
    font-weight: 700;
}

.checkout-total-row.total strong {
    font-size: 22px;
}

.checkout-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 0;
    border-radius: 6px;
    background: #0878ff;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.checkout-submit:hover {
    background: #006be8;
}

.checkout-submit:disabled {
    background: #aab6c4;
    cursor: not-allowed;
}

.checkout-empty {
    min-height: 250px;
    padding: 35px 25px;
    border: 1px dashed #d7dee7;
    border-radius: 8px;
    background: #fafbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.checkout-empty h2 {
    margin: 0 0 8px;
}

.checkout-empty p {
    margin: 0;
    color: #7b8797;
    font-size: 13px;
}

.checkout-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 17px;
    padding: 0 17px;
    border-radius: 6px;
    background: #0878ff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.checkout-empty a:hover {
    background: #006be8;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 620px) {
    .checkout-page {
        padding: 20px 12px 40px;
    }

    .checkout-head h1,
    .checkout-title {
        font-size: 27px;
    }

    .checkout-card {
        padding: 17px 15px;
    }

    .checkout-fields,
    .checkout-type-options,
    .checkout-delivery-options {
        grid-template-columns: 1fr;
    }

    .checkout-field.full,
    .checkout-field-wide {
        grid-column: auto;
    }

    .checkout-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .checkout-item-price {
        justify-self: start;
    }
}

.account-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-actions a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-link {
    color: #111;
}

.logout-link {
    color: #888;
}

.logout-link:hover,
.admin-link:hover {
    text-decoration: underline;
}

/* =====================================================
   REGISTRATION
   ===================================================== */

.register-card {
    max-width: 560px;
}

.register-card .auth-header {
    margin-bottom: 28px;
}

.register-card .auth-form {
    gap: 18px;
}

.register-card .form-field {
    width: 100%;
}

.register-card .form-field input,
.register-card .form-field select,
.register-card .form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    color: #172131;
    font-size: 15px;
    outline: none;
}

.register-card .form-field select {
    height: 46px;
    cursor: pointer;
}

.register-card .form-field input:focus,
.register-card .form-field select:focus,
.register-card .form-field textarea:focus {
    border-color: #0878ff;
    box-shadow: 0 0 0 2px rgba(8, 120, 255, .08);
}

/* Тип клиента */

.auth-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 2px;
}

.auth-type-option {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 15px;
    box-sizing: border-box;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.auth-type-option:hover {
    border-color: #bcd6f5;
    background: #f7faff;
}

.auth-type-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #0878ff;
}

.auth-type-option span {
    color: #172131;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

/* Поля оптового клиента */

.wholesale-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wholesale-fields[hidden] {
    display: none !important;
}

.auth-wholesale-note {
    margin-top: -2px;
    padding: 12px 14px;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    background: #f7f9fc;
    color: #657286;
    font-size: 12px;
    line-height: 1.5;
}

/* Обязательное поле / подписи */

.register-card .form-field label {
    color: #172131;
    font-size: 14px;
    font-weight: 700;
}

.register-card .auth-footer {
    margin-top: 24px;
}

@media (max-width: 600px) {
    .register-card {
        max-width: 100%;
    }

    .auth-type-options {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   REGISTRATION — RADIO FIX
   ===================================================== */

.register-card .auth-type-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    min-width: 0;
}

.register-card .auth-type-option input[type="radio"] {
    width: 18px !important;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    flex: 0 0 18px;
    box-sizing: border-box;
    border: 0;
    box-shadow: none;
    accent-color: #0878ff;
}

.register-card .auth-type-option span {
    display: block;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
}

/* =====================================================
   CATALOG — MOBILE PRODUCT LIST
   ===================================================== */

@media (max-width: 720px) {
    .catalog-layout {
        display: block;
    }

    .catalog-main {
        padding: 10px 10px 30px;
        overflow: visible;
    }

    /* На телефоне боковое дерево не должно съедать первый экран каталога. */
    .sidebar {
        display: none;
    }

    .crumbs {
        margin-bottom: 9px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .model-head {
        min-height: 0;
        padding: 18px 16px;
        border-radius: 9px;
        display: block;
    }

    .model-head h1 {
        margin: 0 0 5px;
        font-size: 28px;
        line-height: 1.08;
    }

    .model-head p {
        font-size: 13px;
    }

    .year-tabs {
        margin: 12px 0 10px;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .year-tabs::-webkit-scrollbar {
        display: none;
    }

    .year-tab {
        flex: 0 0 auto;
        min-height: 46px;
        padding: 8px 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 13px;
        line-height: 1.15;
    }

    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        margin-bottom: 10px;
    }

    .filters select {
        width: 100%;
        min-height: 42px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .filters select:first-child {
        grid-column: 1 / -1;
    }

    .filters a {
        grid-column: 1 / -1;
        margin-left: 0;
        padding: 3px 0 2px;
        text-align: right;
        font-size: 12px;
    }

    .table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .table-head {
        display: none;
    }

    .product-group {
        margin-bottom: 12px;
        border: 1px solid #dfe5ec;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .group-title {
        min-height: 42px;
        padding: 9px 11px;
        border-top: 0;
        font-size: 13px;
    }

    .product-row {
        min-width: 0;
        min-height: 0;
        padding: 12px 11px 11px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "sku price"
            "name price"
            "fit fit"
            "warehouses stock"
            "qty cart";
        column-gap: 10px;
        row-gap: 5px;
        align-items: center;
        background: #fff !important;
    }

    .product-group .product-row:nth-of-type(even) {
        background: #fff !important;
    }

    .product-row:hover {
        box-shadow: none !important;
        background: #fff !important;
    }

    .product-row .photo-link {
        display: none;
    }

    .product-row > span,
    .product-row > strong {
        padding: 0;
    }

    .product-row .sku {
        grid-area: sku;
        display: block;
        min-width: 0;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 800;
    }

    .product-row .pname {
        grid-area: name;
        display: block;
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        color: #172033;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 600;
    }

    .product-row .fit {
        grid-area: fit;
        display: block;
        min-width: 0;
        margin-top: 1px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #718096;
        font-size: 11px;
        line-height: 1.3;
    }

    .product-row .warehouses {
        grid-area: warehouses;
        justify-self: start;
        min-height: 30px;
        padding: 0;
        color: #0878ff;
        font-size: 12px;
        font-weight: 700;
        text-align: left;
    }

    .product-row > span:not(.sku):not(.pname):not(.fit) {
        grid-area: stock;
        justify-self: end;
        color: #16834b;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .product-row > strong {
        grid-area: price;
        align-self: center;
        justify-self: end;
        color: #101827;
        font-size: 17px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .product-row .qty {
        grid-area: qty;
        justify-self: start;
        height: 36px;
    }

    .product-row .qty button {
        width: 36px;
        min-width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .product-row .qty input {
        width: 42px;
        height: 36px;
        font-size: 14px;
    }

    .product-row .add-cart {
        grid-area: cart;
        justify-self: end;
        width: 42px;
        height: 36px;
        border-radius: 6px;
    }

    .warehouse-panel {
        padding: 11px;
        background: #f8fafc;
    }

    .warehouse-grid {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 5px;
        max-width: none;
        font-size: 12px;
    }

    .warehouse-grid > * {
        padding: 4px 2px;
    }

    .add-selected {
        width: 100%;
        min-height: 40px;
        margin-top: 10px;
    }
}
