
/* BeautyBoomStore — каталог */

.catalog-main,
.product-main {
    padding-top: 30px;
    padding-bottom: 85px;
}

.catalog-menu-link,
.catalog-header-link {
    font-size: 13px;
    font-weight: 700;
}

.breadcrumbs {
    color: #999;
    font-size: 12px;
    margin-bottom: 45px;
    line-height: 1.8;
}

.breadcrumbs a {
    color: #555;
}

.breadcrumbs a:hover {
    color: #ae8790;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 45px;
}

.catalog-heading h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
    margin: 13px 0;
}

.catalog-heading p,
.catalog-count {
    color: #888;
    font-size: 13px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 45px;
}

/* Фильтры */

.catalog-sidebar {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.catalog-sidebar h3 {
    font-size: 13px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.catalog-sidebar input,
.catalog-sidebar select {
    width: 100%;
    padding: 13px 12px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 2px;
    outline: none;
    font-size: 13px;
}

.catalog-sidebar input:focus,
.catalog-sidebar select:focus {
    border-color: #b88c94;
}

.filter-button {
    display: block;
    width: 100%;
    margin-top: 30px;
    text-align: center;
    border: none;
    font-size: 13px;
}

.reset-filters {
    display: block;
    text-align: center;
    color: #888;
    margin-top: 20px;
    font-size: 12px;
    text-decoration: underline;
}

/* Сетка товаров */

.catalog-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 18px;
}

.catalog-product-card {
    min-width: 0;
    display: block;
    background: #fff;
}

.catalog-product-photo {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    background: #faf8f7;
    position: relative;
    overflow: hidden;
}

.catalog-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s;
}

.catalog-stock-tag {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: #47383b;
    box-shadow: 0 3px 12px rgba(37, 49, 44, .08);
    font-size: 10px;
    font-weight: 700;
}

.beauty-low-stock {
    color: #9a5a35 !important;
}

.beauty-delivery-details { display: inline-block; margin-top: 12px; color: var(--accent-dark); font-size: 13px; font-weight: 650; }

.account-page { background: #fafbf8; }
.account-main { max-width: 1120px; padding-top: 26px; padding-bottom: 72px; }
.account-main > .breadcrumbs { margin-bottom: 24px; }
.account-type-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.account-type-options legend { margin-bottom: 10px; padding: 0; color: var(--text); font-size: 14px; font-weight: 700; }
.account-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-form .account-type-options label { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 15px 13px; border: 1px solid #dedfd8; border-radius: 12px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.account-form .account-type-options label:hover { border-color: #8c9c90; }
.account-form .account-type-options label:has(input:checked) { border-color: var(--accent-dark); background: #f0f5ef; box-shadow: inset 0 0 0 1px var(--accent-dark); }
.account-form .account-type-options label:has(input:focus-visible) { outline: 3px solid #c6d6ca; outline-offset: 3px; }
.account-form .account-type-options input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 auto; margin: 3px 0 0; padding: 0; accent-color: var(--accent-dark); }
.account-type-options strong, .account-type-options small { display: block; }
.account-type-options strong { font-size: 15px; line-height: 1.4; }
.account-type-options .account-type-caption { display: block; margin-top: 3px; color: #5f6d63; font-size: 11px; font-weight: 500; }
.account-type-options label small { margin-top: 10px; color: #637168; font-size: 12px; font-weight: 400; line-height: 1.6; }
.account-welcome { flex-wrap: wrap; }
.account-price-type { flex-basis: 100%; margin: 0; color: var(--accent-dark); font-size: 14px; font-weight: 700; }
.info-main { padding-top: 30px; padding-bottom: 80px; }
.info-page { max-width: 820px; margin: 30px auto 0; padding: clamp(24px, 5vw, 52px); border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.info-page h1 { margin: 10px 0 14px; font-size: clamp(30px, 4vw, 44px); }
.info-intro { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.info-sections { display: grid; gap: 10px; margin: 28px 0; }
.info-sections article { padding: 18px 0; border-top: 1px solid var(--border); }
.info-sections h2 { margin: 0 0 8px; font-size: 17px; }
.info-sections p { margin: 0; color: var(--muted); line-height: 1.75; }
.info-sections ul { margin: 8px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.8; }
.account-intro { max-width: 680px; margin: 30px 0 32px; text-align: left; }
.account-intro h1, .account-welcome h1 { margin: 10px 0; font-size: clamp(28px, 4vw, 42px); }
.account-intro p, .account-welcome p { color: #657168; }
.account-intro p { margin: 10px 0 0; font-size: 16px; line-height: 1.7; }
.account-forms { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: 24px; margin: 0 auto; }
.account-signin-column { display: grid; gap: 22px; min-width: 0; }
.account-form { display: grid; align-content: start; gap: 20px; min-width: 0; padding: 30px; border: 1px solid #e3e7df; border-radius: 20px; background: #fff; box-shadow: 0 6px 28px rgba(35, 52, 42, .035); }
.account-signin { border-top: 3px solid #8da391; }
.account-register { border-top: 3px solid #e4c9c7; }
.account-form-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 3px; }
.account-form-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: #edf3ed; color: var(--accent-dark); }
.account-register .account-form-icon { background: #f8eeec; color: #996b70; }
.account-form-icon .icon-svg { width: 23px; height: 23px; }
.account-form h2 { margin: 0; font-size: 23px; line-height: 1.35; letter-spacing: -.6px; }
.account-form-heading p { margin: 5px 0 0; color: #69756d; font-size: 13px; line-height: 1.5; }
.account-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.account-form label { font-size: 14px; font-weight: 650; }
.account-form input:not([type="radio"]) { width: 100%; height: 50px; min-width: 0; padding: 12px 14px; border: 1px solid #dce2d9; border-radius: 10px; background: #fff; color: var(--text); font-family: inherit; font-size: 15px; line-height: 1.5; }
.account-form input::placeholder { color: #8c958d; opacity: 1; font-size: 13px; }
.account-form input:not([type="radio"]):focus { outline: 3px solid rgba(97, 118, 106, .16); outline-offset: 1px; border-color: var(--accent); }
.account-form .main-button { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; height: 50px; min-height: 50px; margin: 2px 0 0; padding: 12px 18px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 650; line-height: 1.5; box-shadow: none; }
.account-form .main-button:hover { background: #354d3e; }
.account-benefits { padding: 0 6px; }
.account-benefits h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.account-benefits ul { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.account-benefits li { display: flex; align-items: center; gap: 9px; color: #67746a; font-size: 13px; }
.account-benefits li .icon-svg { width: 17px; height: 17px; flex: 0 0 auto; color: #6b8b71; }
.account-benefits a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-dark); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.account-register-note { margin: -4px 0 0; color: #6b756e; font-size: 12px; text-align: center; }
.account-register-note a { color: var(--accent-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
#signinTitle, #registerTitle { scroll-margin-top: 200px; }
.account-form small { color: var(--muted); font-weight: 400; }
.account-alert, .account-success { max-width: 900px; margin: 18px auto; padding: 14px 18px; border-radius: 6px; }
.account-alert { color: #843b38; background: #fff0ed; }
.account-success { color: #355941; background: #edf7ef; }
.account-alert p { margin: 4px 0; }
.account-welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 34px 0; }
.account-logout { padding: 10px 16px; border: 1px solid var(--border); border-radius: 5px; background: white; cursor: pointer; }
.account-orders { max-width: 920px; margin: 0 auto; }
.account-orders > h2 { margin-bottom: 20px; }
.account-empty { padding: 35px; text-align: center; border: 1px solid var(--border); border-radius: 8px; }
.account-order { margin-bottom: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.account-order-heading, .account-order-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
.account-order-heading span { color: var(--accent); font-weight: 700; }
.account-order-heading time { color: var(--muted); }
.account-order ul { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.account-order-footer { padding-top: 14px; border-top: 1px solid var(--border); }
.account-repeat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.account-repeat-row .main-button { min-height: 42px; padding: 10px 18px; }
.account-repeat-row .main-button:disabled { opacity: .55; cursor: not-allowed; }
.account-repeat-row small { color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
    .account-forms { grid-template-columns: 1fr 1.15fr; gap: 18px; }
    .account-form { padding: 22px; }
    .account-field-row, .account-type-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .account-forms { grid-template-columns: 1fr; }
    .account-main { padding-top: 18px; padding-bottom: 40px; }
    .account-intro { margin: 23px 0 24px; }
    .account-intro h1 { font-size: 30px; letter-spacing: -.8px; }
    .account-intro p { font-size: 14px; }
    .account-signin-column { gap: 0; }
    .account-form { padding: 23px 20px; border-radius: 16px; gap: 18px; }
    .account-form h2 { font-size: 21px; }
    .account-form input:not([type="radio"]) { font-size: 16px; }
    .account-benefits { padding: 20px 5px 7px; }
    .account-benefits h3, .account-benefits ul { display: none; }
    #signinTitle, #registerTitle { scroll-margin-top: 100px; }
    .account-welcome { align-items: flex-start; }
    .account-order { padding: 15px; }
    .account-repeat-row { align-items: flex-start; flex-direction: column; }
}

.catalog-product-card:hover img {
    transform: scale(1.05);
}

.catalog-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f6eeee;
    color: #b99ca3;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 15px;
}

.catalog-product-info {
    padding: 16px 3px 20px;
}

.catalog-product-info > span {
    display: block;
    color: #ac828a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.catalog-product-info h3 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    min-height: 62px;
    margin: 0 0 14px;
}

.catalog-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.catalog-product-info strong {
    font-size: 17px;
    white-space: nowrap;
}

.catalog-plus {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: #fff !important;
    background: #222;
    font-size: 22px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
}

.catalog-product-card:hover .catalog-plus {
    background: #b58e96;
}

/* Пустой результат и страницы */

.catalog-empty {
    text-align: center;
    padding: 90px 20px;
    background: #faf8f8;
}

.catalog-empty h2 {
    font-size: 24px;
}

.catalog-empty p {
    color: #888;
    margin-bottom: 30px;
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 55px;
}

.catalog-pagination a {
    border: 1px solid #ddd;
    padding: 12px 18px;
    font-size: 12px;
}

.catalog-pagination a:hover {
    background: #f6eeee;
}

.catalog-pagination span {
    color: #888;
}

.catalog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 45px;
}

.catalog-footer span {
    color: #777;
    font-size: 12px;
}

/* Страница отдельного товара */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: start;
}

.product-detail-image {
    background: #faf8f7;
    min-height: 480px;
    aspect-ratio: 1 / 1.05;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    max-height: 650px;
    object-fit: contain;
}

.product-detail-info {
    padding-top: 25px;
}

.product-detail-info h1 {
    font-size: clamp(25px, 3vw, 39px);
    line-height: 1.35;
    letter-spacing: -1px;
    margin: 18px 0 20px;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: #888;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.available-label {
    color: #36824a;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 800;
    margin: 30px 0;
}

.product-detail-actions {
    max-width: 430px;
}

.detail-cart-button {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
}

.cart-feedback {
    background: #eef7ef;
    color: #317042;
    padding: 15px;
    line-height: 1.6;
    font-size: 12px;
}

.product-detail-benefits {
    border-top: 1px solid #eee;
    margin-top: 35px;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 17px;
    color: #666;
    font-size: 13px;
}

.product-description {
    margin-top: 75px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.product-description h2,
.related-section h2 {
    font-size: 25px;
    margin-bottom: 25px;
}

.product-description p {
    color: #555;
    line-height: 2;
    max-width: 950px;
    white-space: normal;
}

.related-section {
    margin-top: 75px;
}

.related-section .catalog-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Планшеты */

@media (max-width: 1000px) {
    .catalog-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 25px;
    }

    .catalog-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail {
        gap: 30px;
    }
}

/* Телефоны */

@media (max-width: 650px) {
    .catalog-menu-link,
    .catalog-header-link {
        font-size: 11px;
    }

    .catalog-heading h1 {
        font-size: 29px;
    }

    .catalog-heading {
        align-items: start;
    }

    .catalog-layout {
        display: block;
    }

    .catalog-sidebar {
        background: #faf8f8;
        padding: 20px;
        margin-bottom: 30px;
    }

    .catalog-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .catalog-product-info h3 {
        font-size: 12px;
        min-height: 76px;
    }

    .catalog-product-info strong {
        font-size: 14px;
    }

    .catalog-plus {
        width: 30px;
        height: 30px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-image {
        min-height: 300px;
    }

    .product-detail-info {
        padding-top: 10px;
    }

    .product-detail-price {
        font-size: 28px;
    }

    .related-section .catalog-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* Обновлённая карточка BeautyBoomStore */

.beauty-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: start;
    margin-bottom: 65px;
}

/* Фотографии без растягивания */

.beauty-photo-area {
    background: #fcfbfa;
    border: 1px solid #f1efee;
    border-radius: 8px;
    padding: 35px;
}

.beauty-photo {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
}

.beauty-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 340px;
    object-fit: contain;
}

.beauty-no-photo {
    color: #b9a5a8;
    letter-spacing: 3px;
    font-weight: 700;
}

.beauty-photo-caption {
    text-align: center;
    color: #aaa;
    font-size: 11px;
    letter-spacing: 2px;
    margin: 18px 0 0;
}

/* Информация */

.beauty-info {
    padding-top: 15px;
}

.beauty-brand {
    color: #ad838c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.beauty-info h1 {
    font-size: clamp(25px, 3vw, 37px);
    line-height: 1.35;
    letter-spacing: -1px;
    font-weight: 650;
    margin: 17px 0 22px;
}

.beauty-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    color: #999;
    font-size: 12px;
}

.beauty-available {
    color: #478856;
    font-weight: 700;
}

/* Цены */

.beauty-price-box {
    margin: 30px 0 25px;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.beauty-price-label {
    color: #888;
    font-size: 12px;
}

.beauty-retail-price {
    color: #222;
    font-size: 36px;
    font-weight: 800;
    margin: 9px 0 20px;
    letter-spacing: -1px;
}

.beauty-retail-price span {
    font-size: 22px;
    font-weight: 500;
}

.beauty-wholesale {
    color: #777;
    font-size: 13px;
}

.beauty-wholesale strong {
    color: #a77d87;
    font-size: 15px;
    margin-left: 7px;
}

.beauty-wholesale-note {
    color: #aaa;
    font-size: 11px;
    margin: 9px 0 0;
}

/* Кнопка покупки */

.beauty-buy-button {
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #222;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 18px 25px;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s;
}

.beauty-buy-button:hover {
    background: #af8991;
}

.beauty-buy-button span:last-child {
    font-size: 22px;
}

.beauty-message {
    background: #eef6ef;
    color: #377549;
    padding: 14px;
    border-radius: 4px;
    font-size: 12px;
}

.beauty-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #777;
    font-size: 12px;
    margin-top: 35px;
}

/* Описание и характеристики */

.beauty-details {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    padding: 40px 0 65px;
    border-top: 1px solid #eee;
}

.beauty-details h2,
.beauty-related h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0 0 25px;
}

.beauty-description-text {
    font-size: 14px;
    color: #666;
    line-height: 2;
    overflow-wrap: anywhere;
}

.beauty-characteristics table {
    width: 100%;
    border-collapse: collapse;
}

.beauty-characteristics tr {
    border-bottom: 1px solid #eee;
}

.beauty-characteristics th,
.beauty-characteristics td {
    padding: 15px 5px;
    font-size: 12px;
    text-align: left;
    vertical-align: top;
}

.beauty-characteristics th {
    color: #999;
    font-weight: 400;
    width: 42%;
}

.beauty-characteristics td {
    font-weight: 600;
}

.beauty-related {
    padding-top: 45px;
    border-top: 1px solid #eee;
}

.beauty-related .catalog-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Более компактные фотографии в каталоге */

.catalog-product-photo {
    background: #fcfbfa;
    border-radius: 5px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
}

/* Адаптация под телефон */

@media (max-width: 750px) {
    .beauty-product {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .beauty-photo-area {
        padding: 20px;
    }

    .beauty-photo {
        height: 310px;
    }

    .beauty-photo img {
        max-height: 260px;
    }

    .beauty-details {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .beauty-related .catalog-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .beauty-retail-price {
        font-size: 31px;
    }

    .catalog-product-photo {
        padding: 12px;
    }
}

/* Єдині стилі каталогу для клікабельних карток і спільної шапки. */
.menu-button {
    padding: 10px 0;
    color: var(--text);
    background: transparent;
    border: 0;
    text-align: left;
}

.catalog-layout {
    gap: 36px;
}

.catalog-sidebar {
    background: #faf8f5;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 18px 20px;
}

.catalog-sidebar input,
.catalog-sidebar select {
    border-radius: 4px;
}

.catalog-filter-grid {
    display: grid;
    gap: 18px;
}

.catalog-filter-field {
    display: block;
}

.catalog-filter-field > span {
    display: block;
    margin: 13px 0 9px;
    font-size: 12px;
    font-weight: 700;
}

.catalog-filter-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.catalog-product-card {
    border: 1px solid transparent;
    border-radius: 6px;
    position: relative;
    padding: 8px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.catalog-product-card:hover {
    border-color: var(--border);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(37, 49, 44, .07);
}

.catalog-product-photo {
    border-radius: 4px;
}

.catalog-product-info h3 a:hover {
    color: var(--accent);
}

.catalog-plus {
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.catalog-plus:hover {
    transform: scale(1.06);
}

.beauty-buy-button {
    border-radius: 4px;
}

.beauty-photo {
    border-radius: 8px;
}

.checkout-main {
    padding-top: 30px;
    padding-bottom: 90px;
}

.checkout-header {
    height: 94px;
}

.checkout-secure {
    color: var(--muted);
    font-size: 12px;
}

.checkout-heading {
    margin: 25px 0 32px;
}

.checkout-heading h1,
.checkout-success h1 {
    margin: 10px 0;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -1.5px;
}

.checkout-heading p,
.checkout-success > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
    align-items: start;
    gap: 36px;
}

.checkout-form,
.checkout-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: clamp(20px, 3vw, 34px);
}

.checkout-form fieldset {
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 24px;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.checkout-form legend {
    width: 100%;
    padding: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid #dfe2dc;
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-weight: 400;
}

.checkout-field textarea {
    resize: vertical;
}

.checkout-form fieldset:nth-of-type(2) .checkout-field,
.checkout-form fieldset:nth-of-type(3) .checkout-field {
    grid-column: 1 / -1;
}

.checkout-payment-note,
.checkout-shipping-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.optional-label {
    color: var(--muted);
    font-weight: 400;
}

.checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.checkout-consent input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.checkout-submit {
    width: 100%;
    border: 0;
}

.checkout-summary {
    position: sticky;
    top: 175px;
}

.checkout-summary h2 {
    margin: 0 0 20px;
    font-size: 19px;
}

.checkout-summary-line,
.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.6;
}

.checkout-summary-line strong {
    white-space: nowrap;
}
.checkout-item-photo { width: 56px; height: 64px; flex: 0 0 56px; object-fit: contain; background: #faf7f5; border: 1px solid #eee5e3; border-radius: 8px; }
.checkout-summary-line > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.checkout-summary-line { align-items: flex-start; }
.checkout-edit-cart { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 12px; padding: 8px 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.checkout-steps a { display: flex; align-items: center; gap: 8px; color: var(--accent-dark); min-height: 44px; }
.checkout-steps a:focus-visible, .checkout-edit-cart:focus-visible { outline: 3px solid #b6cdbb; outline-offset: 3px; }
#checkoutContacts, #checkoutDelivery, #checkoutPayment, #checkoutErrorSummary { scroll-margin-top: 170px; }
@media(max-width:650px) {
    #checkoutContacts, #checkoutDelivery, #checkoutPayment, #checkoutErrorSummary { scroll-margin-top: 85px; }
    .checkout-summary-line { gap: 10px; flex-wrap: wrap; }
    .checkout-summary-line > span { flex-basis: calc(100% - 70px); }
    .checkout-summary-line > strong { margin-left: auto; }
}

.checkout-total {
    margin-top: 8px;
    border-bottom: 0;
    font-size: 15px;
}

.checkout-errors {
    margin: 0 0 22px;
    border: 1px solid #eccdca;
    border-radius: 5px;
    background: #fff7f5;
    color: #873c35;
    padding: 14px 18px;
}

.checkout-errors p { margin: 5px 0; }

.checkout-success {
    max-width: 720px;
    margin: 45px auto 90px;
    padding: clamp(28px, 7vw, 70px);
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.checkout-success-mark {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #eaf1eb;
    color: var(--accent-dark);
    font-size: 26px;
}

.checkout-success .main-button {
    margin-top: 15px;
}

.checkout-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 650px) {
    .catalog-sidebar {
        margin-bottom: 24px;
        padding: 8px 14px 18px;
    }

    .catalog-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .catalog-filter-field:first-child {
        grid-column: 1 / -1;
    }

    .catalog-filter-field > span {
        margin-top: 12px;
    }

    .catalog-filter-actions { grid-column: 1 / -1; }

    .catalog-product-card {
        padding: 5px;
    }

    .catalog-product-info {
        padding: 12px 2px 14px;
    }

    .catalog-product-info h3 {
        min-height: 0;
        font-size: 12px;
    }

    .catalog-product-info strong {
        font-size: 14px;
    }

    .checkout-header {
        height: 76px;
    }

    .checkout-secure {
        display: none;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkout-summary {
        position: static;
        grid-row: 1;
    }

    .checkout-form fieldset {
        grid-template-columns: 1fr;
    }
}

.favorites-main { padding-top: 30px; padding-bottom: 80px; }
.favorites-heading { margin: 28px 0; }
.favorites-heading h1 { margin: 7px 0; font-size: clamp(30px, 4vw, 42px); }
.favorites-heading p, .favorites-unavailable { color: var(--muted); }
.favorites-empty { max-width: 620px; margin: 45px auto; padding: 45px 24px; border: 1px solid var(--border); border-radius: 10px; background: #fff; text-align: center; }
.favorites-empty > div { color: var(--accent); font-size: 40px; }
.favorites-empty h2 { margin: 12px 0 8px; }
.favorites-empty p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.favorites-products { margin-bottom: 30px; }

/* Картки, доставка та оформлення */
.catalog-products { align-items: stretch; gap: 24px 20px; }
.catalog-product-card { display: flex; flex-direction: column; overflow: hidden; padding: 8px; border: 1px solid #eeece7; border-radius: 14px; background: #fff; box-shadow: 0 5px 20px rgba(45, 48, 39, .035); }
.catalog-product-card:hover { border-color: #d9dfd6; box-shadow: 0 16px 36px rgba(45, 48, 39, .11); }
.catalog-product-photo { display: block; flex: 0 0 auto; aspect-ratio: 1 / 1.12; border-radius: 9px; background: linear-gradient(145deg, #f8f5f1, #f3f1ed); }
.catalog-product-photo img { padding: 12px; transition: transform .3s; }
.catalog-product-card:hover .catalog-product-photo img { transform: scale(1.045); }
.catalog-product-info { display: flex; flex: 1; flex-direction: column; padding: 15px 9px 10px; }
.catalog-product-info > span { color: #718477; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }
.catalog-product-info h3 { min-height: 48px; margin: 7px 0 12px; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.catalog-product-info strong { color: var(--accent-dark); }
.catalog-product-bottom { margin-top: auto; padding-top: 10px; }
.catalog-plus { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--accent-dark); box-shadow: 0 5px 12px rgba(67, 88, 76, .18); }
.catalog-plus .icon-svg { width: 19px; height: 19px; }
.menu-button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--text); cursor: pointer; }
.menu-button .icon-svg { width: 19px; height: 19px; }
.checkout-steps { display: flex; max-width: 760px; align-items: center; gap: 16px; margin: 0 0 24px; padding: 0; color: #8b928c; list-style: none; }
.checkout-steps li { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.checkout-steps li span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; font-size: 11px; font-weight: 800; }
.checkout-steps li.is-current { color: var(--accent-dark); font-weight: 700; }
.checkout-steps li.is-current span { border-color: #d8e2d8; background: #eaf1eb; color: var(--accent-dark); }
.checkout-steps li.is-done span { border-color: var(--accent); background: var(--accent); color: #fff; }
.checkout-required-note { margin: -12px 0 22px; color: var(--muted); font-size: 12px; }
.checkout-form fieldset { border-bottom-color: #ebece7; }
.checkout-field input:focus, .checkout-field select:focus, .checkout-field textarea:focus { outline: 3px solid rgba(97, 118, 106, .13); border-color: var(--accent); }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.55; }
.delivery-options { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.delivery-option { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.delivery-option:hover { border-color: #bdcabe; }
.delivery-option[aria-pressed="true"] { border-color: var(--accent); background: #f5f8f4; box-shadow: 0 0 0 2px rgba(97, 118, 106, .1); }
.carrier-logo { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -.5px; }
.carrier-nova { background: #d52631; }
.carrier-ukr { background: #f5c400; color: #34312a; }
.delivery-option-copy { display: grid; min-width: 0; gap: 4px; }
.delivery-option-copy strong { font-size: 12px; }
.delivery-option-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.delivery-option-check { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; margin-left: auto; border: 1px solid var(--border); border-radius: 50%; color: transparent; font-size: 12px; }
.delivery-option[aria-pressed="true"] .delivery-option-check { border-color: var(--accent); background: var(--accent); color: #fff; }
.payment-guidance { display: flex; grid-column: 1 / -1; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 8px; background: #f6f7f3; }
.delivery-manual-note { grid-column: 1 / -1; margin: 0; }
.payment-guidance .icon-svg { width: 19px; height: 19px; color: var(--accent); }
.checkout-shipping-note { padding: 14px; border-radius: 8px; background: #f7f7f3; }
.checkout-summary { border-color: #e3e7df; box-shadow: 0 12px 34px rgba(44, 54, 44, .06); }
.checkout-submit { min-height: 52px; font-size: 14px; }
.catalog-menu-link .icon-svg { color: var(--accent-dark); }
.catalog-plus:hover { background: var(--accent); }
.info-sections h2 { display: flex; align-items: center; gap: 10px; }
.info-carrier-logo { width: 34px; height: 34px; border-radius: 9px; font-size: 10px; }
.account-welcome { padding: 25px 28px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(125deg, #f6f8f4, #fffdfa); }
.account-order { border-radius: 12px; box-shadow: 0 6px 20px rgba(45, 48, 39, .035); }
.account-order-carrier { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.account-order-carrier .carrier-logo { width: 34px; height: 34px; border-radius: 9px; font-size: 10px; }
.account-order-carrier > span:last-child { display: grid; gap: 2px; }
.account-order-carrier small { color: var(--muted); font-size: 11px; font-weight: 400; }
.beauty-buy-button { border-radius: 9px; background: var(--accent-dark); box-shadow: 0 8px 18px rgba(67, 88, 76, .17); }
.beauty-buy-button:hover { background: var(--accent); }
.beauty-buy-button .icon-svg { width: 21px; height: 21px; }

@media (max-width: 650px) {
    .catalog-products { gap: 13px 9px; }
    .catalog-product-card { padding: 5px; border-radius: 10px; }
    .catalog-product-photo { border-radius: 7px; }
    .catalog-product-info { padding: 11px 5px 7px; }
    .catalog-product-info h3 { min-height: 0; font-size: 11px; }
    .catalog-product-info strong { font-size: 13px; }
    .catalog-plus { width: 34px; height: 34px; }
    .checkout-steps { justify-content: space-between; gap: 6px; }
    .checkout-steps li { gap: 5px; font-size: 10px; }
    .checkout-steps li span { width: 24px; height: 24px; }
    .delivery-options { grid-template-columns: 1fr; }
    .delivery-option { padding: 11px 12px; }
    .checkout-form, .checkout-summary { border-radius: 12px; }
    .menu-button { padding: 5px 0; font-size: 0; }
    .menu-button .icon-svg { width: 22px; height: 22px; }
    .checkout-secure { display: inline-flex; }
    .checkout-secure span { display: none; }
}

/* Читабельніший набір тексту в каталозі й формах */
.catalog-heading p, .catalog-count { font-size: 14px; }
.catalog-filter-field > span { font-size: 13px; }
.catalog-filter-field input, .catalog-filter-field select { font-size: 14px; }
.catalog-product-info > span { font-size: 11px; }
.catalog-product-info h3 { font-size: 14px; line-height: 1.55; }
.catalog-product-info strong { font-size: 18px; }
.checkout-field { font-size: 14px; }
.checkout-payment-note, .checkout-shipping-note, .field-hint { font-size: 13px; }
.checkout-summary-line { font-size: 13px; }
.checkout-steps li { font-size: 13px; }
.account-form small, .account-repeat-row small, .account-order-carrier small { font-size: 12px; }
.beauty-brand, .beauty-meta { font-size: 13px; }
.beauty-price-label { font-size: 14px; }
.beauty-benefits { font-size: 14px; line-height: 1.7; }
.beauty-wholesale-note { font-size: 12px; }

@media (max-width: 650px) {
    .catalog-product-info h3 { font-size: 12px; }
    .catalog-product-info strong { font-size: 15px; }
    .checkout-steps li { font-size: 11px; }
    .checkout-payment-note, .checkout-shipping-note, .field-hint { font-size: 12px; }
}

/* Кольорові акценти та зрозумілі фільтри каталогу */
.catalog-heading { margin-bottom: 28px; }
.catalog-count { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 13px; border: 1px solid #dce6dc; border-radius: 999px; background: #f2f7f0; color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.catalog-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.catalog-active-filters > strong { color: var(--text); margin-right: 2px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 9px 6px 12px; border: 1px solid #dce6dc; border-radius: 999px; background: #f2f7f0; color: var(--accent-dark); }
.filter-chip span { color: #687b6d; }
.filter-chip b { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #dce8dc; font-size: 15px; line-height: 1; }
.filter-chip:hover { border-color: var(--accent); background: #eaf2e8; }
.clear-filter-chips { padding: 7px 4px; color: #9a6771; font-weight: 700; }
.catalog-sidebar { border: 0; padding: 0; }
.catalog-filter-panel { overflow: hidden; border: 1px solid #e4e9e1; border-radius: 14px; background: linear-gradient(165deg, #f6f8f3, #fffdfa 74%); box-shadow: 0 8px 22px rgba(45, 58, 46, .045); }
.catalog-filter-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 18px; color: var(--accent-dark); font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.catalog-filter-panel > summary::-webkit-details-marker { display: none; }
.catalog-filter-panel > summary .filter-chevron { width: 18px; height: 18px; color: var(--accent); transition: transform .2s; }
.catalog-filter-panel[open] > summary .filter-chevron { transform: rotate(180deg); }
.filter-summary-count { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: #e8f0e5; color: #607565; font-size: 11px; font-weight: 700; }
.catalog-filter-form { padding: 0 17px 18px; }
.catalog-filter-grid { gap: 13px; }
.catalog-filter-field > span { margin: 0 0 7px; color: #4a5f50; font-size: 12px; font-weight: 750; }
.catalog-filter-field input, .catalog-filter-field select { min-height: 45px; padding: 10px 12px; border: 1px solid #dfe6dd; border-radius: 8px; background-color: #fff; color: var(--text); font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.catalog-filter-field input::placeholder { color: #9ca49c; }
.catalog-filter-field input:focus, .catalog-filter-field select:focus { outline: 0; border-color: #8fa694; box-shadow: 0 0 0 3px rgba(97, 118, 106, .12); }
.filter-button { min-height: 46px; margin-top: 17px; border-radius: 8px; background: var(--accent-dark); font-size: 14px; }
.reset-filters { margin-top: 12px; color: #846d70; }
.catalog-empty { padding: 40px 25px; border: 1px dashed #dbe3d8; border-radius: 15px; background: #f7f8f3; text-align: center; }
.catalog-empty h2 { margin-top: 0; color: var(--accent-dark); }
.catalog-empty p { color: var(--muted); }
.catalog-price-filter { display: grid; gap: 7px; }
.catalog-price-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.catalog-price-inputs input { min-width: 0; }
.catalog-filter-error { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f0cdd0; border-radius: 8px; background: #fff3f3; color: #a12e3b; font-size: 12px; line-height: 1.5; }
.catalog-stock-tag, .product-tag { border: 1px solid #f1d5d7; background: #fff5f4; color: #a43440; }
.catalog-toggle { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; }
.catalog-sidebar .catalog-toggle input { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--accent-dark); }
.catalog-product-photo img { width: auto; height: auto; max-width: calc(100% - 20px); max-height: 215px; padding: 0; }
.catalog-product-card:hover .catalog-product-photo img, .catalog-product-photo:hover img { transform: none; }
.catalog-product-info h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.catalog-product-info .price-stack strong { font-size: 22px; }
.beauty-photo img { max-width: 90%; }
#catalogResults { scroll-margin-top: 160px; }
.catalog-sort-note { padding: 12px 16px; background: #f2f6f0; border-radius: 10px; color: #415849; font-size: 14px; line-height: 1.5; }
.catalog-filter-panel summary { min-height: 48px; }
.catalog-filter-field input, .catalog-filter-field select { min-height: 44px; }
@media(max-width:650px) {
    #catalogResults { scroll-margin-top: 90px; }
    .catalog-filter-actions { position: sticky; bottom: 0; padding: 12px; background: #fff7f9; border: 1px solid #eadce1; border-radius: 10px; z-index: 2; }
    .catalog-filter-actions .reset-filters { display: inline-block; padding: 8px 0; }
}
.beauty-info h1 { font-size: clamp(25px,2.6vw,34px); line-height: 1.4; }
.checkout-subtotal { color: #657168; font-size: 14px; }
.checkout-summary .promo-box { margin: 16px 0; }
.product-sale-label { display: inline-block; margin-left: 9px; padding: 4px 9px; border-radius: 7px; background: #f9e9ec; color: #963e51; font-size: 13px; }
@media(max-width:650px){.catalog-product-info h3{font-size:15px;}.catalog-product-info .price-stack strong{font-size:20px;}.catalog-product-photo img{max-height:145px;}.catalog-product-bottom{flex-wrap:wrap;}.catalog-plus{margin-left:auto;}}

@media (max-width: 650px) {
    .catalog-sidebar { margin: 0 0 16px; padding: 0; background: transparent; }
    .catalog-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
    .catalog-heading h1 { margin-bottom: 8px; }
    .catalog-heading p { margin-top: 0; }
    .catalog-count { min-height: 34px; }
    .catalog-active-filters { gap: 7px; margin-bottom: 15px; }
    .catalog-active-filters > strong { flex-basis: 100%; }
    .catalog-filter-panel { margin-bottom: 16px; border-radius: 12px; }
    .catalog-filter-panel > summary { padding: 14px; }
    .catalog-filter-form { padding: 0 13px 14px; }
    .catalog-price-filter { grid-column: 1 / -1; }
    .catalog-filter-panel > summary { font-size: 16px; }
    .category-nav { max-height: calc(100vh - 76px); }
    .category-nav a { justify-content: space-between; font-size: 16px; }
    .category-nav a::after { content: '›'; margin-left: auto; color: #a5aaa5; font-size: 21px; line-height: 1; }
    .category-nav a:hover { background: #faf5f3; color: #a94656; }
}

.checkout-unit-price { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.checkout-form .field-error { margin:6px 0 0; color:#a33648; font-size:13px; line-height:1.45; }
.checkout-field-group { min-width:0; }
.checkout-form fieldset:nth-of-type(2) .checkout-field-group, .checkout-form fieldset:nth-of-type(3) .checkout-field-group { grid-column:1/-1; }
.checkout-form input[aria-invalid="true"], .checkout-form select[aria-invalid="true"], .checkout-form textarea[aria-invalid="true"] { border-color:#ad5261; }
.checkout-errors { border-radius: 12px; border-left: 4px solid #ad6472; }
.checkout-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checkout-form legend { padding: 0 0 12px; font-size: 20px; }
.checkout-form input, .checkout-form select, .checkout-form textarea { min-width: 0; font-size: 16px; }
.checkout-form .delivery-manual-note { grid-column: 1 / -1; }
@media (max-width: 650px) { .checkout-form fieldset { grid-template-columns: 1fr; } }

/* Спільний масштаб і компоненти товарної картки для сторінок каталогу */
body { font-family: 'Manrope', Arial, sans-serif; color: #1f2d27; }
.catalog-heading h1, .favorites-heading h1, .product-detail h1 { letter-spacing: -1.1px; }
.catalog-heading h1 { font-size: clamp(32px, 4vw, 44px); }
.catalog-heading p, .catalog-count { font-size: 15px; }
.catalog-products { gap: 22px 18px; }
.catalog-product-card { padding: 8px; border-color: #e7e2e0; border-radius: 16px; }
.catalog-product-photo { border-radius: 12px; aspect-ratio: 1 / 1.08; background: #f8f6f4; }
.catalog-product-photo img { padding: 15px; object-fit: contain; }
.catalog-product-info { padding: 14px 9px 9px; }
.catalog-product-info > span:not(.product-stock-state) { color: #647a6b; font-size: 12px; font-weight: 750; letter-spacing: .8px; }
.catalog-product-info h3 { min-height: 3em; margin: 7px 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.catalog-product-info strong { color: #486555; font-size: 22px; }
.catalog-stock-tag { border: 1px solid #f1d5d7; background: #fff5f4; color: #a43440; }
.catalog-plus { width: 44px; height: 44px; border-radius: 12px; background: #486555; }
.catalog-plus .icon-svg { width: 20px; height: 20px; }
.catalog-product-bottom { padding-top: 10px; }
.catalog-products .favorite-toggle { top: 13px; right: 13px; }
.catalog-product-photo:hover img { transform: scale(1.025); }

@media (max-width: 900px) {
    .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
}
@media (max-width: 650px) {
    .header-actions .header-favorites-link { display: inline-flex; min-width: 28px; }
    .catalog-products { gap: 12px 9px; }
    .catalog-product-card { padding: 5px; border-radius: 12px; }
    .catalog-product-photo { border-radius: 8px; }
    .catalog-product-photo img { padding: 9px; }
    .catalog-product-info { padding: 10px 6px 8px; }
    .catalog-product-info > span:not(.product-stock-state) { font-size: 10px; }
    .catalog-product-info h3 { min-height: 3em; font-size: 13px; line-height: 1.4; }
    .catalog-product-info strong { font-size: 17px; }
    .catalog-product-bottom { gap: 5px; }
    .catalog-plus { width: 44px; height: 44px; flex-shrink:0; border-radius: 10px; }
}

/* Final shared card scale; keep source bitmaps at intrinsic size. */
.catalog-product-photo { display:flex; align-items:center; justify-content:center; height:190px; aspect-ratio:auto; }
.catalog-product-photo img { width:auto; height:auto; max-width:calc(100% - 20px); max-height:185px; padding:0; }
.catalog-product-card:hover .catalog-product-photo img, .catalog-product-photo:hover img { transform:none; }
.catalog-product-info h3 { font-size:16px; line-height:1.5; }
.catalog-product-info > span:not(.product-stock-state) { font-size:12px; }
.catalog-product-info .price-stack strong { font-size:22px; }
@media(max-width:650px) {
 .catalog-product-photo { height:140px; }
 .catalog-product-info h3 { font-size:15px; }
 .catalog-product-info > span:not(.product-stock-state) { font-size:12px; }
 .catalog-product-info .price-stack strong { font-size:20px; }
 .catalog-product-photo img { max-height:130px; }
}
