:root {
    /* Логотип остаётся главным ярким объектом.
       В интерфейсе фиолетовый используется только как вторичный акцент. */
    --brand-purple: #8c2aa3;
    --brand-magenta: #d23e9d;
    --brand-gold: #f2c230;
    --brand-orange: #ee842c;
    --brand-orange-dark: #d96c21;
    --brand-red: #d84a3a;
    --brand-dark: #272328;

    /* Основной UI */
    --accent: #ee842c;
    --accent-hover: #d96c21;
    --accent-soft: #fff4e6;

    /* Нейтральные цвета */
    --color-text: #28242a;
    --color-text-muted: #746e76;
    --color-text-soft: #9b959e;
    --color-bg: #ffffff;
    --color-bg-soft: #fbfaf8;
    --color-bg-accent: #f7f5f2;
    --color-border: #e7e2dd;
    --color-border-strong: #d7d0ca;
    --color-success: #31945a;

    /* Общие параметры */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-card: 0 14px 36px rgba(52, 43, 38, 0.10);
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

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

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.container {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}


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

.site-header {
    position: relative;
    z-index: 100;

    background: #fff;
}


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

.header-main {
    border-bottom: 1px solid #eee9e4;

    background: #fff;
}


.header-main__inner {
    min-height: 104px;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* LOGO */

.logo {
    width: 126px;
    height: 80px;

    flex: 0 0 126px;

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


.logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


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

.header-search {
    height: 50px;

    min-width: 250px;

    flex: 1;

    display: flex;

    overflow: hidden;

    border: 1px solid #ddd6d0;
    border-radius: 12px;

    background: #fff;

    box-shadow:
        0 3px 14px
        rgba(45, 39, 34, 0.045);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


.header-search:focus-within {
    border-color: var(--brand-orange);

    box-shadow:
        0 0 0 3px
        rgba(238, 132, 44, 0.10);
}


.header-search input {
    min-width: 0;

    flex: 1;

    padding: 0 18px;

    border: 0;
    outline: 0;

    color: var(--color-text);
    font-size: 15px;

    background: transparent;
}


.header-search input::placeholder {
    color: #aaa2aa;
}


.header-search button {
    min-width: 112px;

    padding: 0 26px;

    border: 0;

    color: #fff;

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

    background:
        linear-gradient(
            135deg,
            var(--brand-orange),
            #f0a02e
        );

    transition:
        filter var(--transition);
}


.header-search button:hover {
    filter: brightness(0.95);
}


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

.header-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 10px;
}


/* PHONE */

.header-phone {
    min-height: 54px;

    padding: 7px 14px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 11px;

    transition:
        background var(--transition);
}


.header-phone:hover {
    background: var(--color-bg-soft);
}


.header-phone__icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    border-radius: 50%;

    color: var(--brand-orange);

    background: var(--accent-soft);
}

.header-phone__icon svg {
    width: 20px;
    height: 20px;

    fill: currentColor;
}

.header-phone__content {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.header-phone__content strong {
    white-space: nowrap;

    color: var(--color-text);

    font-size: 15px;
    font-weight: 750;

    line-height: 1.2;
}


.header-phone__content span {
    margin-top: 2px;

    color: var(--color-text-soft);

    font-size: 12px;
}

.header-phones {
    min-height: 56px;

    display: flex;
    align-items: center;

    gap: 10px;
}


.header-phones__content {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.header-phones__content a {
    white-space: nowrap;

    color: var(--color-text);

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

    line-height: 1.15;

    transition:
        color var(--transition);
}


.header-phones__content a:hover {
    color: var(--brand-orange);
}


.header-social {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    border-radius: 50%;

    background: #f2f5fb;

    transition:
        background var(--transition),
        transform var(--transition);
}


.header-social:hover {
    background: #e8eef8;

    transform: translateY(-1px);
}


.header-social__vk {
    color: #2787f5;

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

    letter-spacing: -0.5px;
}


/* CART */

.header-cart {
    min-height: 56px;

    padding: 7px 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 11px;

    transition:
        background var(--transition);
}


.header-cart:hover {
    background: var(--color-bg-soft);
}


.header-cart__icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    border-radius: 50%;

    color: var(--color-text);

    background: #f7f5f2;
}


.header-cart__icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-cart__content {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.header-cart__content strong {
    color: var(--color-text);

    font-size: 15px;
    font-weight: 750;

    line-height: 1.2;
}


.header-cart__content span {
    margin-top: 2px;

    white-space: nowrap;

    color: var(--color-text-soft);

    font-size: 11px;
}


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

.main-nav {
    position: relative;

    color: #fff;

    background: var(--brand-dark);

    box-shadow:
        0 5px 17px
        rgba(25, 21, 27, 0.13);
}


.main-nav__inner {
    height: 58px;

    display: flex;
    align-items: center;

    gap: 25px;
}


/* ================================
   CATALOG BUTTON
================================ */

.catalog-menu {
    position: relative;

    flex: 0 0 auto;
}


.catalog-menu > summary {
    list-style: none;
}


.catalog-menu > summary::-webkit-details-marker {
    display: none;
}


.catalog-button {
    height: 44px;

    padding: 0 19px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 0;
    border-radius: 10px;

    color: #33270e;

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

    line-height: 1;

    background:
        linear-gradient(
            135deg,
            var(--brand-gold),
            #f0a02e
        );

    box-shadow:
        0 5px 15px
        rgba(242, 194, 48, 0.20);

    transition:
        filter var(--transition),
        transform var(--transition);
}


.catalog-button:hover {
    color: #33270e;

    filter: brightness(1.035);
}


.catalog-button__burger,
.catalog-button__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-button__burger svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.catalog-button__arrow {
    margin-left: 2px;

    transition:
        transform var(--transition);
}


.catalog-button__arrow svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalog-menu[open]
.catalog-button__arrow {
    transform: rotate(180deg);
}


/* ================================
   DROPDOWN
================================ */

.catalog-dropdown {
    position: absolute;

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

    z-index: 500;

    width: 560px;

    padding: 18px;

    border: 1px solid var(--color-border);
    border-radius: 14px;

    color: var(--color-text);

    background: #fff;

    box-shadow:
        0 18px 45px
        rgba(31, 25, 32, 0.16);


    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(-6px);


    transition:
        opacity 0.16s ease,
        visibility 0.16s ease,
        transform 0.16s ease;
}

.catalog-menu:hover
.catalog-dropdown,
.catalog-menu:focus-within
.catalog-dropdown {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);
}


.catalog-menu:hover
.catalog-button__arrow {
    transform:
        rotate(180deg);
}

.catalog-menu::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;
    height: 10px;
}

.catalog-dropdown__grid {
    margin: 0;
    padding: 0;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;

    list-style: none;
}


.catalog-dropdown__link {
    min-height: 47px;

    padding: 0 13px;

    display: flex;
    align-items: center;

    border-radius: 9px;

    color: #423c45 !important;

    font-size: 14px !important;
    font-weight: 650 !important;

    line-height: 1.3;

    transition:
        color var(--transition),
        background var(--transition);
}


.catalog-dropdown__link:hover {
    color: var(--brand-orange) !important;

    background: #fff7ed;
}


.catalog-dropdown__all {
    min-height: 48px;

    margin-top: 13px;
    padding: 0 13px;

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

    border-top: 1px solid var(--color-border);

    color: var(--brand-purple) !important;

    font-size: 14px !important;
    font-weight: 750 !important;
}


.catalog-dropdown__all span {
    font-size: 18px;
}


/* ================================
   NAV LINKS
================================ */

.main-nav__links {
    min-width: 0;

    flex: 1;

    display: flex;
    align-items: center;

    gap: 27px;
}


.main-nav__links a {
    position: relative;

    white-space: nowrap;

    color: rgba(255, 255, 255, 0.92);

    font-size: 15px;
    font-weight: 650;

    line-height: 1;

    transition:
        color var(--transition);
}


.main-nav__links a:hover {
    color: var(--brand-gold);
}


/* LOCATION */

.header-location {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 8px;

    white-space: nowrap;

    color: rgba(255, 255, 255, 0.68);

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


.header-location > span {
    width: 6px;
    height: 6px;

    display: block;

    border-radius: 50%;

    background: var(--brand-gold);
}


/* ================================
   PAGE / BREADCRUMBS
================================ */

.page {
    padding: 30px 0 70px;
}

.breadcrumbs {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--color-text-soft);
    font-size: 14px;
}

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

.catalog-heading {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.catalog-heading h1 {
    margin: 0;
    color: #242126;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -1.3px;
}

.catalog-heading__description {
    margin: 10px 0 0;
    color: var(--color-text-muted);
}

.catalog-heading__count {
    padding-bottom: 4px;
    color: var(--color-text-soft);
}


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

.catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;

    align-items: start;
}


.catalog-main {
    width: 100%;
    min-width: 0;
}

.catalog-filter {
    align-self: start;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 8px 28px rgba(76, 31, 89, 0.05);
}

.catalog-filter__title {
    margin-bottom: 4px;
    color: #242126;
    font-size: 21px;
    font-weight: 850;
}

.filter-section {
    padding: 21px 0;
    border-bottom: 1px solid var(--color-border);
}

.filter-section__title {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 750;
}

.price-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.price-filter input {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--color-text);
    background: var(--color-bg-soft);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.price-filter input:focus {
    border-color: var(--brand-purple);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(238, 132, 44, 0.10);
}

.filter-option {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #4c4450;
    font-size: 14px;
    cursor: pointer;
}

.filter-option input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand-purple);
}

.filter-more {
    margin-top: 7px;
    padding: 0;
    border: 0;
    color: var(--brand-purple);
    font-size: 13px;
    font-weight: 700;
    background: transparent;
}

.filter-more:hover {
    color: var(--brand-purple);
}

.filter-reset {
    width: 100%;
    height: 42px;
    margin-top: 20px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    color: #5d5561;
    background: #fff;
    transition: border-color var(--transition), background var(--transition);
}

.filter-reset:hover {
    border-color: var(--color-border-strong);
    background: var(--color-bg-soft);
}


/* ================================
   TOOLBAR
================================ */

.catalog-toolbar {
    min-height: 54px;
    margin-bottom: 19px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.catalog-toolbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-toolbar select {
    height: 42px;
    padding: 0 38px 0 13px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    outline: none;
    color: var(--color-text);
    background: #fff;
}

.catalog-toolbar select:focus {
    border-color: var(--brand-purple);
}


/* ================================
   PRODUCT GRID / CARD
================================ */

.product-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(245px, 1fr)
        );

    gap: 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.product-card:hover {
    border-color: #d7b9df;
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.product-card__image-wrap {
    position: relative;
    padding: 12px;
}

.product-card__image {
    aspect-ratio: 1 / 0.82;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 13px;
    color: var(--color-text-soft);
    font-size: 13px;
    background:
        radial-gradient(circle at 50% 35%, #fff 0%, #fcfbf9 55%, #f5f2ee 100%);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.product-card__no-image {
    color: var(--color-text-soft);
    font-size: 13px;
}

.product-card__badges {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
    max-width: calc(100% - 75px);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card__badge {
    position: static;
    padding: 6px 9px;
    border-radius: 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    background: linear-gradient(135deg, #e65846, var(--brand-red));
    box-shadow: 0 3px 10px rgba(122, 35, 143, 0.14);
}

.product-card__badge--popular {
    color: #3c2a08;
    background: linear-gradient(135deg, #ffe36d, var(--brand-gold));
}

.product-card__badge--favorite {
    background: linear-gradient(135deg, #7b2a8d, var(--brand-purple));
}

.product-card__favorite-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--brand-dark);
    font-size: 20px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 12px rgba(67, 27, 79, 0.08);
    transition:
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        background var(--transition);
}

.product-card__favorite-button:hover {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
    background: #fff;
    transform: scale(1.05);
}

.product-card__body {
    padding: 7px 18px 19px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__meta {
    min-height: 18px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-text-soft);
    font-size: 11px;
}

.product-card__vendor {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.product-card__title {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.35;
}

.product-card__title a {
    transition: color var(--transition);
}

.product-card__title a:hover {
    color: var(--brand-purple);
}

.product-card__specs {
    min-height: 27px;
    margin-bottom: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card__availability {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-success);
    font-size: 12px;
    font-weight: 700;
}

.product-card__availability-dot,
.product-card__availability > span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--color-success);
}

.product-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.product-card__price {
    color: #242126;
    font-size: 21px;
    font-weight: 900;
}

.product-card__old-price {
    margin-top: 2px;
    color: var(--color-text-soft);
    font-size: 12px;
    text-decoration: line-through;
}

.product-card__cart {
    height: 41px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-orange), #f0a02e);
    box-shadow: 0 6px 16px rgba(238, 132, 44, 0.18);
    transition: filter var(--transition), transform var(--transition);
}

.product-card__cart:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
}


/* ================================
   PAGINATION
================================ */

.pagination {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.pagination__item {
    width: 42px;
    height: 42px;

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

    flex: 0 0 42px;

    border: 1px solid var(--color-border);
    border-radius: 9px;

    color: #514856;

    text-decoration: none;

    background: #fff;

    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition);
}


.pagination__item:hover {
    border-color: var(--brand-purple);

    color: var(--brand-purple);

    background: #fff;
}


.pagination__item--active,
.pagination__item--active:hover {
    border-color: var(--brand-purple);

    color: #fff;

    background: var(--accent);

    cursor: default;
}


.pagination__item--arrow {
    font-size: 18px;
}


.pagination__dots {
    width: 30px;
    height: 42px;

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

    color: var(--color-text-soft);
}


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

.footer-phone-list {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.footer-vk {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #bdb5c0;

    font-size: 13px;

    transition:
        color var(--transition);
}


.footer-vk span {
    width: 27px;
    height: 27px;

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

    border-radius: 7px;

    color: #fff;

    font-size: 10px;
    font-weight: 900;

    background: #2787f5;
}


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

.site-footer {
    margin-top: 70px;

    color: #c9c3ca;

    background: var(--brand-dark);
}


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

.footer-main {
    padding: 58px 0 48px;

    display: grid;

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

    gap: 65px;
}


/* ================================
   BRAND
================================ */

.footer-brand {
    min-width: 0;
}


.footer-brand-name {
    display: inline-block;

    margin-bottom: 18px;

    color: #fff;

    font-size: 29px;
    font-weight: 900;

    line-height: 1;
    letter-spacing: 0.5px;

    transition:
        opacity var(--transition);
}


.footer-brand-name:hover {
    color: #fff;

    opacity: 0.82;
}


.footer-brand__description {
    max-width: 220px;

    margin: 0;

    color: #b9b2bb;

    font-size: 14px;
    line-height: 1.65;
}


.footer-brand__age {
    width: 42px;
    height: 27px;

    margin-top: 18px;

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

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;

    color: #e7e2e8;

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


/* ================================
   COLUMNS
================================ */

.footer-column {
    min-width: 0;
}


.footer-column__title {
    margin-bottom: 20px;

    color: #fff;

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


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

.footer-catalog {
    margin: 0;
    padding: 0;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px 25px;

    list-style: none;
}


.footer-catalog li {
    min-width: 0;
}


.footer-catalog a {
    color: #bdb5c0;

    font-size: 13px;
    line-height: 1.45;

    transition:
        color var(--transition);
}


.footer-catalog a:hover {
    color: var(--brand-gold);
}


.footer-all-catalog {
    margin-top: 20px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #e1b8eb;

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

    transition:
        color var(--transition);
}


.footer-all-catalog:hover {
    color: var(--brand-gold);
}


.footer-all-catalog span {
    font-size: 17px;
}


/* ================================
   LINKS
================================ */

.footer-links {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 13px;
}


.footer-links a {
    color: #bdb5c0;

    font-size: 13px;

    transition:
        color var(--transition);
}


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


/* ================================
   CONTACTS
================================ */

.footer-contacts {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 12px;

    color: #bdb5c0;

    font-size: 13px;
}


.footer-phone {
    color: #fff;

    font-size: 15px;
    font-weight: 750;

    transition:
        color var(--transition);
}


.footer-phone:hover {
    color: var(--brand-gold);
}


.footer-worktime {
    width: 100%;

    margin-top: 9px;

    display: flex;
    flex-direction: column;

    gap: 7px;
}


.footer-worktime small {
    margin-bottom: 2px;

    color: #8f8792;

    font-size: 11px;
}


.footer-worktime__row {
    max-width: 180px;

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

    gap: 18px;
}


.footer-worktime__row span {
    color: #a9a1ab;

    font-size: 12px;
}


.footer-worktime__row strong {
    white-space: nowrap;

    color: #d2ccd4;

    font-size: 12px;
    font-weight: 650;
}


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

.footer-bottom {
    min-height: 70px;

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

    gap: 30px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.10);

    color: #8f8792;

    font-size: 12px;
}


.footer-copyright {
    white-space: nowrap;
}


.footer-bottom__links {
    display: flex;
    align-items: center;

    gap: 26px;
}


.footer-bottom__links span {
    color: #aaa2ad;

    font-weight: 750;
}


.footer-bottom__links a {
    color: #8f8792;

    transition:
        color var(--transition);
}


.footer-bottom__links a:hover {
    color: var(--brand-gold);
}

/* ================================
   PRODUCT CARD GALLERY
================================ */

.product-card__gallery {
    width: 100%;
}

.product-card-gallery {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 0.82;

    overflow: hidden;

    border-radius: 13px;

    background:
        radial-gradient(
            circle at 50% 35%,
            #ffffff 0%,
            #fcfbf9 55%,
            #f5f2ee 100%
        );
}

.product-card-gallery__track {
    width: 100%;
    height: 100%;

    display: flex;

    transition: transform 0.28s ease;
}

.product-card-gallery__slide {
    width: 100%;
    height: 100%;

    flex: 0 0 100%;

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

.product-card-gallery__slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


/* Стрелки */

.product-card-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 32px;
    height: 32px;

    padding: 0 0 2px;

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

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;

    color: #383239;
    font-size: 23px;

    background: rgba(255, 255, 255, 0.94);

    opacity: 0;

    transform: translateY(-50%);

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.product-card:hover .product-card-gallery__arrow {
    opacity: 1;
}

.product-card-gallery__arrow:hover {
    border-color: var(--accent);
}

.product-card-gallery__arrow--prev {
    left: 9px;
}

.product-card-gallery__arrow--next {
    right: 9px;
}


/* Счётчик фотографий */

.product-card-gallery__counter {
    position: absolute;
    right: 9px;
    bottom: 9px;
    z-index: 4;

    padding: 4px 7px;

    border-radius: 7px;

    color: #555057;
    font-size: 10px;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(4px);
}


/* Если изображения нет */

.product-card-gallery--empty {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--color-text-soft);
    font-size: 13px;
}


/* ================================
   PRODUCT CARD SPECS
================================ */

.product-card__specs {
    min-height: 0;

    margin-bottom: 13px;

    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.product-card__spec {
    padding: 5px 8px;

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

    color: #686169;
    font-size: 11px;
    line-height: 1.2;

    background: #f7f5f2;

    white-space: nowrap;
}

.product-card {
    cursor: pointer;
}


/*
 * Здесь пользователь часто выделяет текст,
 * поэтому оставляем нормальный текстовый курсор.
 */

.product-card__meta,
.product-card__specs,
.product-card__prices {
    cursor: text;
}


/*
 * Настоящие управляющие элементы.
 */

.product-card a,
.product-card button {
    cursor: pointer;
}

.product-gallery__zoom {
    opacity: 0.82;

    transition: opacity 0.2s ease;
}


.product-gallery:hover
.product-gallery__zoom {
    opacity: 1;
}

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

.filter-extra[hidden] {
    display: none;
}


.catalog-filter__actions {
    padding-top: 20px;

    display: grid;
    gap: 9px;
}


.catalog-filter__apply {
    width: 100%;
    height: 42px;

    border: 0;
    border-radius: 9px;

    color: #fff;
    font-size: 13px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--brand-orange),
            #f0a02e
        );
}


.catalog-filter__apply:hover {
    filter: brightness(0.95);
}


.filter-reset {
    margin: 0;

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

    text-decoration: none;
}


.catalog-empty {
    grid-column: 1 / -1;

    padding: 60px 20px;

    border: 1px solid var(--color-border);
    border-radius: 16px;

    color: var(--color-text-muted);
    text-align: center;

    background: #fff;
}

.breadcrumbs {
    margin-bottom: 20px;
}


.breadcrumbs__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    font-size: 13px;
}


.breadcrumbs__link {
    color: #777;

    text-decoration: none;
}


.breadcrumbs__link:hover {
    color: var(--brand-orange);
}


.breadcrumbs__separator {
    color: #bbb;
}


.breadcrumbs__current {
    color: #303030;
    font-weight: 600;
}

/* ================================
   BREADCRUMBS
================================ */

.product-breadcrumbs {
    margin-bottom: 28px;
}

.product-breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    color: var(--color-text-soft);
    font-size: 13px;
}

.product-breadcrumbs .breadcrumb li {
    display: flex;
    align-items: center;
}

.product-breadcrumbs .breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #c0b5c4;
}

.product-breadcrumbs .breadcrumb a {
    transition: color var(--transition);
}

.product-breadcrumbs .breadcrumb a:hover {
    color: var(--brand-purple);
}

.product-breadcrumbs .breadcrumb .active {
    color: #635a67;
}

.product-card__cart-form {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.product-card__cart-form {
    margin: 0;
    flex: 0 0 auto;
}

.search-page-form {
    width: min(760px, 100%);

    margin-bottom: 30px;

    display: flex;

    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: 12px;

    background: #fff;
}


.search-page-form:focus-within {
    border-color: var(--brand-purple);

    box-shadow:
        0 0 0 3px
        rgba(238, 132, 44, 0.10);
}


.search-page-form input {
    min-width: 0;
    height: 50px;

    flex: 1;

    padding: 0 16px;

    border: 0;
    outline: none;

    color: var(--color-text);

    background: transparent;
}


.search-page-form button {
    padding: 0 26px;

    border: 0;

    color: #fff;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--brand-orange),
            #f0a02e
        );
}

.product-cart-message {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 99999;

    width: max-content;
    max-width: min(360px, calc(100vw - 32px));

    margin: 0;
    padding: 12px 16px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.45;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.16);

    pointer-events: none;
}


.product-cart-message[hidden] {
    display: none;
}

.product-cart-message {
    animation: cart-message-show 0.18s ease;
}

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

.product-card__cart-wrap {
    flex: 0 0 auto;
}


.product-card__quantity {
    width: 112px;
    height: 41px;

    display: grid;
    grid-template-columns: 36px 38px 36px;

    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    background: #fff;
}


.product-card__quantity[hidden] {
    display: none;
}


.product-card__quantity button {
    width: 36px;
    height: 100%;

    padding: 0;

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

    border: 0;

    color: #514856;
    font-size: 18px;

    background: #fff;
}


.product-card__quantity button:hover {
    color: var(--brand-purple);

    background: #f7f5f2;
}


.product-card__quantity input {
    width: 38px;
    min-width: 0;
    height: 100%;

    padding: 0;

    border: 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);

    outline: 0;

    color: #28242a;

    font-size: 13px;
    font-weight: 800;
    text-align: center;

    background: #fff;

    appearance: textfield;
    -moz-appearance: textfield;
}


.product-card__quantity input:focus {
    background: #fffaf3;
}


.product-card__quantity
input::-webkit-inner-spin-button,
.product-card__quantity
input::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
}

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

.product-buy,
.product-buy .product-buy__cart {
    width: 100%;
}


.product-buy .product-count {
    width: 100%;
    height: 50px;

    display: grid;
    grid-template-columns:
        40px
        minmax(0, 1fr)
        40px;

    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    background: #fff;
}


.product-buy .product-count[hidden] {
    display: none;
}


.product-buy .product-count__button {
    width: 40px;
    min-width: 40px;
    height: 100%;

    padding: 0;

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

    border: 0;

    color: #514856;
    font-size: 18px;

    background: #fff;
}


.product-buy .product-count__button:hover {
    color: var(--brand-purple);

    background: #f7f5f2;
}


.product-buy .product-count__value {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 100%;

    padding: 0 10px;

    border: 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);

    outline: 0;

    color: #28242a;

    font-size: 15px;
    font-weight: 800;
    text-align: center;

    background: #fff;

    appearance: textfield;
    -moz-appearance: textfield;
}


.product-buy .product-count__value:focus {
    background: #fffaf3;
}


.product-buy
.product-count__value::-webkit-inner-spin-button,
.product-buy
.product-count__value::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
}


@keyframes cart-message-show {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.product-cart-message.is-error {
    border: 1px solid #efb7b1;

    color: #a7352b;

    background: #fff4f2;
}


.product-cart-message.is-success {
    border: 1px solid #b7dec4;

    color: #23763d;

    background: #f2fff6;
}


.product-card__cart--disabled {
    cursor: not-allowed;

    color: #8d878b;

    background: #ece9e6;

    box-shadow: none;
}


.product-card__cart--disabled:hover {
    filter: none;

    transform: none;
}


.product-card__availability--empty {
    color: #b34b42;
}


.product-card__availability--empty > span {
    background: #b34b42;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1100px) {

    .catalog-layout {
        grid-template-columns: 225px minmax(0, 1fr);
        gap: 22px;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1380px);
    }

    .page {
        padding-top: 22px;
    }

    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .catalog-layout {
        display: block;
    }

    .catalog-filter {
        margin-bottom: 20px;
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card__body {
        padding: 5px 12px 14px;
    }

    .product-card__bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .product-card__cart {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}


@media (max-width: 600px) {

    .product-cart-message {
        right: 16px;
        bottom: 16px;
        left: 16px;

        width: auto;
        max-width: none;
    }

}



@media (max-width: 480px) {

    .catalog-heading h1 {
        font-size: 30px;
    }

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

    .product-card__image-wrap {
        padding: 7px;
    }

    .product-card__image {
        border-radius: 9px;
    }

    .product-card__badges {
        top: 14px;
        left: 14px;
    }

    .product-card__favorite-button {
        top: 12px;
        right: 12px;
        width: 31px;
        height: 31px;
    }

    .product-card__title {
        font-size: 14px;
    }

    .product-card__price {
        font-size: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   MOBILE / TABLET RESPONSIVE OVERRIDES
   Добавлено для мобильной версии сайта
============================================================ */

.header-mobile-toggle,
.catalog-filter-toggle,
.catalog-filter__close {
    display: none;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 1100px) {

    .header-main__inner {
        gap: 18px;
    }

    .header-phones__content a {
        font-size: 13px;
    }

    .main-nav__inner {
        gap: 18px;
    }

    .main-nav__links {
        gap: 18px;
    }

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

        gap: 42px 55px;
    }

}

@media (max-width: 900px) {

    .container {
        width: min(100% - 28px, 1380px);
    }

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

    .site-header {
        position: relative;
    }

    .header-main__inner {
        min-height: 0;
        padding: 10px 0 12px;

        display: grid;
        grid-template-columns:
            auto
            minmax(0, 1fr);

        align-items: center;
        gap: 10px 12px;
    }

    .logo {
        width: 88px;
        height: 56px;

        flex: none;
    }

    .header-actions {
        min-width: 0;

        justify-content: flex-end;
        gap: 6px;
    }

    .header-phones,
    .header-social {
        display: none;
    }

    .header-cart {
        width: 44px;
        min-height: 44px;

        padding: 3px;

        justify-content: center;
    }

    .header-cart__icon {
        width: 38px;
        height: 38px;
    }

    .header-cart__content {
        display: none;
    }

    .header-mobile-toggle {
        width: 44px;
        height: 44px;

        padding: 0;

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

        border: 1px solid var(--color-border);
        border-radius: 11px;

        color: var(--color-text);

        background: #fff;
    }

    .header-mobile-toggle svg {
        width: 23px;
        height: 23px;

        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .header-search {
        grid-column: 1 / -1;

        width: 100%;
        height: 44px;
        min-width: 0;
    }

    .header-search input {
        padding: 0 13px;

        font-size: 14px;
    }

    .header-search button {
        min-width: 86px;

        padding: 0 15px;

        font-size: 14px;
    }

    .main-nav {
        display: none;
    }

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

    .mobile-menu {
        position: fixed;
        inset: 0;

        z-index: 2000;

        display: block;
    }

    .mobile-menu__backdrop {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        padding: 0;
        border: 0;

        background: rgba(24, 20, 25, 0.55);
    }

    .mobile-menu__panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;

        width: min(88vw, 390px);

        padding: 18px;

        overflow-y: auto;
        overscroll-behavior: contain;

        color: var(--color-text);
        background: #fff;

        box-shadow:
            -16px 0 45px
            rgba(20, 16, 20, 0.18);
    }

    .mobile-menu__head {
        margin-bottom: 16px;

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

        gap: 15px;
    }

    .mobile-menu__head strong {
        font-size: 20px;
        font-weight: 900;
    }

    .mobile-menu__close {
        width: 42px;
        height: 42px;

        padding: 0;

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

        border: 1px solid var(--color-border);
        border-radius: 10px;

        color: #514a53;
        font-size: 27px;
        line-height: 1;

        background: #fff;
    }

    .mobile-menu__catalog {
        min-height: 48px;

        padding: 0 15px;

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

        gap: 12px;

        border-radius: 11px;

        color: #33270e;
        font-weight: 850;

        background:
            linear-gradient(
                135deg,
                var(--brand-gold),
                #f0a02e
            );
    }

    .mobile-menu__section-title {
        margin: 24px 0 10px;

        color: var(--color-text-soft);

        font-size: 11px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .7px;
    }

    .mobile-menu__categories {
        margin: 0;
        padding: 0;

        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;

        list-style: none;
    }

    .mobile-menu__categories a,
    .mobile-menu__links a {
        min-width: 0;
        min-height: 42px;

        padding: 10px 11px;

        display: flex;
        align-items: center;

        border: 1px solid var(--color-border);
        border-radius: 9px;

        color: #4b444d;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;

        background: #fff;
    }

    .mobile-menu__links {
        display: grid;
        gap: 7px;
    }

    .mobile-menu__contacts {
        margin-top: 22px;
        padding-top: 18px;

        display: grid;
        gap: 10px;

        border-top: 1px solid var(--color-border);
    }

    .mobile-menu__phone {
        color: var(--color-text);
        font-size: 15px;
        font-weight: 800;
    }

    .mobile-menu__vk {
        color: #2787f5;
        font-size: 13px;
        font-weight: 800;
    }

    .mobile-menu__location {
        color: var(--color-text-muted);
        font-size: 13px;
    }

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

    .site-footer {
        margin-top: 50px;
    }

    .footer-main {
        padding: 44px 0 38px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 38px 45px;
    }

}

@media (max-width: 760px) {

    .container {
        width: min(100% - 24px, 1380px);
    }

    .page {
        padding: 20px 0 52px;
    }

    /* ================================
       BREADCRUMBS
    ================================ */

    .product-breadcrumbs {
        margin-bottom: 18px;

        overflow: hidden;
    }

    .product-breadcrumbs .breadcrumb,
    .breadcrumbs__inner {
        flex-wrap: nowrap;

        overflow-x: auto;
        scrollbar-width: none;

        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
    }

    .product-breadcrumbs .breadcrumb::-webkit-scrollbar,
    .breadcrumbs__inner::-webkit-scrollbar {
        display: none;
    }

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

    .catalog-heading {
        margin-bottom: 22px;

        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .catalog-heading h1 {
        font-size: 32px;
        letter-spacing: -0.7px;
    }

    .catalog-heading__description {
        margin-top: 7px;

        font-size: 13px;
        line-height: 1.55;
    }

    .catalog-heading__count {
        padding: 0;

        font-size: 13px;
    }

    .catalog-layout {
        display: block;
    }

    .catalog-filter {
        display: none;

        margin-bottom: 18px;
        padding: 18px;

        border-radius: 14px;
    }

    .catalog-filter.is-mobile-open {
        display: block;
    }

    .catalog-filter__header {
        margin-bottom: 4px;

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

        gap: 15px;
    }

    .catalog-filter__title {
        margin: 0;

        font-size: 19px;
    }

    .catalog-filter__close {
        width: 36px;
        height: 36px;

        padding: 0;

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

        border: 1px solid var(--color-border);
        border-radius: 9px;

        color: #5b535e;
        font-size: 23px;

        background: #fff;
    }

    .filter-section {
        padding: 17px 0;
    }

    .catalog-toolbar {
        min-height: 0;
        margin-bottom: 14px;
        padding: 0;

        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        align-items: center;
        gap: 10px;
    }

    .catalog-found {
        font-size: 13px;
    }

    .catalog-filter-toggle {
        min-height: 40px;

        padding: 0 14px;

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

        border: 1px solid var(--color-border);
        border-radius: 9px;

        color: var(--color-text);
        font-size: 13px;
        font-weight: 750;

        background: #fff;
    }

    .catalog-filter-toggle[aria-expanded="true"] {
        border-color: #edc797;
        color: var(--brand-orange-dark);
        background: #fff8ef;
    }

    .catalog-toolbar__right {
        grid-column: 1 / -1;

        width: 100%;

        gap: 8px;
    }

    .catalog-toolbar__right label {
        flex: 0 0 auto;

        font-size: 12px;
    }

    .catalog-toolbar__right select {
        min-width: 0;
        width: 100%;
    }

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

        gap: 10px;
    }

    .product-card {
        border-radius: 13px;
    }

    .product-card__image-wrap {
        padding: 8px;
    }

    .product-card-gallery {
        border-radius: 10px;
    }

    .product-card-gallery__arrow {
        width: 29px;
        height: 29px;

        font-size: 21px;

        opacity: .92;
    }

    .product-card-gallery__arrow--prev {
        left: 5px;
    }

    .product-card-gallery__arrow--next {
        right: 5px;
    }

    .product-card-gallery__counter {
        right: 6px;
        bottom: 6px;

        padding: 3px 6px;

        font-size: 9px;
    }

    .product-card__badges {
        top: 12px;
        left: 12px;

        gap: 4px;
    }

    .product-card__badge {
        padding: 4px 6px;

        border-radius: 6px;

        font-size: 9px;
    }

    .product-card__body {
        padding: 5px 10px 12px;
    }

    .product-card__title {
        min-height: 38px;
        margin-bottom: 8px;

        font-size: 14px;
        line-height: 1.3;
    }

    .product-card__specs {
        margin-bottom: 9px;

        gap: 4px;
    }

    .product-card__spec {
        max-width: 100%;

        padding: 4px 6px;

        overflow: hidden;

        font-size: 10px;
        text-overflow: ellipsis;
    }

    .product-card__availability {
        margin-bottom: 9px;

        font-size: 10px;
    }

    .product-card__bottom {
        align-items: stretch;
        flex-direction: column;

        gap: 8px;
    }

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

    .product-card__price {
        font-size: 19px;
    }

    .product-card__old-price {
        font-size: 11px;
    }

    .product-card__cart-wrap {
        width: 100%;
    }

    .product-card__cart {
        width: 100%;
        height: 39px;

        padding: 0 8px;

        font-size: 12px;
    }

    .product-card__quantity {
        width: 100%;
        height: 39px;

        grid-template-columns:
            35px
            minmax(0, 1fr)
            35px;
    }

    .product-card__quantity button {
        width: 35px;
    }

    .product-card__quantity input {
        width: 100%;
    }

    .pagination {
        margin-top: 25px;

        flex-wrap: wrap;
    }

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

    .site-footer {
        margin-top: 42px;
    }

    .footer-main {
        padding: 36px 0 30px;

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-brand-name {
        margin-bottom: 12px;

        font-size: 25px;
    }

    .footer-column__title {
        margin-bottom: 14px;
    }

    .footer-catalog {
        gap: 9px 18px;
    }

    .footer-bottom {
        min-height: 0;
        padding: 22px 0;

        align-items: flex-start;
        flex-direction: column;

        gap: 11px;
    }

    .footer-bottom__links {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

}

@media (max-width: 520px) {

    .container {
        width: calc(100% - 20px);
    }

    .header-main__inner {
        padding-top: 8px;
    }

    .header-search {
        height: 42px;
    }

    .header-search input {
        padding: 0 11px;

        font-size: 13px;
    }

    .header-search button {
        min-width: 75px;

        padding: 0 10px;

        font-size: 13px;
    }

    .mobile-menu__panel {
        width: min(92vw, 370px);

        padding: 15px;
    }

    .mobile-menu__categories {
        grid-template-columns: 1fr;
    }

    .catalog-heading h1 {
        font-size: 29px;
    }

    .product-grid {
        gap: 8px;
    }

    .product-card__image-wrap {
        padding: 6px;
    }

    .product-card__body {
        padding: 4px 8px 10px;
    }

    .product-card__title {
        min-height: 35px;

        font-size: 13px;
    }

    .product-card__price {
        font-size: 17px;
    }

    .product-card__spec:nth-child(n + 5) {
        display: none;
    }

    .product-card-gallery__arrow {
        width: 27px;
        height: 27px;
    }

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

}

@media (max-width: 360px) {

    .container {
        width: calc(100% - 16px);
    }

    .product-grid {
        gap: 6px;
    }

    .product-card__body {
        padding-right: 7px;
        padding-left: 7px;
    }

    .product-card__title {
        font-size: 12.5px;
    }

    .product-card__cart {
        font-size: 11px;
    }

}

/* =========================================
   MOBILE / TABLET HEADER FINAL
========================================= */

@media (max-width: 900px) {

    .header-main__inner {
        min-height: 0;

        padding: 8px 0 12px;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        grid-template-areas:
            "logo actions"
            "search search";

        align-items: center;

        gap: 7px 12px;
    }


    /* ================================
       LOGO
    ================================ */

    .logo {
        grid-area: logo;

        /*
         * На маленьком телефоне примерно 112px,
         * на планшете постепенно увеличивается.
         */
        width: clamp(
            112px,
            16vw,
            144px
        );

        height: clamp(
            58px,
            8vw,
            72px
        );

        margin: 0;

        justify-self: start;

        flex: none;

        overflow: hidden;
    }


    /*
     * У картинки логотипа есть пустые поля,
     * поэтому увеличиваем именно изображение,
     * а не высоту всей шапки.
     */
    .logo img {
        width: 100%;
        height: 100%;

        display: block;

        object-fit: contain;

        transform: scale(1.22);
        transform-origin: center;
    }


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

    .header-actions {
        grid-area: actions;

        width: auto;
        min-width: 0;

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

        gap: 7px;
    }


    /*
     * Телефоны и VK находятся
     * внутри мобильного меню.
     */
    .header-phones,
    .header-social {
        display: none;
    }


    /* ================================
       CART
    ================================ */

    .header-cart {
        width: 44px;
        height: 44px;
        min-height: 44px;

        flex: 0 0 44px;

        padding: 0;

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

        border: 1px solid var(--color-border);
        border-radius: 10px;

        background: #fff;
    }


    .header-cart__content {
        display: none;
    }


    .header-cart__icon {
        width: 22px;
        height: 22px;

        flex: 0 0 22px;

        background: transparent;
    }


    .header-cart__icon svg {
        width: 21px;
        height: 21px;
    }


    /* ================================
       MENU BUTTON
    ================================ */

    .header-mobile-toggle {
        width: 44px;
        height: 44px;

        flex: 0 0 44px;

        padding: 0;

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

        border: 1px solid var(--color-border);
        border-radius: 10px;

        color: var(--color-text);

        background: #fff;
    }


    .header-mobile-toggle svg {
        width: 22px;
        height: 22px;

        fill: none;

        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }


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

    .header-search {
        grid-area: search;

        width: 100%;
        height: 42px;
        min-width: 0;

        margin: 0;
    }


    .header-search input {
        min-width: 0;

        padding: 0 13px;

        font-size: 14px;
    }


    .header-search button {
        min-width: 82px;

        padding: 0 13px;

        font-size: 14px;
    }

}
