:root {
    --primary: #3d3d41;
    --border: #c3c5d9;
    --border-radius: 8px;
    --btn-border-radius: 6px;
    --white: #fff;
    --text-muted: #727390;
    --success: #20c535;
    --warning: #fbbf24;
    --error: #ba1a1a;
    --text: #252529;
    --main-bg: #fafafa;
    --bg: #ff3435;
    --bg-form: #ff3b30;
    --secondary: #4d73cd;
    --bg-secondary: #ef2b22;
    --bg-secondary-hover: #ff3435;
    --bg-secondary-active: #e42f2f;
    --border-hover: #ff3435;
    --ico-bg: #ff3435;
    --bg-dark: rgb(52, 58, 64);
}

html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

html,
body {
    height: 100%;
}
.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.main {
    flex-grow: 1;
    padding-top: 1rem;
    padding-bottom: 2rem;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    padding: 0;
    border: none;
    background-color: transparent;
}

ul {
    list-style: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.title {
    text-align: center;
    margin-bottom: 60px;
}
body {
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    background-color: var(--main-bg);
}

h1 {
    color: var(--primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
}

h3 {
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
}

p {
    color: #727390;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

textarea,
input,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.header {
    top: 0;
    z-index: 2;
    background: var(--bg);
    color: #fff;
    width: 100%;
    box-shadow: 0 4px 18px rgb(91 18 25 / 18%);
}

.header-top {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top-right {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.header-hr {
    border-bottom: 1px solid #ffffff1a;
}

.header-divs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-div {
    display: flex;
    flex-direction: column;
}

.header-div-title {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
    font-weight: 600;
}

.header-div-phone {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.header-div-phone i {
    color: #20c535;
}

.logo-btn {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    color: #fff;
}

.logo-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.logo-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.logo-name span {
    color: #fecaca;
    font-weight: 600;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown__button {
    padding: 0.5rem 0.75rem;
    color: #fff;
    border: 1px solid #ffffff1a;
    border-radius: var(--btn-border-radius);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-secondary);
    text-transform: uppercase;
}

.dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 130px;
    padding: 0.25rem;
    border-radius: var(--btn-border-radius);
    background: var(--bg-secondary);
    z-index: 2;
}

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

.dropdown__item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}

.dropdown__item:hover {
    background: var(--bg-secondary-hover);
}

.login-btn {
    padding: 0.5rem 0.75rem;
    color: #fff;
    border: 1px solid #ffffff1a;
    border-radius: var(--btn-border-radius);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    text-transform: uppercase;
}

.cart-btn {
    position: relative;
    padding: 0.5rem 0.75rem;
    color: #fff;
    border: 1px solid #ffffff1a;
    border-radius: var(--btn-border-radius);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    text-transform: uppercase;
}

.top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    padding: 0.5rem 0.75rem;
    color: #fffc;
    border: 1px solid #ffffff1a;
    border-radius: var(--btn-border-radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg);
    text-transform: uppercase;
    width: 48px;
    height: 48px;
}

.top-btn i {
    font-size: 18px;
}

.top-btn:hover {
    background: var(--bg-secondary-hover);
    color: #fff;
}

.number-favorites,
.number-shopping-cart {
    position: absolute;
    height: 22px;
    width: 22px;
    line-height: 22px;
    background: #ff5555;
    color: #fff;
    border-radius: 100px;
    text-align: center;
    top: 14px;
    left: -12px;
}

.dropdown__button:hover,
.login-btn:hover,
.cart-btn:hover {
    background: var(--bg-secondary-hover);
    color: #fff;
}

.header-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navigation-menu {
    display: flex;
    flex-direction: row;
    gap: 25px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.navigation-menu a:hover {
    color: #fff;
}

.search-form {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.search-input {
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid #ffffff1a;
    border-radius: var(--btn-border-radius);
    width: 400px;
    color: #fff;
}

.search-input::placeholder {
    color: #fff;
}

.search-btn {
    position: absolute;
    right: 10px;
    color: #fff;
    cursor: pointer;
}

.search-input:focus-within {
    outline: none;
    background: var(--bg-secondary-hover);
    color: #fff;
}

.search-form:focus-within .search-btn {
    color: var(--bg-form);
}

.footer {
    background: var(--bg-dark);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-cols {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 25%;
}

.footer-col p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 20px;
}

.footer-title {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
}

.footer-link:hover {
    color: #fff;
}

.breadcrumbs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 15px;
}

.breadcrumbs__item {
    color: rgb(67, 70, 86);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    position: relative;
    padding: 8px 18px 8px 0;
}

.breadcrumbs__item:last-child {
    color: rgb(11, 28, 48);
}

.breadcrumbs__item::after {
    content: "\f054";
    font: normal normal normal 14px/1 FontAwesome;
    position: absolute;
    width: 8px;
    height: 10px;
    font-size: 10px;
    top: 11px;
    right: 0;
}

.breadcrumbs__item:last-child::after {
    content: "";
}

.choose-car {
    color: rgb(67, 70, 86);
    font-size: 16px;
    margin-bottom: 30px;
}

.cars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 20px;
}

.car-link {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    width: fit-content;
    height: fit-content;
}

.car-link:hover {
    border: 1px solid var(--border-hover);
}

.car-link:hover .car-name {
    color: var(--border-hover);
}

.car-link:hover .car-img img {
    transform: scale(1.1);
}

.car-link:hover .car-name i {
    background: var(--bg);
    color: white;
}

.car-img {
    height: 120px;
    width: 288px;
    text-align: center;
    padding: 16px;
    overflow: hidden;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.car-img img {
    width: auto;
    height: 100%;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.car-name {
    width: 288px;
    padding: 16px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.car-name span {
    width: 220px;
    max-height: 32px;
    overflow: hidden;
}

.car-name i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.hero-slider {
    height: 350px;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    color: #fff;
}

.bg-1 {
    background: var(--bg-dark);
    color: #fff;
}

.main-page-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.main-page-title {
    font-size: 1.875rem;
    font-weight: 900;
    line-height: 2.25rem;
    letter-spacing: -0.025em;
}

.main-page-desc {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 15px;
}

.main-page-cars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.main-page-car {
    width: 18%;
    min-width: 18%;
}

.main-page-car-link {
    position: relative;
    display: block;
    height: 90px;
    text-decoration: none;
    box-shadow: 0px 4px 6px rgba(43, 40, 41, 0.2);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: all 0.4s ease;
}

.main-page-car-link:hover {
    transform: scale(0.95);
}

.main-page-car-img {
    position: absolute;
    margin-left: 20%;
    bottom: 10%;
    transition: all 0.4s ease;
    display: block;
    max-width: 95%;
    max-height: 70%;
    width: auto;
    height: auto;
}

.main-page-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.main-page-service-title {
    font-size: 1.875rem;
    font-weight: 900;
    line-height: 2.25rem;
    color: #0b1c30;
    text-align: center;
    letter-spacing: -0.025em;
}

.main-page-service-desc {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    max-width: 42rem;
}

.main-page-service-items {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
}

.main-page-service-item {
    background: #f8fafc;
    padding: 32px;
    border-radius: var(--btn-border-radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 33.3333%;
}

.main-page-service-item-ico {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: var(--btn-border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.main-page-service-item-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #0b1c30;
}

.main-page-service-item-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.main-page-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.main-page-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 190px;
    padding: 28px 20px 24px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--btn-border-radius);
    background: var(--bg-dark);
    text-align: center;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.main-page-feature:hover {
    transform: translateY(-4px);
    border-color: rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 12%);
}

.main-page-feature-ico {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-page-feature-ico i {
    font-size: 40px;
    color: var(--bg);
}

.main-page-feature-title {
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.main-page-feature-desc {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.discount-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 25px;
    height: fit-content;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
}

.sidebar-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sidebar-filter-header h2 {
    font-size: 16px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
    line-height: 1.2;
}

.sidebar-close-mobile,
.filter-toggle-button {
    border: none;
    border-radius: var(--btn-border-radius);
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-close-mobile {
    display: none;
    width: auto;
    margin-bottom: 0;
    background: #f7f8fb;
    color: #333;
    text-align: center;
    min-width: 40px;
    padding: 8px 12px;
}

.filter-toggle-button {
    background: var(--bg-secondary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(39, 64, 255, 0.08);
}

.filter-toggle-row {
    display: none;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group ul {
    height: auto;
    max-height: 215px;
    overflow-y: auto;
}

.filter-group h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.filter-group label {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-search {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: var(--btn-border-radius);
    font-size: 14px;
}

.catalog-top {
    display: flex;
    justify-content: end;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-size: 14px;
}

.sort-select {
    width: auto;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    outline: none;
    padding: 5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.product-img {
    height: 200px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 0 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
}

.product-brand {
    color: var(--secondary);
    font-weight: 500;
}

.product-code {
    font-size: 12px;
    color: var(--text-muted);
}

.product-applicability {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 12px;
    max-height: 42px;
    overflow: hidden;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.availability {
    border-top: 1px solid #f0f0f5;
    padding-top: 10px;
    font-size: 13px;
}

.warehouse-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warehouse-row {
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f5;
}

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

.stock-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.green {
    background: var(--success);
}

.dot.amber {
    background: var(--warning);
}

.qty-btn,
.qty-btn2 {
    padding: 6px 10px;
    background: #f5f5f7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-input-group,
.qty-input-group2 {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: fit-content;
}

.qty-val,
.qty-val2 {
    font-size: 12px;
    width: 38px;
    text-align: center;
    border: none;
    font-weight: 600;
    background: white;
    outline: none;
}

.add-to-cart-row {
    display: flex;
    gap: 7px;
    /* justify-content: space-between; */
}

.add-to-cart-row .qty-btn {
    padding: 5px 7px;
    font-size: 9px;
}

.add-to-cart-row .qty-val {
    width: 36px;
    font-size: 11px;
}

.add-to-cart-row .add-to-cart {
    padding: 8px 10px;
}

.add-to-cart,
.add-to-cart2,
.add-to-cart-empty {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--btn-border-radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.product-content {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 32px;
    margin-bottom: 64px;
}

.gallery-main {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 40px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    cursor: zoom-in;
    object-fit: contain;
}

.thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 4px;
    cursor: pointer;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumb.active {
    border: 2px solid var(--border-hover);
    padding: 3px;
}

.thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.info-panel h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* .specs-mini {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 24px;
} */

.buy-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-part-page {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 9px;
}

.tabs {
    margin-top: 48px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.tab-nav button {
    padding: 18px 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
}

.tab-nav button.active {
    color: var(--bg-dark);
}

.tab-nav button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--bg);
}

.tab-pane {
    padding: 40px;
    display: none;
}

.tab-pane.active {
    display: block;
}

.t-specs {
    width: 100%;
    font-size: 14px;
}

.t-specs td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.t-label {
    color: var(---text-muted);
    width: 40%;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 24px;
}

.cart-items-labels {
    display: grid;
    grid-template-columns: 6fr 2fr 2fr 2fr;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.cart-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 16px;
    display: grid;
    grid-template-columns: 6fr 6fr;
    align-items: center;
}

.item-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.item-img {
    width: 96px;
    height: 96px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-img img {
    max-width: 80%;
    max-height: 80%;
    -o-object-position: contain;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-details h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    max-height: 34px;
    width: 266px;
    overflow: hidden;
}

.item-brand-code {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.item-warehouse {
    margin-bottom: 10px;
    color: var(--secondary);
}

.item-warehouse span {
    border: 1px solid var(--secondary);
    border-radius: 5px;
    padding: 2px 10px;
    background: rgb(249 249 249);
}

.item-code {
    font-size: 12px;
    color: var(--text-muted);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--error);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-total {
    text-align: right;
    font-weight: 600;
    color: var(--secondary);
}

.item-price,
.item-total {
    text-align: center;
    font-size: 14px;
}

.cart-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-muted);
}

.total .price-val {
    color: var(--secondary);
}

.summary-row.total {
    color: var(--text);
    font-weight: 600;
    font-size: 24px;
}

.delivery-selection,
.contact-fields {
    margin-top: 24px;
    margin-bottom: 24px;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.method-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.method-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.method-btn.active {
    background-color: var(--bg-dark);
    color: var(--white);
    border-color: var(--bg-dark);
}

.method-content {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 12px;
}

.checkout-btn,
.submit-btn {
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.checkout-btn:hover,
.submit-btn:hover {
    background-color: var(--bg-secondary-hover);
}

.login-card {
    background: white;
    width: 100%;
    max-width: 440px;
    padding: 48px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.login-card p.subtitle {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.register-box {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
}

.register-link:hover {
    text-decoration: underline;
}
.register-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 12px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--secondary);
}

.password-toggle.show::before {
    content: "";
}

.profile-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.profile-sidebar,
.profile-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 25px;
    height: fit-content;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-nav a {
    padding: 10px 15px;
    border-radius: var(--btn-border-radius);
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s;
}

.profile-nav a i {
    margin-right: 8px;
}

.profile-nav a:hover {
    background: var(--bg-secondary-hover);
    color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.orders-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.orders-item {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #c7cdda;
    background: var(--main-bg);
}

.orders-item-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.orders-item-top-center,
.orders-item-top-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orders-item-top-center p,
.orders-item-top-left p {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: #2e2e38;
}

.orders-item-top-center span,
.orders-item-top-left span {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-muted);
}

.order-succes {
    color: #079455;
}

.order-error {
    color: #ff3347;
}

.order-warning {
    color: #ffa000;
}

.accordion-panel {
    background-color: #fff;
    display: none;
    overflow: hidden;
}

.orders-parts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--main-bg);
    padding: 20px 0;
}

.orders-part {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.orders-part-title {
    flex: 2;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.orders-part-count,
.orders-part-price,
.orders-part-amount {
    flex: 1;
    text-align: right;
}

.orders-part-count-title,
.orders-part-price-title,
.orders-part-amount-title {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.orders-part-count-value,
.orders-part-price-value,
.orders-part-amount-value {
    font-size: 14px;
    font-weight: 600;
}

.orders-part-count-title,
.orders-part-count-value {
    text-align: center;
}

.orders-part-price-value,
.orders-part-count-value {
    color: var(--text);
}

.orders-part-amount-value {
    color: var(--secondary);
}

#pagination-container {
    margin-top: 30px;
}

.pagination {
    display: -ms-flexbox;
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--secondary);
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    z-index: 2;
    color: var(--secondary);
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 2;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: var(--bg-secondary-active);
    border-color: var(--bg-secondary-active);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.order-text-danger {
    color: #dc3545 !important;
    font-weight: 500;
}

.order-text-warning {
    color: #ffc107 !important;
    font-weight: 500;
}

.order-text-success {
    color: #28a745 !important;
    font-weight: 500;
}

.pages * {
    color: var(--primary);
}

.mobile {
    display: none;
}

.menu-tabs {
    display: none;
}

.cart-row {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.favorite-toggle {
    border: none;
    background: transparent;
    color: #ff5555;
    font-size: 20px;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background: var(--bg) !important;
}

@media (max-width: 768px) {
    .mobile {
        display: flex;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .desktop {
        display: none;
    }

    .search-input {
        width: 200px;
    }

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

    .main-page-service {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .main-page-service-items {
        flex-direction: column;
    }

    .main-page-service-item {
        align-items: center;
        width: 100%;
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 10px;
    }

    .main-page-features {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .main-page-feature {
        width: 100%;
    }

    .footer {
        padding-top: 1rem;
        padding-bottom: 5rem;
    }

    .footer-cols {
        flex-direction: column;
    }

    .footer-col {
        width: 100%;
    }

    .main-page-car {
        width: 30%;
        min-width: 30%;
    }

    .main-page-car-link {
        height: 50px;
    }

    .header-divs {
        justify-content: space-between;
    }

    .main-page-cars {
        justify-content: center;
    }

    .menu-tabs {
        display: block;
        position: fixed;
        width: 100%;
        bottom: 0;
        background: #fff;
        box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #c7cdda;
        z-index: 2;
    }

    .menu-tabs-list {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .menu-tabs-list__item {
        padding-top: 6px;
        padding-bottom: 8px;
        color: #727390;
        text-align: center;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 1.5;
        width: 25%;
    }

    .menu-tabs-list__item a {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cart-grid {
        display: flex;
        flex-direction: column;
    }

    .cart-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .tab-nav {
        overflow-x: scroll;
    }

    .tab-nav button {
        padding: 14px 18px;
    }

    .item-info {
        flex-direction: column;
    }

    .cart-row {
        width: 100%;
        justify-content: space-between;
        padding-top: 20px;
    }

    .profile-content {
        display: flex;
        flex-direction: column;
    }

    .profile-sidebar {
        order: 1;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .breadcrumbs {
        flex-wrap: wrap;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .filter-toggle-row {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -110%;
        width: 100%;
        height: 100%;
        z-index: 1000;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: 0 24px 80px rgba(20, 25, 60, 0.12);
        transition: left 0.25s ease;
        background: #fff;
    }

    .sidebar.active {
        left: 0;
        display: block;
    }

    .sidebar-sticky {
        position: static;
        width: 80%;
    }

    .sidebar-close-mobile {
        display: block;
    }

    .filter-group ul {
        height: auto;
        max-height: calc(100vh - 220px);
    }

    .filter-group h3 {
        color: var(--text);
        position: relative;
        z-index: 1;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .top-btn {
        bottom: 70px;
    }
}
