
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/Manrope-variable.ttf') format('truetype'); }

:root {
    --text: #25312c;
    --muted: #747b75;
    --pink: #f3ebe6;
    --accent: #61766a;
    --accent-dark: #43584c;
    --border: #e8e9e4;
    --surface: #fffdfa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: min(1380px, 92%);
    margin: auto;
}

[hidden] {
    display: none !important;
}

/* Верхняя строка */

.top-bar {
    background: #f8f7f7;
    border-bottom: 1px solid var(--border);
    padding: 11px 0;
    font-size: 11px;
}

.top-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.top-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-links a:hover {
    color: #c78f98;
}

/* Шапка */

.site-header {
    background: rgba(255, 253, 250, .96);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 24px rgba(37, 49, 44, .035);
}

.header-main {
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-align: center;
    font-size: 35px;
    letter-spacing: -2px;
    font-weight: 800;
    line-height: 1;
}

.logo span {
    font-weight: 400;
}

.logo small {
    display: block;
    margin-top: 9px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-button {
    border: 0;
    background: none;
    color: #242424;
    font-size: 29px;
    position: relative;
    width: 37px;
    padding: 0;
}

.icon-button:hover {
    color: var(--accent);
}

.cart-button span {
    position: absolute;
    top: 0;
    right: -5px;
    background: var(--accent-dark);
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
}

.category-nav {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 37px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 15px;
}

.category-nav a {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.category-nav a:hover {
    color: #c78f98;
}

.search-panel {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-panel input {
    flex: 1;
    width: 100%;
    border: 1px solid #ddd;
    outline: none;
    padding: 16px;
    border-radius: 3px;
}

.search-panel input:focus {
    border-color: #b7a0a3;
}

/* Баннер */

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ac7f87;
}

.main-button {
    display: inline-block;
    background: var(--accent-dark);
    color: white;
    padding: 16px 30px;
    font-weight: 600;
    transition: .2s;
    border-radius: 3px;
}

.main-button:hover {
    background: var(--accent);
}

/* Преимущества */

/* Разделы */

.section {
    padding-top: 85px;
    padding-bottom: 85px;
}

.section-heading {
    text-align: center;
    margin-bottom: 39px;
}

.section-heading h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 12px 0;
}

.section-heading p {
    color: var(--muted);
}

/* Категории */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-card {
    text-align: center;
}

.category-photo {
    width: 100%;
    height: 290px;
    background-size: cover;
    background-position: center;
    background-color: #f3efed;
    transition: transform .3s;
}

.category-card:hover .category-photo {
    transform: translateY(-4px);
}

.category-face {
    background-image: url('https://images.unsplash.com/photo-1556228578-0d85b1a4d571?w=800&auto=format&fit=crop');
}

.category-hair {
    background-image: url('https://images.unsplash.com/photo-1526947425960-945c6e72858f?w=800&auto=format&fit=crop');
}

.category-body {
    background-image: url('https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?w=800&auto=format&fit=crop');
}

.category-makeup {
    background-image: url('https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?w=800&auto=format&fit=crop');
}

.category-card h3 {
    font-size: 17px;
    margin: 20px 0 7px;
}

.category-card p {
    color: var(--muted);
    font-size: 12px;
}

.categories-grid-single {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.categories-grid-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin-inline: auto;
}

.categories-grid-single .category-photo {
    height: clamp(220px, 32vw, 340px);
    border-radius: 8px;
}

/* Товары */

.products-section {
    background: #fcfaf9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--surface);
    min-width: 0;
    position: relative;
    border: 1px solid transparent;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.product-card:hover {
    border-color: var(--border);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(37, 49, 44, .07);
}

.product-image {
    background: #f5f3f2;
    aspect-ratio: 4 / 4.5;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 16px;
    transition: transform .3s;
}

.product-card:hover img {
    transform: scale(1.04);
}

.product-tag {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 1;
    background: white;
    padding: 8px 11px;
    font-size: 10px;
    font-weight: 700;
}

.product-info {
    padding: 18px 13px 22px;
}

.product-tag {
    border-radius: 999px;
    color: #47383b;
    box-shadow: 0 3px 12px rgba(37, 49, 44, .08);
}

.brands a {
    color: inherit;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -.3px;
    text-decoration: none;
}

.brands a:hover {
    color: var(--accent);
}

.account-nav-link, .account-back-link {
    color: var(--text, #302b2b);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.account-nav-link:hover, .account-back-link:hover { color: var(--accent); }

.favorite-nav-count { font-size: 11px; font-weight: 700; }

.favorite-toggle {
    position: absolute;
    z-index: 5;
    top: 13px;
    right: 13px;
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(60, 48, 50, .1);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #59474b;
    box-shadow: 0 3px 12px rgba(37, 49, 44, .09);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s, color .18s, background .18s;
}
.favorite-toggle:hover { transform: scale(1.07); }
.favorite-toggle.is-favorite { color: #b24c64; }
.favorite-toggle-inline {
    position: static;
    width: auto;
    height: 40px;
    margin: 4px 0 12px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
}

@media (max-width: 600px) {
    .product-image img { padding: 10px; }
    .categories-grid-single, .categories-grid-pair { grid-template-columns: 1fr; }
}

.product-brand {
    color: #ab8389;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.product-info h3 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    min-height: 45px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.product-bottom strong {
    font-size: 17px;
}

.add-to-cart {
    border: none;
    background: var(--accent-dark);
    color: white;
    font-size: 22px;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    transition: background .2s, transform .2s;
}

.add-to-cart:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.no-results {
    text-align: center;
    padding: 30px;
}

/* Оптовая программа */

.promo {
    background: var(--pink);
    padding: 75px 25px;
    margin-top: 75px;
    text-align: center;
}

.promo h2 {
    font-size: 36px;
    margin: 15px 0;
}

.promo p {
    color: #6b6062;
    margin-bottom: 30px;
}

/* Бренды */

.brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    align-items: center;
}

.brands span {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brands.brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
}

.brands.brand-logo-grid .brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 110px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e6ebe7;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease;
}

.brand-logo-grid .brand-logo-card img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: 65px;
    object-fit: contain;
}

.brand-logo-grid .brand-logo-card span {
    color: #385b4b;
    font-size: 15px;
    font-weight: 600;
}

.brands.brand-logo-grid .brand-logo-card:hover {
    transform: translateY(-3px);
    border-color: #385b4b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

@media (max-width: 900px) {
    .brands.brand-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .brands.brand-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .brands.brand-logo-grid .brand-logo-card {
        min-height: 90px;
        padding: 12px;
    }
}

/* Подвал */

.footer {
    background: #f7f5f4;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 55px;
}

.footer-logo {
    font-size: 23px;
    font-weight: 800;
}

.footer p, .footer a {
    display: block;
    font-size: 12px;
    color: #777;
    line-height: 2;
}

.footer h3 {
    font-size: 13px;
    margin: 0 0 20px;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 20px;
    font-size: 11px;
    color: #777;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Телефоны и планшеты */

@media (max-width: 900px) {
    .top-content {
        justify-content: center;
    }

    .top-content > span {
        display: none;
    }

    .header-main {
        height: 85px;
    }

    .logo {
        font-size: 25px;
    }

    .category-nav {
        gap: 15px;
    }

.product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .top-bar {
        display: none;
    }

    .header-main {
        height: 75px;
    }

    .logo {
        font-size: 21px;
        letter-spacing: -1px;
    }

    .logo small {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions a {
        display: none;
    }

    .icon-button {
        font-size: 23px;
        width: 28px;
    }

    .category-nav {
        display: none;
        flex-direction: column;
    }

    .category-nav.open {
        display: flex;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .main-button {
        width: 100%;
    }

.section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-photo {
        height: 230px;
    }

    .product-grid {
        gap: 10px;
    }

    .product-info {
        padding: 12px 9px;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .product-bottom strong {
        font-size: 14px;
    }

    .promo {
        margin-top: 35px;
    }

    .promo h2 {
        font-size: 27px;
    }

    .brands {
        gap: 20px;
    }

    .brands span {
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Візуальна система магазину */
.icon-svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-svg.inline-icon { display: inline-block; width: 16px; height: 16px; vertical-align: -.15em; }
.favorite-toggle.is-favorite .icon-svg { fill: currentColor; }
.favorite-toggle.favorite-toggle-inline { display: inline-flex; width: auto; height: 40px; align-items: center; justify-content: center; gap: 8px; }
.beauty-available, .beauty-benefits > div { display: flex; align-items: center; gap: 8px; }
.favorites-empty > div .icon-svg { display: inline-block; width: 44px; height: 44px; }
.checkout-success-mark .icon-svg { width: 30px; height: 30px; }
.delivery-option-check .icon-svg { width: 14px; height: 14px; }
.checkout-steps .icon-svg, .cart-quantity-stepper .icon-svg { width: 18px; height: 18px; }
.carrier-logo .icon-svg { width: 22px; height: 22px; }
.filter-chip b .icon-svg { width: 12px; height: 12px; }
.nav-icon { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; }
.header-icon-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.header-icon-link .icon-svg { width: 19px; height: 19px; }
.site-header { border-bottom: 1px solid rgba(232, 233, 228, .8); }
.logo { color: var(--accent-dark); }
.category-nav a { display: inline-flex; align-items: center; gap: 6px; }
.category-nav a:hover { color: var(--accent-dark); }
.section-heading h2 { color: var(--accent-dark); }
.category-card { overflow: hidden; border-radius: 12px; }
.category-photo { border-radius: 12px; }
.category-card h3 { margin-top: 16px; }
.products-section { background: linear-gradient(180deg, #faf8f5 0%, #fffdfa 100%); }
.product-grid { gap: 22px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #eeece7; border-radius: 14px; background: #fff; box-shadow: 0 5px 20px rgba(45, 48, 39, .035); }
.product-card:hover { border-color: #d9dfd6; box-shadow: 0 16px 36px rgba(45, 48, 39, .11); }
.product-image { display: block; background: linear-gradient(145deg, #f8f5f1, #f3f1ed); aspect-ratio: 1 / 1.12; }
.product-image img { padding: 20px; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 16px 16px 17px; }
.product-brand { color: #718477; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.product-info h3 { margin: 8px 0 0; min-height: 45px; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-info h3 a:hover { color: var(--accent); }
.product-bottom { margin-top: auto; padding-top: 15px; }
.product-bottom strong { color: var(--accent-dark); }
.add-to-cart { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; box-shadow: 0 5px 12px rgba(67, 88, 76, .18); }
.add-to-cart .icon-svg { width: 20px; height: 20px; }
.product-tag { background: #fff; color: #495c4f; }
.favorite-toggle { backdrop-filter: blur(8px); }
.promo { border-radius: 16px; }
.main-button { border-radius: 7px; box-shadow: 0 5px 12px rgba(67, 88, 76, .12); }
.main-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(67, 88, 76, .18); }

@media (max-width: 600px) {
    .header-main { gap: 8px; }
    .header-actions { gap: 9px; }
    .header-actions a.header-icon-link { display: inline-flex; }
    .header-actions a.header-icon-link span { display: none; }
    .header-icon-link .icon-svg { width: 21px; height: 21px; }
    .icon-button { display: inline-flex; align-items: center; justify-content: center; }
    .icon-button .icon-svg { width: 21px; height: 21px; }
.product-grid { gap: 12px; }
    .product-card { border-radius: 10px; }
    .product-info { padding: 12px 10px; }
    .product-info h3 { min-height: 0; font-size: 11px; }
    .product-bottom { gap: 6px; }
    .add-to-cart { width: 36px; height: 36px; }
    .add-to-cart .icon-svg { width: 18px; height: 18px; }
}

@media (max-width: 650px) {
    .site-header { position: sticky; }
    .category-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 76px); overflow-y: auto; padding: 8px max(4%, calc((100% - 1380px) / 2)); border: 0; border-top: 1px solid var(--border); background: #fffdfa; box-shadow: 0 18px 30px rgba(37, 49, 44, .12); }
    .category-nav.open { display: flex; }
    .category-nav a { min-height: 48px; padding: 11px 6px; border-bottom: 1px solid #f0f0eb; font-size: 14px; }
}

@media (min-width: 651px) {
    .header-main { position: relative; }
    .header-main > .logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* Читабельніший набір тексту */
body { font-size: 16px; line-height: 1.6; }
.product-tag { border: 1px solid #f1d5d7; background: #fff5f4; color: #a43440; }
.top-bar { font-size: 12px; }
.category-nav a { font-size: 13px; }
.breadcrumbs { font-size: 13px; }
.section-heading p, .category-card p { font-size: 13px; }
.product-brand { font-size: 11px; }
.product-info h3 { font-size: 14px; line-height: 1.55; }
.product-bottom strong { font-size: 18px; }
.account-form label { font-size: 14px; }

@media (max-width: 600px) {
    .product-info h3 { font-size: 12px; }
    .product-bottom strong { font-size: 15px; }
}

/* Єдина типографіка та завершені картки каталогу */
:root {
    --text: #1f2d27;
    --muted: #68736c;
    --pink: #f7f3f2;
    --accent: #61766a;
    --accent-dark: #486555;
    --border: #e7e2e0;
    --surface: #fff;
}
body { font-size: 16px; line-height: 1.65; }
.top-bar { font-size: 14px; }
.top-links { gap: clamp(15px, 2vw, 30px); }
.site-header { border-bottom-color: var(--border); }
.header-main { min-height: 100px; }
.logo { font-size: clamp(40px, 4vw, 54px); letter-spacing: -2.5px; }
.logo small { font-size: 9px; letter-spacing: 4px; }
.header-actions { gap: clamp(12px, 1.7vw, 23px); }
.header-icon-link, .header-favorites-link { color: var(--text); font-size: 14px; font-weight: 650; }
.header-favorites-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 42px; }
.header-favorites-link:hover, .header-icon-link:hover { color: var(--accent-dark); }
.header-favorites-link .icon-svg { width: 22px; height: 22px; }
.category-nav { gap: clamp(17px, 2.3vw, 34px); }
.category-nav a { font-size: 15px; font-weight: 650; text-transform: none; }
.main-button { min-height: 50px; padding: 14px 24px; border-radius: 9px; font-size: 16px; }
.section-heading h2 { font-size: clamp(32px, 3.5vw, 42px); letter-spacing: -1.2px; }
.section-heading p, .category-card p { font-size: 15px; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card, .catalog-product-card { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 5px 22px rgba(31,45,39,.045); transition: border-color .2s, transform .2s, box-shadow .2s; }
.product-card:hover, .catalog-product-card:hover { border-color: #cbd8ce; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(31,45,39,.1); }
.product-image, .catalog-product-photo { overflow: hidden; border-radius: 12px; aspect-ratio: 1 / 1.08; background: #f8f6f4; }
.product-image img, .catalog-product-photo img { width: 100%; height: 100%; padding: 16px; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .product-image img, .catalog-product-card:hover .catalog-product-photo img { transform: scale(1.025); }
.product-info, .catalog-product-info { padding: 15px 14px 16px; }
.product-brand, .catalog-product-info > span { color: #647a6b; font-size: 12px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.product-info h3, .catalog-product-info h3 { min-height: 3.1em; margin: 7px 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.product-stock-state { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: #4e7559; font-size: 13px !important; font-weight: 650; letter-spacing: 0 !important; text-transform: none !important; }
.product-stock-state::before { width: 7px; height: 7px; border-radius: 50%; background: #68a477; content: ''; }
.product-stock-state.is-low { color: #9a5a35; }
.product-stock-state.is-low::before { background: #cb8c55; }
.product-bottom, .catalog-product-bottom { gap: 10px; padding-top: 12px; }
.product-bottom strong, .catalog-product-info strong { font-size: 22px; }
.add-to-cart, .catalog-plus { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-dark); }
.favorite-toggle { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(231,226,224,.9); color: var(--accent-dark); background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(31,45,39,.08); }
.favorite-toggle .icon-svg { width: 20px; height: 20px; }
.favorite-toggle.is-favorite { color: #b84b5d; }
.categories-grid { gap: 22px; }
.category-card { padding-bottom: 14px; border-radius: 16px; transition: transform .22s ease; }
.category-card:hover { transform: translateY(-4px); }
.category-photo { min-height: 225px; border-radius: 15px; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; }
.footer { font-size: 15px; }
.cart-notice { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(420px, calc(100vw - 40px)); margin: 0; padding: 12px 15px; border: 1px solid #ead8dc; border-radius: 11px; background: #fbf2f3; color: #7f414d; box-shadow: 0 12px 32px rgba(31,45,39,.13); font-size: 14px; line-height: 1.5; }

@media (max-width: 900px) {
    .header-main { min-height: 88px; }
    .logo { font-size: clamp(34px, 5vw, 46px); }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .header-main { height: 72px; min-height: 72px; }
    .logo { font-size: clamp(20px, 6vw, 26px); letter-spacing: -1px; }
    .logo small { margin-top: 6px; font-size: 7px; letter-spacing: 2px; }
    .header-actions { gap: 5px; }
    .header-actions a.header-icon-link { display: inline-flex; }
    .header-actions a.header-icon-link span { display: none; }
    .header-favorites-link { min-width: 28px; }
    .header-favorites-link .icon-svg, .icon-button .icon-svg { width: 20px; height: 20px; }
.section { padding-top: 54px; padding-bottom: 54px; }
    .section-heading h2 { font-size: clamp(28px, 8vw, 34px); }
    .product-grid { gap: 12px; }
    .product-card, .catalog-product-card { border-radius: 12px; padding: 6px; }
    .product-image, .catalog-product-photo { border-radius: 8px; }
    .product-image img, .catalog-product-photo img { padding: 9px; }
    .product-info, .catalog-product-info { padding: 11px 7px 9px; }
    .product-brand, .catalog-product-info > span { font-size: 10px; }
    .product-info h3, .catalog-product-info h3 { min-height: 3em; font-size: 13px; line-height: 1.4; }
    .product-stock-state { font-size: 11px !important; }
    .product-bottom strong, .catalog-product-info strong { font-size: 17px; }
    .add-to-cart, .catalog-plus { width: 36px; height: 36px; border-radius: 10px; }
    .favorite-toggle { width: 34px; height: 34px; }
    .favorite-toggle .icon-svg { width: 18px; height: 18px; }
    .category-photo { min-height: 190px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cart-notice { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}



.search-suggestions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 390px; overflow-y: auto; padding-top: 14px; }
.search-suggestion { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.search-suggestion:hover, .search-suggestion:focus-visible { border-color: var(--accent); background: #f7f5f2; }
.search-suggestion img { width: 56px; height: 62px; flex: 0 0 auto; object-fit: contain; background: #faf8f5; }
.search-suggestion strong { display: block; font-size: 14px; line-height: 1.45; }
.search-suggestion small { display: block; margin-top: 5px; color: var(--accent-dark); font-size: 12px; }
.cart-notice { z-index: 100; }
@media (max-width:650px) { .search-suggestions { grid-template-columns: 1fr; } }

/* Боковий кошик */
.product-info > span.product-wholesale-price, .catalog-product-card .catalog-product-info > span.product-wholesale-price { margin: 7px 0; color: var(--accent-dark); font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.cart-order-type { display: flex; flex: 0 0 auto; flex-direction: column; gap: 6px; padding: 12px 24px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--accent-dark); }
.cart-order-type a { font-size: 12px; text-decoration: underline; }
.cart-order-type button { flex: 1; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 13px; }
.cart-order-type button[aria-pressed="true"] { border-color: var(--accent-dark); background: #eef4ee; color: var(--accent-dark); font-weight: 750; }
.cart-delivery-progress { display: grid; gap: 7px; color: var(--accent-dark); font-size: 13px; font-weight: 650; }
.cart-delivery-progress progress { width: 100%; height: 7px; border: 0; border-radius: 9px; accent-color: var(--accent-dark); }
.cart-delivery-progress small { color: #93633f; font-size: 12px; }
.checkout-free-shipping, .checkout-order-type { padding: 14px; border: 1px solid #dce7db; border-radius: 10px; background: #f2f7f0; color: var(--accent-dark); font-size: 14px; }
.checkout-order-type p { margin: 7px 0 0; font-size: 13px; }
html.cart-open, body.cart-open { overflow: hidden; overscroll-behavior: none; }
.cart-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: stretch; justify-content: flex-end; overflow: hidden; background: rgba(23, 31, 27, .42); backdrop-filter: blur(3px); }
.cart-panel { display: flex; width: min(470px, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: 100%; flex: 0 0 auto; flex-direction: column; margin-left: auto; overflow: hidden; padding: 0; border-left: 1px solid var(--border); background: #fff; box-shadow: -18px 0 48px rgba(31, 45, 39, .14); animation: cart-panel-enter .22s ease-out; }
.cart-panel-head { display: flex; min-height: 78px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.cart-panel-title { display: flex; min-width: 0; align-items: baseline; gap: 12px; }
.cart-panel-title h2 { margin: 0; color: var(--text); font-size: 23px; font-weight: 750; letter-spacing: -.5px; }
.cart-header-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cart-close { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--text); transition: background .18s, color .18s; }
.cart-close:hover { background: var(--pink); color: var(--accent-dark); }
.cart-close .icon-svg { width: 20px; height: 20px; }
.cart-scroll-area { min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.cart-items { padding: 0 24px; }
.cart-extras { padding: 12px 24px 16px; }
.cart-panel .cart-notice { position:static; width:auto; margin:10px 16px; pointer-events:none; }
.cart-promo { border-top: 1px solid var(--border); }
.cart-promo > summary { display:flex; min-height:44px; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; list-style:none; color:var(--accent-dark); font-size:13px; font-weight:700; }
.cart-promo > summary::-webkit-details-marker { display:none; }
.cart-promo > summary .icon-svg { width:18px; height:18px; }
.cart-promo[open] > summary .icon-svg { transform:rotate(180deg); }
.cart-promo > .promo-box > label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.cart-promo > .promo-box { padding-bottom:10px; }
.cart-items[hidden] { display: none; }
.cart-item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px 16px; padding: 18px 0; border-bottom: 1px solid #eee9e7; }
.cart-item-photo { display: grid; width: 78px; height: 88px; grid-row: 1 / span 2; place-items: center; overflow: hidden; border: 1px solid #eee9e7; border-radius: 11px; background: #faf7f5; }
.cart-item-photo img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.cart-item-photo.is-placeholder { color: var(--accent); }
.cart-item-photo .icon-svg { width: 30px; height: 30px; }
.cart-item-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.cart-item-brand { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .7px; line-height: 1.35; text-transform: uppercase; }
.cart-item-name { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cart-item-stock { color: #4e7559; font-size: 11px; line-height: 1.35; }
.cart-item-stock.is-low { color: #9a5a35; }
.cart-item-stock.is-unavailable { color: #a33a46; font-weight: 700; }
.cart-item-prices { display: flex; width: 100%; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 7px; }
.cart-item-prices > div { display: grid; gap: 3px; }
.cart-item-prices small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.cart-item-prices strong { color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cart-item-line-price { text-align: right; }
.cart-item-line-price strong { color: var(--accent-dark); font-size: 15px; }
.cart-item-controls { display: flex; min-width: 0; grid-column: 2; align-items: center; justify-content: space-between; gap: 12px; }
.cart-quantity-stepper { display: inline-flex; min-height: 36px; align-items: center; border: 1px solid #e5e3df; border-radius: 9px; background: #fff; }
.cart-quantity-stepper button { display: grid; width: 36px; height: 34px; place-items: center; border: 0; background: transparent; color: var(--accent-dark); font-size: 20px; line-height: 1; }
.cart-quantity-stepper button:hover { background: var(--pink); }
.cart-quantity-value { width: 44px; min-width: 30px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 750; text-align: center; }
.cart-remove { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #8a7476; }
.cart-remove:hover { background: #fbf1f2; color: #a33a46; }
.cart-remove .icon-svg { width: 18px; height: 18px; }
.cart-empty-state { display: grid; flex: 1 1 auto; align-content: center; justify-items: center; padding: 28px; text-align: center; }
.cart-empty-state[hidden] { display: none; }
.cart-empty-icon { display: grid; width: 76px; height: 76px; place-items: center; margin-bottom: 18px; border-radius: 50%; background: #f7f2f0; color: var(--accent); }
.cart-empty-icon .icon-svg { width: 34px; height: 34px; }
.cart-empty-state h3 { margin: 0; color: var(--text); font-size: 19px; }
.cart-empty-state p { max-width: 290px; margin: 8px 0 20px; color: var(--muted); font-size: 14px; }
.cart-footer { z-index: 1; display: grid; flex: 0 0 auto; gap: 12px; padding: 15px 24px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #fff; box-shadow: 0 -8px 22px rgba(31, 45, 39, .045); }
.cart-footer[hidden] { display: none; }
.cart-shipping-note { margin: 0; padding: 10px 12px; border-radius: 9px; background: #f8f5f3; color: #626d66; font-size: 11px; line-height: 1.5; }
.cart-sync-message { margin: 0; color: #8b5961; font-size: 12px; line-height: 1.45; }
.cart-retry { justify-self: start; padding: 3px 0; border: 0; background: transparent; color: var(--accent-dark); font-size: 12px; font-weight: 700; text-decoration: underline; }
.cart-footer-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.cart-footer-summary > span:first-child strong { color: var(--text); }
.cart-discount-summary { display:flex; justify-content:space-between; gap:12px; color:var(--accent-dark); font-size:12px; }
.cart-footer-total-label { display: flex; align-items: baseline; gap: 10px; }
.cart-footer-total-label strong { color: var(--accent-dark); font-size: 23px; font-weight: 800; white-space: nowrap; }
.cart-checkout { width: 100%; margin: 0; border-radius: 10px; text-align: center; }
.cart-checkout.is-disabled { opacity: .56; box-shadow: none; cursor: not-allowed; }
.cart-continue { justify-self: center; padding: 3px 10px; border: 0; background: transparent; color: var(--accent-dark); font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.cart-close:focus-visible, .cart-quantity-stepper button:focus-visible, .cart-remove:focus-visible, .cart-continue:focus-visible, .cart-retry:focus-visible { outline: 3px solid rgba(72, 101, 85, .35); outline-offset: 2px; }
@keyframes cart-panel-enter { from { opacity: .75; } to { opacity: 1; } }

@media (max-width: 520px) {
    .cart-panel { width: 100%; border-left: 0; }
    .cart-panel-head { min-height: 68px; padding: 12px 17px; }
    .cart-panel-title h2 { font-size: 21px; }
    .cart-items { padding: 0 17px; }
    .cart-item { grid-template-columns: 68px minmax(0, 1fr); gap: 10px 12px; padding: 15px 0; }
    .cart-item-photo { width: 68px; height: 78px; }
    .cart-item-name { font-size: 13px; }
    .cart-item-prices strong { font-size: 12px; }
    .cart-item-line-price strong { font-size: 14px; }
    .cart-footer { gap: 10px; padding: 12px 17px max(15px, env(safe-area-inset-bottom)); }
    .cart-footer-total-label strong { font-size: 21px; }
    .cart-empty-state { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Promo controls and a non-blocking shopping cart. */
.promo-box { display: grid; gap: 7px; }
.promo-box > label { font-size: 13px; font-weight: 700; }
.promo-input-row { display: flex; gap: 7px; }
.promo-input-row input { width: 100%; min-width: 0; height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 14px; }
.promo-input-row button { padding: 8px 11px; border: 1px solid #cbd6cc; border-radius: 8px; background: #eff4ee; color: var(--accent-dark); font-size: 13px; font-weight: 650; }
.promo-message { margin: 0; color: #42694b; font-size: 12px; line-height: 1.5; }
.promo-message:empty { display: none; }
.promo-message.is-error { color: #9a3949; }
.promo-remove { justify-self: start; padding: 0; border: 0; background: none; color: #86626a; font-size: 12px; text-decoration: underline; }
.promo-discount { display: flex; justify-content: space-between; gap: 8px; color: #456650; font-size: 13px; }
.cart-toast { position: fixed; z-index: 75; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 470px; margin: auto; padding: 14px 42px 14px 16px; border: 1px solid #ccd9ce; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px #1f2d2720; color: var(--text); font-size: 14px; }
.cart-toast > button { padding: 0; border: 0; background: none; color: var(--accent-dark); font-size: 13px; font-weight: 750; text-decoration: underline; }
#closeCartToast { position: absolute; top: 12px; right: 12px; }
#closeCartToast .icon-svg { width: 18px; height: 18px; }
.cart-footer { gap: 9px; }
.cart-footer { min-height:0; }
.cart-shipping-note { padding:0; background:none; font-size:11px; }
.cart-order-type { font-size: 12px; }
@media(min-width:1180px) {
    body.has-docked-cart > main { width: calc(100% - 440px); max-width: 1380px; margin-left: auto; margin-right: 420px; padding-right: 24px; padding-left: 24px; }
    body.has-docked-cart .cart-overlay { top: var(--cart-top, 164px); left: auto; width: 410px; z-index: 19; background: transparent; backdrop-filter: none; }
    body.has-docked-cart .cart-panel { width: 410px; height: 100%; border-left: 1px solid #e1e6df; box-shadow: -6px 0 24px #1f2d2708; animation: none; }
    body.has-docked-cart .cart-panel-head { min-height: 62px; padding: 10px 18px; }
    body.has-docked-cart .cart-panel-title h2 { font-size: 21px; }
    body.has-docked-cart .cart-items { padding: 0 16px; }
    body.has-docked-cart .cart-item { grid-template-columns: 62px minmax(0,1fr); gap: 9px 12px; padding: 12px 0; }
    body.has-docked-cart .cart-item-photo { width: 62px; height: 76px; }
    body.has-docked-cart .cart-footer { padding: 12px 16px; }
    body.has-docked-cart .catalog-layout { grid-template-columns: 195px minmax(0,1fr); gap: 18px; }
    body.has-docked-cart .catalog-sidebar .filter-button { padding: 11px 8px; font-size: 14px; }
    body.has-docked-cart .catalog-products, body.has-docked-cart .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    body.has-docked-cart .beauty-product { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 20px; }
    body.has-docked-cart .account-forms { grid-template-columns: 1fr; }
}
@media(max-width:1179px) and (max-height:780px) {
    .cart-panel-head { min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
    .cart-footer { padding-top: 10px; gap: 7px; }
    .cart-shipping-note { display: none; }
}
/* Intrinsic-size product photography stays sharp; containers reserve image space. */
.product-image, .catalog-product-photo, .beauty-photo { display: flex; align-items: center; justify-content: center; }
.product-image { height:220px; aspect-ratio:auto; }
@media(max-width:650px){.product-image{height:155px;}}
.product-image img, .catalog-product-photo img, .beauty-photo img { width: auto; height: auto; max-width: calc(100% - 24px); max-height: 90%; object-fit: contain; padding: 0; }
.product-image img, .catalog-product-photo img { max-height: 220px; }
.beauty-photo img { max-height: 430px; }
.product-image:hover img, .catalog-product-photo:hover img { transform: none; }
.price-stack { display: grid; align-content: center; gap: 3px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.collection-heading h2 { margin: 7px 0 0; font-size: clamp(28px,3vw,36px); line-height: 1.25; }
.collection-heading > a { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-dark); font-size: 14px; font-weight: 650; }
.product-info h3 { font-size: 16px; line-height: 1.5; }
.product-info h3 a, .catalog-product-info h3 a { display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.product-facts { display:flex; flex-wrap:wrap; align-content:flex-start; gap:6px; list-style:none; padding:0; margin:5px 0 9px; }
.product-brand-link { display:inline-block; align-self:flex-start; color:#647a6b; font-size:12px; font-weight:750; letter-spacing:.8px; text-transform:uppercase; text-underline-offset:3px; }
.product-brand-link:hover, .beauty-brand a:hover { color:#87536b; text-decoration:underline; }
.product-brand-link:focus-visible, .beauty-brand a:focus-visible { outline:3px solid #b8ceba; outline-offset:3px; }
.product-facts .product-fact { max-width:100%; padding:4px 8px; border:1px solid #e3e6dd; border-radius:7px; background:#f4f6f0; color:#4c604f; font-size:12px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.product-facts .product-fact-shade { background:#f8e9ee; border-color:#ead0db; color:#794d62; }
.product-facts .product-fact-spf { background:#fcf1df; border-color:#eddebd; color:#795b2c; }
@media(max-width:650px) { .product-facts { gap:4px; } .product-facts .product-fact { padding:3px 6px; font-size:11px; } }
.product-info .price-stack strong { font-size: 22px; }
.product-info .product-brand { font-size: 12px; }
.recently-viewed { margin:40px 0; }
.recently-viewed .collection-heading button { padding:8px 0; border:0; background:none; color:var(--accent-dark); font:inherit; font-size:13px; text-decoration:underline; cursor:pointer; }
.recent-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.recent-card { display:grid; min-width:0; grid-template-columns:64px minmax(0,1fr); align-content:start; gap:7px 12px; padding:14px; border:1px solid var(--border); border-radius:12px; }
.recent-card img { grid-row:span 3; align-self:center; width:64px; height:80px; object-fit:contain; background:#faf7f5; }
.recent-card small { font-size:11px; color:var(--muted); }
.recent-card a { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:13px; line-height:1.5; }
.recent-card strong { font-size:16px; color:var(--accent-dark); }
@media(max-width:1100px){.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:480px){.recent-grid{grid-template-columns:1fr;}.recently-viewed .collection-heading{gap:8px;}}
@media(max-width:650px){.product-card .add-to-cart{width:44px;height:44px;flex-shrink:0;}}
.section-heading h2 { font-size: clamp(28px,3vw,36px); }
@media(max-width:650px){.collection-heading{align-items:flex-start;flex-direction:column;}.product-info h3{font-size:15px;}.product-info .price-stack strong{font-size:20px;}}
.price-stack del, .beauty-price-box del { color: #7a817a; font-size: 13px; font-weight: 500; }
.product-badges { position: absolute; top: 10px; left: 10px; z-index: 1; display: grid; gap: 5px; }
.product-badges span { width: fit-content; padding: 4px 8px; border-radius: 6px; background: #f7e8e9; color: #933f51; font-size: 11px; font-weight: 750; }
.product-badges .badge-hit { background: #edf4e9; color: #41644b; }
