/* Русская печка: корзина и способ продажи (PLAN 2.x). Исходник: src/assets/rp/rp.css */
:root {
    --rp-red: #c01c1c;
    --rp-red-dark: #9a1616;
    --rp-text: rgb(28, 33, 38);
    --rp-muted: #6c757d;
    --rp-gray: rgb(245, 245, 245);
    --rp-line: #dddddd;
    --rp-green: #1f7a3a;
    --rp-green-bg: #e9f5ec;
    --rp-radius: 12px;
}

.ms-hidden, [hidden] { display: none !important; }

/* Кнопки */
.rp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 20px; border-radius: var(--rp-radius);
    border: 1px solid transparent; font-size: 16px; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    -webkit-user-select: none; user-select: none; touch-action: manipulation;
    transition: background-color .15s, border-color .15s, color .15s;
}
.rp-btn--primary { background: var(--rp-red); border-color: var(--rp-red); color: #fff; }
.rp-btn--primary:hover, .rp-btn--primary:focus-visible { background: var(--rp-red-dark); border-color: var(--rp-red-dark); color: #fff; }
.rp-btn--outline { background: #fff; border-color: var(--rp-red); color: var(--rp-red); }
.rp-btn--outline:hover, .rp-btn--outline:focus-visible { background: var(--rp-red); color: #fff; }
.rp-btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.rp-btn--lg { min-height: 54px; font-size: 18px; }
.rp-btn:disabled { opacity: .6; cursor: default; }
.rp-btn.rp-added { background: var(--rp-green); border-color: var(--rp-green); color: #fff; }

/* Количество */
.rp-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); background: #fff; overflow: hidden; }
.rp-qty__btn { width: 44px; min-height: 46px; border: 0; background: #fff; font-size: 22px; line-height: 1; color: var(--rp-text); cursor: pointer; touch-action: manipulation; }
.rp-qty__btn:hover { background: var(--rp-gray); }
.rp-qty__input { width: 52px; border: 0; text-align: center; font-size: 17px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.rp-qty__input::-webkit-outer-spin-button, .rp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Карточка товара */
/* Длинное название категории должно помещаться в кнопку на узком телефоне. */
.wrapper-btn-back .read-all-btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.rp-buy { background: var(--rp-gray); border-radius: var(--rp-radius); padding: 14px; margin-bottom: 15px; }
.rp-buy__form { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-buy__add { flex: 1 1 180px; }
.rp-buy__go { width: 100%; margin-top: 10px; }
.rp-buy__info { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; color: #444; }
.rp-buy__info li { position: relative; padding-left: 22px; margin-top: 4px; }
.rp-buy__info li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--rp-green); border-bottom: 2px solid var(--rp-green); transform: rotate(-45deg); }
.rp-store-badge { display: inline-block; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--rp-line); font-size: 14px; font-weight: 600; }
.rp-buy__text { margin: 12px 0; font-size: 15px; }
.rp-phone { color: var(--rp-text); font-weight: 700; white-space: nowrap; }
.rp-buy__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-buy__actions .rp-btn { flex: 1 1 160px; }

/* Плитки товаров */
.rp-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 6px; font-size: 12px; font-weight: 650; line-height: 1.3; }
.rp-tag--online { background: #e6f3e8; color: #28583a; font-weight: 550; }
.rp-tag--store { background: #f3eee8; color: #51483e; }
.rp-card-mode { margin-top: 6px; line-height: 1; }
.rp-tile-stock { margin-top: 4px; color: #62574f; font-size: 13px; line-height: 1.35; }
.rp-tile-stock:empty { display: none; }
.rp-buy--online > .rp-tag { margin-bottom: 12px; }
.rp-catalog-intro { color: #51483e; max-width: 64ch; font-size: 15px; }
.rp-catalog-intro p { margin: 8px 0 0; }
.rp-mode-catalog .wrapper-filters-total { display: block !important; align-self: center; font-size: 14px; }
.result-item-product.rp-search-result { display: flex; align-items: center; line-height: 1.35; }
.rp-search-result .rp-tag { margin-top: 4px; }

/* Телефон магазина в общей шапке */
.rp-header-phone { white-space: nowrap; text-decoration: none; }
.rp-header-phone:hover, .rp-header-phone:focus-visible { color: var(--rp-red-dark); text-decoration: underline; }
@media (max-width: 767.98px) {
    .all-header .wrapper-contacts-header { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; justify-items: end; }
    .wrapper-contacts-header .link-logo-sm { grid-row: span 2; }
}

/* Разделы каталога в боковом меню */
.rp-mode-link { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; line-height: 1.3; text-decoration: none; }
.rp-mode-link--online, .rp-mode-link--online:hover { background: #e8f3ee; color: #124e42; }
.rp-mode-link--store, .rp-mode-link--store:hover { background: #f5f1ec; color: #4b4039; }
.rp-mode-link:is(:hover, :focus-visible, [aria-current="page"]) { border-color: currentColor; }
.rp-mode-link strong { font-weight: 650; }
.rp-mode-link small { display: none; }
.rp-mode-icon { display: inline-block; position: relative; flex: none; width: 15px; height: 12px; border: 1.6px solid currentColor; border-radius: 2px; margin-top: 2px; }
.rp-mode-icon--bag::before { content: ""; position: absolute; width: 7px; height: 5px; left: 50%; bottom: 100%; transform: translateX(-50%); border: 1.6px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.rp-mode-icon--store::before { content: ""; position: absolute; inset: -4px -3px auto; height: 5px; border: 1.6px solid currentColor; border-radius: 2px; background: #f5f1ec; }
.rp-mode-icon--store::after { content: ""; position: absolute; left: 3px; bottom: 0; width: 4px; height: 6px; border: 1px solid currentColor; border-bottom: 0; }
.rp-tag .rp-mode-icon { width: 12px; height: 10px; }
.rp-catalog-drawer { position: fixed; inset: 0 auto 0 0; width: min(430px, 100%); height: 100%; height: 100dvh; max-height: none; max-width: 100%; margin: 0; padding: 0; border: 0; background: #fffefa; color: #292522; box-shadow: 8px 0 36px #25171125; }
.rp-catalog-drawer[open] { display: flex; flex-direction: column; }
.rp-catalog-drawer::backdrop { background: rgb(26 21 19 / 48%); }
.rp-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid #e8e2dc; }
.rp-drawer-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.rp-drawer-close { display: grid; place-content: center; width: 40px; height: 40px; border: 1px solid #e3dbd2; border-radius: 50%; background: #fff; color: #55483d; font: 26px/1 Arial, sans-serif; }
.rp-drawer-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 32px; }
.rp-drawer-body .rp-catalog-links { display: grid; gap: 8px; }
.rp-drawer-body .rp-mode-link { padding: 11px 15px; gap: 14px; font-size: 16px; }
.rp-drawer-body .rp-mode-link small { display: block; margin-top: 3px; font-size: 13px; }
.rp-drawer-body .rp-mode-link::after, .rp-category-tree > ul > li > a::after, .rp-category-tree summary::after { content: ""; width: 8px; height: 8px; flex: none; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); margin-left: auto; }
.rp-category-tree { margin-top: 24px; }
.rp-category-tree h3 { font-size: 17px; font-weight: 700; margin: 0 0 9px; }
.rp-category-tree ul { list-style: none; margin: 0; padding: 0; }
.rp-category-tree > ul > li { border-top: 1px solid #e8e2dc; }
.rp-category-tree a, .rp-category-tree summary { color: inherit; text-decoration: none; }
.rp-category-tree > ul > li > a, .rp-category-tree summary { display: flex; align-items: center; gap: 12px; padding: 12px 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.rp-category-tree summary::-webkit-details-marker { display: none; }
.rp-category-tree summary::after { transform: rotate(45deg); }
.rp-category-tree details[open] summary::after { transform: rotate(225deg); }
.rp-category-tree details[open] { background: #f8f4ee; padding-bottom: 7px; }
.rp-category-tree details a { display: block; padding: 8px 12px 8px 20px; font-size: 14px; }
.rp-category-tree .rp-category-all { color: #863624; font-weight: 650; }
.rp-category-tree a:hover, .rp-category-tree summary:hover { background: #f2eae1; }
.rp-catalog-drawer :focus-visible { outline: 2px solid #975138; outline-offset: -2px; }
@media (max-width: 480px) {
    .rp-drawer-head, .rp-drawer-body { padding-inline: 16px; }
}
.products-col .card-body { display: flex; flex-direction: column; }
.rp-tile-buy { margin-top: auto; padding-top: 8px; }
.rp-tile-buy .rp-btn { position: relative; z-index: 2; width: 100%; }
.rp-tile-details { background: #fff; border-color: #cfcac4; color: var(--rp-text); }
.rp-tile-details:hover, .rp-tile-details:focus-visible { background: #f6f4f1; border-color: #807870; color: var(--rp-text); }

/* Мини-корзина */
.rp-minicart { gap: 8px; }
.rp-minicart__icon { flex: none; }
.rp-minicart__count { display: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rp-red); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.msMiniCart.full .rp-minicart__count { display: inline-block; }
.rp-minicart-m { display: none; }
@media (max-width: 767.98px) {
    .rp-minicart-m {
        position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
        width: 46px; height: 46px; margin-left: 8px; border-radius: 12px; background: var(--rp-gray); color: var(--rp-text);
    }
    .rp-minicart-m .rp-minicart__count { position: absolute; top: -6px; right: -6px; }
}

/* Корзина */
.rp-h2 { font-size: 20px; font-weight: 700; margin: 30px 0 15px; }
.rp-cart__item {
    display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "img main main" "img count cost" "img remove remove";
    gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--rp-line); align-items: center;
}
.rp-cart__img { grid-area: img; align-self: start; }
.rp-cart__img img { width: 72px; height: 72px; object-fit: contain; border: 1px solid #e8e5dd; border-radius: 8px; background: #fff; }
.rp-cart__main { grid-area: main; }
.rp-cart__title { color: var(--rp-text); font-weight: 600; text-decoration: none; }
.rp-cart__title:hover { color: var(--rp-red); }
.rp-cart__price { font-size: 13px; color: var(--rp-muted); }
.rp-cart__count { grid-area: count; }
.rp-cart__cost { grid-area: cost; font-weight: 700; white-space: nowrap; text-align: right; }
.rp-cart__remove { grid-area: remove; }
.rp-link-btn { padding: 0; border: 0; background: none; color: var(--rp-muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.rp-link-btn:hover { color: var(--rp-red); }
.rp-cart__total { padding: 14px 0; font-size: 17px; text-align: right; }
@media (min-width: 768px) {
    .rp-cart__item { grid-template-columns: 72px 1fr auto 120px auto; grid-template-areas: "img main count cost remove"; }
}
.rp-empty { padding: 20px; border-radius: var(--rp-radius); background: var(--rp-gray); }
.rp-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* Оформление заказа */
.rp-order { max-width: 1060px; margin: 28px auto 32px; }
.rp-order > .rp-h2 { margin: 0 0 12px; font-size: clamp(21px, 3vw, 27px); line-height: 1.2; }
.rp-order__layout { display: grid; gap: 12px; }
.rp-order__fields, .rp-order__total { min-width: 0; padding: clamp(12px, 2vw, 20px); border: 1px solid var(--rp-line); border-radius: 14px; }
.rp-order__fields { display: grid; gap: 14px; background: #fff; }
.rp-fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.rp-fs legend { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.rp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; }
.rp-field--wide { grid-column: 1 / -1; }
.rp-field label { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; }
.rp-field__optional { margin-inline-start: 4px; color: var(--rp-muted); font-size: 12px; font-weight: 400; }
.rp-field.required label::after { content: " *"; color: var(--rp-red); }
.rp-input { width: 100%; min-height: 42px; padding: 7px 10px; border: 1px solid #c5c5c5; border-radius: 8px; font-size: 16px; background: #fff; }
textarea.rp-input { display: block; resize: vertical; }
.rp-input:focus { outline: none; border-color: var(--rp-text); box-shadow: 0 0 0 3px rgba(28, 33, 38, .12); }
.rp-input.error, .input-parent.error .rp-input { border-color: var(--rp-red); background: #fff6f6; }
.rp-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 6px; }
.rp-option { display: flex; gap: 8px; align-items: flex-start; min-height: 45px; padding: 8px 10px; border: 1px solid var(--rp-line); border-radius: 8px; cursor: pointer; background: #fff; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.rp-option:hover { border-color: #a9a19d; }
.rp-option:has(input:checked) { border-color: var(--rp-red); background: #fff7f5; }
.rp-option:has(input:focus-visible) { outline: 2px solid var(--rp-red); outline-offset: 2px; }
.rp-option input { margin: 1px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--rp-red); }
.rp-option small { display: block; margin-top: 2px; font-size: 12px; color: var(--rp-muted); }
.rp-option.rp-carrier { font-family: inherit; font-weight: 700; color: inherit; }
.rp-carrier::before { content: ''; margin-top: 1px; flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 1px solid #999; border-radius: 50%; }
.rp-carrier[aria-expanded="true"] { border-color: var(--rp-red); }
.rp-carrier[aria-expanded="true"]::before { background: var(--rp-red); border-color: var(--rp-red); box-shadow: inset 0 0 0 3px white; }
.rp-cdek-choices { min-width: 0; margin: 14px 0 0; padding: 8px 0 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rp-cdek-choices[hidden] { display: none; }
.rp-cdek-choices legend { font-size: 14px; font-weight: 600; }
.rp-cdek-choices .rp-option { align-items: center; min-height: 40px; }
#deliveries:has(.rp-carrier) > .rp-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#deliveries:has(.rp-carrier) + .rp-cdek { margin-top: 12px; }
.rp-check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: 12px; line-height: 1.4; cursor: pointer; }
.rp-check input { margin-top: 1px; width: 17px; height: 17px; flex: none; accent-color: var(--rp-red); }
.rp-check a { color: inherit; text-underline-offset: 2px; }
.rp-check.error { color: var(--rp-red); }
.rp-order__total { align-self: start; background: #f8f6f3; }
.rp-order__total h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.rp-order__row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 14px; }
.rp-order__row b { text-align: right; }
.rp-order__row--sum { margin-top: 7px; padding-top: 9px; border-top: 1px solid var(--rp-line); font-size: 16px; font-weight: 600; }
.rp-order__row--sum b { font-size: 18px; white-space: nowrap; }
.rp-order__note { margin: 7px 0 0; color: #574b44; font-size: 13px; line-height: 1.4; }
.rp-order__total .rp-btn { width: 100%; }
@media (min-width: 768px) {
    .rp-order__layout { grid-template-columns: minmax(0, 1fr) minmax(250px, 32%); gap: 16px; }
}
@media (max-width: 440px) {
    .rp-form-grid, .rp-option-grid { grid-template-columns: 1fr; }
    #deliveries .rp-option-grid, #deliveries:has(.rp-carrier) > .rp-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #deliveries .rp-option:first-child { grid-column: 1 / -1; }
}

/* Заказ принят */
.rp-done { max-width: 640px; padding: 20px; border-radius: var(--rp-radius); background: var(--rp-green-bg); }
.rp-done__title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.rp-done__list { margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: #fff; }
.rp-done__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.rp-done__row span:last-child { white-space: nowrap; }
.rp-done__row--total { border-top: 1px solid var(--rp-line); margin-top: 4px; padding-top: 8px; font-weight: 700; }

.rp-footer { background: #572523; color: #fff8f4; padding: 40px 0 24px; font-size: 15px; line-height: 1.5; }
.rp-footer .container-xl { padding-inline: clamp(18px, 3vw, 40px); }
.rp-footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.rp-footer__grid > *, .rp-footer section { min-width: 0; }
.rp-footer .rp-seller-details { display: contents; }
.rp-footer .rp-seller-legal { order: 1; }
.rp-footer h2 { margin: 0 0 12px; font-size: 19px; font-weight: 650; color: inherit; }
.rp-footer p, .rp-footer ul { margin: 0; padding: 0; list-style: none; }
.rp-footer p + p { margin-top: 10px; }
.rp-footer a { color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rp-footer nav li a { display: inline-block; padding: 4px 0; text-decoration: none; }
.rp-footer a:hover { color: white; text-decoration: underline; }
.rp-footer a:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.rp-footer .rp-footer__max { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; padding: 7px 12px; border-radius: 8px; background: #fff; color: #502323; text-decoration: none; }
.rp-footer__bottom { border-top: 1px solid #996d68; margin-top: 28px; padding-top: 16px; color: #efdad5; font-size: 13px; }
.rp-footer .note-users-footer { display: block; height: auto; font-size: inherit; margin-bottom: 8px; }
@media (min-width: 560px) {
  .rp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .all-header .inner-header { min-width: 0; gap: 10px; }
  .all-header .logo-header, .all-header .wrapper-header-menu,
  .all-header .wrapper-btn-all-header > .link-btn-all-header { margin-right: 0; }
  .all-header .logo-rp { width: 124px; height: auto; }
  .all-header .wrapper-btn-all-header { margin-left: 0; gap: 8px; }
  .all-header .link-btn-all-header { padding-inline: 9px; }
}
@media (min-width: 992px) {
  .rp-footer__grid { grid-template-columns: 0.85fr 1fr 1.1fr 1.3fr; gap: 30px; }
}
