/*
Theme Name: KDA58
Theme URI: https://evebpr0l.beget.tech
Description: Custom theme for KDA58 auto parts store
Author: KDA58
Version: 1.0
Template: hello-elementor
Text Domain: kda58
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #333;
    background: #f5f5f5;
}

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

ul {
    list-style: none;
}

/* TOP BAR */
.top-bar {
    background: #19181e;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar__address {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.top-bar__nav {
    display: flex;
    gap: 24px;
}

.top-bar__nav a {
    color: #fff;
    transition: opacity 0.2s;
}

.top-bar__nav a:hover {
    opacity: 0.7;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar__email {
    color: #fff;
}

.top-bar__socials {
    display: flex;
    gap: 8px;
}

.top-bar__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.2s;
}

.top-bar__socials a:hover {
    opacity: 0.8;
}

.top-bar__socials a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MAIN HEADER */
.main-header {
    background: #fff;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.main-header .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #c42627;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.catalog-btn:hover {
    background: #a01f20;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f3f3f3;
    border-radius: 50px;
    padding: 4px 4px 4px 16px;
    gap: 8px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    padding: 8px 0;
    color: #333;
}

.search-bar input::placeholder {
    color: #999;
}

.search-btn {
    background: #272727;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    color: #fff;
}

.search-btn:hover {
    border-color: #999;
}

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

.header-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f7f7f7;
    border-radius: 50%;
    transition: background 0.2s;
    position: relative;
}

.header-action-icon:hover {
    background: #eeeeee;
}

.header-action-icon svg {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
}

.header-icon--active {
    background: #c42627 !important;
}

.header-icon--active svg path {
    stroke: #ffffff;
    fill: none;
}

.header-icon--active .header-cart-link svg path,
.header-icon--active svg path[fill="#1E1E1E"] {
    fill: #ffffff;
    stroke: none;
}

.header-cart-link.header-icon--active svg path {
    fill: #ffffff;
}

.header-wishlist-link.header-icon--active svg path {
    stroke: #ffffff;
    fill: none;
}

.header-account-link.header-icon--active svg path {
    stroke: #ffffff;
    fill: none;
}

/* HERO SECTION */
.hero-section {
    max-width: 1320px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    min-height: 480px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide--banner {
    position: absolute;
}

.hero-slide2__btn {
    position: absolute;
    bottom: 5%;
    left: 35%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-block;
    padding: 18px 80px;
    background: transparent;
    color: transparent;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

.hero-slide2__btn:hover {
    background: transparent;
}

.hero-arrows {
    position: absolute;
    bottom: 48px;
    right: 48px;
    z-index: 2;
    display: flex;
    gap: 12px;
}

.hero-main__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-main__content {
    position: relative;
    z-index: 1;
    margin-top: -10px;
}

.hero-main__title {
    font-family: 'Actay', 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-main__desc {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 500px;
}

.hero-main__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-cta {
    display: inline-block;
    background: #c42627;
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    background: #a01f20;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 20px;
}

.hero-arrow:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* HERO SIDEBAR */
.hero-sidebar {
    position: relative;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    min-height: 480px;
    text-decoration: none;
}

.hero-sidebar__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-sidebar__content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero-sidebar__content h2{
  padding-left: 30%;
  
  font-family: Open Sans;
  width: 400px;
  font-size: 24px;
  font-weight: 200;
}
.hero-sidebar__content span {
    margin-left: 45%;
}

.hero-sidebar__title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    
}

.hero-sidebar__btn {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.hero-sidebar__btn:hover {
    background: #e0e0e0;
}

/* NEW PRODUCTS */
.new-products {
    max-width: 1320px;
    margin: 48px auto;
    padding: 0 20px;
}

.new-products .container {
    max-width: 100%;
}

.section-title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 500;
    font-style: normal;
    color: #1e1e1e;
    margin-bottom: 32px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-card__link {
    text-decoration: none;
    color: inherit;
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #afafaf;
    margin-bottom: 8px;
}

.product-card__stock {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #afafaf;
}

.product-card__stock--out {
    color: #c42627;
}

.product-card__price {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #121212;
    margin-bottom: 16px;
}

.product-card__price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.product-card__price ins {
    text-decoration: none;
}

/* Sale price display */
.product-card__price--sale {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.product-card__price--sale .price-current {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}
.product-card__price--sale .price-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}
.product-card__price--sale .price-old-label,
.product-card__price--sale .price-new-label {
    color: #999;
}
.product-card__price--sale .price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}
.product-card__price--sale .price-new {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
}

/* Sale in list view */
.products-list .product-card__price--sale {
    flex-direction: row;
    align-items: center;
}

.product-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.product-card__cart-btn {
    flex: 1;
    background: #c42627;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.product-card__cart-btn:hover {
    background: #a01f20;
}

.product-card__wishlist {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    flex-shrink: 0;
}
.product-card__wishlist svg {
    width: 22px;
    height: 22px;
}
.product-card__wishlist .wishlist-icon {
    display: none;
}

.product-card__wishlist:hover {
    color: #c42627;
    border-color: #c42627;
}

.products-load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: #272727;
    color: #fff;
    border: 2px solid #272727;
    padding: 14px 48px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.load-more-btn:hover {
    background: #333;
    border-color: #333;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: #999;
    padding: 40px 0;
}

/* BRANDS */
.brands-section {
    max-width: 1320px;
    margin: 48px auto;
    padding: 0 20px;
}

.brands-section .container {
    max-width: 100%;
}

.brands-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.brands-subtitle {
    font-size: 15px;
    color: #999;
}

.brands-slider {
    overflow: hidden;
    width: 100%;
}

.brands-track {
    display: flex;
    gap: 10px;
    animation: brands-scroll 20s linear infinite;
    width: max-content;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes brands-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-item {
    flex-shrink: 0;
    width: 260px;
    height: 120px;
    background: #f5f5f5;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
}

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

/* REVIEWS */
.reviews-section {
    max-width: 1320px;
    margin: 48px auto;
    padding: 0 20px;
}

.reviews-section .container {
    max-width: 100%;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.reviews-btn {
    display: inline-block;
    background: #c42627;
    color: #fff;
    padding: 14px 32px;
    border-radius: 32px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.reviews-btn:hover {
    background: #a01f20;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
}

.review-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__stars {
    color: #F2CF22;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.review-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.review-card__date {
    font-size: 13px;
    color: #93A1BA;
    margin-bottom: 12px;
}

.review-card__text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Review popup */
.review-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.review-popup-overlay.active {
    display: flex;
}

.review-popup {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 48px 56px 56px;
    width: 90%;
    max-width: 720px;
    position: relative;
}

.review-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 56px;
}

.review-popup__title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
}

.review-popup__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
    margin-top: 4px;
}

.review-popup__close svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.review-popup__close:hover {
    color: #666;
}

.review-popup__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.review-popup__input {
    background: #f5f5f5;
    border: none;
    border-radius: 100px;
    padding: 18px 28px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    outline: none;
    transition: box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.review-popup__input::placeholder {
    color: #1a1a1a;
    font-weight: 500;
}

.review-popup__input:focus {
    box-shadow: 0 0 0 2px #1a1a1a;
}

.review-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #999;
    margin-bottom: 28px;
    cursor: pointer;
    line-height: 1.5;
}

.review-popup__consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #1a1a1a;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.review-popup__consent input[type="checkbox"]:checked {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.review-popup__consent a {
    color: #999;
    text-decoration: underline;
}

.review-popup__consent a:hover {
    color: #333;
}

.review-popup__submit {
    display: block;
    width: 100%;
    background: #2a2a2a;
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.review-popup__submit:hover {
    background: #444;
}

.review-popup__message {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.review-popup__message--ok {
    color: #4CAF50;
}

.review-popup__message--err {
    color: #c42627;
}

@media (max-width: 768px) {
    .review-popup {
        padding: 32px 24px;
    }
    .review-popup__title {
        font-size: 24px;
    }
    .review-popup__header {
        margin-bottom: 36px;
    }
    .review-popup__fields {
        grid-template-columns: 1fr;
    }
}

/* POPULAR CATEGORIES */
.popular-categories {
    max-width: 1320px;
    margin: 48px auto;
    padding: 0 20px;
}

.popular-categories .container {
    max-width: 100%;
}

.popular-categories__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.categories-all-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 14px 32px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.categories-all-btn:hover {
    background: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-decoration: none;
    color: #1a1a1a;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.category-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #ccc;
}

.category-card__sub {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.category-card__icon {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.category-card__icon img {
    mix-blend-mode: multiply;
}

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

.category-card__name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

/* REQUEST FORM */
.request-section {
    max-width: 1320px;
    margin: 48px auto;
    padding: 0 20px;
}

.request-section .container {
    max-width: 100%;
}

.request-block {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.request-form-wrap {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px;
   
}
.request-form{
    margin-top: -40px;
}


.request-title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.request-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 32px;
}

.request-form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    margin-top: 90px;
}

.request-input {
    background: #f5f5f5;
    border: none;
    border-radius: 32px;
    padding: 16px 24px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333;
    outline: none;
    transition: box-shadow 0.2s;
}

.request-input::placeholder {
    color: #999;
}

.request-input:focus {
    box-shadow: 0 0 0 2px #c42627;
}

.request-textarea {
    border-radius: 32px;
    min-height: 52px;
    height: 52px;
    resize: none;
    margin-bottom: 16px;
    width: 100%;
    display: flex;
    align-items: center;
}

.request-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    cursor: pointer;
    line-height: 1.4;
}

.request-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #1a1a1a;
}

.request-consent a {
    color: #999;
    text-decoration: underline;
}

.request-consent a:hover {
    color: #333;
}

.request-submit {
    display: block;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.request-submit:hover {
    background: #333;
}

.request-image {
    border-radius: 16px;
    overflow: hidden;
}

.request-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.request-message {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

/* Banner page overrides */
.page-template-page-banner .request-form {
    margin-top: 0;
}

.page-template-page-banner .request-form__fields {
    margin-top: 24px;
}

.page-template-page-banner .request-form__fields--car {
    margin-top: 16px;
}

.page-template-page-banner .request-block {
    margin-bottom: 48px;
}

.page-template-page-banner .request-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.page-template-page-banner .request-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 0;
}

.page-template-page-banner .request-input {
    padding: 14px 20px;
    font-size: 14px;
}

.page-template-page-banner .request-consent {
    margin-bottom: 16px;
    margin-top: 16px;
}

.page-template-page-banner .request-submit {
    padding: 16px;
    font-size: 15px;
}

.page-template-page-banner .category-header {
    margin-bottom: 32px;
    margin-top: 16px;
}

.request-message--ok {
    color: #4CAF50;
}

.request-message--err {
    color: #c42627;
}

/* FOOTER */
.site-footer {
    max-width: 1320px;
    margin: 48px auto 0;
    padding: 48px 20px;
    border-top: 1px solid #e8e8e8;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo img {
    height: 48px;
    width: auto;
    display: block;
}

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

.footer-links a {
    font-size: 14px;
    color: #333;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #c42627;
}

.footer-copy {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.footer-right {
    text-align: left;
}

.footer-contacts-title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
}

.footer-contacts li svg {
    flex-shrink: 0;
    color: #999;
}

.footer-contacts li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contacts li a:hover {
    color: #c42627;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
}

.footer-socials a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* WISHLIST PAGE */
.wishlist-page {
    padding: 20px 0 40px;
}

.wishlist-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.breadcrumb {
    font-size: 14px;
    color: #999;
    padding: 24px 0;
}

.breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb span {
    color: #333;
}

.wishlist-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.wishlist-views {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #ccc;
    transition: color 0.2s;
}

.view-btn.active,
.view-btn:hover {
    color: #c42627;
}

.wishlist-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: filter 0.2s;
}

.product-card__wishlist--active {
    background: #c42627;
    color: #fff;
    border-color: #c42627;
}

.product-card__wishlist--active svg path {
    stroke: #fff;
    fill: #fff;
}

.product-card__wishlist--active .wishlist-icon {
    display: none;
}

.wishlist-grid {
    margin-bottom: 48px;
}

/* List view */
.products-list {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.products-list .product-card {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 4px 28px;
    padding: 20px 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: none;
    background: transparent;
}

.products-list .product-card:hover {
    box-shadow: none;
}

.products-list .product-card:last-child {
    border-bottom: none;
}

.products-list .product-card__image {
    aspect-ratio: 1;
    margin-bottom: 0;
    width: 80px;
    height: 80px;
    grid-row: 1 / 3;
    grid-column: 1;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}

.products-list .product-card__image img {
    object-fit: contain;
    padding: 4px;
}

.products-list .product-card__link {
    display: contents;
}

.products-list .product-card__title {
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.4;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    -webkit-line-clamp: 2;
}

.products-list .product-card__meta {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    gap: 24px;
    font-size: 13px;
    margin-bottom: 0;
}

.products-list .product-card__price {
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 700;
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
}

.products-list .product-card__actions {
    flex-shrink: 0;
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-list .product-card__cart-btn {
    flex: none;
    min-width: 140px;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 24px;
}

.products-list .product-card__qty-control {
    flex: none;
    min-width: 140px;
    border-radius: 24px;
}

.products-list .product-card__wishlist {
    width: 40px;
    height: 40px;
}

.products-list .product-card__wishlist svg {
    width: 20px;
    height: 20px;
}

/* Request form car fields */
.request-form__fields--car {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    margin-top: 30px;
}

/* Header wishlist active */
.header-wishlist-link {
    position: relative;
}

.header-like-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.header-wishlist--active .header-like-icon {
    filter: brightness(0) saturate(100%) invert(23%) sepia(95%) saturate(5575%) hue-rotate(355deg) brightness(93%) contrast(86%);
}

/* ACCOUNT PAGE */
.account-page {
    padding: 24px 0 60px;
}

.account-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.account-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

.account-sidebar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item__label {
    color: #333;
    font-weight: 500;
}

.sidebar-item__value {
    flex: 1;
    color: #333;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

.sidebar-item__value--warn {
    color: #c42627;
}

.sidebar-item svg {
    flex-shrink: 0;
    margin-left: auto;
    color: #999;
    cursor: pointer;
}

.sidebar-item--link {
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-item--link:hover {
    background: #eee;
}

.sidebar-logout {
    display: block;
    text-align: center;
    color: #c42627;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px;
    border: 1px solid #c42627;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-logout:hover {
    background: #c42627;
    color: #fff;
}

.account-main {
    min-height: 400px;
}

.account-back-btn {
    display: inline-block;
    margin-bottom: 16px;
    padding: 10px 24px;
    background: #272727;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.account-back-btn:hover {
    background: #444;
    color: #fff;
}

.account-section-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.account-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px;
}

.account-content__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.account-content__title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.account-edit-btn {
    background: #c42627;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.account-edit-btn:hover {
    background: #a01f20;
}

.account-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
}

.account-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.account-field input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.account-field input:disabled {
    background: #fafafa;
    color: #666;
}

.account-field input:focus {
    border-color: #c42627;
}

.account-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.account-save-btn {
    background: #c42627;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.account-save-btn:hover {
    background: #a01f20;
}

.account-cancel-btn {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.account-cancel-btn:hover {
    border-color: #999;
}

/* INFO PAGES (warranty, delivery, etc.) */
.info-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.info-page .container {
    max-width: 100%;
}

.info-page__title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.warranty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.warranty-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.warranty-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px;
}

.warranty-card__title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.warranty-card__text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.warranty-image {
    border-radius: 12px;
    overflow: hidden;
}

.warranty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.warranty-right .warranty-card {
    height: 100%;
}

/* CATEGORY ARCHIVE PAGE */
.category-page {
    padding: 24px 0 60px;
}

.category-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.category-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}
.category-header .wishlist-views {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #272727;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
}

.mobile-filter-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
}

.mobile-filter-overlay.open {
    display: block;
}

.category-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

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

.filters-form {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
}

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

.filters-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.filters-clear {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #666;
    transition: all 0.2s;
}

.filters-clear:hover {
    color: #c42627;
    border-color: #c42627;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-label {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

/* Range slider */
.filter-range {
    position: relative;
    height: 22px;
    margin: 16px 0;
}

.filter-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #c42627;
    transform: translateY(-50%);
}

.filter-range-fill {
    position: absolute;
    top: 50%;
    height: 3px;
    background: #c42627;
    transform: translateY(-50%);
}

.filter-range input[type="range"] {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    margin: 0;
}

.filter-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #c42627;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: none;
    margin-top: -9.5px;
}

.filter-range input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #c42627;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: none;
}

.filter-range input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    background: transparent;
    display: flex;
    align-items: center;
}

.filter-range input[type="range"]::-moz-range-track {
    height: 3px;
    background: transparent;
}

.filter-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-price-input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #1e1e1e;
    font-family: 'Inter', sans-serif;
    outline: none;
    text-align: center;
    background: #f5f5f5;
}

.filter-price-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #c42627;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-check input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.filter-check input:checked {
    background: #c42627;
    border-color: #c42627;
}

.filter-check input:checked::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
}

.filter-check input:checked + span {
    color: #c42627;
}

.filter-apply {
    display: block;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-apply:hover {
    background: #333;
}

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

.category-pagination {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 24px;
}

.category-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.category-pagination .page-numbers.current,
.category-pagination .page-numbers:hover {
    background: #c42627;
    color: #fff;
    border-color: #c42627;
}

/* CATALOG PAGE */
.catalog-page {
    padding: 24px 0 48px;
}

.catalog-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.catalog-mega {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    background: #fff;
    min-height: auto;
}

.catalog-mega__list {
    padding: 0;
}

.catalog-mega__item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-left: none;
    transition: all 0.15s;
    border-bottom: 1px solid #e8e8e8;
}

.catalog-mega__item:last-child {
    border-bottom: 1px solid #e8e8e8;
}

.catalog-mega__item:hover,
.catalog-mega__item.active {
    background: #c42627;
    color: #fff;
    border-radius: 8px;
    border-left: none;
}

.catalog-mega__sub {
    padding: 12px 32px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.catalog-mega__sub-list {
    display: none;
}

.catalog-mega__sub-list.active {
    display: block;
}

.catalog-mega__sub-list h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.catalog-mega__sub-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.catalog-mega__sub-link {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.catalog-mega__sub-link:hover {
    color: #c42627;
}

.catalog-mega__sub-list a {
    display: inline;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.15s;
}

.catalog-mega__sub-list a:hover {
    color: #c42627;
}

.catalog-mega__empty {
    font-size: 14px;
    color: #999;
}

.catalog-mega__action {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
}

.catalog-mega__btn {
    background: #c42627;
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    margin-right: 40px;
}

.catalog-mega__btn:hover {
    background: #a01f20;
}

/* Mobile accordion catalog */
.catalog-mobile-accordion {
    display: none;
}

.accordion-item {
    border-bottom: 1px solid #e8e8e8;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.accordion-title {
    font-size: 15px;
    font-weight: 500;
    color: #1e1e1e;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}

.accordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    transition: transform 0.3s;
}

.accordion-toggle.open {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 0 16px 16px;
}

.accordion-body.open {
    display: block;
}

.accordion-sub {
    display: block;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding: 6px 0;
    font-family: 'Open Sans', sans-serif;
}

.accordion-sub:hover {
    color: #c42627;
}

/* DELIVERY PAGE */
.delivery-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

.delivery-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px;
}

.delivery-card p {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.delivery-card a {
    color: #c42627;
    text-decoration: underline;
}

.delivery-card__title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.delivery-hero__image {
    border-radius: 12px;
    overflow: hidden;
}

.delivery-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.delivery-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ABOUT PAGE */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

.about-hero__title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-hero__desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-hero__image {
    border-radius: 12px;
    overflow: hidden;
}

.about-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-brands {
    margin-bottom: 48px;
}

/* CONTACTS PAGE */
.contacts-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.contacts-page .container {
    max-width: 100%;
}

.contacts-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.contacts-title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.contacts-line {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.contacts-schedule {
    text-align: right;
    flex-shrink: 0;
    font-weight: 500;
}

.contacts-phone {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.contacts-phone:hover {
    color: #c42627;
}

.contacts-hours-label {
    font-size: 16px;
    font-weight: 500;
    color: #c42627;
    margin-bottom: 4px;
}

.contacts-hours {
    font-size: 28px;
    font-weight: 700;
    color: #c42627;
}

.contacts-bottom {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.contacts-map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
}

.contacts-map {
    touch-action: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
.contacts-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    touch-action: pan-x pan-y pinch-zoom;
    pointer-events: auto;
}
.contacts-map__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: contain;
    cursor: zoom-in;
    transition: opacity 0.2s;
}
.contacts-map__img:hover { opacity: 0.95; }

/* Лайтбокс для карты */
.map-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.map-lightbox.active { display: flex; }
.map-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.map-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}
.map-lightbox.active .map-lightbox__close {
    display: flex;
}
.order-popup-overlay:not(.active) .order-popup__close {
    display: none !important;
}
.map-lightbox__close:hover { background: rgba(255,255,255,0.28); }
.contacts-map:has(.contacts-map__img) {
    min-height: 0;
    height: auto;
}
@media (max-width: 768px) {
    .contacts-map__img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
}

.contacts-form-wrap {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px;
}

.contacts-form-title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.contacts-input,
.contacts-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333;
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    background: #f9f9f9;
}

.contacts-input:focus,
.contacts-textarea:focus {
    border-color: #c42627;
}

.contacts-input::placeholder,
.contacts-textarea::placeholder {
    color: #999;
}

.contacts-textarea {
    resize: vertical;
    min-height: 120px;
}

.contacts-submit {
    display: block;
    width: 100%;
    background: #c42627;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.contacts-submit:hover {
    background: #a01f20;
}

/* ORDERS */
.order-item {
    padding: 24px 0;
    border-bottom: 1px solid #e8e8e8;
}

.order-item:first-child {
    padding-top: 0;
}

.order-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.order-item__info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.order-item__id {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.order-item__name {
    font-size: 15px;
    color: #666;
}

.order-item__qty {
    font-size: 14px;
    color: #999;
}

.order-item__price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.order-item__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.order-detail label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.order-detail__value {
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.no-orders {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px 0;
}

.sidebar-item--active-link {
    background: #eee;
}

/* AUTH PAGE */
.auth-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    display: flex;
    justify-content: center;
}

.auth-page .container {
    max-width: 560px;
    width: 100%;
}

.auth-box {
    width: 100%;
}

.auth-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 40px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.auth-tab.active {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.auth-field {
    margin-bottom: 24px;
}

.auth-field label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="tel"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.auth-field input:focus {
    border-color: #c42627;
}

.auth-field input::placeholder {
    color: #999;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    accent-color: #1a1a1a;
}

.auth-forgot {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot:hover {
    color: #c42627;
}

.auth-submit {
    display: block;
    margin: 0 auto;
    background: #c42627;
    color: #fff;
    border: none;
    padding: 16px 48px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

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

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.auth-switch-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch-link:hover {
    color: #c42627;
}

.auth-message {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.auth-message--ok {
    color: #4CAF50;
}

.auth-message--err {
    color: #c42627;
}

.auth-role-select {
    display: flex;
    gap: 16px;
}

.auth-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.auth-role input {
    accent-color: #c42627;
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    cursor: pointer;
    line-height: 1.4;
}

.auth-consent input {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #1a1a1a;
}

.auth-consent a {
    color: #999;
    text-decoration: underline;
}

.header-cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #c42627;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-account--active {
    background: #c42627;
    border-radius: 50%;
    padding: 6px;
}

.header-account--active svg {
    color: #fff;
}

/* BURGER & MOBILE MENU */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    overflow-y: auto;
    transition: right 0.3s;
    display: flex;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu__close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-bottom: 24px;
}

.mobile-menu__close svg {
    color: #fff;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu__nav a {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mobile-menu__nav a:hover {
    opacity: 0.7;
}

.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.mobile-menu__contacts a {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    text-decoration: none;
}

body.menu-open {
    overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
      .hero-sidebar__content h2{
  padding-left: 43%;
  width: 100%;

}
    .hero-section {
        grid-template-columns: 1fr;
    }
    .hero-sidebar {
        min-height: 300px;
    }
    .top-bar__nav {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .request-block {
        grid-template-columns: 1fr;
    }
    .brands-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .request-form__fields {
    margin-top: 70px;
}
}

@media (max-width: 768px) {
    .top-bar__address span {
        font-size: 12px;
    }
    .hero-sidebar__content h2{
  padding-left: 43%;
  width: 100%;

}
    .top-bar__email {
        display: none;
    }
    .main-header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .logo-img {
        height: 36px;
    }
    .catalog-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .catalog-btn span {
        display: none;
    }
    .header-actions {
        gap: 8px;
        margin-left: auto;
    }
    .header-action-icon {
        width: 38px;
        height: 38px;
    }
    .header-action-icon svg {
        width: 19px;
        height: 19px;
    }
    .search-bar {
        order: 10;
        flex-basis: 100%;
    }
    .hero-main {
        min-height: 360px;
    }
    .hero-slide {
        padding: 32px;
    }
    .hero-main__title {
        font-size: 28px;
    }
    .hero-arrows {
        bottom: 32px;
        right: 32px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .popular-categories__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .hero-slide2__btn {
        bottom: 4%;
        left: 50%;
        transform: translateX(-50%);
        padding: 14px 50px;
        font-size: 13px;
    }
    .request-form-wrap {
        padding: 32px 24px;
    }
    .request-form__fields {
        grid-template-columns: 1fr;
    }
    .request-form__fields--car {
        grid-template-columns: 1fr;
    }
    /* Вид «Список» — горизонтальная карточка: фото слева, информация справа */
    .products-list,
    .category-products .products-grid.products-list,
    .wishlist-grid .products-grid.products-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    .products-list .product-card,
    .category-products .products-grid.products-list > .product-card,
    .wishlist-grid .products-grid.products-list > .product-card {
        display: grid !important;
        grid-template-columns: 90px 1fr;
        grid-template-areas:
            "img title"
            "img meta"
            "img price"
            "actions actions";
        background: #fff !important;
        border: 1px solid #e8e8e8 !important;
        border-radius: 12px !important;
        column-gap: 14px;
        row-gap: 6px;
        padding: 14px;
        text-align: left;
        height: auto !important;
        flex-direction: row !important;
    }
    .products-list .product-card__link {
        display: contents;
    }
    .products-list .product-card__image {
        grid-area: img;
        width: 90px !important;
        height: 90px !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        align-self: start;
    }
    .products-list .product-card__title {
        grid-area: title;
        font-size: 14px;
        margin: 0;
        text-align: left;
        -webkit-line-clamp: 2;
    }
    .products-list .product-card__meta {
        grid-area: meta;
        margin: 0;
        justify-content: flex-start;
        gap: 12px;
    }
    .products-list .product-card__price {
        grid-area: price;
        margin: 0;
        font-size: 18px;
        text-align: left;
    }
    .products-list .product-card__actions {
        grid-area: actions;
        margin-top: 8px !important;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .products-list .product-card__cart-btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 16px;
        font-size: 13px;
    }
    .request-image {
        min-height: 250px;
    }
    .request-title {
        font-size: 24px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }
    .section-title {
        font-size: 24px;
    }
    .account-page .container {
        padding: 0 16px;
    }
    .account-layout {
        grid-template-columns: 1fr;
    }
    .account-fields {
        grid-template-columns: 1fr;
    }
    .account-content {
        padding: 20px 16px;
    }
    .account-content__title {
        font-size: 22px;
    }
    .category-layout {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 9998;
        overflow-y: auto;
        transition: left 0.3s ease;
        background: #fff;
        padding: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    .filters-sidebar.open {
        left: 0;
    }
    .filters-sidebar .filters-form {
        border: none;
        border-radius: 0;
        min-height: 100vh;
        padding: 60px 24px 24px;
    }
    .filters-sidebar .filter-range {
        margin-left: 10px;
        margin-right: 10px;
    }
    .mobile-filter-btn {
        display: flex !important;
    }
    .category-header {
        justify-content: space-between;
    }
    .mobile-filter-close {
        display: block !important;
    }
    .category-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Вид «Список» на мобилке — одна колонка, карточки в ряд */
    .category-products .products-grid.products-list {
        grid-template-columns: 1fr !important;
    }
    .category-page .container {
        padding: 0 16px;
    }
    .catalog-mega {
        display: none;
    }
    .catalog-mobile-accordion {
        display: block;
    }
    .catalog-mega__list {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    .catalog-mega__action {
        justify-content: center;
    }
    .delivery-hero {
        grid-template-columns: 1fr;
    }
    .delivery-bottom {
        grid-template-columns: 1fr;
    }
    .about-hero {
        grid-template-columns: 1fr;
    }
    .warranty-grid {
        grid-template-columns: 1fr;
    }
    .contacts-top {
        flex-direction: column;
    }
    .contacts-schedule {
        text-align: left;
    }
    .contacts-bottom {
        grid-template-columns: 1fr;
    }
    .contacts-title {
        font-size: 24px;
    }
    .contacts-phone,
    .contacts-hours {
        font-size: 22px;
    }
    .order-item__details {
        grid-template-columns: 1fr;
    }
       .request-form__fields {
    margin-top: 40px;
}
    
}

@media (max-width: 480px) {
    .top-bar .container {
        flex-wrap: wrap;
        gap: 8px;
    }
    .top-bar__socials {
        gap: 6px;
    }
    .main-header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .logo-img {
        height: 32px;
    }
    .catalog-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .catalog-btn span {
        display: none;
    }
    .catalog-btn svg {
        width: 16px;
        height: 16px;
    }
    .header-actions {
        gap: 8px;
        order: 3;
    }
    .header-action-icon {
        width: 36px;
        height: 36px;
    }
    .header-action-icon svg {
        width: 18px;
        height: 18px;
    }
    .search-bar {
        order: 4;
        width: 100%;
    }
    .hero-main {
        min-height: 280px;
    }
    .hero-slide {
        padding: 20px;
    }
    .hero-main__title {
        font-size: 22px;
    }
    .hero-main__desc {
        font-size: 13px;
    }
    .hero-cta {
        padding: 12px 24px;
        font-size: 15px;
    }
    .hero-arrows {
        bottom: 20px;
        right: 20px;
    }
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
    .hero-sidebar {
        min-height: 240px;
        padding: 24px;
    }
    .hero-sidebar__title {
        font-size: 24px;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-card {
        padding: 12px;
    }
    .product-card__title {
        font-size: 13px;
    }
    .product-card__price {
        font-size: 18px;
    }
    .product-card__cart-btn {
        font-size: 13px;
        padding: 10px 0;
    }
    .product-card__wishlist {
        width: 38px;
        height: 38px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card {
        padding: 16px 12px;
    }
    .category-card__icon {
        width: 80px;
        height: 80px;
    }
    .category-card__name {
        font-size: 13px;
    }
    .load-more-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
    .brand-item {
        width: 150px;
        height: 70px;
        padding: 10px 16px;
    }
    .review-card {
        padding: 16px;
    }
    .request-form-wrap {
        padding: 24px 16px;
    }
    .request-title {
        font-size: 20px;
    }
    .request-desc {
        font-size: 14px;
    }
    .request-input {
        padding: 14px 20px;
        font-size: 14px;
    }
    .request-submit {
        padding: 16px;
        font-size: 15px;
    }
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .footer-logo img {
        height: 40px;
    }
    .footer-contacts-title {
        font-size: 16px;
    }
    .footer-contacts li {
        font-size: 14px;
    }
    .footer-copy {
        font-size: 12px;
    }
}

/* === КОРЗИНА === */
.cart-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}
.cart-page {
    padding: 20px 0 60px;
}
.cart-page__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Inter Tight', sans-serif;
    color: #1e1e1e;
}
.cart-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.cart-items {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px 30px;
}
.cart-items__header {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    letter-spacing: 0.5px;
}
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item__image {
    width: 60px;
    height: 70px;
    flex-shrink: 0;
    margin-right: 16px;
}
.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-item__info {
    flex: 1;
}
.cart-item__name {
    font-size: 15px;
    font-weight: 400;
    color: #1e1e1e;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}
.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}
.cart-qty__btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
}
.cart-qty__btn:hover {
    background: #f0f0f0;
}
.cart-qty__value {
    width: 30px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    line-height: 32px;
}
.cart-item__remove {
    font-size: 14px;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
}
.cart-item__remove:hover {
    color: #c00;
}
.cart-item__price {
    font-size: 20px;
    font-weight: 700;
    color: #1e1e1e;
    white-space: nowrap;
    margin-left: 20px;
    font-family: 'Open Sans', sans-serif;
}
.cart-summary {
    width: 380px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 24px;
}
.cart-summary__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    font-family: 'Inter Tight', sans-serif;
    color: #1e1e1e;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    color: #555;
}
.cart-summary__total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    margin-bottom: 24px;
}
.cart-summary__value {
    font-size: 22px;
    font-weight: 700;
    color: #1e1e1e;
    font-family: 'Open Sans', sans-serif;
}
.cart-summary__checkout {
    display: block;
    width: 100%;
    background: #c42627;
    color: #fff;
    text-align: center;
    padding: 18px 24px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.2s;
    text-decoration: none;
}
.cart-summary__checkout:hover {
    background: #a01f20;
    color: #fff;
}
.cart-empty {
    text-align: center;
    padding: 60px 0;
}
.cart-empty p {
    font-size: 18px;
    color: #777;
    margin-bottom: 20px;
}
.cart-empty__btn {
    display: inline-block;
    background: #B22222;
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
}
.cart-empty__btn:hover {
    background: #8B0000;
    color: #fff;
}

@media (max-width: 1024px) {
    .cart-page .container {
        padding: 0 24px;
    }
    .cart-layout {
        flex-direction: column;
    }
    .cart-summary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cart-page .container {
        padding: 0 16px;
    }
    .cart-page {
        padding: 16px 0 40px;
    }
    .cart-page__title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .cart-items {
        padding: 16px;
    }
    .cart-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .cart-item__image {
        width: 50px;
        height: 60px;
        margin-right: 12px;
    }
    .cart-item__info {
        flex: 1;
        min-width: 0;
    }
    .cart-item__name {
        font-size: 14px;
    }
    .cart-item__price {
        width: 100%;
        margin-left: 62px;
        margin-top: 4px;
        font-size: 16px;
    }
    .cart-item__controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cart-summary {
        padding: 20px 16px;
    }
    .cart-summary__title {
        font-size: 20px;
    }
    .cart-summary__value {
        font-size: 18px;
    }
    .cart-summary__checkout {
        font-size: 15px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .cart-page .container {
        padding: 0 12px;
    }
    .cart-page {
        padding: 12px 0 30px;
    }
    .cart-page__title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .cart-items {
        padding: 12px;
        border-radius: 8px;
    }
    .cart-item__image {
        width: 40px;
        height: 50px;
        margin-right: 10px;
    }
    .cart-item__name {
        font-size: 13px;
    }
    .cart-item__price {
        margin-left: 50px;
        font-size: 15px;
    }
    .cart-qty__btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .cart-qty__value {
        width: 26px;
        font-size: 14px;
        line-height: 28px;
    }
    .cart-item__remove {
        font-size: 13px;
    }
    .cart-summary {
        border-radius: 8px;
    }
    .breadcrumb {
        font-size: 13px;
    }
}

/* === ОФОРМЛЕНИЕ ЗАЯВКИ === */
.checkout-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}
.checkout-page {
    padding: 20px 0 60px;
}
.checkout-page__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Inter Tight', sans-serif;
    color: #1e1e1e;
}
.checkout-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.checkout-left {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 30px;
}
.checkout-block {
    margin-bottom: 28px;
}
.checkout-block:last-child {
    margin-bottom: 0;
}
.checkout-block__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Inter Tight', sans-serif;
    color: #1e1e1e;
}
.checkout-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.checkout-input {
    width: 100%;
    max-width: 480px;
    padding: 16px 24px;
    border: none;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    color: #1e1e1e;
    outline: none;
    transition: background 0.2s;
}
.checkout-input:focus {
    background: #eee;
}
.checkout-input::placeholder {
    color: #1e1e1e;
    font-weight: 500;
}
.checkout-textarea {
    border-radius: 24px;
    min-height: 50px;
    resize: vertical;
}
.checkout-delivery-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.delivery-tab {
    padding: 10px 24px;
    border: 1px solid #ccc;
    border-radius: 50px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s;
    color: #333;
}
.delivery-tab--active {
    background: #272727;
    color: #fff;
    border-color: #272727;
}
.checkout-right {
    width: 380px;
    flex-shrink: 0;
}
.checkout-order {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 24px;
}
.checkout-order__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Inter Tight', sans-serif;
    color: #1e1e1e;
}
.checkout-order__header {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}
.checkout-order__items {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.checkout-order__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.checkout-order__name {
    flex: 1;
    color: #333;
}
.checkout-order__qty {
    color: #999;
    font-size: 13px;
}
.checkout-order__price {
    font-weight: 600;
    white-space: nowrap;
}
.checkout-order__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 16px;
}
.checkout-order__total-price {
    font-size: 20px;
}
.checkout-order__detail {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}
.checkout-order__detail-qty {
    color: #999;
    margin-left: 4px;
}
.checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    cursor: pointer;
}
.checkout-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.checkout-consent a {
    color: #777;
    text-decoration: underline;
}
.checkout-submit {
    display: block;
    width: 100%;
    background: #c42627;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.2s;
}
.checkout-submit:hover {
    background: #a01f20;
}
.checkout-message {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}
.checkout-message--ok {
    color: #2e7d32;
}
.checkout-message--err {
    color: #c00;
}

@media (max-width: 1024px) {
    .checkout-page .container {
        padding: 0 24px;
    }
    .checkout-layout {
        flex-direction: column;
    }
    .checkout-left {
        width: 100%;
    }
    .checkout-right {
        width: 100%;
    }
    .checkout-input {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .checkout-page .container {
        padding: 0 16px;
    }
    .checkout-page {
        padding: 16px 0 40px;
    }
    .checkout-page__title {
        font-size: 24px;
    }
    .checkout-left {
        padding: 20px 12px;
        border: none;
        border-radius: 0;
    }
    .checkout-order {
        padding: 20px 12px;
        border: none;
        border-radius: 0;
    }
    .checkout-input {
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .checkout-page .container {
        padding: 0 12px;
    }
    .checkout-page__title {
        font-size: 20px;
    }
    .checkout-left {
        padding: 16px 12px;
        border-radius: 8px;
    }
    .checkout-order {
        padding: 16px 12px;
        border-radius: 8px;
    }
    .checkout-submit {
        font-size: 15px;
        padding: 14px;
    }
}

/* === QUANTITY CONTROL В КАРТОЧКЕ === */
.product-card__qty-control {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #c42627;
    border-radius: 10px;
    overflow: hidden;
    height: 44px;
}
.product-card__qty-control .qty-minus,
.product-card__qty-control .qty-plus {
    width: 40px;
    height: 100%;
    border: none;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    color: #c42627;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.product-card__qty-control .qty-minus:hover,
.product-card__qty-control .qty-plus:hover {
    background: #fde8e8;
}
.product-card__qty-control .qty-value {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.product-card__order-btn {
    background: #272727 !important;
    color: #fff !important;
    border: 2px solid #272727 !important;
}
.product-card__order-btn:hover {
    background: #444 !important;
    color: #fff !important;
    border-color: #444 !important;
}

/* === INFINITE SCROLL LOADER === */
.infinite-loader {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}
.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e8e8e8;
    border-top-color: #c42627;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === ПОДКАТАЛОГ === */
.subcatalog-page {
    padding: 24px 0 48px;
}
.subcatalog-page .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}
.subcatalog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}
.subcatalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
@media (max-width: 1024px) {
    .subcatalog-grid { grid-template-columns: repeat(3, 1fr); }
    .subcatalog-page .container { padding: 0 24px; }
}
@media (max-width: 768px) {
    .subcatalog-grid { grid-template-columns: repeat(2, 1fr); }
    .subcatalog-title { font-size: 24px; }
    .subcatalog-page .container { padding: 0 16px; }
}
@media (max-width: 480px) {
    .subcatalog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .subcatalog-title { font-size: 20px; }
    .subcatalog-page .container { padding: 0 12px; }
}

/* === КАРТОЧКА ТОВАРА === */
.single-product-page { padding: 20px 0 60px; }
.single-product-page .container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.sp-title { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.sp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; align-items: start; }

/* Gallery */
.sp-gallery__main { position: relative; background: #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sp-gallery__slide { display: none; width: 100%; height: 100%; }
.sp-gallery__slide.active { display: flex; align-items: center; justify-content: center; }
.sp-gallery__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 36px; color: #999; cursor: pointer; z-index: 2; padding: 8px; }
.sp-gallery__arrow:hover { color: #333; }
.sp-gallery__prev { left: 8px; }
.sp-gallery__next { right: 8px; }
.sp-gallery__thumbs { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.sp-gallery__thumbs-track { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; -ms-overflow-style: none; }
.sp-gallery__thumbs-track::-webkit-scrollbar { display: none; }
.sp-gallery__thumb { width: 80px; height: 80px; border: 2px solid #e8e8e8; border-radius: 8px; cursor: pointer; flex-shrink: 0; overflow: hidden; }
.sp-gallery__thumb.active { border-color: #c42627; }
.sp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sp-thumb-prev, .sp-thumb-next { position: static; transform: none; font-size: 24px; }

/* Info */
.sp-info { padding: 0; }
.sp-info__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sp-price-tabs { display: flex; gap: 0; background: #f3f3f3; border-radius: 50px; padding: 4px; }
.sp-price-tab { padding: 10px 24px; border: none; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'Open Sans', sans-serif; transition: all 0.2s; border-radius: 50px; color: #333; }
.sp-price-tab.active { background: #272727; color: #fff; }
.sp-price-block { margin-bottom: 16px; }
.sp-price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.sp-price-label { font-size: 14px; color: #999; font-family: 'Open Sans', sans-serif; }
.sp-price-old { font-size: 22px; font-weight: 600; color: #333; font-family: 'Open Sans', sans-serif; text-decoration: line-through; }
.sp-price-big { font-size: 32px; font-weight: 700; color: #121212; font-family: 'Open Sans', sans-serif; }
.sp-meta { margin-bottom: 20px; }
.sp-meta__first-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sp-meta__left { }
.sp-meta__right { }
.sp-meta__row { font-size: 14px; color: #333; margin-bottom: 8px; font-family: 'Open Sans', sans-serif; }
.sp-meta__row span { color: #999; }
.sp-stock--in { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border: 1px solid #e0e0e0; border-radius: 50px; font-size: 14px; color: #4CAF50; font-family: 'Open Sans', sans-serif; }
.sp-stock--out { display: inline-flex; padding: 8px 20px; border: 1px solid #e0e0e0; border-radius: 50px; font-size: 14px; color: #c42627; font-family: 'Open Sans', sans-serif; }
.sp-cart-btn { display: block; flex: 0.75; padding: 18px; background: #c42627; color: #fff; border: none; border-radius: 50px; font-size: 18px; font-weight: 600; cursor: pointer; font-family: 'Open Sans', sans-serif; transition: background 0.2s; }
.sp-wishlist-btn { width: 72px; height: 72px; border-radius: 50%; border: 1px solid #e0e0e0; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #999; transition: all 0.2s; }
.sp-wishlist-btn svg, .sp-wishlist-btn svg path { width: 28px; height: 28px; stroke: #999 !important; fill: none !important; }
.sp-wishlist-btn.product-card__wishlist--active { background: #c42627 !important; border-color: #c42627 !important; }
.sp-wishlist-btn.product-card__wishlist--active svg, .sp-wishlist-btn.product-card__wishlist--active svg path { stroke: #fff !important; fill: #fff !important; }
.sp-wishlist-btn:hover { color: #c42627; border-color: #c42627; }
.sp-cart-btn:hover { background: #a01f20; }
.sp-no-content { color: #999; font-style: italic; }
.sp-buttons-row { display: flex; gap: 12px; }
.sp-buttons-row .sp-order-btn { flex: 1; padding: 18px; background: #272727; color: #fff; border: none; border-radius: 50px; font-size: 18px; font-weight: 600; cursor: pointer; font-family: 'Open Sans', sans-serif; transition: background 0.2s; }
.sp-buttons-row .sp-order-btn:hover { background: #444; }
.sp-buttons-row .sp-cart-btn { flex: 1; }
.sp-wholesale-row { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.sp-qty-control { width: 100%; height: 54px; border: 2px solid #c42627; border-radius: 10px; }
.sp-qty-control .qty-minus, .sp-qty-control .qty-plus { width: 60px; font-size: 22px; }
.sp-qty-control .qty-value { font-size: 20px; }

/* Tabs */
.sp-tabs { margin-bottom: 48px; }
.sp-tabs__nav { display: flex; gap: 0; border: 1px solid #e0e0e0; border-radius: 30px; overflow: hidden; margin-bottom: 24px; width: fit-content; }
.sp-tabs__btn { padding: 10px 20px; border: none; background: #fff; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; white-space: nowrap; }
.sp-tabs__btn.active { background: #333; color: #fff; }
.sp-tabs__content { display: none; font-size: 15px; line-height: 1.7; color: #444; background: #f9f9f9; border-radius: 16px; padding: 24px; }
.sp-tabs__content.active { display: block; }

/* Review form styling */
.sp-tabs__content .comment-respond { margin-top: 24px; }
.sp-tabs__content .comment-respond label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #333; }
.sp-tabs__content .comment-respond input[type="text"],
.sp-tabs__content .comment-respond input[type="email"],
.sp-tabs__content .comment-respond textarea { width: 100%; padding: 14px 18px; border: 1px solid #e8e8e8 !important; border-radius: 12px; font-size: 14px; font-family: 'Inter', sans-serif; background: #fff; box-sizing: border-box; margin-bottom: 12px; outline: none !important; box-shadow: none !important; }
.sp-tabs__content .comment-respond textarea { min-height: 100px; resize: vertical; }
.sp-tabs__content .comment-respond .form-submit input[type="submit"] { background: #272727; color: #fff; border: none; border-radius: 50px; padding: 14px 36px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.2s; }
.sp-tabs__content .comment-respond .form-submit input[type="submit"]:hover { background: #444; }
.sp-tabs__content .comment-list { list-style: none; padding: 0; margin: 0; }
.sp-tabs__content .comment-list .comment { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.sp-tabs__content .stars a { font-size: 24px; text-decoration: none; }
.sp-attrs-table { width: 100%; border-collapse: collapse; }
.sp-attrs-table td { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.sp-attrs-table td:first-child { color: #999; width: 40%; }
.sp-specs-table table { width: 100%; border-collapse: collapse; }
.sp-specs-table td, .sp-specs-table th { padding: 10px 16px; border: 1px solid #e8e8e8; font-size: 14px; }
.sp-specs-table th { background: #f5f5f5; font-weight: 600; text-align: left; }
.sp-specs-table tr:nth-child(even) { background: #fafafa; }
.sp-video iframe { width: 100%; height: 400px; border: none; border-radius: 12px; }
.sp-files { margin-top: 20px; }
.sp-files h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.sp-file-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; color: #333; margin-right: 10px; margin-bottom: 10px; transition: all 0.2s; }
.sp-file-link:hover { border-color: #c42627; color: #c42627; }

/* Related */
.sp-related { margin-bottom: 40px; }

/* Lightbox */
.sp-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; }
.sp-lightbox.active { display: flex; align-items: center; justify-content: center; }
.sp-lightbox__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); }
.sp-lightbox__wrap { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.sp-lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.sp-lightbox__close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; z-index: 2; }
.sp-lightbox__prev, .sp-lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 40px; cursor: pointer; padding: 8px 16px; border-radius: 8px; z-index: 2; }
.sp-lightbox__prev { left: -70px; }
.sp-lightbox__next { right: -70px; }
.sp-lightbox__prev:hover, .sp-lightbox__next:hover { background: rgba(255,255,255,0.3); }
@media (max-width: 768px) {
    .sp-lightbox__prev { left: 8px; }
    .sp-lightbox__next { right: 8px; }
    .sp-lightbox__close { top: 8px; right: 8px; }
}

/* Responsive */
@media (max-width: 768px) {
    .sp-layout { grid-template-columns: 1fr; gap: 24px; }
    .sp-title { font-size: 22px; }
    .single-product-page .container { padding: 0 16px; }
    .sp-tabs__nav { flex-wrap: wrap; border-radius: 12px; }
    .sp-tabs__btn { font-size: 13px; padding: 8px 14px; }
    .sp-gallery__thumb { width: 60px; height: 60px; }
}
@media (max-width: 480px) {
    .sp-price-tabs { flex-direction: column; }
    .sp-price-tab { font-size: 13px; padding: 8px 14px; }
    .single-product-page .container { padding: 0 12px; }
}

/* Order Popup */
.order-popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
.order-popup-overlay.active { display: flex; }
.order-popup { background: #fff; border-radius: 20px; padding: 32px; max-width: 420px; width: 90%; position: relative; }
.order-popup__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: #999; }
.order-popup__close:hover { color: #333; }
.order-popup__title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.order-popup__desc { font-size: 14px; color: #666; margin-bottom: 20px; }
.order-popup__input { width: 100%; padding: 14px 18px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 15px; font-family: 'Inter', sans-serif; box-sizing: border-box; margin-bottom: 12px; background: #f9f9f9; }
.order-popup__submit { width: 100%; padding: 16px; background: #272727; color: #fff; border: none; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.2s; }
.order-popup__submit:hover { background: #444; }
.order-popup__msg { margin-top: 12px; font-size: 14px; text-align: center; }
.order-popup__msg--ok { color: #27ae60; }
.order-popup__msg--err { color: #c42627; }

/* Search Pagination */
.search-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.search-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; font-weight: 600; color: #333; text-decoration: none; border: 1px solid #e0e0e0; transition: all 0.2s; }
.search-pagination .page-numbers.current,
.search-pagination .page-numbers:hover { background: #272727; color: #fff; border-color: #272727; }
.search-pagination .page-numbers.prev,
.search-pagination .page-numbers.next { font-size: 22px; }

/* Pickup address */
.checkout-pickup-address { margin-top: 16px; }
.checkout-pickup-text { font-size: 17px; font-weight: 600; color: #333; background: #f5f5f5; padding: 16px 20px; border-radius: 12px; }

/* Checkout select */
.checkout-select { appearance: auto; -webkit-appearance: auto; cursor: pointer; border-radius: 32px; }

/* Order cards */
.order-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.order-card__header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; transition: background 0.2s; }
.order-card__header:hover { background: #fafafa; }
.order-card__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order-card__id { font-weight: 700; font-size: 16px; color: #272727; }
.order-card__date { font-size: 13px; color: #999; }
.order-card__payment { font-size: 13px; color: #666; background: #f0f0f0; padding: 2px 10px; border-radius: 20px; }
.order-card__right { display: flex; align-items: center; gap: 16px; }
.order-card__status { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; background: #fff3cd; color: #856404; }
.order-card__status--completed { background: #d4edda; color: #155724; }
.order-card__status--cancelled, .order-card__status--failed { background: #f8d7da; color: #721c24; }
.order-card__status--processing { background: #fff3cd; color: #856404; }
.order-card__total { font-weight: 700; font-size: 16px; white-space: nowrap; }
.order-card__arrow { transition: transform 0.3s; flex-shrink: 0; }
.order-card.open .order-card__arrow { transform: rotate(180deg); }
.order-card__body { display: none; padding: 0 20px 20px; }
.order-card.open .order-card__body { display: block; }
.order-card__address { font-size: 14px; color: #555; margin-bottom: 16px; padding: 10px 14px; background: #f9f9f9; border-radius: 10px; }
.order-card__items { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-card__items th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #e8e8e8; color: #999; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.order-card__items td { padding: 10px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.order-card__product { display: flex; align-items: center; gap: 10px; }
.order-card__product img { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.order-card__footer { text-align: right; padding-top: 12px; font-size: 16px; }

/* Tyre icon size fix */
.category-card__icon img[src*="cat-tyres"] { width: 60px; height: 60px; }

/* ============================================
   FULL MOBILE RESPONSIVE OVERHAUL
   ============================================ */

/* --- TOP BAR MOBILE --- */
@media (max-width: 768px) {
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    .top-bar .container {
        flex-wrap: wrap;
        gap: 4px;
        padding: 0 12px;
    }
    .top-bar__address {
        font-size: 11px;
        gap: 4px;
    }
    .top-bar__address svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }
    .top-bar__right {
        gap: 8px;
    }
    .top-bar__socials img {
        width: 18px;
        height: 18px;
    }
}
@media (max-width: 480px) {
    .top-bar__address span {
        font-size: 10px;
        white-space: normal;
    }
}

/* --- AUTH PAGE MOBILE --- */
@media (max-width: 768px) {
    .auth-page .container {
        padding: 0 16px;
    }
    .auth-box {
        padding: 24px 16px;
        border-radius: 12px;
        max-width: 100%;
    }
    .auth-tabs {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    .auth-tab {
        padding: 12px 20px;
        font-size: 15px;
        text-align: center;
        border-radius: 50px;
    }
    .auth-field {
        margin-bottom: 12px;
    }
    .auth-field input,
    .auth-field select {
        padding: 14px 16px;
        font-size: 15px;
    }
    .auth-submit {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
    }
    .auth-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}
@media (max-width: 480px) {
    .auth-box {
        padding: 20px 12px;
    }
    .auth-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    .auth-field input,
    .auth-field select {
        padding: 12px 14px;
        font-size: 14px;
    }
    .auth-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
    .auth-title {
        font-size: 20px;
    }
}

/* --- WISHLIST PAGE MOBILE --- */
@media (max-width: 768px) {
    .wishlist-page .container {
        padding: 0 16px;
    }
    .wishlist-page__title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .wishlist-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .wishlist-grid .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wishlist-grid .products-list {
        grid-template-columns: 1fr;
    }
    .products-list .product-card__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .products-list .product-card__cart-btn {
        min-width: auto;
        flex: 1;
    }
}
@media (max-width: 480px) {
    .wishlist-page .container {
        padding: 0 12px;
    }
    .wishlist-page__title {
        font-size: 18px;
    }
    .wishlist-grid .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* --- SINGLE PRODUCT MOBILE FULL --- */
@media (max-width: 768px) {
    /* Защита от горизонтального оверфлоу — все блоки информации не вылезают за родителя */
    .single-product-page .container,
    .sp-layout,
    .sp-info,
    .sp-gallery,
    .sp-price-block,
    .sp-price-row,
    .sp-meta,
    .sp-meta__first-row,
    .sp-buttons-row {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .sp-price-row,
    .sp-meta__first-row,
    .sp-buttons-row {
        flex-wrap: wrap;
    }
    .sp-buttons-row {
        align-items: stretch;
        gap: 10px;
    }
    .sp-buttons-row > * {
        min-width: 0;
    }
    .sp-cart-btn,
    .sp-buttons-row .sp-cart-btn,
    .sp-buttons-row .sp-order-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    /* Сердечко «В избранное» — одинаковой высоты с кнопкой «В корзину», круглое */
    .sp-buttons-row .sp-wishlist-btn {
        width: 52px !important;
        height: auto !important;
        min-height: 52px;
        align-self: stretch;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }
    .sp-price-big {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .single-product-page {
        padding: 12px 0 40px;
    }
    .sp-price-big {
        font-size: 24px;
    }
    .sp-price-old {
        font-size: 18px;
    }
    .sp-cart-btn {
        padding: 14px;
        font-size: 16px;
    }
    .sp-wishlist-btn {
        width: 56px;
        height: 56px;
    }
    .sp-wishlist-btn svg, .sp-wishlist-btn svg path {
        width: 24px !important;
        height: 24px !important;
    }
    .sp-buttons-row .sp-order-btn {
        padding: 14px;
        font-size: 16px;
    }
    .sp-meta__row {
        font-size: 13px;
    }
    .sp-stock--in,
    .sp-stock--out {
        padding: 6px 14px;
        font-size: 12px;
    }
    .sp-tabs__content {
        padding: 16px;
        font-size: 14px;
    }
    .sp-video iframe {
        height: 240px;
    }
    .sp-related .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .sp-related .section-title {
        font-size: 20px;
    }
    .sp-qty-control {
        height: 48px;
    }
    .sp-qty-control .qty-minus,
    .sp-qty-control .qty-plus {
        width: 48px;
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    .single-product-page {
        padding: 8px 0 30px;
    }
    .sp-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .sp-layout {
        gap: 16px;
    }
    .sp-price-big {
        font-size: 22px;
    }
    .sp-cart-btn {
        padding: 12px;
        font-size: 15px;
    }
    .sp-wishlist-btn {
        width: 48px;
        height: 48px;
    }
    .sp-wishlist-btn svg, .sp-wishlist-btn svg path {
        width: 20px !important;
        height: 20px !important;
    }
    .sp-buttons-row {
        gap: 8px;
    }
    .sp-buttons-row .sp-order-btn {
        padding: 12px;
        font-size: 15px;
    }
    .sp-gallery__thumb {
        width: 48px;
        height: 48px;
    }
    .sp-tabs__nav {
        border-radius: 8px;
    }
    .sp-tabs__btn {
        font-size: 12px;
        padding: 7px 10px;
    }
    .sp-tabs__content {
        padding: 12px;
        font-size: 13px;
    }
    .sp-video iframe {
        height: 200px;
    }
    .sp-related .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .sp-meta__first-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .breadcrumb {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* --- ORDER CARDS MOBILE --- */
@media (max-width: 768px) {
    .order-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }
    .order-card__left {
        gap: 8px;
    }
    .order-card__right {
        width: 100%;
        justify-content: space-between;
    }
    .order-card__body {
        padding: 0 16px 16px;
    }
    .order-card__items {
        font-size: 13px;
    }
    .order-card__items th {
        font-size: 11px;
        padding: 6px 8px;
    }
    .order-card__items td {
        padding: 8px;
    }
    .order-card__product img {
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 480px) {
    .order-card__header {
        padding: 12px;
    }
    .order-card__id {
        font-size: 14px;
    }
    .order-card__date {
        font-size: 12px;
    }
    .order-card__total {
        font-size: 14px;
    }
    .order-card__status {
        font-size: 11px;
        padding: 3px 8px;
    }
    .order-card__items {
        display: block;
    }
    .order-card__items thead {
        display: none;
    }
    .order-card__items tbody,
    .order-card__items tr,
    .order-card__items td {
        display: block;
        width: 100%;
    }
    .order-card__items tr {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .order-card__items td {
        padding: 3px 0;
        border: none;
        text-align: left;
    }
    .order-card__product {
        flex-direction: row;
    }
    .order-card__footer {
        font-size: 15px;
    }
}

/* --- ACCOUNT PAGE MOBILE FULL --- */
@media (max-width: 480px) {
    .account-page .container {
        padding: 0 12px;
    }
    .account-sidebar {
        padding: 16px 12px;
    }
    .sidebar-title {
        font-size: 11px;
    }
    .sidebar-item {
        padding: 10px 0;
        font-size: 13px;
    }
    .sidebar-item__label {
        font-size: 12px;
    }
    .account-content {
        padding: 16px 12px;
    }
    .account-content__title {
        font-size: 20px;
    }
    .account-content__header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .account-edit-btn {
        width: 100%;
        text-align: center;
    }
    .account-field label {
        font-size: 13px;
    }
    .account-field input {
        padding: 12px 14px;
        font-size: 14px;
    }
    .account-back-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    .sidebar-logout {
        font-size: 14px;
        padding: 12px;
    }
}

/* --- DELIVERY / ABOUT / WARRANTY / CONTACTS 480px --- */
@media (max-width: 480px) {
    .info-page .container,
    .delivery-page .container,
    .about-page .container,
    .warranty-page .container,
    .contacts-page .container {
        padding: 0 12px;
    }
    .info-page__title,
    .delivery-title,
    .about-title,
    .warranty-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .delivery-card,
    .warranty-card {
        padding: 16px;
    }
    .delivery-card__title,
    .warranty-card__title {
        font-size: 16px;
    }
    .delivery-card__text,
    .warranty-card__text {
        font-size: 13px;
        line-height: 1.6;
    }
    .contacts-phone {
        font-size: 18px;
    }
    .contacts-hours {
        font-size: 18px;
    }
    .contacts-title {
        font-size: 20px;
    }
    .contacts-map {
        height: 250px;
    }
    .contacts-map iframe {
        height: 250px;
    }
}

/* --- ORDER POPUP MOBILE --- */
@media (max-width: 480px) {
    .order-popup {
        padding: 24px 16px;
        border-radius: 16px;
    }
    .order-popup__title {
        font-size: 18px;
    }
    .order-popup__desc {
        font-size: 13px;
    }
    .order-popup__input {
        padding: 12px 14px;
        font-size: 14px;
    }
    .order-popup__submit {
        padding: 14px;
        font-size: 15px;
    }
}

/* --- MOBILE MENU ENHANCEMENTS --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transition: right 0.3s ease;
    padding: 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    z-index: 2;
}
.mobile-menu__close svg {
    color: #333;
    stroke: #333;
    width: 28px;
    height: 28px;
    display: block;
}
.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
}
.mobile-menu__nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}
.mobile-menu__nav a:last-child {
    border-bottom: none;
}
.mobile-menu__contacts {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-menu__contacts a {
    font-size: 15px;
    color: #c42627;
    text-decoration: none;
    font-weight: 500;
}
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
}
.mobile-overlay.open {
    display: block;
}
body.menu-open {
    overflow: hidden;
}

/* --- BURGER BUTTON --- */
.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- CHECKOUT DELIVERY TABS MOBILE --- */
@media (max-width: 480px) {
    .checkout-delivery-tabs {
        flex-direction: column;
        gap: 6px;
    }
    .delivery-tab {
        padding: 10px 16px;
        font-size: 13px;
        text-align: center;
    }
    .checkout-pickup-text {
        font-size: 14px;
        padding: 12px 14px;
    }
    .checkout-block__title {
        font-size: 17px;
    }
    .checkout-input {
        padding: 14px 18px;
        font-size: 14px;
    }
}

/* --- PAYMENT TABS MOBILE --- */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        gap: 6px;
    }
    .payment-method {
        width: 100%;
        text-align: center;
    }
}

/* --- HERO SECTION 480px FIXES --- */
@media (max-width: 480px) {
    .hero-section {
        gap: 12px;
    }
    .hero-main {
        min-height: 220px;
        border-radius: 12px;
    }
    .hero-slide {
        padding: 16px;
    }
    .hero-main__title {
        font-size: 18px;
        line-height: 1.3;
    }
    .hero-main__desc {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-cta {
        padding: 10px 20px;
        font-size: 13px;
    }
    .hero-arrows {
        bottom: 12px;
        right: 12px;
        gap: 6px;
    }
    .hero-arrow {
        width: 34px;
        height: 34px;
    }
    .hero-sidebar {
        min-height: 180px;
        padding: 16px;
        border-radius: 12px;
    }
    .hero-sidebar__title {
        font-size: 18px;
    }
    .hero-sidebar__content h2 {
        padding-left: 0 !important;
        width: 100% !important;
        font-size: 16px;
    }
}

/* --- SEARCH RESULTS MOBILE --- */
@media (max-width: 480px) {
    .search-pagination {
        gap: 4px;
        margin-top: 20px;
    }
    .search-pagination .page-numbers {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* --- REVIEW POPUP 480px --- */
@media (max-width: 480px) {
    .review-popup {
        padding: 24px 16px;
    }
    .review-popup__title {
        font-size: 20px;
    }
    .review-popup__input,
    .review-popup__textarea {
        font-size: 14px;
        padding: 12px 14px;
    }
    .review-popup__submit {
        font-size: 15px;
        padding: 14px;
    }
}

/* --- BRANDS SECTION MOBILE --- */
@media (max-width: 480px) {
    .brands-track {
        gap: 0;
    }
    .brand-item {
        width: 150px;
        height: 90px;
        padding: 12px 8px;
        border-radius: 28px;
    }
    .brand-item img {
        max-height: 60px;
    }
}

/* --- FOOTER MOBILE FULL --- */
@media (max-width: 480px) {
    .footer {
        padding: 32px 0 20px;
    }
    .footer-inner {
        gap: 24px;
        padding: 0 12px;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column__title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-socials img {
        width: 28px;
        height: 28px;
    }
    .footer-bottom {
        padding: 16px 12px 0;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* --- CATALOG PAGE MOBILE --- */
@media (max-width: 768px) {
    .catalog-page .container {
        padding: 0 16px;
    }
    .catalog-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
    /* Каталог в режиме «список» (красная кнопка): показываем только аккордеон,
       плиточный grid категорий скрываем. */
    .catalog-page--list > .container > .section-title,
    .catalog-page--list .categories-grid {
        display: none !important;
    }
    /* Каталог в режиме «плитки» (кнопка «Посмотреть все категории»): прячем
       аккордеон, оставляем плитки .categories-grid. */
    .catalog-page--tiles .catalog-mobile-accordion {
        display: none !important;
    }
    .catalog-page--tiles .categories-grid {
        display: grid !important;
    }
}
@media (max-width: 480px) {
    .catalog-page .container {
        padding: 0 12px;
    }
    .catalog-title {
        font-size: 18px;
    }
    .catalog-mobile-accordion {
        font-size: 14px;
    }
}

/* --- GLOBAL MOBILE --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* --- FIX HORIZONTAL SCROLL --- */
html, body {
    overflow-x: hidden;
}

/* === MOBILE FIXES (search bar + hero banner slide) === */
@media (max-width: 768px) {
    /* Поиск: даём input сжиматься, чтобы кнопка "Найти" не уходила за край */
    .search-bar {
        overflow: hidden;
        min-width: 0;
        box-sizing: border-box;
        padding: 4px 4px 4px 14px;
    }
    .search-bar input {
        min-width: 0;
        width: 100%;
    }
    .search-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        padding: 4px 4px 4px 12px;
        gap: 6px;
    }
    .search-bar > svg {
        flex-shrink: 0;
    }
    .search-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Баннер-слайд (Подобрать автомагнитолу): показываем всю картинку и
       уводим стрелки наверх, чтобы не залезали на красную кнопку */
    .hero-slide--banner .hero-main__bg {
        object-fit: contain;
        object-position: center;
        background: #1a1a1a;
    }
    .hero-main {
        min-height: 200px;
    }
    /* Кликабельная область над встроенной красной кнопкой в картинке */
    .hero-slide2__btn {
        left: 50%;
        bottom: 8%;
        transform: translateX(-50%);
        padding: 12px 30%;
        width: auto;
        max-width: 80%;
    }
    /* Стрелки переносим в правый верх, чтобы не перекрывали кнопку */
    .hero-arrows {
        top: 10px;
        right: 10px;
        bottom: auto;
        z-index: 3;
    }
    .hero-arrow {
        width: 32px;
        height: 32px;
        background: rgba(0,0,0,0.45);
        border-color: rgba(255,255,255,0.6);
    }

    /* Единый боковой отступ на главной — все секции выровнены */
    .new-products,
    .top-products,
    .popular-categories,
    .brands-section,
    .reviews-section,
    .request-section,
    .request-form-section {
        padding-left: 24px !important;
        padding-right: 24px !important;
        overflow-x: clip;
    }
    .new-products .container,
    .top-products .container,
    .popular-categories .container,
    .brands-section .container,
    .reviews-section .container,
    .request-section .container,
    .request-form-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* Новинки и Топ — горизонтальный скролл по 2 плитки (отдельный @media для надёжности) */
@media (max-width: 768px) {
    .new-products .products-grid,
    .top-products .products-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 0 10px;
        margin: 0;
    }
    .new-products .products-grid::-webkit-scrollbar,
    .top-products .products-grid::-webkit-scrollbar {
        display: none;
    }
    .new-products .products-grid > .product-card,
    .top-products .products-grid > .product-card {
        flex: 0 0 calc(50% - 5px) !important;
        scroll-snap-align: start;
        padding: 16px;
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
    /* Шапка секции с заголовком и стрелками управления каруселью */
    .new-products .container,
    .top-products .container {
        position: relative;
    }
    .products-carousel-arrows {
        display: flex;
        gap: 8px;
        position: absolute;
        top: 0;
        right: 8px;
        z-index: 2;
    }
    .products-carousel-arrows button {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1.5px solid #1a1a1a;
        background: #fff;
        color: #1a1a1a;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s;
    }
    .products-carousel-arrows button:active {
        background: #1a1a1a;
        color: #fff;
    }
}

/* По умолчанию (десктоп / планшет) стрелки карусели скрыты */
.products-carousel-arrows {
    display: none;
}
/* На мобилке — показываем стрелки в Новинках и Топ продаж */
@media (max-width: 600px) {
    .new-products .products-carousel-arrows,
    .top-products .products-carousel-arrows {
        display: flex !important;
    }
}

/* === КАРТОЧКИ ТОВАРОВ ВСЕГДА ОДИНАКОВОЙ ВЫСОТЫ + НОРМАЛЬНАЯ КНОПКА === */
.products-grid,
.category-products .products-grid,
.wishlist-grid .products-grid,
.sp-related .products-grid {
    align-items: stretch;
}
.products-grid > .product-card,
.category-products .products-grid > .product-card,
.wishlist-grid .products-grid > .product-card,
.sp-related .products-grid > .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* Вид «Список» на десктопе — карточка-плашка: картинка | текст | цена | кнопки */
@media (min-width: 769px) {
    .products-grid.products-list,
    .category-products .products-grid.products-list,
    .wishlist-grid .products-grid.products-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }
    .products-grid.products-list > .product-card,
    .category-products .products-grid.products-list > .product-card,
    .wishlist-grid .products-grid.products-list > .product-card {
        display: grid !important;
        grid-template-columns: 96px 1fr auto auto !important;
        grid-template-areas:
            "img title price actions"
            "img meta  price actions" !important;
        flex-direction: row !important;
        height: auto !important;
        align-items: center;
        column-gap: 28px;
        row-gap: 6px;
        padding: 0 24px;
        border-radius: 14px;
        border: 1px solid #e8e8e8;
        background: #fff;
        box-shadow: none;
        transition: box-shadow 0.2s, border-color 0.2s;
    }
    .products-grid.products-list > .product-card:hover {
        border-color: #d8d8d8;
        box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    }
    .products-grid.products-list .product-card__image {
        grid-area: img;
        width: 96px;
        height: 96px;
        border-radius: 0;
        background: transparent;
        margin: 0;
        aspect-ratio: 1;
    }
    .products-grid.products-list .product-card__image img {
        object-fit: contain;
        padding: 6px;
    }
    .products-grid.products-list .product-card__title {
        grid-area: title;
        font-size: 15px;
        font-weight: 500;
        margin: 0;
        align-self: end;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    .products-grid.products-list .product-card__meta {
        grid-area: meta;
        font-size: 13px;
        margin: 0;
        align-self: start;
        gap: 24px;
        justify-content: flex-start;
    }
    .products-grid.products-list .product-card__price {
        grid-area: price;
        font-size: 18px;
        font-weight: 700;
        margin: 0;
        white-space: nowrap;
        align-self: center;
        text-align: right;
        min-width: 110px;
    }
    .products-grid.products-list .product-card__actions {
        grid-area: actions;
        align-self: center;
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 !important;
    }
    .products-grid.products-list .product-card__cart-btn {
        min-width: 150px;
        padding: 12px 28px;
        font-size: 15px;
        border-radius: 30px !important;
    }
    .products-grid.products-list .product-card__qty-control {
        min-width: 150px;
        height: 46px;
        border-radius: 30px;
    }
    .products-grid.products-list .product-card__wishlist {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
    .products-grid.products-list .product-card__wishlist svg {
        width: 20px;
        height: 20px;
    }
}
.product-card__actions {
    margin-top: auto !important;
}
/* Кнопка «В корзину» — гарантировано в одну строку, пилюля */
.product-card__cart-btn {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 50px !important;
    min-width: 0;
    line-height: 1.2;
}

/* === ПЛАНШЕТ: КАРТОЧКИ ТОВАРОВ ВСЕГДА ПО 3 В РЯД === */
@media (min-width: 601px) and (max-width: 1024px) {
    /* Все возможные сетки карточек товаров */
    .products-grid,
    .category-products .products-grid,
    .subcatalog-grid,
    .wishlist-grid .products-grid,
    .sp-related .products-grid,
    .new-products .products-grid,
    .top-products .products-grid,
    .categories-grid,
    .search-results-grid,
    .new-page .products-grid,
    .top-page .products-grid,
    .sales-page .products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        overflow: visible !important;
        gap: 16px !important;
    }
    /* Сбрасываем горизонтальный скролл в Новинках/Топ на планшете */
    .new-products .products-grid > .product-card,
    .top-products .products-grid > .product-card {
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        scroll-snap-align: none !important;
    }
    /* Стрелки карусели на планшете не нужны */
    .products-carousel-arrows {
        display: none !important;
    }
}
/* === ТЕЛЕФОН: 2 колонки === */
@media (max-width: 600px) {
    .category-products .products-grid,
    .subcatalog-grid,
    .wishlist-grid .products-grid,
    .sp-related .products-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    /* Единый стиль карточки товара везде — как в блоке «С этим товаром покупают» */
    .product-card {
        padding: 12px !important;
        border-radius: 10px;
    }
    .product-card .product-card__image {
        margin-bottom: 10px;
    }
    .product-card .product-card__title {
        font-size: 13px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-height: 1.35;
    }
    .product-card .product-card__meta {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .product-card .product-card__price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    /* Боковой отступ для категорий, подкаталога и страниц списков */
    .category-page .container,
    .subcatalog-page .container,
    .new-page .container,
    .top-page .container,
    .sales-page .container,
    .wishlist-page .container {
        padding: 0 16px !important;
    }
}

/* === CTA-БАННЕР «ПОДОБРАТЬ …» (категории и карточка товара) === */
.category-picker-cta {
    position: relative;
    display: block;
    width: 100%;
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    text-decoration: none;
    aspect-ratio: 16 / 5;
    min-height: 160px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-picker-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.category-picker-cta__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.category-picker-cta__btn {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 1;
    display: inline-block;
    padding: 14px 32px;
    background: #c42627;
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(196,38,39,0.4);
}
@media (max-width: 768px) {
    .category-picker-cta {
        aspect-ratio: 16 / 7;
        min-height: 140px;
        margin: 16px 0;
    }
    .category-picker-cta__bg {
        object-fit: contain;
        background: #1a1a1a;
    }
    .category-picker-cta__btn {
        bottom: 12px;
        padding: 10px 22px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .category-picker-cta {
        aspect-ratio: 16 / 8;
        min-height: 120px;
        border-radius: 12px;
    }
    .category-picker-cta__btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}

/* === ПУСТОЕ СОСТОЯНИЕ ВКЛАДОК (характеристики, видео, отзывы) === */
.sp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 16px;
    gap: 14px;
}
.sp-empty-state svg {
    flex-shrink: 0;
    opacity: 0.85;
}
.sp-empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}
.sp-empty-state p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.sp-empty-state__btn {
    display: inline-block;
    margin-top: 6px;
    padding: 12px 24px;
    background: #c42627;
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.sp-empty-state__btn:hover {
    background: #a01f20;
    color: #fff;
}
@media (max-width: 480px) {
    .sp-empty-state {
        padding: 28px 16px;
        gap: 10px;
    }
    .sp-empty-state h4 {
        font-size: 16px;
    }
    .sp-empty-state p {
        font-size: 13px;
    }
    .sp-empty-state__btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    .popular-categories .categories-grid {
        gap: 8px;
    }
    .popular-categories .category-card {
        padding: 14px 8px 16px;
    }
    .popular-categories .category-card__sub {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .popular-categories .category-card__icon {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    .popular-categories .category-card__name {
        font-size: 13px;
    }
    /* На мобилке показываем только 4 первых категории */
    .popular-categories .categories-grid > .category-card:nth-child(n+5) {
        display: none;
    }

    /* Адрес слева, соцсети + бургер прижаты к правому краю шапки */
    .top-bar .container {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    .top-bar__address {
        min-width: 0 !important;
        flex: 0 1 auto !important;
        overflow: hidden !important;
    }
    .top-bar__address span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .top-bar__right {
        margin-left: auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .top-bar__socials {
        display: flex !important;
    }
    .burger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        padding: 4px;
    }
}

/* === ГЛОБАЛЬНАЯ ЗАЩИТА ОТ ГОРИЗОНТАЛЬНОГО ОВЕРФЛОУ НА МОБИЛКЕ === */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    /* Все главные секции страниц гарантированно не вылезают за viewport */
    .cart-page,
    .checkout-page,
    .account-page,
    .single-product-page,
    .category-page,
    .subcatalog-page,
    .wishlist-grid,
    .new-products,
    .top-products,
    .popular-categories,
    .brands-section,
    .reviews-section,
    .request-form-section,
    .hero-section,
    .auth-page,
    .delivery-page,
    .about-page,
    .contacts-page,
    .warranty-page,
    .sales-page,
    .orders-page {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    /* На уровне всех контейнеров — никогда не выходим за viewport */
    .container {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Конкретный баг: cart-item__price имеет width:100% + margin-left → overflow */
    .cart-item__price {
        width: auto !important;
        margin-left: 0 !important;
        flex-basis: auto !important;
    }
    /* Принудительно держим хедер в пределах экрана */
    .top-bar,
    .main-header {
        max-width: 100vw;
        overflow-x: clip;
    }
}

/* Кнопка "Загрузить ещё" — в пределах экрана, не клипается */
@media (max-width: 480px) {
    .products-load-more {
        margin-top: 24px;
        padding: 0 12px;
    }
    .load-more-btn {
        display: inline-block;
        padding: 12px 28px;
        font-size: 14px;
        max-width: 100%;
        white-space: nowrap;
    }
}

/* Кнопка «В корзину» в карточке товара — текст в одну строку, не круг */
@media (max-width: 768px) {
    .product-card__cart-btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 10px 8px;
        min-width: 0;
        border-radius: 50px;
    }
    .product-card__actions {
        gap: 8px;
    }
    .product-card__wishlist {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
}
@media (max-width: 480px) {
    .product-card__cart-btn {
        font-size: 12px !important;
        padding: 8px 4px !important;
        white-space: nowrap !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        border-radius: 50px !important;
    }
    .product-card__actions {
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }
    .product-card__wishlist {
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0 !important;
    }
    .product-card__wishlist svg {
        width: 16px !important;
        height: 16px !important;
    }
    /* Уменьшаем внутренний padding карточки чтобы дать кнопке больше ширины */
    .category-products .products-grid > .product-card,
    .wishlist-grid .products-grid > .product-card {
        padding: 12px !important;
    }
    .product-card__title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    .product-card__price {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

/* Увеличение фото в истории заказов */
.order-card__product img {
    width: 80px !important;
    height: auto !important;
    border-radius: 8px;
    object-fit: cover;
}
