/* Project-specific overrides loaded after the base theme. */

/* miniShop2 messages are rendered through the site's own toast. */
.jGrowl {
    display: none !important;
}

.product-card__cart-form.is-in-cart .product-card__cart,
.product-card__cart.is-hidden {
    display: none !important;
}

.product-card__cart-form:not(.is-in-cart) .product-card__quantity,
.product-card__quantity[hidden] {
    display: none !important;
}

.product-card__cart-form.is-in-cart .product-card__quantity {
    display: grid !important;
    grid-template-columns: 44px minmax(42px, 1fr) 44px;
    align-items: center;
    width: 100%;
    height: 52px;
    border: 1px solid #cbd8e7;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.product-page .purchase-actions.product-card__cart-form {
    grid-template-columns: minmax(0, 1fr) 50px !important;
}

.product-page .purchase-actions .purchase-quantity {
    width: 100% !important;
    min-height: 50px;
}

.product-page .purchase-actions .product-card__favorite.voted {
    color: #fff !important;
    background: var(--brand, #073e7e) !important;
}

/* Product detail actions share one visual height in every cart state. */
.product-page .product-summary .purchase-actions > .product-card__cart,
.product-page .product-summary .purchase-actions > .product-card__notify,
.product-page .product-summary .purchase-actions > .product-card__quantity,
.product-page .product-summary .purchase-actions > .static-favorite-main--icon {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
}

.product-page .product-summary .purchase-actions > .product-card__cart,
.product-page .product-summary .purchase-actions > .product-card__notify {
    border-radius: 10px !important;
}

.product-page .product-summary .purchase-actions > .product-card__quantity {
    align-self: stretch;
}

.header-search-view-all {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-top: 1px solid #dbe5f0;
    color: var(--brand, #073e7e);
    font-weight: 600;
}

.header-search-view-all:hover,
.header-search-view-all:focus-visible {
    background: #eef5fd;
}

.search-results-count {
    margin: 0 0 22px;
    color: #64748b;
}

.search-products,
.favorites-products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .search-products, .favorites-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .search-products, .favorites-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.search-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.search-pagination :is(a, span) {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding-inline: 12px;
    border: 1px solid #d6e1ee;
    border-radius: 10px;
}

.search-pagination span[aria-current="page"] {
    color: #fff;
    background: var(--brand, #073e7e);
    border-color: var(--brand, #073e7e);
}

.sms-code-layer { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.sms-code-backdrop { position: absolute; inset: 0; background: rgba(7, 23, 45, .52); }
.sms-code-dialog { position: relative; width: min(100%, 440px); padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(7, 23, 45, .24); }
.sms-code-dialog h2 { margin: 0 36px 10px 0; color: #12263f; font-size: 28px; font-weight: 600; }
.sms-code-dialog > p { margin: 0 0 24px; color: #64748b; line-height: 1.55; }
.sms-code-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.sms-code-form { display: grid; gap: 14px; }
.sms-code-form label { display: grid; gap: 8px; color: #263b53; font-size: 14px; }
.sms-code-form input { height: 52px; padding: 0 16px; border: 1px solid #cbd8e7; border-radius: 11px; font-size: 22px; letter-spacing: .25em; }
.sms-code-resend { color: var(--brand, #073e7e); cursor: pointer; }
.account-auth-message { min-height: 22px; margin: 0; color: #52677e; font-size: 14px; }
.account-auth-message.is-error { color: #b42318; }
.account-auth-message[hidden] { display: none !important; }
.consultation-form-message { grid-column: 1 / -1; margin: 0 0 4px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.consultation-form-message--success { background: #e5f5eb; color: #176b43; }
.consultation-form-message--error { background: #fdebea; color: #a52822; }

.consultation-card .consultation-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.consultation-card .consultation-form > label:not(.consultation-form__consent) {
    min-width: 0;
}
.consultation-card .consultation-form > label:not(.consultation-form__wide):not(.consultation-form__consent) {
    grid-column: auto !important;
}
.consultation-card .consultation-form__wide,
.consultation-card .consultation-form__consent,
.consultation-card .consultation-form > button {
    grid-column: 1 / -1;
}
.consultation-card .consultation-form__consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: #65768a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}
.consultation-card .consultation-form__consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--brand, #073e7e);
}
.consultation-card .consultation-form__consent a {
    color: var(--brand, #073e7e);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-success-modal[hidden] {
    display: none !important;
}

.form-success-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.form-success-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(5, 27, 55, .58);
    cursor: pointer;
}

.form-success-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    margin: 0;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(3, 31, 65, .24);
}

.form-success-modal__close {
    position: absolute;
    z-index: 2;
    top: 30px;
    right: 30px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #cfe5d5;
    border-radius: 50%;
    background: #fff;
    color: #173252;
    cursor: pointer;
}

.form-success-modal .checkout-success-v5__hero {
    padding-right: 76px;
}

.form-success-modal .checkout-success-v5__actions {
    justify-content: flex-end;
}

body.has-form-success-modal {
    overflow: hidden;
}

.footer-subscribe__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-footer .footer-subscribe__message {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.site-footer .footer-subscribe__message.is-success {
    background: rgba(65, 174, 105, .2);
    color: #e8fff0 !important;
}

.site-footer .footer-subscribe__message.is-error {
    background: rgba(210, 67, 67, .22);
    color: #fff0f0 !important;
}

@media (max-width: 620px) {
    .form-success-modal {
        padding: 14px;
    }

    .form-success-modal__dialog {
        padding: 12px;
        border-radius: 18px;
    }

    .form-success-modal__close {
        top: 20px;
        right: 20px;
    }

    .form-success-modal .checkout-success-v5__hero {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 24px 54px 24px 20px;
    }

    .form-success-modal .checkout-success-v5__check {
        width: 44px;
        height: 44px;
    }
}

/* Личный кабинет: профиль, заказы и их статусы. */
.account-page-v6 .account-overview-v17 { grid-template-rows: auto auto; }
@media (min-width: 1051px) {
    .account-page-v6 > .page-wrap { width: min(calc(100% - 64px), 1440px) !important; max-width: 1440px !important; }
}
.account-page-v6 .account-profile-v6 { grid-column: 1 / -1; }
.account-page-v6 .account-bonus-panel-v6 { grid-column: 1; grid-row: 1; }
.account-page-v6 .account-arrivals-v35 { grid-column: 2; grid-row: 1; }
.account-page-v6 .account-orders-panel-v6 { grid-column: 1; grid-row: 2; }
.account-page-v6 .account-offer-v18 { grid-column: 2; grid-row: 2; }
.account-welcome-v6__actions { display: grid; gap: 10px; min-width: 170px; }
.account-welcome-v6__actions .static-button { width: 100%; border-color: rgba(255,255,255,.35); background: transparent; color: #fff; text-decoration: none; }
.account-profile-page-v6__content { max-width: 920px; margin: 18px auto 0; padding-bottom: 60px; }
.account-profile-page-v6__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.account-profile-page-v6__head h1 { margin: 4px 0 12px; color: #12263f; font-size: clamp(38px,5vw,58px); line-height: 1.05; }
.account-profile-page-v6__head p { max-width: 650px; margin: 0; color: #66768a; line-height: 1.55; }
.account-profile-page-v6__back { flex: 0 0 auto; color: #0b4a8f; text-decoration: none; }
.account-profile-page-v6 .account-panel-v6 { padding: 30px; }
.account-profile-form-v6 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.account-profile-form-v6 label { display: grid; align-content: start; gap: 8px; color: #52677e; font-size: 13px; }
.account-profile-form-v6 input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d6e0eb; border-radius: 11px; background: #f7faff; color: #12263f; font: inherit; }
.account-profile-form-v6 input:disabled { background: #edf2f7; color: #607087; cursor: not-allowed; }
.account-profile-form-v6 label small { line-height: 1.4; color: #7b8999; }
.account-profile-form-v6__footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.account-profile-form-v6__footer p { margin: 0; color: #16834c; }
.account-profile-form-v6__footer p.is-error { color: #b42318; }

.account-page-v6 .account-order-v6 { position: relative; }
.account-order-v6__link { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.account-order-v6__price { white-space: nowrap; }
.account-order-v6__link:focus-visible { outline: 2px solid #0b58a5; outline-offset: 3px; }
.account-order-v6__actions { position: relative; z-index: 2; display: grid !important; gap: 7px; }
.account-order-v6__actions a,
.account-order-v6__actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 15px; border: 1px solid #cad7e5; border-radius: 10px; background: #f7faff; color: #14345a; font: inherit; font-size: 13px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.account-order-v6__actions form { margin: 0; }
.order-status-v6--rejected { color: #a52822; }

.account-order-detail-v6 { padding: 18px 0 60px; color: #12263f; }
.account-order-detail-v6__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 18px 0 28px; }
.account-order-detail-v6__head h1 { margin: 4px 0 8px; font-size: clamp(34px,4vw,52px); line-height: 1.05; }
.account-order-detail-v6__head p { margin: 0; color: #718096; }
.account-order-detail-v6__layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.75fr); gap: 22px; align-items: start; }
.account-order-detail-v6__main,.account-order-detail-v6__aside { display: grid; gap: 22px; }
.account-order-detail-v6__panel { padding: 26px; border: 1px solid #dce5ef; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(18,54,94,.06); }
.account-order-detail-v6__panel h2 { margin: 0 0 20px; font-size: 21px; }
.account-order-products-v6 { display: grid; }
.account-order-product-v6 { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 15px 0; border-top: 1px solid #e4eaf1; }
.account-order-product-v6:first-child { padding-top: 0; border-top: 0; }
.account-order-product-v6__image { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 12px; background: #f4f7fb; }
.account-order-product-v6__image img { width: 100%; height: 100%; object-fit: contain; }
.account-order-product-v6 a { color: inherit; text-decoration: none; }
.account-order-product-v6 small { display: block; margin-top: 7px; color: #718096; }
.account-order-product-v6 b { white-space: nowrap; }
.account-order-detail-v6__panel dl { display: grid; gap: 12px; margin: 0; }
.account-order-detail-v6__panel dl div { display: flex; justify-content: space-between; gap: 16px; }
.account-order-detail-v6__panel dt { color: #718096; }
.account-order-detail-v6__panel dd { margin: 0; text-align: right; }
.account-order-detail-v6__panel dl .is-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid #e1e8f0; font-weight: 700; font-size: 18px; }
.account-order-detail-v6__aside .static-button { width: 100%; margin-top: 20px; }
.account-order-history-v6 { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.account-order-history-v6 li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; min-height: 58px; }
.account-order-history-v6 li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 17px; bottom: 0; width: 2px; background: #dce5ef; }
.account-order-history-v6 li > span { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 3px; border: 3px solid #cfe0f2; border-radius: 50%; background: #0b4a8f; }
.account-order-history-v6 time { display: block; margin-top: 4px; color: #718096; font-size: 13px; }
.account-order-detail-v6__comment { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #e1e8f0; color: #607087; white-space: pre-line; }
.account-order-detail-v6__back { display: inline-flex; margin-top: 24px; color: #0b4a8f; text-decoration: none; }
.account-order-detail-v6__head .account-order-detail-v6__back { margin-top: 10px; }

@media (max-width: 900px) {
    .account-profile-form-v6 { grid-template-columns: 1fr 1fr; }
    .account-order-detail-v6__layout { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
    .account-page-v6 .account-bonus-panel-v6,
    .account-page-v6 .account-arrivals-v35,
    .account-page-v6 .account-orders-panel-v6,
    .account-page-v6 .account-offer-v18 { grid-column: 1; }
    .account-page-v6 .account-bonus-panel-v6 { grid-row: 1; }
    .account-page-v6 .account-arrivals-v35 { grid-row: 2; }
    .account-page-v6 .account-orders-panel-v6 { grid-row: 3; }
    .account-page-v6 .account-offer-v18 { grid-row: 4; }
}
@media (max-width: 620px) {
    .account-profile-form-v6 { grid-template-columns: 1fr; }
    .account-profile-form-v6__footer { align-items: stretch; flex-direction: column; }
    .account-profile-form-v6__footer .static-button { width: 100%; }
    .account-order-v6__actions a,.account-order-v6__actions button { width: 100%; }
    .account-order-detail-v6__head { align-items: flex-start; flex-direction: column; }
    .account-profile-page-v6__head { align-items: flex-start; flex-direction: column; }
    .account-order-detail-v6__panel { padding: 20px 16px; }
    .account-order-product-v6 { grid-template-columns: 64px minmax(0,1fr); }
    .account-order-product-v6__image { width: 64px; height: 64px; }
    .account-order-product-v6 > b { grid-column: 2; }
}
@container (max-width: 720px) {
    .account-page-v6 .account-order-v6__actions { grid-column: 2; grid-row: 2; }
}
@container (max-width: 420px) {
    .account-page-v6 .account-order-v6__actions { grid-column: 1 / -1; grid-row: 3; width: 100%; }
}
.account-orders-empty { padding: 22px 0; color: #64748b; }
.account-orders-empty a { color: var(--brand, #073e7e); font-weight: 600; }

.product-card__quantity button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #012e6f;
    cursor: pointer;
}

.product-card__quantity input[name="count"] {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent;
    text-align: center;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.product-card__quantity input[name="count"]::-webkit-outer-spin-button,
.product-card__quantity input[name="count"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.static-filter-price-field,
.static-filter-price-field:hover,
.static-filter-price-field:focus-within {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.static-filter-price-field input,
.static-filter-price-field input:hover,
.static-filter-price-field input:focus,
.static-filter-price-field input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Product summary follows the approved local product-page composition. */
.product-page .product-summary {
    padding-top: 0 !important;
}

.product-page .product-summary > h1 {
    max-width: 760px;
    margin: 0;
    color: var(--brand-dark, #10213b);
    font-size: clamp(32px, 3.1vw, 52px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
}

.product-page .product-sku {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 18px 0 0;
    color: #68778a;
    font-size: 13px;
    line-height: 1.35;
}

.product-page .product-brand-link {
    color: #4a5565;
    font-weight: 600;
}

.product-page .product-sku__separator {
    color: #a2acb9;
}

.product-page .product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border, #dbe3ec);
    color: #8b929d;
    font-size: 13px;
}

.product-page .product-rating b {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand, #073e7e);
    font-size: 13px;
}

.product-page .product-rating b svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.product-page .product-rating button {
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid #9ca6b2;
    background: transparent;
    color: #697586;
    cursor: pointer;
    font-size: 13px;
}

.product-page .product-rating > span {
    color: #9a9fa8;
}

.product-page .product-overview-v34 {
    margin-top: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--border, #dbe3ec);
    border-radius: 0;
    background: transparent;
}

.product-page .product-summary .product-price-block {
    display: flex !important;
    flex-flow: row wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: auto !important;
    padding-top: 28px;
}

.product-page .product-summary .product-price-block > strong {
    flex-basis: 100%;
    order: 2;
}

.product-page .product-summary .product-price-block > del {
    order: 1;
}

.product-page .product-summary .product-price-block > .availability-chip {
    flex-basis: auto;
    order: 0;
}

.product-page .product-summary .availability-chip {
    min-height: 30px;
    padding: 6px 9px !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    background: #eef5fd !important;
    color: #012e6f !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
}

.product-page .product-summary .product-receipt {
    margin-top: 14px;
}

@media (max-width: 900px) {
    .product-page .product-summary > h1 {
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.04;
    }

    .product-page .product-rating > span {
        flex-basis: 100%;
    }
}

@media (max-width: 620px) {
    .consultation-card .consultation-form {
        grid-template-columns: 1fr;
    }
}
.catalog-root-list > .catalog-root-link {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 9px;
    border: 0;
    border-radius: 8px;
    color: var(--foreground);
    text-align: left;
    text-decoration: none;
    font-size: 14px;
}

.catalog-root-list > .catalog-root-link.is-active {
    background: transparent;
    color: var(--foreground);
}

.catalog-root-list > .catalog-root-link:hover,
.catalog-root-list > .catalog-root-link:focus-visible {
    background: var(--brand-soft);
    color: var(--brand);
}

.account-bonus-v6__turnover {
    margin: 14px 0 18px;
    color: var(--muted-foreground);
    font-size: 14px;
}

.account-bonus-v6__turnover strong {
    color: var(--foreground);
}

.account-orders-panel-v6 .account-panel-v6__head > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-orders-panel-v6 .account-panel-v6__head span {
    color: var(--muted-foreground);
    font-size: 14px;
}

.account-order-history-v1 {
    max-width: 980px;
}

.account-order-history-v1 .account-orders-v6 {
    display: grid;
}

/* Equal full-width tabs on desktop; intrinsic widths and hidden-scrollbar overflow on small screens. */
.product-page .product-details {
  min-width: 0;
  max-width: 100%;
}
.product-page .product-details__tabs {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(max-content, 1fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-page .product-details__tabs::-webkit-scrollbar {
  display: none;
}
.product-page .product-details__tabs > button[data-slot="tabs-trigger"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px 20px;
  white-space: nowrap;
  justify-content: center;
  text-align: center;
}

/* Cart columns must contain their contents at every viewport width. */
.cart-page-v6 .cart-layout:not(.cart-layout--empty) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 32px;
  align-items: start;
}
.cart-page-v6 .cart-list,
.cart-page-v6 .order-summary,
.cart-page-v6 .cart-item > * {
  min-width: 0;
  max-width: 100%;
}
.cart-page-v6 .cart-item {
  grid-template-columns: 76px minmax(0, 1fr) 116px max-content 40px !important;
  gap: 16px !important;
}
.cart-page-v6 .cart-item__image { width: 76px !important; height: 84px !important; }
.cart-page-v6 .cart-item__copy { overflow-wrap: anywhere; }
.cart-page-v6 .order-summary > a { max-width: 100%; white-space: normal; text-align: center; }
.cart-page-v6 .quantity-control input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.cart-page-v6 .quantity-control input[type="number"]::-webkit-inner-spin-button,
.cart-page-v6 .quantity-control input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width: 1180px) {
  .cart-page-v6 .cart-layout:not(.cart-layout--empty) { grid-template-columns: minmax(0, 1fr); }
  .cart-page-v6 .order-summary { position: static; width: 100%; }
}
@media (max-width: 760px) {
  .cart-page-v6 .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 40px !important;
    gap: 16px 12px !important;
  }
  .cart-page-v6 .cart-item__image { grid-area: 1 / 1; width: 64px !important; height: 72px !important; }
  .cart-page-v6 .cart-item__copy { grid-area: 1 / 2 / 2 / 4; }
  .cart-page-v6 .cart-item__remove { grid-area: 1 / 4 !important; }
  .cart-page-v6 .cart-item .quantity-control { grid-area: 2 / 1 / 3 / 3 !important; justify-self: start; }
  .cart-page-v6 .cart-item__price {
    grid-area: 2 / 3 / 3 / 5 !important;
    min-width: 0;
    place-self: center end !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Login prompt for cart operations. Native dialog provides modal focus handling. */
.cart-auth-modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 40px 32px 28px;
  border: 1px solid #dbe4ef;
  border-radius: 24px;
  background: #fff;
  color: #132943;
  box-shadow: 0 24px 80px #0c234640;
  overflow: auto;
}
.cart-auth-modal:not([open]) { display: none; }
.cart-auth-modal::backdrop { background: #10213b99; }
.cart-auth-modal__close {
  position: absolute; right: 12px; top: 12px;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  padding: 6px; border: 0; border-radius: 50%;
  color: #132943; background: #f0f4f8; cursor: pointer;
}
.cart-auth-modal h2 { font-size: 25px; line-height: 1.25; margin: 0 20px 16px 0; }
.cart-auth-modal p { font-size: 16px; line-height: 1.6; margin: 0 0 24px; color: #586879; }
.cart-auth-modal__login { width: 100%; white-space: normal; text-align: center; }
.cart-auth-modal__continue { display: block; margin: 16px auto 0; padding: 8px; background: none; border: 0; color: #405770; cursor: pointer; }
.has-cart-auth-modal { overflow: hidden; }
@media (max-width: 480px) {
  .cart-auth-modal { padding: 44px 22px 24px; }
  .cart-auth-modal h2 { font-size: 22px; }
}


/* Card titles are clamped by lines, never by a fixed pixel height. */
.site-shell .product-card h3,
.site-shell .product-card h3 a {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
}
@media (max-width: 1050px) {
  .account-page-v6 .account-experience-v6 > .account-auth-shell { order: -1; }
}

@media (max-width:1050px){.account-page-v6 .account-experience-v6{grid-template-areas:"account-auth" "account-intro";}}

/* Selected filter groups remain on one horizontally scrollable line. */
.catalog-toolbar .active-filters {
  display: flex !important; flex-wrap: nowrap !important; gap: 8px;
  overflow-x: auto; max-width: 100%; padding: 4px 0; scrollbar-width: none;
}
.catalog-toolbar .active-filters::-webkit-scrollbar { display: none; }
.filter-group-chip { flex: 0 0 auto; border: 1px solid #b5c9e5; border-radius: 999px; padding: 6px 12px; color: #092f6e; background: #fff; white-space: nowrap; }
.filter-selection-count { border-radius: 999px; background: #fff; color: #092f6e; min-width: 22px; padding: 1px 5px; font-size: 12px; }
@media (max-width: 760px) {
  .about-page-v6 .about-hero-v6 { display: flex !important; flex-direction: column; gap: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }
  .about-page-v6 .about-hero-v6 > div { position: relative; width: 100%; padding: 28px 24px; }
  .about-page-v6 .about-hero-v6 > .campaign-media { position: relative !important; inset: auto !important; flex: 0 0 auto; width: 100%; height: auto; border-radius: 0; }
  .about-page-v6 .about-hero-v6 > .campaign-media img { position: static !important; display: block; width: 100%; height: auto !important; aspect-ratio: auto; object-fit: contain !important; }
}

/* Edge-to-edge product viewer; no padding inside the image frame. */
.static-image-layer figure { padding: 0 !important; width: auto; max-width: 100%; overflow: hidden; }
.static-image-layer figure img { display: block; margin: 0; width: auto; max-width: 100%; max-height: calc(100dvh - 48px); }
.header-search-panel__results .static-product-result img { object-fit: cover !important; }
.static-filter-option__count { display: inline !important; }

/* Keep a sticky search panel from becoming the page's scroll anchor. */
.site-header, #header-search-panel { overflow-anchor: none; }
html.header-search-open, html.header-search-open body { overflow-anchor: none; }
.contact-band__messengers .contact-social-icon { display: inline-flex; align-items: center; justify-content: center; padding: 4px; width: 44px; height: 44px; }
.contact-band__messengers .contact-social-icon img { display: block; width: 36px !important; height: 36px !important; object-fit: contain; filter: none !important; }
.site-shell .product-card .product-card__cart, .site-shell .product-card .product-card__notify { flex-direction: column; gap: 3px; padding: 9px 8px !important; min-height: 66px !important; height: auto !important; max-height: none; white-space: normal; }
.product-card__button-price { display: flex; align-items: baseline; justify-content: center; gap: 7px; white-space: nowrap; }
.product-card__button-price strong { font-size: 17px; font-weight: 700; }
.product-card__button-price del { font-size: 12px; opacity: .7; }
.product-card__cart-form:not(.is-in-cart) .product-card__quantity-price { display: none !important; }
.product-card__cart-form.is-in-cart .product-card__quantity-price { display: flex !important; justify-content: center; margin-top: 6px; }

/* One continuous card, including the purchase / stock-notice footer. */
.site-shell .product-card { gap: 0 !important; border: 1px solid #dce5ef !important; border-radius: 14px !important; overflow: hidden; background: #fff; }
.site-shell .product-card .product-card__panel { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.site-shell .product-card .product-card__bottom { margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 66px; }
.site-shell .product-card .product-card__cart,
.site-shell .product-card .product-card__notify { border-radius: 0 !important; width: 100%; margin: 0 !important; }
.site-shell .product-card .product-card__notify { border: 0 !important; border-top: 1px solid #dce5ef !important; }
.site-shell .product-card .product-card__cart-form.is-in-cart { padding: 8px 12px; border-top: 1px solid #dce5ef; }

@media (max-width: 575px) {
  .catalog-page .catalog-products { gap: 10px !important; }
}

.site-shell .product-card__panel .product-card__body { min-height: 0 !important; }

/* Mobile catalogue: one level at a time, with a route back to its parent. */
#catalog-mega-menu .catalog-quick-account,
.catalog-mega .catalog-mobile-toolbar { display: none !important; }
@media (max-width: 900px) {
  .catalog-mega .catalog-mega__grid { display: block !important; }
  .catalog-mega .catalog-mega__grid > * { display: none !important; }
  .catalog-mega .catalog-mega__grid > .is-mobile-current { display: block !important; width: 100%; border: 0; padding: 0; }
  .catalog-mega.is-mobile-submenu > .catalog-quick-links { display: none !important; }
  .catalog-mega.is-mobile-submenu .catalog-mobile-toolbar { display: block !important; padding-block: 12px; }
  .catalog-mobile-back { min-height: 44px; padding: 8px 12px; color: #092f6e; background: #edf3fa; border-radius: 10px; }
  .catalog-mega .catalog-level-list { display: flex !important; flex-direction: column; width: 100%; }
  .catalog-mega .catalog-level-list > :is(a, button) { display: flex !important; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 12px; white-space: normal; text-align: left; }
  .catalog-mega .catalog-branch-indicator { display: inline-flex !important; flex-shrink: 0; }
  .catalog-mega .catalog-branch-indicator svg { width: 20px !important; height: 20px !important; min-width: 20px; }
  .catalog-mega .catalog-root-link.has-mobile-children::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); flex-shrink: 0; margin: 0 8px 0 12px; }
  .catalog-mega .catalog-root-link { display: flex !important; align-items: center; justify-content: space-between; }
  .catalog-mega .catalog-menu-level > h2 a { display: block; padding: 12px; text-decoration: underline; text-underline-offset: 4px; }
  .catalog-mega > .catalog-quick-links .catalog-quick-professionals { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #catalog-mega-menu > .catalog-quick-links .catalog-quick-account { display: flex !important; }
  .catalog-mega > .catalog-quick-links :is(.catalog-quick-account, .catalog-quick-professionals) { grid-column: auto !important; }
}

@media (max-width: 900px) {
  #catalog-mega-menu { overflow-y: auto !important; overflow-x: hidden !important; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
  #catalog-mega-menu :is(.catalog-mega__grid, .catalog-roots, .catalog-root-list, .catalog-menu-level, .catalog-level-list) { overflow: visible !important; overscroll-behavior: auto !important; max-height: none !important; }
}
