:root {
    --container-width: 1400px;
    --container-padding: 16px;

    --color-bg: #ffffff;
    --color-text: #172033;
    --color-text-strong: #0f172a;
    --color-muted: #64748b;

    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-soft: #eff6ff;

    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;
    --color-surface: #f8fafc;
    --color-surface-elevated: #ffffff;

    --color-footer-bg: #0f172a;
    --color-footer-text: #cbd5e1;

    --header-height: 110px;

    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-hover);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* HEADER */
.site-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
    align-self: center;
    color: var(--color-text-strong);
    text-decoration: none;
}

.site-logo__image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-logo__text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #334155;
    line-height: 1;
    transition: color .2s ease, opacity .2s ease;
    opacity: .92;
}

.site-logo:hover .site-logo__text {
    color: var(--color-primary);
    opacity: 1;
}

.site-header__right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.site-menu--top {
    width: 100%;
}

.site-menu__list {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-menu__list a {
    color: var(--color-text-strong);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
    transition: color .2s ease, opacity .2s ease;
    opacity: .92;
}

.site-menu__list a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.site-header__bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    min-width: 0;
}

/* SEARCH */
.site-search {
    position: relative;
    flex: 1;
    max-width: 520px;
    min-width: 260px;
    margin-right: 100px;
}

.site-search__input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--color-text-strong);
    transition: border-color .2s ease;
}

.site-search__input::placeholder {
    color: #94a3b8;
}

.site-search__input:focus {
    border-bottom-color: var(--color-primary);
}

.site-search__icon-button {
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--color-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: color .2s ease;
}

.site-search__icon-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.site-search__icon-button:hover {
    color: var(--color-primary);
}

/* SEARCH DROPDOWN */
.site-search__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
}

.site-search__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid #eef2f7;
    transition: background .15s ease, transform .15s ease;
}

.site-search__item:last-child {
    border-bottom: 0;
}

.site-search__item:hover {
    background: var(--color-primary-soft);
}

.site-search__item-name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--color-text-strong);
}

.site-search__item-price {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 700;
}

.site-search__empty {
    padding: 12px 14px;
    color: var(--color-muted);
    font-size: 14px;
}

.site-search__group {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #eef2f7;
    align-items: start;
}

.site-search__group:last-child {
    border-bottom: 0;
}

.site-search__group-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-strong);
    line-height: 1.4;
    padding-top: 12px;
    white-space: nowrap;
}

.site-search__group-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-search__group .site-search__item {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.site-search__group .site-search__item:last-child {
    border-bottom: 0;
}

/* HEADER ICONS */
.site-header__icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.site-header__icon {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-strong);
    background: #fff;
    transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.site-header__icon:hover {
    color: var(--color-primary);
    border-color: #bfdbfe;
    background: var(--color-primary-soft);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.site-header__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.site-header__icon-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* MAIN / FOOTER */
.site-main {
    padding: 0 0 48px;
}

.site-footer {
    margin-top: 48px;
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 24px 0;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 768px) {
    .site-footer {
        display: none;
    }
}



/* BREADCRUMBS */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-muted);
    position: relative;
    z-index: 20;
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin-top: 60px;
        position: relative;
        z-index: 2;
    }
    
        .breadcrumbs {
        position: relative;
        z-index: 1200;
    }

    .breadcrumbs a,
    .breadcrumbs span {
        position: relative;
        z-index: 1201;
        pointer-events: auto;
    }

    .site-header {
        z-index: 110;
    }
}

.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.breadcrumbs__item::after {
    content: "/";
    margin-left: 8px;
    color: var(--color-muted);
}

.breadcrumbs__item:last-child::after {
    content: "";
    margin: 0;
}



/* CONTENT */
.content {
    line-height: 1.6;
    color: var(--color-text);
}

/* HERO */
.hero {
    padding: 0;
    margin-bottom: 34px;
}

.hero__inner {
    position: relative;
    width: 100%;
    min-height: 560px;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background-image: var(--theme-banner-url);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.90) 0%,
        rgba(255, 255, 255, 0.78) 28%,
        rgba(255, 255, 255, 0.18) 58%,
        rgba(255, 255, 255, 0.02) 100%
    );
    z-index: 0;
}

.hero__inner > * {
    position: relative;
    z-index: 1;
}

.hero__content {
    width: 100%;
    max-width: 560px;
    padding: 64px 0;
    margin-left: 0;
}

.hero__badge {
    display: none;
}

.hero__title {
    margin: 0 0 24px;
    font-size: clamp(40px, 5vw, 74px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--color-text-strong);
    max-width: 560px;
}

.hero__title span {
    color: var(--color-primary);
}

.hero__text {
    margin: 0 0 28px;
    max-width: 360px;
    color: var(--color-text-strong);
    font-size: 22px;
    line-height: 1.4;
    font-weight: 500;
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 0;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hero__button:hover {
    background: linear-gradient(180deg, #4a8bf7 0%, #1d4ed8 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

/* SECTIONS */
.section {
    padding: 36px 0;
}

.section__header {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    color: #334155;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* GRIDS */
.grid {
    display: grid;
    gap: 20px;
}

.grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.grid--brands {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.grid--products {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* CARDS */
.card,
.product-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover,
.product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
    border-color: var(--color-border-strong);
}


.card__image,
.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    overflow: hidden;
}

.card__image img,
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__image {
    position: relative;
    overflow: hidden;
}

.product-card__image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.product-card__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.product-card__slide.is-active {
    opacity: 1;
}

.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: #f2f2f2;
    color: #888;
    font-size: 14px;
}

.product-card__dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.product-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: background 0.2s ease;
}

.product-card__dot.is-active {
    background: rgba(255,255,255,0.95);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--color-muted);
    font-size: 14px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.card__body,
.product-card__body {
    padding: 16px;
}

.card__title,
.product-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-muted);
    letter-spacing: -0.01em;
    transition: color .2s ease;
}

.product-card:hover .product-card__title {
    color: var(--color-primary);
}

.card__meta,
.product-card__category {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-muted);
}

.product-card__price {
    margin-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card__old-price {
    color: var(--color-muted);
    text-decoration: line-through;
    font-size: 14px;
}

.product-card__current-price {
    font-weight: 600;
    color: var(--color-text-strong);
    font-size: 20px;
    transition: color .2s ease;
}

.product-card:hover .product-card__current-price {
    color: var(--color-primary);
}

.product-card__price,
.product-page__price {
    margin-top: 10px;
    font-weight: 600;
}

/* VARIANTS */
.card--category {
    padding-top: 14px;
}

.card--category .card__title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-strong);
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.card--brand {
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card--brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
    border-color: var(--color-border-strong);
}

.card__image--brand {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background: #f3f4f6;
}

.card__image--brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.card__title-overlay .card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* PAGINATION / BOOTSTRAP HELPERS */
.mt-4 {
    margin-top: 1.5rem;
}

/* FRONT PAGINATION */
.section__counter {
    font-size: 14px;
    color: var(--color-muted);
    font-weight: 600;
}

.grid--products-home {
    display: block;
}

[data-home-products-list] {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}


.home-products__actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

.home-products__load-more-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease, border-color .2s ease;
    border-bottom: 1px dashed rgba(100, 116, 139, 0.55);
    padding-bottom: 2px;
}

.home-products__load-more-link:hover {
    color: var(--color-text-strong);
    border-bottom-color: rgba(23, 32, 51, 0.45);
    opacity: .95;
}

.home-products__load-more-link:disabled {
    cursor: wait;
    opacity: .55;
}

/* MOBILE MENU + BOTTOM BAR */
.site-header__burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.site-header__burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text-strong);
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.mobile-menu.is-open {
    pointer-events: auto;
    opacity: 1;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100%;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__header {
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-strong);
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    color: var(--color-text-strong);
    cursor: pointer;
}

.mobile-menu__body {
    padding: 12px 16px 20px;
    overflow: auto;
}

.site-menu--mobile .site-menu__list {
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
}

.site-menu--mobile .site-menu__list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 16px;
}

.mobile-bottom-bar {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1280px) {
    [data-home-products-list] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    [data-home-products-list] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 176px;
    }

    .site-header {
        padding-bottom: 58px;
        z-index: 110;
    }

    .site-header__inner {
        min-height: auto;
        padding: 8px 0 10px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .site-logo {
        order: 1;
        gap: 12px;
    }

    .site-logo__image {
        width: 52px;
        height: 52px;
    }

    .site-logo__text {
        font-size: 24px;
        line-height: 1.05;
    }

    .site-header__burger {
        display: inline-flex;
        order: 3;
        margin-left: auto;
        width: 48px;
        height: 48px;
        position: relative;
        z-index: 1200;
        pointer-events: auto;
    }

    .site-header__burger span {
        pointer-events: none;
    }

    .site-header__right {
        display: none;
    }

    .site-menu__list {
        gap: 12px;
        justify-content: flex-start;
    }

    .site-menu__list a {
        font-size: 15px;
    }

    .site-header__bottom {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px;
    }

    .site-search {
        max-width: none;
        min-width: 0;
        width: 100%;
        margin-right: 0;
    }

    .site-header__icons {
        width: 100%;
        flex-wrap: wrap;
    }

    .site-header__icon {
        flex: 1 1 160px;
        justify-content: center;
    }

    .site-main {
        padding: 24px 0 60px;
    }

    .hero__inner {
        min-height: 420px;
    }

    .hero__inner::before {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.90) 0%,
            rgba(255, 255, 255, 0.84) 45%,
            rgba(255, 255, 255, 0.18) 100%
        );
    }

    .hero__content {
        max-width: 100%;
        padding: 34px 0;
    }

    .hero__title {
        font-size: clamp(32px, 10vw, 48px);
        max-width: 420px;
    }

    .hero__text {
        font-size: 18px;
        max-width: 300px;
    }

    [data-home-products-list] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    
    .container {
    padding: 0 10px;
}

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        justify-content: space-between;
        gap: 4px;
    }

    .mobile-bottom-bar__item {
        flex: 1 1 20%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--color-text-strong);
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        padding: 6px 4px;
        min-width: 0;
    }

    .mobile-bottom-bar__item svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}







@media (max-width: 768px) {
    /* 1) HERO вплотную к верху, без границы хедера */
    .site-header {
        border-bottom: 0;
        background: transparent;
        backdrop-filter: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    .site-header__inner {
        padding-top: 10px;
    }

    .site-main {
        padding-top: 0;
    }

    .hero {
        margin-top: -92px;
        margin-bottom: 28px;
    }

.hero__inner {
    min-height: 560px;
    border-radius: 0;
    align-items: flex-start;
    padding-top: 92px;
}


    .hero__content {
        padding: 28px 0 36px;
        margin-top: 92px;
    }

.grid--cards.grid--brands {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    grid-template-columns: none;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.grid--cards.grid--brands::-webkit-scrollbar {
    display: none;
}

.grid--cards.grid--brands > * {
    flex: 0 0 44% !important;
    min-width: 44% !important;
    scroll-snap-align: start;
}


    /* 3) Популярные категории — карусель свайпом */
    .grid--cards {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        grid-template-columns: none;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .grid--cards::-webkit-scrollbar {
        display: none;
    }

    .grid--cards > * {
        flex: 0 0 62%;
        scroll-snap-align: start;
    }

/* 4) Товары в showcase — карусель свайпом */
.grid--showcase-products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.grid--showcase-products::-webkit-scrollbar {
    display: none;
}

.grid--showcase-products > * {
    flex: 0 0 62%;
    scroll-snap-align: start;
}

.product-card__body {
    padding: 8px 12px 12px;
}

.product-card__title {
    margin-top: 0;
}

.product-card__category {
    margin-top: 4px;
    margin-bottom: 4px;
}

.product-card__price {
    margin-top: 8px;
}

.product-card__current-price {
    font-size: 16px;
}


}


@media (min-width: 769px) {
    .section--showcase {
        position: relative;
    }

    .showcase-carousel {
        position: relative;
    }

    .showcase-carousel .grid--cards,
    .showcase-carousel .grid--showcase-products {
        overflow: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-top: 18px;
        padding-bottom: 18px;

    }

    .showcase-carousel .grid--cards::-webkit-scrollbar,
    .showcase-carousel .grid--showcase-products::-webkit-scrollbar {
        display: none;
    }

    .showcase-carousel .grid--cards.grid--brands,
    .showcase-carousel .grid--cards:not(.grid--brands),
    .showcase-carousel .grid--showcase-products {
        display: flex;
        flex-wrap: nowrap;
        gap: 14px;
        scroll-behavior: smooth;
    }

    .showcase-carousel .grid--cards.grid--brands > *,
    .showcase-carousel .grid--cards:not(.grid--brands) > *,
    .showcase-carousel .grid--showcase-products > * {
        flex: 0 0 auto;
    }

    .showcase-carousel .grid--cards.grid--brands > * {
        width: calc((100% - 100px) / 8);
    }

    .showcase-carousel .grid--cards:not(.grid--brands) > * {
        width: calc((100% - 56px) / 5);
    }

    .showcase-carousel .grid--showcase-products > * {
        width: calc((100% - 56px) / 5);
    }

    .showcase-carousel__btn {
        position: absolute;
        top: 50%;
        z-index: 5;
        width: 42px;
        height: 42px;
        margin-top: -21px;
        border: 1px solid var(--color-border);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.96);
        color: var(--color-text-strong);
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        font-size: 24px;
        line-height: 1;
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease, border-color .2s ease, color .2s ease;
    }


    .showcase-carousel__btn:hover:not(:disabled) {
        box-shadow: 0 8px 10px rgba(37, 99, 235, 0.16);
        background: var(--color-primary-soft);
        border-color: #bfdbfe;
        color: var(--color-primary);
    }

/*    .showcase-carousel__btn:hover:not(:disabled) {
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
        background: #fff;
        border-color: var(--color-border-strong);
    }*/

    .showcase-carousel__btn:disabled {
        opacity: 0.35;
        cursor: default;
        box-shadow: none;
    }

    .showcase-carousel__btn--prev {
        left: -20px;
    }

    .showcase-carousel__btn--next {
        right: -20px;
    }

    .showcase-carousel__btn:focus {
        outline: none;
    }
}

@media (max-width: 768px) {
    .showcase-carousel {
        position: static;
    }

    .showcase-carousel .grid--cards,
    .showcase-carousel .grid--showcase-products {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .showcase-carousel__btn {
        display: none;
    }
}



/* Цифра над иконкой корзины*/
.site-header__icon--cart,
.mobile-bottom-bar__item--cart {
    position: relative;
    overflow: visible;
}

.site-header__cart-count,
.mobile-bottom-bar__cart-count {
    position: absolute;
    min-width: 16px;
    height: 16px;
    padding: 0 2px;
    border-radius: 999px;
    background: var(--color-primary); /* синий фон */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.32);
    display: none;
    pointer-events: none;
    z-index: 3;
    transform: translate(50%, -50%);
}

.site-header__cart-count.is-visible,
.mobile-bottom-bar__cart-count.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header__icon--cart svg,
.mobile-bottom-bar__item--cart svg {
    display: block;
}

/* Десктоп */
.site-header__cart-count {
    top: 10px;
    right: 75px;
}

/* Мобильная */
.mobile-bottom-bar__cart-count {
    top: 4px;
    right: calc(50% - 11px);
}

@media (max-width: 768px) {
    .mobile-bottom-bar__item--cart {
        padding-top: 6px;
    }

    .mobile-bottom-bar__cart-count {
        top: 8px;
        right: calc(50% - 11px);
    }
}

