:root {
    /* The tokens of docs/DESIGN.md: a value lives here once, rules take it by name. */
    --brown: #45231f;
    --orange: #d25e16;
    --orange-hover: #b04d10;
    --action: #b04d10;
    --action-hover: #8f3e0c;
    --cream: #fdf7e7;
    --cream-deep: #f1ead9;
    --white: #ffffff;
    --line: #ece3cf;
    --line-strong: #e3d6bb;
    --line-neutral: #dddddd;
    --text-strong: #333333;
    --text-body: #555555;
    --text-article: #444444;
    --text-muted: #8a7a6a;
    --selected: #fffaf5;
    --option-icon: #6b4a3a;
    --green: #3c7d22;
    --danger: #b0413e;
    --info: #2f6fae;
    --warn-bg: #fdf0e6;
    --info-bg: #e8f0fa;
    --ok-bg: #e9f4e4;
    --bad-bg: #fbeaea;
    --muted-bg: #f1f1f1;
    --grey-666: #666666;
    --grey-777: #777777;
    --grey-888: #888888;
    --grey-999: #999999;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-chip: 11px;
    --radius-pill: 18px;
    --radius-pager: 20px;
}

/* The shared base (docs/DESIGN.md): at the top, so a page's own class after it adds to it or overrides a part. */
.card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}
/* The ruble sign (ShopExtension::byn): the height of a capital, standing on the baseline like a letter. */
/* svg.byn: Bootstrap's svg:not(:root) { overflow: hidden } outranks a class and cut the stroke at the bottom. */
svg.byn {
    display: inline-block;
    width: .72em;
    height: .72em;
    vertical-align: baseline;
    overflow: visible;
}
/* One official drawing, no bold: a stroke in the text colour thickens it to the digits beside it, by the weight of the text
   (browser-design.py: byn). The stroke also makes it taller, so the box shrinks by as much (viewBox units, 2.65 = the box). */
.byn path {
    stroke: currentColor;
    stroke-width: 0;
    stroke-linejoin: round;
}
/* .01em: text and a box round a fractional line to pixels differently, and on some rows (the home page) the sign sat a pixel low */
strong .byn, b .byn, .header-cart-sum .byn, .price-new .byn, .article-bundle-price .byn {
    width: .697em;
    height: .697em;
    vertical-align: .01em;
}
strong .byn path, b .byn path, .header-cart-sum .byn path, .price-new .byn path, .article-bundle-price .byn path {
    stroke-width: .09;
}
.mini-cart-sum .byn, .special-price .byn, .qty-sum .byn, .cart-item-total .byn, .checkout-grand .byn, .is-grand .byn, .discount-ticket-save .byn, .receipt-row.is-total .byn, .dash-num .byn, .article-bundle-total .byn {
    width: .67em;
    height: .67em;
    vertical-align: .02em;
}
.mini-cart-sum .byn path, .special-price .byn path, .qty-sum .byn path, .cart-item-total .byn path, .checkout-grand .byn path, .is-grand .byn path, .discount-ticket-save .byn path, .receipt-row.is-total .byn path, .dash-num .byn path, .article-bundle-total .byn path {
    stroke-width: .2;
}
.empty-state {
    padding: 30px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    color: var(--text-body);
    text-align: center;
}
.empty-state .fa {
    display: block;
    margin-bottom: 10px;
    color: var(--line-strong);
    font-size: 48px;
}
.empty-state p {
    margin: 0 0 12px;
}
.empty-state p:last-child {
    margin-bottom: 0;
}
.empty-state .btn {
    max-width: calc(100% - 10px);
    margin: 5px;
}
.note {
    margin: 0;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--cream);
    color: var(--brown);
    font-size: 14px;
    line-height: 1.5;
}
.shop-mark {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-chip);
    background: var(--cream);
    color: var(--brown);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.shop-mark.is-hit {
    border-color: var(--action);
    background: var(--action);
    color: var(--white);
}
.product-thumb .shop-mark {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.hint {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}
.hint:empty {
    display: none;
}
/* invisible reCAPTCHA (captcha_controller.js): its badge may be hidden while the form says so (_captcha.html.twig) */
.grecaptcha-badge {
    visibility: hidden;
}
.captcha-legal {
    margin: 8px 0 0;
}
.captcha-legal a {
    color: inherit;
    text-decoration: underline;
}

/* -------------
 * Selects
 * ------------- */
/* Custom Select*/
span.customSelect {
    font-size: 12px;
    border: 1px solid #e0e0e0;
    background-color: var(--white);
    color: var(--text-strong);
    text-decoration: none;
    white-space: nowrap;
    text-align: left;
    height: 34px;
}

span.customSelect option {
    font-size: 12px !important;
}

span.customSelect.changed {
    background-color: #f0dea4;
}

.customSelectOpen {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.form-control.hasCustomSelect {
    width: 100% !important;
}

.customSelectInner {
    background: url("../image/select-arrow-down-9cfNyOE.gif") no-repeat center right;
    width: 100% !important;
}

.customSelectOpen .customSelectInner {
    background: url("../image/select-arrow-up-4KroF_v.gif") no-repeat center right;
}

#input-sort, #input-limit, #product .form-group select {
    cursor: pointer;
}


/* TREEVIEW CATEGORY LEFT */
.treeview-list, .treeview-list ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.treeview-list ul {
    background: none;
    margin: 0;
}

.treeview-list .hitarea {
    background: none;
    height: 9px;
    width: 9px;
    float: right;
    cursor: pointer;
}

/* fix for IE6 */
* html .hitarea {
    display: inline;
    float: none;
}

.treeview-list li {
    margin: 0;
}

.treeview-list li.last, .treeview-list li.lastExpandable {
    border: none;
}

.treeview-list a.selected {
    background-color: #eee;
}

.treeview-list .hover {
    color: #38B0E3;
    cursor: pointer;
}

.treeview-list li a:hover, .treeview-list li.nav-1 a:hover {
    cursor: pointer;
}

.treeview-list li ul li:hover {
    background: none;
}

.treeview-list li a {
    display: inline;
    padding-left: 0;
}

.treeview-list li.active a {
    font-weight: bold; /*color:#D09E00 ;*/
}

.treeview-list li.active ul li a {
    font-weight: normal;
    color: #5E5E5E;
}

.treeview-list li a:hover { /*color:#D09E00;*/
}

.treeview-list li ul li a:hover { /*color:#D09E00;*/
}

.treeview-list li ul li {
    background: none;
    border-bottom: none;
}

.treeview-list .collapsable .expandable-hitarea {
    height: 20px;
    width: 20px;
    text-align: right;
}

.treeview-list .expandable .collapsable-hitarea {
    height: 20px;
    width: 20px;
    text-align: right;
}

.treeview-list .expandable-hitarea {
    height: 20px;
    width: 20px;
    text-align: right;
}

.treeview-list .collapsable-hitarea {
    height: 20px;
    width: 20px;
    text-align: right;
}

.treeview-list .expandable .collapsable-hitarea,
.treeview-list .expandable-hitarea {
    background: url("../image/sprite-fzormew.png") no-repeat scroll -44px -65px;
}

.responsive-menu .expandable .collapsable-hitarea,
.responsive-menu .expandable-hitarea {
    background: url("../image/sprite-fzormew.png") no-repeat scroll -44px -65px;
}

.treeview-list .collapsable .expandable-hitarea,
.treeview-list .collapsable-hitarea {
    background: url("../image/sprite-fzormew.png") no-repeat scroll -44px -94px;
}

.responsive-menu .collapsable-hitarea {
    background: url("../image/sprite-fzormew.png") no-repeat scroll -44px -94px;
}

/* TREEVIEW CATEGORY LEFT */


/* FancyBox */

.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp {
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    vertical-align: top;
}

.fancybox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8020;
}

.fancybox-skin {
    position: relative;
    background: #f9f9f9;
    color: var(--text-article);
    text-shadow: none;
    -webkit-border-radius: 4px;
    -khtml-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.fancybox-opened {
    z-index: 8030;
}

.fancybox-opened .fancybox-skin {
    -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.fancybox-outer, .fancybox-inner {
    position: relative;
}

.fancybox-inner {
    overflow: hidden;
}

.fancybox-type-iframe .fancybox-inner {
    -webkit-overflow-scrolling: touch;
}

.fancybox-error {
    color: var(--text-article);
    font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 15px;
    white-space: nowrap;
}

.fancybox-image, .fancybox-iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.fancybox-image {
    max-width: 100%;
    max-height: 100%;
}

#fancybox-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -22px;
    margin-left: -22px;
    background-position: 0 -108px;
    opacity: 0.8;
    -webkit-opacity: 0.8;
    -moz-opacity: 0.8;
    -khtml-opacity: 0.8;
    cursor: pointer;
    z-index: 8060;
}

#fancybox-loading div {
    width: 44px;
    height: 44px;
}

.fancybox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 8040;
}

.fancybox-nav {
    position: absolute;
    top: 0;
    width: 40%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    z-index: 8040;
}

.fancybox-prev {
    left: 0;
}

.fancybox-next {
    right: 0;
}

.fancybox-nav span {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 34px;
    margin-top: -18px;
    cursor: pointer;
    z-index: 8040;
    visibility: hidden;
}

.fancybox-prev span {
    left: 10px;
    background-position: 0 -36px;
}

.fancybox-next span {
    right: 10px;
    background-position: 0 -72px;
}

.fancybox-nav:hover span {
    visibility: visible;
}

.fancybox-tmp {
    position: absolute;
    top: -99999px;
    left: -99999px;
    visibility: hidden;
    max-width: 99999px;
    max-height: 99999px;
    overflow: visible !important;
}

/* Overlay helper */

.fancybox-lock {
    overflow: hidden;
}

.fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    z-index: 8010;
}

.fancybox-overlay-fixed {
    position: fixed;
    bottom: 0;
    right: 0;
}

.fancybox-lock .fancybox-overlay {
    overflow: auto;
    overflow-y: scroll;
}

/* Title helper */

.fancybox-title {
    visibility: hidden;
    font: normal 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    text-shadow: none;
    z-index: 8050;
}

.fancybox-opened .fancybox-title {
    visibility: visible;
}

.fancybox-title-float-wrap {
    position: absolute;
    bottom: 0;
    right: 50%;
    margin-bottom: -35px;
    z-index: 8050;
    text-align: center;
}

.fancybox-title-float-wrap .child {
    display: inline-block;
    margin-right: -100%;
    padding: 2px 20px;
    background: rgba(0, 0, 0, 0.8);
    -webkit-border-radius: 15px;
    -khtml-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    text-shadow: 0 1px 2px #222;
    color: var(--white);
    font-weight: bold;
    line-height: 24px;
    white-space: nowrap;
}

.fancybox-title-outside-wrap {
    position: relative;
    margin-top: 10px;
    color: var(--white);
}

.fancybox-title-inside-wrap {
    padding-top: 10px;
}

.fancybox-title-over-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    color: var(--white);
    padding: 10px;
    background: #000;
    background: rgba(0, 0, 0, .8);
}

/*Product zoom CSS*/

.zoomContainer {
    margin-bottom: 5px;
}

.zoomContainer .zoomLens {
}

/*.zoomContainer .zoomWindow{
	box-shadow:none;
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	margin-left:10px;

}*/

/* FancyBox */

.last_item_tm .product-block {
}

.first_item_tm .product-block {
}


.toggle .mobile_togglemenu {
    display: block;
    cursor: pointer;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    padding: 0 0 15px;
    position: absolute;
    right: 0;
    top: 5px;
}

.toggle {
    background: none;
    padding: 8px 0;
    margin: 0 auto;
}

.active .mobile_togglemenu {
}

#footer .mobile_togglemenu:hover {
    text-decoration: none;
}

.toggle .mobile_togglemenu:before {
    color: var(--white);
    content: "\f107";
    font-family: "FontAwesome";
    font-size: 24px;
    font-weight: 400;
    height: 20px;
    margin: 0;
    position: absolute;
    right: 15px;
    text-align: center;
    top: 5px;
    width: 20px;
}

.active .mobile_togglemenu:before {
    content: "\f106";
}


/* Responsive menu Css Start */
.nav-responsive span {
    display: inline-block;
}

.ie7 .nav-responsive span {
    display: inline;
}

.nav-responsive {
    cursor: pointer;
    display: none;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
}

.main-navigation ul li {
    list-style: none;
    position: relative;
}

.nav-responsive .expandable {
    background: url("../image/sprite-fzormew.png") no-repeat scroll -42px -125px;
    height: 20px;
    margin-top: 11px;
    width: 25px;
    float: left;
}

.nav-container.fixed .nav-responsive .expandable {
    background: url("../image/sprite-fzormew.png") no-repeat scroll -5px -125px;
}

.responsive-menu {
    padding: 0;
    position: relative;
}

.responsive-menu .main-navigation {
    position: absolute;
    z-index: 999;
    display: none;
    margin-top: 0;
    padding: 2%;
    width: 95%;
    list-style: none;
    left: 20px;
}

.responsive-menu .main-navigation ul {
    padding-left: 20px;
}

.nav-responsive div,
.responsive-menu .hitarea {
    height: 9px;
    width: 9px;
    float: right;
    cursor: pointer;
    margin-right: 0;
    margin-left: 3px;
}

.responsive-menu .hitarea {
    margin-left: 0;
}

.responsive-menu .expandable .collapsable-hitarea {
    height: 30px;
    padding: 0;
    width: 25px;
}

.responsive-menu .expandable-hitarea {
    height: 30px;
    width: 25px;
    padding: 5px;
}

.responsive-menu .collapsable-hitarea {
    height: 30px;
    width: 25px;
    padding: 5px;
}

@media (max-width: 767px) {
    .responsive-menu .main-navigation {
        left: 15px;
    }
}

/* Responsive menu Css End */

/* product page: name is the page <h1>, price is a paragraph (SEO); the same title look as every page */
#content h1.product-title {
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
    font-size: 28px;
    font-weight: 700;
    padding: 0 0 5px;
    color: var(--brown);
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 10px;
}

#content p.special-price {
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    margin: 0 0 10px;
    color: var(--brown);
}


/* cart: brand-coloured order button */
.btn-checkout {
    color: var(--white);
    background-color: var(--action);
    border: 1px solid var(--action);
    margin-top: 10px;
}
/* :where keeps it at the weight of one class: the place of a button (.empty-state .btn, .login-submit) still decides */
:where(body:not(.admin)) .btn-primary {
    margin-top: 10px;
}
.btn-checkout:hover, .btn-checkout:focus, .btn-checkout:active {
    color: var(--white);
    background-color: var(--action-hover);
    border-color: var(--action-hover);
}

/* cart on phones: the 5-column table was 670px wide and cut off the totals; stack it instead */
@media (max-width: 767px) {
    /* the theme floats every .table on phones: the lines fell out of «Ваш заказ» into the next section */
    .table-responsive,
    .cart-table {
        float: none;
    }
    .table-responsive {
        border: 0;
    }
    .cart-table thead {
        display: none;
    }
    .cart-table, .cart-table tbody, .cart-table tfoot {
        display: block;
        width: 100%;
    }
    .cart-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid var(--line-neutral);
    }
    .cart-table > tbody > tr > td, .cart-table > tfoot > tr > td {
        display: block;
        border: 0 !important;
    }
    .cart-table > tbody > tr > td:nth-child(1) {
        width: 100%;
        padding-bottom: 0;
    }
    .cart-table > tbody > tr > td:nth-child(2) {
        flex: 1 1 auto;
    }
    .cart-table > tbody > tr > td:nth-child(3) {
        display: none;
    }
    .cart-table > tbody > tr > td:nth-child(4) {
        font-weight: 700;
        white-space: nowrap;
    }
    .cart-table > tfoot > tr {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .cart-table > tfoot > tr > td:first-child {
        flex: 1 1 auto;
        text-align: left !important;
    }
    .cart-table > tfoot > tr > td:nth-child(2) {
        white-space: nowrap;
    }
    .cart-table > tfoot > tr > td:last-child:empty {
        display: none;
    }
    .btn-checkout {
        width: 100%;
    }
    :where(body:not(.admin)) .btn-primary {
        width: 100%;
    }
}


/* product page: what to do when the product is out of stock */
.out-of-stock-note {
    margin: 10px 0 20px;
}
.out-of-stock-note p {
    margin-bottom: 10px;
}

/* homepage: links under the shortened "Новинки" block */
.latest-more {
    text-align: center;
    margin: 10px 0 30px;
}
.latest-more .btn {
    margin: 5px;
    min-width: 160px;
}


/* body text was #808080 on white (contrast 3.9:1, below the 4.5:1 readability minimum) */
body {
    color: var(--text-body);
}

/* product cards on phones: the theme fixes the image box at 192px while the picture shrinks,
   leaving empty bands above/below it */
@media (max-width: 767px) {
    .product-thumb .image, .product-thumb .image a {
        height: auto;
    }
}


/* ===== checkout page ===== */
.checkout-page {
    padding-bottom: 30px;
}
.checkout-step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 20px 20px 10px;
    margin-bottom: 20px;
}
.checkout-step-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    margin: 0 0 15px;
    color: var(--brown);
}
.checkout-step-num {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--brown);
    color: var(--white);
    text-align: center;
    font-size: 15px;
}
.checkout-form label.required:after {
    content: " *";
    color: var(--orange);
}
.checkout-form .form-control {
    height: 42px;
    border-radius: 4px;
    font-size: 15px;
}
.checkout-form textarea.form-control {
    height: auto;
}
.checkout-form .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(210, 94, 22, .15);
}

/* cart lines inside step 1 */
.checkout-step .cart-table {
    margin-bottom: 10px;
}
.checkout-step .cart-table > thead > tr > td {
    border-top: 0;
    color: var(--grey-888);
    font-size: 12px;
    text-transform: uppercase;
}
.checkout-step .cart-table > tbody > tr > td {
    vertical-align: middle;
}
.cart-item-name img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}
.cart-item-name a {
    color: var(--text-strong);
}
.cart-item-total {
    font-weight: 700;
    white-space: nowrap;
}
.cart-item-price {
    color: var(--grey-888);
    white-space: nowrap;
}
.cart-item-remove {
    border: 0;
    background: none;
    color: #aaa;
    font-size: 16px;
    padding: 6px;
}
.cart-item-remove:hover {
    color: var(--orange);
}

/* delivery/payment radio cards */
.choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-gap: 10px;
    margin-bottom: 15px;
}
.choice-card {
    position: relative;
    display: block;
    margin: 0;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--line-neutral);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    font-weight: normal;
    transition: border-color .15s, box-shadow .15s;
}
.choice-card:hover {
    border-color: var(--orange);
}
.choice-card input[type=radio] {
    position: absolute;
    left: 14px;
    top: 15px;
    margin: 0;
    accent-color: var(--orange);
}
.choice-card.is-checked {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange);
    background: var(--selected);
}
.choice-card-title {
    display: block;
    font-weight: 600;
    color: var(--text-strong);
}
.choice-card-hint {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--grey-777);
}
.b2b-fields fieldset {
    border: 1px dashed #d8c9a8;
    border-radius: var(--radius-sm);
    padding: 15px 15px 0;
    margin-bottom: 15px;
    background: var(--cream);
}

/* order summary */
.checkout-summary {
    position: sticky;
    /* below the sticky site header (93px) + a gap: at 70px the title of the block hid under it */
    top: 110px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 20px;
}
.checkout-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--brown);
}
.checkout-totals {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-row-gap: 8px;
    margin: 0 0 15px;
}
.checkout-totals dt {
    font-weight: normal;
    color: var(--text-body);
}
.checkout-totals dd {
    text-align: right;
    white-space: nowrap;
    margin: 0;
}
.checkout-totals .checkout-discount {
    color: #2e8b57;
}
/* a cart line the discount covers: the sum before it struck out and its percent in red above the sum after it (the owner, 10.11.2026) */
.cart-was-line {
    display: block;
}
.cart-item-total .cart-was {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}
.cart-item-total .cart-was .byn path {
    stroke-width: 0;
}
.cart-line-percent {
    margin-left: 4px;
    color: var(--danger);
    font-size: 13px;
}
@media (max-width: 767px) {
    .cart-was-line {
        white-space: normal;
    }
    .cart-line-percent {
        display: block;
        margin-left: 0;
    }
}
/* Ticket (docs/DESIGN.md): the stub with the percent, a dashed perforation with two notches cut by the mask, the text */
.discount-ticket {
    --stub: 104px;
    display: flex;
    background: var(--cream);
    color: var(--brown);
    border-radius: var(--radius-md);
    -webkit-mask: radial-gradient(circle 9px at var(--stub) 0, transparent 98%, black) top / 100% 51% no-repeat,
        radial-gradient(circle 9px at var(--stub) 100%, transparent 98%, black) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 9px at var(--stub) 0, transparent 98%, black) top / 100% 51% no-repeat,
        radial-gradient(circle 9px at var(--stub) 100%, transparent 98%, black) bottom / 100% 51% no-repeat;
}
.discount-ticket-stub {
    flex: 0 0 var(--stub);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 6px;
    color: var(--green);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.discount-ticket-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    border-left: 2px dashed var(--line-strong);
    font-size: 14px;
    line-height: 1.45;
}
.discount-ticket-name {
    margin-bottom: 2px;
    font-size: 16px;
    overflow-wrap: anywhere;
}
.discount-ticket-save {
    color: var(--green);
    font-weight: 700;
}
.discount-ticket.is-used .discount-ticket-stub {
    color: var(--text-muted);
}
.checkout-ticket {
    margin: 14px 0 0;
}
.checkout-totals .checkout-grand {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 18px;
    font-weight: 700;
    color: var(--brown);
}
.checkout-summary .btn-checkout {
    display: block;
    width: 100%;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.checkout-summary .alert, .checkout-summary .invalid-feedback, .checkout-summary .form-error-message {
    font-size: 13px;
}
.checkout-summary .captcha-legal {
    text-align: center;
}
.checkout-legal, .checkout-help {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--grey-888);
    text-align: center;
}
.checkout-help a {
    font-weight: 600;
    white-space: nowrap;
}

/* free delivery progress (checkout + mini cart) */
.free-delivery {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-body);
}
.free-delivery-bar {
    height: 6px;
    margin-top: 6px;
    border-radius: 3px;
    background: #f0e6d0;
    overflow: hidden;
}
.free-delivery-bar span {
    display: block;
    height: 100%;
    background: var(--orange);
}
.free-delivery.is-free {
    color: #2e8b57;
    font-weight: 600;
}
/* the theme floats a legend (CLAUDE.md, ProductProperty/_options_theme): this one stays a plain title */
.checkout-discount-choice {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}
.checkout-discount-choice legend {
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
}
.checkout-discount-choice label {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 4px 0;
    font-weight: normal;
    font-size: 14px;
}
.checkout-coupon {
    margin: 12px 0 0;
}
.checkout-coupon label {
    font-size: 14px;
    color: var(--brown);
}
.checkout-coupon-row {
    display: flex;
    gap: 8px;
}
.checkout-coupon-row .form-control {
    flex: 1 1 auto;
    min-width: 0;
    text-transform: uppercase;
}
.checkout-coupon-applied {
    margin: 0;
    font-size: 14px;
    color: var(--green);
}
.checkout-coupon-message:empty {
    display: none;
}
.checkout-coupon-message {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--brown);
}
.product-discount-hint {
    margin: 8px 0 0;
    color: var(--green);
    font-size: 14px;
}
.first-order-note {
    margin: 12px 0 0;
}
.first-order-note strong {
    color: var(--green);
}
.landing-offer {
    margin: 12px 0;
}
.landing-offer strong {
    color: var(--green);
}

@media (max-width: 991px) {
    .checkout-summary {
        position: static;
        margin-bottom: 20px;
    }
}
/* a window too low for the block (about 520px) under the header: stuck, its button would be out of reach */
@media (min-width: 992px) and (max-height: 700px) {
    .checkout-summary {
        position: static;
    }
}
@media (max-width: 767px) {
    .checkout-step {
        padding: 15px 12px 5px;
    }
    .cart-item-name img {
        width: 40px;
        height: 40px;
    }
}

/* ===== header mini cart ===== */
.mini-cart.dropdown-menu {
    width: 360px;
    max-width: calc(100vw - 20px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    overflow: hidden;
}
.mini-cart-items {
    max-height: 320px;
    overflow-y: auto;
    padding: 5px 15px;
}
.mini-cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0e6d0;
}
.mini-cart-item:last-child {
    border-bottom: 0;
}
.mini-cart-photo img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
}
.mini-cart-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 10px;
    text-align: left;
}
.mini-cart-name {
    display: block;
    color: var(--text-strong);
    font-size: 13px;
    line-height: 1.3;
    text-transform: none;
}
.mini-cart-option {
    display: inline-block;
    font-size: 11px;
    color: var(--orange);
}
.mini-cart-qty {
    display: block;
    font-size: 12px;
    color: var(--grey-888);
}
.mini-cart-sum {
    white-space: nowrap;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-strong);
}
.mini-cart-remove {
    border: 0;
    background: none;
    color: #bbb;
    padding: 4px 0 4px 10px;
}
.mini-cart-remove:hover {
    color: var(--orange);
}
.mini-cart-footer {
    padding: 15px;
    background: var(--cream);
}
.mini-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--brown);
}
.mini-cart-discount {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--green);
}
.mini-cart-opt {
    margin: 0 0 8px;
    font-size: 12px;
    color: #2e8b57;
}
.mini-cart-footer .btn-checkout {
    margin-top: 0;
    padding: 12px;
    font-weight: 600;
}
.mini-cart-empty {
    padding: 25px 15px;
    text-align: center;
    color: var(--grey-777);
}
.mini-cart-empty .fa {
    font-size: 32px;
    color: #d8c9a8;
}
.mini-cart-empty a {
    color: var(--orange);
    font-weight: 600;
}


/* checkout fixes: inline qty stepper, sticky summary needs a full-height column, name next to photo */
.checkout-step .product-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}
.checkout-step .product-flex .step-pred-car {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
}
.checkout-step .product-flex .input-pred-car {
    flex: 0 0 70px;
    width: 70px;
    height: 34px;
    padding: 0 4px;
    text-align: center;
}
.cart-item-name a {
    display: flex;
    align-items: center;
}
.cart-item-name img {
    flex: 0 0 auto;
}
@media (min-width: 992px) {
    .checkout-form > .row {
        display: flex;
    }
    .checkout-form > .row:before, .checkout-form > .row:after {
        display: none;
    }
}

.checkout-step .cart-item-name {
    min-width: 200px;
}


.checkout-error {
    margin: 4px 0 8px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #fdecea;
    color: #b3261e;
    font-size: 13px;
}


/* ===== quantity stepper (product page + cart): one rounded control instead of three loose boxes ===== */
.qty-stepper,
.checkout-step .product-flex.qty-stepper {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    height: 44px;
    border: 1px solid #d8c9a8;
    border-radius: 22px;
    background: var(--white);
    overflow: hidden;
    vertical-align: middle;
}
.productpage .qty-stepper, .quickview .qty-stepper {
    float: left;
    margin-right: 12px;
}
.qty-stepper .step-pred-car,
.qty-stepper .step-pred-car:focus,
.checkout-step .product-flex.qty-stepper .step-pred-car {
    float: none;
    flex: 0 0 42px;
    width: 42px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brown);
    font-size: 14px;
}
.qty-stepper .step-pred-car i.fa {
    font-size: 13px;
    line-height: 1;
    height: auto;
}
.qty-stepper .step-pred-car:hover,
.qty-stepper .step-pred-car:active {
    background: var(--cream);
    color: var(--orange);
}
.qty-stepper .step-pred-car:disabled,
.qty-stepper .step-pred-car:disabled:hover {
    background: transparent;
    color: #ccc;
    cursor: default;
}
.qty-stepper .input-pred-car,
.productpage .qty-stepper #input-quantity2,
.checkout-step .product-flex.qty-stepper .input-pred-car {
    float: none;
    flex: 0 0 76px;
    width: 76px !important;
    height: 100%;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-left: 1px solid #f0e6d0;
    border-right: 1px solid #f0e6d0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    text-align: center;
    font-weight: 600;
    color: var(--text-strong);
    cursor: default;
}
.qty-sum {
    float: left;
    line-height: 44px;
    margin-right: 15px;
    font-weight: 700;
    color: var(--brown);
    white-space: nowrap;
}
.qty-sum:empty {
    display: none;
}
.checkout-step .product-flex.qty-stepper {
    height: 36px;
    border-radius: var(--radius-pill);
}
.checkout-step .product-flex.qty-stepper .step-pred-car {
    flex-basis: 34px;
    width: 34px;
}
.checkout-step .product-flex.qty-stepper .input-pred-car {
    flex-basis: 64px;
    width: 64px !important;
}
@media (max-width: 479px) {
    .qty-sum {
        clear: left;
        float: none;
        display: block;
        line-height: 1.4;
        margin: 8px 0;
    }
}


/* wishlist button next to "В корзину": brand brown instead of black (the heart is a white sprite) */
.productpage .form-group.qty .wishlist, .quickview .form-group.qty .wishlist {
    background-color: var(--brown);
    border-color: var(--brown);
    border-radius: 4px;
}


.qty-stepper.is-saving {
    opacity: .6;
    pointer-events: none;
}


/* ===== product options (grind) as chips ===== */
.option-chips {
    border: 0;
    margin: 20px 0 0;
    padding: 0;
}
.option-chips legend {
    border: 0;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
}
.option-chips-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    grid-gap: 8px;
}
.option-chips-guide {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--orange);
    text-decoration: underline;
}
.option-chips-guide:hover,
.option-chips-guide:focus,
.prop-guide:hover,
.prop-guide:focus {
    color: var(--orange-hover);
}
/* admin: the values of a product property, one row each (ProductProperty/_options_theme.html.twig) */
.property-options-head,
.property-options-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    grid-gap: 8px;
}
.property-options-title {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--brown);
}
.property-options-head {
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--brown);
}
.property-options-row {
    margin-bottom: 8px;
}
.property-options-label {
    display: none;
}
@media (max-width: 767px) {
    .property-options-head {
        display: none;
    }
    .property-options-row {
        grid-template-columns: 1fr;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line);
    }
    .property-options-label {
        display: block;
        font-size: 13px;
    }
}
/* "подробнее" after a property of the product (its blog post) */
.prop-guide {
    margin-left: 4px;
    font-size: 13px;
    color: var(--orange);
    text-decoration: underline;
}
.option-chip {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}
.option-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-chip-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 10px 6px 8px;
    border: 1px solid var(--line-neutral);
    border-radius: var(--radius-md);
    background: var(--white);
    text-align: center;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.option-chip-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
    color: var(--option-icon);
}
.option-chip-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-strong);
}
.option-chip-hint {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--grey-888);
}
.option-chip:hover .option-chip-body {
    border-color: var(--orange);
}
.option-chip input:checked + .option-chip-body {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange);
    background: var(--selected);
}
.option-chip input:checked + .option-chip-body .option-chip-icon {
    color: var(--orange);
}
.option-chip input:focus-visible + .option-chip-body {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.option-chips legend {
    float: none;
    width: auto;
    padding: 0;
}
.option-chips-list {
    clear: both;
    width: 100%;
}


/* ===== header cart button: icon with a count badge + running total ===== */
.header-cart #cart > .btn.header-cart-btn {
    display: flex;
    align-items: center;
    float: right;
    padding: 0;
    overflow: visible;
    color: var(--white);
    font-size: 13px;
    text-transform: none;
    text-align: left;
    line-height: 1.2;
    background: none;
    box-shadow: none;
}
.header-cart-icon {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    color: var(--white);
}
.header-cart-icon svg {
    width: 30px;
    height: 30px;
}
.header-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: var(--radius-lg);
    background: var(--action);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}
.header-cart-text {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}
.header-cart-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .75;
}
.header-cart-sum {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.header-cart #cart > .btn.header-cart-btn:hover .header-cart-icon,
.header-cart #cart.open > .btn.header-cart-btn .header-cart-icon {
    color: #f3a46c;
}
@media (max-width: 1199px) {
    .header-cart-text {
        display: none;
    }
}

.header-cart #cart > .btn.header-cart-btn {
    border: 0;
    outline: none;
}
.header-cart #cart > .btn.header-cart-btn:focus-visible {
    outline: 2px solid #f3a46c;
    outline-offset: 4px;
}
.header-cart #cart {
    border: 0;
}


#cart.open > .dropdown-menu {
    display: block;
}


/* mini cart: beat the theme's #cart rules (padding, capitalize, link colours) */
#cart .mini-cart.dropdown-menu {
    width: 360px;
    padding: 0;
    border: 0;
    text-transform: none;
}
#cart .mini-cart, #cart .mini-cart * {
    text-transform: none;
}
#cart .mini-cart li + li {
    border-top: 0;
    padding: 15px;
}
#cart .mini-cart li:first-child {
    max-height: 320px;
}
#cart .mini-cart .mini-cart-name {
    color: var(--text-strong);
}
#cart .mini-cart .btn-checkout {
    color: var(--white);
    background-color: var(--action);
    border-color: var(--action);
}
/* the theme makes dropdown links transparent on hover, which hid the white label on the cream footer */
#cart .mini-cart .btn-checkout:hover,
#cart .mini-cart .btn-checkout:focus,
#cart .mini-cart .btn-checkout:active {
    color: var(--white);
    background-color: var(--action-hover);
    border-color: var(--action-hover);
}
#cart .mini-cart .mini-cart-empty p {
    margin: 8px 0;
}


/* ===== product cards (catalog, "Новинки") ===== */
/* the picture is a 300x300 square (product_card filter) - show it whole instead of a cropped 192px band */
.product-thumb .image,
.product-thumb .image a {
    height: auto;
}
.product-thumb .image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
.product-block-inner {
    border-radius: var(--radius-sm);
}
.product-thumb .caption {
    padding: 12px 10px 14px;
    border: 0;
}
.product-thumb h4 {
    white-space: normal;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.product-thumb:hover h4 a {
    color: var(--orange);
}
.product-thumb .price {
    margin-bottom: 10px;
}
/* a visible buy button instead of the theme's hover-only icon on the photo */
.product-thumb .card-buy {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--action);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}
.product-thumb .card-buy:hover,
.product-thumb .card-buy:focus {
    background: var(--action-hover);
    color: var(--white);
}
/* phones: two cards per row across the full width (the theme forced one narrow card per row) */
@media (max-width: 767px) {
    .product-layout.product-grid,
    .cat_prod .product-layout.product-grid {
        width: 50% !important;
        padding: 0 6px;
    }
    .product-thumb {
        margin-bottom: 12px;
    }
    .product-thumb h4 a {
        font-size: 13px;
    }
    .product-thumb .price {
        font-size: 14px;
    }
    .product-thumb .card-buy {
        padding: 8px 4px;
        font-size: 12px;
    }
}


/* ===== product page: price, stock, buy row, delivery terms ===== */
.productpage .product-right .attr {
    margin-bottom: 12px;
    padding-bottom: 12px;
}
.productpage .product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}
/* the same chip as «Нет в наличии» on the tiles (27.10.2026, the owner chose this of four variants) */
.productpage .stock-chip {
    padding: 3px 11px;
    font-size: 13px;
}
.productpage ul.price {
    margin: 0;
    padding-bottom: 0;
}
#content.productpage p.special-price {
    font-size: 26px;
    line-height: 32px;
    color: var(--brown);
    margin: 0;
}
.productpage .option-chips {
    margin-top: 16px;
}
.productpage #product .form-group.qty {
    margin-top: 18px;
    margin-bottom: 0;
}
.productpage .product-perks {
    clear: both;
    margin: 22px 0 0;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--cream);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-body);
}
#content.productpage .product-perks li {
    position: relative;
    padding: 0 0 0 26px;
    line-height: 1.5;
}
.productpage .product-perks li + li {
    margin-top: 6px;
}
.productpage .product-perks .fa {
    width: 20px;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--orange);
    text-align: center;
}
@media (max-width: 479px) {
    /* grind: 2x2 instead of 3 + 1 orphan */
    .productpage .option-chips-list {
        grid-template-columns: 1fr 1fr;
    }
    /* stepper and its sum on one line, the buy button full width under them */
    .productpage .qty-sum {
        float: left;
        clear: none;
        display: inline;
        line-height: 44px;
        margin: 0;
    }
    .productpage #button-cart {
        clear: left;
        float: left;
        width: 100%;
        margin-top: 12px;
    }
}


/* product grid: rows of equal-height cards. With floats a shorter card (out of stock = no button)
   snagged the next row and left holes in the grid */
.cat_prod {
    display: flex;
    flex-wrap: wrap;
}
.cat_prod:before,
.cat_prod:after {
    display: none;
}
.cat_prod > .product-layout {
    float: none;
    display: flex;
}
.cat_prod > .product-layout > .product-thumb {
    width: 100%;
}
/* phones: one edge for every product grid — 15px, as Bootstrap's container > row > col gives in the catalog.
   The catalog, articles and similar products wrap the grid in a .row, whose -15px our 6px card padding
   can't fill (cards touched the screen edge); the home page nests a .container in a .container (30px). */
@media (max-width: 767px) {
    .row.cat_prod {
        margin-left: 0;
        margin-right: 0;
    }
    .home_row .container {
        padding-left: 0;
        padding-right: 0;
    }
}
.product-grid .product-block-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-grid .product-details,
.product-grid .product-thumb .caption {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
.product-grid .product-thumb .card-buy {
    margin-top: auto;
}


/* ===== catalog pagination ===== */
.catalog-pager {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 30px;
}
.catalog-pager-page,
.catalog-pager-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pager);
    background: var(--white);
    color: var(--brown);
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.catalog-pager-step .fa {
    font-size: 18px;
}
a.catalog-pager-page:hover,
a.catalog-pager-page:focus,
.catalog-pager-step:hover,
.catalog-pager-step:focus {
    border-color: var(--orange);
    color: var(--orange);
    text-decoration: none;
}
.catalog-pager-page.is-current {
    border-color: var(--action);
    background: var(--action);
    color: var(--white);
}
.catalog-pager-page.is-gap {
    min-width: 24px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: var(--grey-999);
}


/* ===== header search ===== */
#search .input-lg {
    float: none; /* the floated field left #searchbox 0px tall, so suggestions covered the field */
    height: 42px;
    padding: 0 46px 0 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 21px;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font-size: 14px;
    box-shadow: none;
    transition: background .15s, border-color .15s;
}
#search .input-lg::placeholder {
    color: rgba(255, 255, 255, .65);
}
#search .input-lg:focus {
    border-color: var(--white);
    background: var(--white);
    color: var(--text-strong);
}
#search .input-lg:focus::placeholder {
    color: var(--grey-999);
}
#search .search_toggle .input-group-btn {
    width: 46px;
}
#search .btn-lg,
#search .btn-lg:hover {
    width: 46px;
    height: 42px;
    background: none;
}
#search .search_toggle .btn-lg .fa {
    display: inline-block;
    font-size: 16px;
    color: var(--white);
}
#searchbox:focus-within .btn-lg .fa {
    color: var(--brown);
}
/* suggestions */
#search .data_search_result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    min-width: 280px;
    max-height: 60vh;
    margin-top: 6px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35);
}
#search a.item_search_result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--cream-deep);
}
#search a.item_search_result:last-child {
    border-bottom: 0;
}
#search a.item_search_result:hover,
#search a.item_search_result:focus {
    background: var(--cream);
}
#search .item_search_result_name {
    padding: 0;
    color: var(--text-strong);
    font-weight: 600;
    white-space: normal;
}
#search .item_search_result_inStock,
#search .item_search_result_inStock.true,
#search .item_search_result_inStock.false {
    flex: 0 0 auto;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12px;
    color: var(--green);
}
#search .item_search_result_inStock.false {
    color: var(--grey-999);
}
#search .item_search_empty {
    padding: 12px 14px;
    color: var(--grey-777);
}

/* below 1200px the theme collapses search into an icon: a plain icon like the cart, and the field opens
   full width under the header instead of a narrow box hanging off the icon */
@media (max-width: 1199px) {
    #search .search_button {
        border: 0;
    }
    .header-main {
        position: relative;
    }
    #search {
        position: static;
    }
    #search .search_toggle {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        margin-top: 10px;
        z-index: 1000;
    }
    #search .input-lg,
    #search .input-lg:focus {
        border-color: var(--white);
        background: var(--white);
        color: var(--text-strong);
        font-size: 16px; /* 16px keeps iOS from zooming into the field */
    }
    #search .search_toggle .btn-lg .fa {
        color: var(--brown);
    }
}

/* phones: smaller logo with the account / search / cart icons on the same row */
@media (max-width: 767px) {
    .header-main {
        margin: 10px 0;
    }
    .header-logo {
        padding: 0;
    }
    .header-logo img {
        max-height: 64px;
        width: auto;
    }
    #top-links {
        position: absolute;
        left: 0;
        top: 50%;
        margin-top: -22px;
    }
    .head-right-bottom {
        position: absolute;
        right: 0;
        top: 50%;
        bottom: auto;
        margin-top: -22px;
    }
    /* the icons block is the positioned parent here, so size the opened field from the screen width */
    #search .search_toggle {
        left: auto;
        right: 0;
        width: calc(100vw - 30px);
        margin-top: 22px;
    }
}


/* ===== "added to cart" toast ===== */
.cart-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2050;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100vw - 32px);
    padding: 12px 12px 12px 16px;
    border-radius: var(--radius-lg);
    background: var(--brown);
    color: var(--white);
    box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .45);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.cart-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .2s;
}
.cart-toast.is-bump {
    animation: cart-toast-bump .3s ease;
}
@keyframes cart-toast-bump {
    40% { transform: scale(1.04); }
}
.cart-toast > .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    font-size: 12px;
}
.cart-toast-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}
.cart-toast-text {
    font-weight: 600;
}
.cart-toast-delivery {
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
}
.cart-toast-delivery:empty {
    display: none;
}
.cart-toast-link,
.cart-toast-link:focus {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    background: var(--action);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}
.cart-toast-link:hover {
    background: var(--action-hover);
    color: var(--white);
    text-decoration: none;
}
.cart-toast-close {
    flex: 0 0 auto;
    padding: 0 4px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .7);
    font-size: 22px;
    line-height: 1;
}
.cart-toast-close:hover {
    color: var(--white);
}
@media (max-width: 767px) {
    .cart-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        gap: 10px;
        padding: 10px 8px 10px 12px;
    }
    /* room for the text: the check mark and the word "заказ" go, the button still reads «Оформить» */
    .cart-toast > .fa,
    .cart-toast-link-more {
        display: none;
    }
}


/* "already in the cart" marks: the tile button turns brown with the quantity, the product page gets a note */
.product-thumb .card-buy.is-in-cart {
    background: var(--brown);
    text-transform: none;
}
.product-thumb .card-buy.is-in-cart:hover,
.product-thumb .card-buy.is-in-cart:focus {
    background: var(--action);
}
/* the grind asked on a coffee tile (grind_picker_controller.js): a drop-up from the button, the photo stays seen around it */
.tile-buy {
    position: relative;
    margin-top: auto;
}
.product-thumb .tile-grind {
    position: absolute;
    right: -6px;
    bottom: calc(100% + 6px);
    left: -6px;
    z-index: 3;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--cream) 80%, transparent);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
    text-align: center;
}
.product-thumb .tile-grind:not([hidden]) {
    display: flex;
}
.tile-grind-title {
    color: var(--brown);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}
.tile-grind-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 54px;
    gap: 6px;
}
.tile-grind .option-chip-body {
    justify-content: center;
    min-width: 0;
    padding: 4px 3px;
}
.tile-grind .option-chip-body:hover {
    border-color: var(--orange);
}
.tile-grind .option-chip-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-bottom: 1px;
}
.tile-grind .option-chip-title {
    line-height: 18px;
}
.product-thumb .card-buy.is-choosing,
.product-thumb .card-buy.is-choosing:hover,
.product-thumb .card-buy.is-choosing:focus {
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    color: var(--brown);
}
.productpage .in-cart-note {
    clear: both;
    margin: 10px 0 0;
    padding-top: 10px;
    color: var(--green);
    font-weight: 600;
}
.productpage .in-cart-note a {
    color: var(--orange);
    text-decoration: underline;
}


/* ===== product page: taste line (coffee) and brewing guide (tea) ===== */
.productpage .product-taste {
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--orange);
    font-style: italic;
    color: var(--text-body);
}
.productpage .product-brew {
    clear: both;
    margin-top: 22px;
}
.productpage .product-brew-title {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--brown);
}
#content.productpage .product-brew-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
    margin: 0;
}
#content.productpage .product-brew-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1.3;
}
.productpage .product-brew-list .fa {
    margin-bottom: 4px;
    font-size: 20px;
    color: var(--orange);
}
.productpage .product-brew-label {
    font-size: 12px;
    color: var(--grey-888);
}
.productpage .product-brew-list strong {
    font-size: 13px;
    color: var(--text-strong);
}


/* quick weight presets above the stepper */
.productpage .qty-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.productpage .qty-preset {
    min-width: 64px;
    padding: 7px 12px;
    border: 1px solid var(--line-neutral);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 600;
    transition: border-color .15s, color .15s, background .15s;
}
.productpage .qty-preset:hover {
    border-color: var(--orange);
    color: var(--orange);
}
.productpage .qty-preset.is-active {
    border-color: var(--orange);
    background: var(--selected);
    color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange);
}


/* "Хит": most ordered over the last year */
/* theme's sold-out flag is a pink strip with a red edge. The same chip as "Хит" in the same corner (a card has one of
   the two: "Хит" only in stock), in quiet brand colours */


/* product page: similar products */
.productpage .product-similar {
    margin-top: 30px;
}
.productpage .product-similar-title {
    margin: 0 0 16px;
    text-transform: none; /* sentence case like the article blocks, the theme uppercases .container h2 */
    font-size: 22px; /* a section heading: the same as «Новинки» and «Ещё в блоге» */
    font-weight: 700;
    color: var(--brown);
}

/* product page: articles linked to the product or its category (admin: article form, "Товары к статье") */
.productpage .product-articles {
    margin-top: 30px;
}
.product-articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.product-articles-list a {
    display: block;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--cream);
    color: var(--brown);
    text-decoration: none;
    transition: border-color .2s;
}
.product-articles-list a:hover,
.product-articles-list a:focus {
    border-color: var(--orange);
}
.product-articles-name {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
}
.product-articles-list a:hover .product-articles-name {
    color: var(--orange);
}
.product-articles-excerpt {
    display: block;
    color: #6b5a50;
    font-size: 14px;
    line-height: 1.45;
}
@media (max-width: 767px) {
    .product-articles-list {
        grid-template-columns: 1fr;
    }
}

/* article: product cards from the categories/products linked to it */
.article-products {
    margin: 25px 0;
    padding: 20px 20px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}
/* the theme's hover swaps the card shadow for a cream one, which vanishes on a light block */
.article-products .product-grid .product-block:hover {
    box-shadow: 0 6px 16px rgba(69, 35, 31, .14);
}
.article-products .article-products-title {
    margin: 0 0 15px;
    text-transform: none;
    color: var(--brown);
    font-size: 20px;
    font-weight: 600;
}

/* article: a set of products with one button for all of it (role Bundle, docs/DESIGN.md): a receipt inside the text column */
.article-bundle {
    max-width: 780px;
    margin: 25px 0;
}
.article-bundle-title {
    margin: 0 0 14px;
    color: var(--brown);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
}
.article-bundle-items {
    margin: 0;
    padding: 0;
    list-style: none;
}
.article-bundle-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas: "photo line" "photo amount";
    align-content: center;
    column-gap: 14px;
    min-height: 56px;
}
.article-bundle-item + .article-bundle-item {
    margin-top: 12px;
}
.article-bundle-photo {
    grid-area: photo;
    align-self: start;
}
.article-bundle-photo img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
/* name, dotted leader, price: the receipt row of «Мои скидки»; the leader sits on the last line of a long name */
.article-bundle-line {
    grid-area: line;
    display: flex;
    align-items: flex-end;
    min-width: 0;
}
.article-bundle-name {
    color: var(--brown);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.article-bundle-line > i {
    flex: 1 1 12px;
    min-width: 12px;
    margin: 0 8px 5px;
    border-bottom: 1px dotted var(--text-muted);
}
.article-bundle-price {
    color: var(--brown);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
/* the tile's «Нет в наличии» mark in place of the price, as tall as the line of text */
.article-bundle-line > .shop-mark {
    flex: none;
    padding-top: 0;
    padding-bottom: 0;
}
.article-bundle-amount {
    grid-area: amount;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.article-bundle-sum {
    display: flex;
    align-items: baseline;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line-strong);
}
.article-bundle-sum > span:first-child {
    color: var(--text-body);
    font-size: 14px;
}
.article-bundle-sum > i {
    flex: 1 1 12px;
    min-width: 12px;
    margin: 0 8px;
    border-bottom: 1px dotted var(--text-muted);
    transform: translateY(-4px);
}
.article-bundle-total {
    color: var(--brown);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}
.article-bundle-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}
.article-bundle-foot form,
.article-bundle-foot .hint {
    margin: 0;
}
.article-bundle-foot .btn-primary {
    margin-top: 0;
}
.article-bundle-items + .article-bundle-foot {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line-strong);
    justify-content: flex-start;
}
.article-bundle .note {
    margin-top: 16px;
}
@media (max-width: 767px) {
    /* a name wrapped on a narrow screen would leave a stub of a leader */
    .article-bundle-line > i {
        min-width: 24px;
    }
    .article-bundle-foot form,
    .article-bundle-foot .btn-primary {
        width: 100%;
    }
}

/* ===== catalog sorting ===== */
.catalog-sort {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 16px;
}
.catalog-sort label {
    margin: 0;
    font-weight: normal;
    color: var(--grey-777);
}
.catalog-sort select {
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 19px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2345231f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--brown);
    font-weight: 600;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.catalog-sort select:focus {
    border-color: var(--orange);
}
@media (max-width: 479px) {
    .catalog-sort {
        justify-content: space-between;
    }
    .catalog-sort select {
        flex: 1 1 auto;
        font-size: 16px; /* no iOS zoom */
    }
}


/* ===== phones: sticky "В корзину" bar on the product page ===== */
.sticky-buy {
    display: none;
}
@media (max-width: 767px) {
    .sticky-buy {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2040;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--white);
        box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, .3);
        transform: translateY(110%);
        transition: transform .2s;
    }
    .sticky-buy.is-visible {
        transform: none;
    }
    .sticky-buy-info {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }
    .sticky-buy-qty {
        font-size: 12px;
        color: var(--grey-777);
    }
    .sticky-buy-sum {
        font-size: 16px;
        font-weight: 700;
        color: var(--brown);
    }
    .sticky-buy-btn {
        flex: 1 1 auto;
        height: 44px;
        border: 0;
        border-radius: var(--radius-sm);
        background: var(--action);
        color: var(--white);
        font-weight: 600;
    }
    /* room under the footer for the bar (64px), or it covers the offer and cookie line at the very end */
    body.has-sticky-buy {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
    /* the cart toast sits above the bar */
    .has-sticky-buy .cart-toast {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}


/* ===== admin-edited texts (pages, news, blog, product and category descriptions): one typography ===== */
.rich-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-article);
    text-align: left;
    overflow-wrap: break-word;
}
.rich-text p,
.rich-text ul,
.rich-text ol {
    margin: 0 0 14px;
}
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin: 26px 0 10px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--brown);
    text-transform: none;
    letter-spacing: 0;
}
.rich-text h2 { font-size: 22px; }
.rich-text h3 { font-size: 18px; }
.rich-text h4 { font-size: 16px; }
.rich-text > :first-child {
    margin-top: 0;
}
.rich-text strong {
    color: var(--text-strong);
}
/* one look for a link inside text: articles, the home page text, the notes under the checkout */
.rich-text a,
.home-text p a,
.home-text li a,
.checkout-legal a,
.checkout-help a,
.empty-state a:not(.btn),
.note a:not(.btn) {
    color: var(--orange);
    text-decoration: underline;
    text-decoration-color: rgba(210, 94, 22, .35);
    text-underline-offset: 2px;
}
.empty-state a:not(.btn):hover,
.empty-state a:not(.btn):focus,
.note a:not(.btn):hover,
.note a:not(.btn):focus,
.rich-text a:hover,
.rich-text a:focus,
.home-text p a:hover,
.home-text li a:hover,
.checkout-legal a:hover,
.checkout-help a:hover {
    color: var(--orange-hover);
    text-decoration-color: currentColor;
}
.rich-text ul,
.rich-text ol {
    padding-left: 22px;
}
.rich-text ul {
    list-style: none;
}
.rich-text ul > li {
    position: relative;
}
.rich-text ul > li:before {
    content: '';
    position: absolute;
    left: -16px;
    top: .7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}
.rich-text ol > li::marker {
    color: var(--orange);
    font-weight: 700;
}
.rich-text li {
    margin-bottom: 6px;
    list-style-position: outside;
}
.rich-text li > ul,
.rich-text li > ol {
    margin: 6px 0 0;
}
.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.rich-text blockquote {
    margin: 0 0 14px;
    padding: 10px 16px;
    border-left: 3px solid var(--orange);
    background: var(--cream);
    font-size: 15px;
}
.rich-text .rt-video {
    position: relative;
    margin: 0 0 16px;
    padding-top: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}
.rich-text .rt-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.rich-text .rt-table {
    margin: 0 0 16px;
    overflow-x: auto;
}
.rich-text table {
    width: 100%;
    border-collapse: collapse;
}
.rich-text th,
.rich-text td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.rich-text tr:nth-child(even) td {
    background: #fdfaf2;
}
@media (max-width: 767px) {
    .rich-text {
        font-size: 15px;
    }
    .rich-text h2 { font-size: 20px; }
    .rich-text h3 { font-size: 17px; }
}
/* the theme styles headings inside #content/#tabs_info with higher specificity */
#content .rich-text h2,
#content .rich-text h3,
#content .rich-text h4 {
    margin: 26px 0 10px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
    color: var(--brown);
    text-transform: none;
    letter-spacing: 0;
}
#content .rich-text h2 { font-size: 22px; }
#content .rich-text h3 { font-size: 18px; }
#content .rich-text h4 { font-size: 16px; }


/* ===== news / blog lists: cards ===== */
.post-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-gap: 20px;
    margin-bottom: 24px;
}
.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow .2s, transform .2s;
}
.post-card:hover {
    box-shadow: 0 10px 24px -12px rgba(69, 35, 31, .35);
    transform: translateY(-2px);
}
.post-card-cover {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--cream);
    overflow: hidden;
}
.post-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-card-cover.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brown);
}
.post-card-cover.is-empty img {
    width: 55%;
    height: auto;
    object-fit: contain;
}
.post-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 16px 16px;
}
.post-card-date {
    font-size: 12px;
    color: var(--grey-999);
}
#content .post-card-title {
    margin: 4px 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}
.post-card-title a {
    color: var(--brown);
}
.post-card-title a:hover {
    color: var(--orange);
    text-decoration: none;
}
.post-card-excerpt {
    /* no flex-grow: a box taller than its 4 clamped lines showed a 5th line under the «…» */
    flex: 0 0 auto;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--grey-666);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-more {
    align-self: flex-start;
    margin-top: auto; /* «Читать» stays at the bottom of the card, as the growing excerpt kept it */
    font-weight: 600;
    color: var(--orange);
}
.post-card-more:hover {
    color: var(--orange-hover);
    text-decoration: none;
}


/* ===== catalog: current subcategory ===== */
#column-left .box-category li.is-current > a {
    position: relative;
    color: var(--orange);
    font-weight: 700;
}
#column-left .box-category li.is-current > a:before {
    content: '';
    position: absolute;
    left: -10px;
    /* along the whole name: centred, it hung between the lines of a name in two lines */
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 2px;
    background: var(--orange);
}
/* phones: subcategories as a scrollable row of chips */
.subcat-chips {
    display: flex;
    gap: 8px;
    margin: 0 -15px 14px;
    padding: 2px 15px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.subcat-chips::-webkit-scrollbar {
    display: none;
}
.subcat-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--brown);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.subcat-chip:hover,
.subcat-chip:focus {
    border-color: var(--orange);
    color: var(--orange);
    text-decoration: none;
}
.subcat-chip.is-current {
    border-color: var(--action);
    background: var(--action);
    color: var(--white);
}
@media (max-width: 767px) {
    /* bootstrap's .visible-xs forces display:block */
    .subcat-chips.visible-xs {
        display: flex !important;
    }
}


/* breadcrumbs: long product names wrap instead of running off a phone screen */
.breadcrumb > li {
    white-space: normal;
}
/* the separator ends an item instead of starting the next: a wrapped line began with a lone «|» */
.breadcrumb > li + li:before {
    content: none;
}
.breadcrumb > li:not(:last-child):after {
    content: "|";
    padding: 0 8px; /* + the 4px of white space on each side: the same gap around it */
    color: var(--white);
}


/* checkout: phone field state */
.phone-hint {
    margin-top: 5px;
}
.phone-hint.is-error {
    color: var(--danger);
}
.checkout-form .form-control.is-valid {
    border-color: var(--green);
    padding-right: 34px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%233c7d22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.checkout-form .form-control.is-invalid {
    border-color: var(--danger);
}


/* ===== thank-you page after checkout ===== */
.thanks-page {
    padding-bottom: 30px;
}
.thanks-hero {
    margin: 10px 0 24px;
    padding: 28px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--cream);
    text-align: center;
}
.thanks-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 26px;
}
#content .thanks-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--brown);
    text-transform: none;
}
.thanks-number {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--text-body);
}
.thanks-number strong {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 12px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px dashed var(--orange);
    color: var(--orange);
    font-size: 22px;
    letter-spacing: 1px;
}
.thanks-lead {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-body);
    line-height: 1.6;
}
#content ul.thanks-steps li {
    position: relative;
    padding: 6px 0 6px 30px;
    line-height: 1.5;
}
.thanks-steps .fa {
    position: absolute;
    left: 0;
    top: 9px;
    width: 20px;
    color: var(--orange);
    text-align: center;
}
.thanks-details {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-gap: 6px 12px;
    margin: 0 0 10px;
}
.thanks-details dt {
    font-weight: normal;
    color: var(--grey-888);
}
.thanks-details dd {
    margin: 0;
    color: var(--text-strong);
}
#content ul.thanks-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-deep);
}
.thanks-item-name {
    font-weight: 600;
    color: var(--text-strong);
}
.thanks-item-option {
    display: inline-block;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: var(--radius-lg);
    background: var(--warn-bg);
    color: var(--orange);
    font-size: 12px;
    font-weight: 600;
}
.thanks-item-qty {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: var(--grey-888);
}
.thanks-item-sum {
    white-space: nowrap;
    color: var(--text-strong);
}
@media (max-width: 479px) {
    .thanks-details {
        grid-template-columns: 1fr;
        grid-gap: 0 0;
    }
    .thanks-details dd {
        margin-bottom: 8px;
    }
}


/* ===== admin: orders ===== */
.orders-head,
.order-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 16px;
}
#content .orders-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--brown);
    text-transform: none;
}
.orders-search {
    display: flex;
    gap: 6px;
    flex: 1 1 280px;
}
/* the primary button of a list head sits at the right edge by itself, not because a search before it stretches
   (the discounts list has no search and its «Добавить» stuck to the title, 30.10.2026; docker/bin/browser-admin.py) */
.orders-head > .btn-primary {
    margin-left: auto;
}
.orders-search .form-control {
    max-width: 280px;
}
.orders-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.orders-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--brown);
    font-weight: 600;
}
.orders-tabs a:hover {
    border-color: var(--orange);
    color: var(--orange);
    text-decoration: none;
}
.orders-tabs .is-active a {
    border-color: var(--brown);
    background: var(--brown);
    color: var(--white);
}
.orders-count {
    min-width: 22px;
    padding: 0 6px;
    border-radius: var(--radius-chip);
    background: var(--action);
    color: var(--white);
    font-size: 12px;
    text-align: center;
}
/* one order */
.order-row {
    position: relative;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid #ccc;
    border-radius: var(--radius-md);
    background: var(--white);
    transition: box-shadow .15s;
}
.order-row:hover {
    box-shadow: 0 6px 18px -10px rgba(69, 35, 31, .45);
}
.order-row.tone-warn { border-left-color: var(--orange); }
.order-row.tone-info { border-left-color: var(--info); }
.order-row.tone-ok { border-left-color: var(--green); }
.order-row.tone-bad { border-left-color: var(--danger); }
.order-row.tone-muted { border-left-color: #bbb; }
.order-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 8px;
}
.order-row-link {
    font-size: 17px;
    font-weight: 700;
    color: var(--brown);
}
/* the whole row opens the order */
.order-row-link:after {
    content: '';
    position: absolute;
    inset: 0;
}
.order-row-link:hover {
    color: var(--orange);
    text-decoration: none;
}
.order-row-date {
    font-size: 12px;
    color: var(--grey-999);
}
.order-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}
.order-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: var(--radius-chip);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    background: var(--muted-bg);
    color: var(--grey-666);
}
.order-chip.tone-warn { background: var(--warn-bg); color: var(--orange-hover); }
.order-chip.tone-info { background: var(--info-bg); color: var(--info); }
.order-chip.tone-ok { background: var(--ok-bg); color: var(--green); }
.order-chip.tone-bad { background: var(--bad-bg); color: var(--danger); }
.order-chip.tone-note { background: var(--cream); color: var(--brown); font-weight: normal; }
.order-row-body {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1.6fr .9fr;
    grid-gap: 12px;
    font-size: 13px;
}
.order-col small,
.order-col a,
.order-col span {
    display: block;
}
.order-col small {
    color: var(--grey-888);
}
/* phone, e-mail and buttons stay clickable above the stretched row link */
.order-row .btn,
.order-above {
    position: relative;
    z-index: 1;
    color: var(--orange);
}
.order-when {
    margin-top: 2px;
    color: var(--info) !important;
}
.order-item {
    color: var(--text-article);
}
.order-item em {
    color: var(--orange-hover);
    font-style: normal;
}
.order-item b {
    color: var(--grey-888);
    font-weight: normal;
}
/* .order-col span is a block: the stock chip stays on the line */
.order-items .order-chip {
    display: inline-flex;
    margin-left: 6px;
    padding: 0 7px;
    font-size: 11px;
}
.order-sum {
    text-align: right;
}
.order-sum strong {
    display: block;
    font-size: 16px;
    color: var(--brown);
}
@media (max-width: 991px) {
    .order-row-body {
        grid-template-columns: 1fr 1fr;
    }
    .order-sum {
        text-align: left;
    }
}
/* order card */
.order-back {
    flex: 0 0 100%;
    font-size: 13px;
    color: var(--grey-888);
}
.order-panel {
    margin-bottom: 16px;
}
#content .order-panel-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--brown);
    text-transform: none;
}
.order-lines {
    width: 100%;
    margin-bottom: 10px;
}
.order-lines td {
    padding: 8px 0;
    border-bottom: 1px solid var(--cream-deep);
    vertical-align: top;
}
.order-lines small {
    display: block;
    color: var(--grey-999);
}
.order-lines .order-chip {
    margin-left: 6px;
}
.order-lines-qty,
.order-lines-sum {
    padding-left: 10px !important;
    text-align: right;
    white-space: nowrap;
}
.order-lines-sum {
    font-weight: 600;
}
.order-totals,
.order-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 4px 14px;
    margin: 0;
}
.order-totals dt,
.order-facts dt {
    font-weight: normal;
    color: var(--grey-888);
}
.order-totals dd {
    margin: 0;
    text-align: right;
}
.order-facts dd {
    margin: 0;
}
.order-totals .is-grand {
    padding-top: 6px;
    border-top: 1px solid var(--line);
    font-size: 17px;
    font-weight: 700;
    color: var(--brown);
}
.order-note {
    border-color: #f1d9a9;
    background: var(--cream);
}
.order-note p {
    margin: 0;
}
.order-form .form-group {
    margin-bottom: 10px;
}
.order-form label {
    font-size: 13px;
    color: var(--text-body);
}
.order-form-sub {
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    color: var(--brown);
}
.order-hint {
    margin: -4px 0 6px;
}
.order-form button[type=submit] {
    width: 100%;
    margin-top: 6px;
}
@media (min-width: 992px) {
    /* the form stays in view next to a long order */
    .order-form {
        position: sticky;
        top: 70px;
    }
}


/* ===== admin: customers ===== */
.customer-row-body {
    grid-template-columns: 1.2fr 1fr 1.4fr .9fr;
}
.customer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    grid-gap: 10px;
    margin-bottom: 16px;
}
.customer-stats div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}
.customer-stats b {
    display: block;
    font-size: 20px;
    color: var(--brown);
}
.customer-stats span {
    font-size: 12px;
    color: var(--grey-888);
}
.customer-order-sum {
    margin-left: auto;
    color: var(--brown);
}
#content ul.customer-favourites li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--cream-deep);
}
.customer-favourites small {
    color: var(--grey-888);
    white-space: nowrap;
}
.order-form textarea {
    margin-bottom: 8px;
}
.order-panel-link {
    float: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
}

/* order card: staff comments (the «Комментарии» tab, never shown to the customer) */
.order-comment {
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-deep);
}
.order-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 4px;
    color: var(--brown);
}
.order-comment-head form {
    margin-left: auto;
}
.order-comment p {
    margin: 0;
}
.order-comment-form {
    margin-top: 14px;
}
.order-comment-form textarea {
    margin-bottom: 8px;
}
@media (max-width: 767px) {
    .order-comment-form textarea {
        font-size: 16px; /* no iOS zoom */
    }
}

/* Cookie consent window (native <dialog>, the browser centres it and keeps it above everything) and policy page */
.cookie-banner {
    width: calc(100% - 32px);
    max-width: 480px;
    margin: auto;
    padding: 20px;
    background: var(--cream);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px rgba(69, 35, 31, .18);
    color: var(--brown);
    font-size: 14px;
    line-height: 1.45;
}
.cookie-banner[open] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cookie-banner::backdrop {
    background: rgba(69, 35, 31, .45);
}
.cookie-banner p {
    margin: 0;
}
.cookie-banner a {
    color: var(--orange);
    text-decoration: underline;
}
.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cookie-banner .btn {
    flex: 1 1 auto;
    min-height: 44px;
    margin: 0;
    white-space: nowrap;
}
.cookies-page {
    max-width: 820px;
}
.cookie-banner .btn-default {
    background: transparent;
    border: 1px solid var(--brown);
    color: var(--brown);
}
.cookie-banner .btn-default:hover, .cookie-banner .btn-default:focus {
    background: var(--brown);
    color: var(--white);
}

/* Footer (markup in _footer.html.twig; theme styles bare `footer` and `footer a`) */
.site-footer {
    padding: 40px 0 24px;
    color: #e9dcc4;
    font-size: 14px;
    line-height: 1.5;
}
/* working hours are not broken inside the interval («9:00–» / «16:00») */
.nowrap {
    white-space: nowrap;
}
@media (max-width: 767px) {
    /* room under the last links for the «Наверх» button, or it covers them */
    .site-footer {
        padding-bottom: 76px;
    }
}
.site-footer a {
    color: var(--cream);
}
.site-footer a:hover, .site-footer a:focus {
    color: #f08a3e;
    text-decoration: none;
}
.site-footer-main > div {
    margin-bottom: 24px;
}
.site-footer-brand img {
    max-width: 170px;
    height: auto;
    margin-bottom: 14px;
}
.site-footer-brand p {
    margin: 0 0 14px;
    max-width: 260px;
}
.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 6px;
    border: 1px solid rgba(253, 247, 231, .35);
    border-radius: 50%;
    font-size: 16px;
}
.site-footer-social a:hover, .site-footer-social a:focus {
    border-color: var(--action);
    background: var(--action);
    color: var(--white);
}
.site-footer-title {
    margin: 0 0 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.site-footer ul li {
    padding: 4px 0;
}
.site-footer-contacts .fa {
    width: 18px;
    color: var(--orange);
}
.site-footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 24px;
    padding: 10px 16px;
    margin: 4px 0 20px;
    background: var(--cream);
    border-radius: var(--radius-md);
}
.site-footer-payments img {
    height: 40px;
    width: auto;
    max-width: 100%;
}
.site-footer-legal {
    padding-top: 16px;
    border-top: 1px solid rgba(253, 247, 231, .15);
    color: #bfae94;
    font-size: 12px;
    text-align: center;
}
.site-footer-legal p {
    margin: 0 0 6px;
}
.site-footer-legal a {
    color: #e9dcc4;
    text-decoration: underline;
}
.site-footer-copy {
    margin-top: 10px !important;
    color: #e9dcc4;
}
@media (max-width: 767px) {
    .site-footer {
        padding-top: 28px;
    }
    .site-footer-brand {
        text-align: center;
    }
    .site-footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    /* Not floated below 768px: without clear its box sits over the two floated link columns and eats their taps */
    .site-footer-contacts {
        clear: both;
    }
    .site-footer ul li {
        padding: 6px 0;
    }
    .site-footer-payments img {
        height: auto;
    }
    .site-footer-payments img:first-child {
        width: 100%;
    }
    .site-footer-payments img + img {
        height: 30px;
    }
}

/* Back-to-top (button from custom.js); replaces the theme's cup picture */
.top_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 44px;
    padding: 0 18px 0 16px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(253, 247, 231, .25);
    border-radius: 22px;
    background: var(--brown);
    color: var(--cream);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(69, 35, 31, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
.top_button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.top_button:hover, .top_button:focus {
    background: var(--action);
    color: var(--white);
    outline: none;
}
.top_button:focus-visible {
    box-shadow: 0 0 0 3px rgba(210, 94, 22, .45);
}
@media (max-width: 767px) {
    .top_button {
        right: 12px;
        bottom: 12px;
        width: 44px;
        padding: 0;
        justify-content: center;
    }
    .top_button span {
        display: none;
    }
    /* above the product page's sticky "В корзину" bar */
    .has-sticky-buy .top_button {
        bottom: 84px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .top_button {
        transition: none;
    }
}

/* latest news on the home page: swipe between the last three */
.home-news-slider {
    margin: 0 15px 20px;
}
.home-news-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.home-news-track::-webkit-scrollbar {
    display: none;
}
.home-news-track > .home-news + .home-news {
    margin-left: 12px;
}
.home-news {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--cream);
    color: var(--brown);
}
.home-news:hover,
.home-news:focus {
    color: var(--brown);
    text-decoration: none;
}
.home-news:hover .home-news-title,
.home-news:focus .home-news-title {
    color: var(--orange);
}
.home-news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
/* beats the theme's .container h2 (uppercase, black) */
.home-news-slider .home-news-heading {
    margin: 0;
    color: var(--brown);
    font-size: 20px;
    font-weight: 700;
    text-transform: none;
}
.home-news-all {
    color: var(--orange);
    font-weight: 600;
    white-space: nowrap;
}
.home-news-all:hover,
.home-news-all:focus {
    color: var(--orange-hover);
    text-decoration: none;
}
.home-news-date {
    margin-right: 14px;
    color: var(--text-muted);
    font-size: 13px;
}
.home-news-title {
    flex: 1 1 300px;
    margin-right: 14px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .15s;
}
.home-news-more {
    color: var(--orange);
    font-weight: 600;
    white-space: nowrap;
}
.home-news:hover .home-news-more {
    color: var(--orange-hover);
}
.home-news-dots {
    margin-top: 8px;
    text-align: center;
}
.home-news-dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line-strong);
    vertical-align: middle;
    transition: width .15s, background .15s;
}
.home-news-dot.is-active {
    width: 20px;
    border-radius: 4px;
    background: var(--orange);
}
@media (max-width: 767px) {
    .home-news-slider {
        margin: 0 0 20px;
    }
    /* the edge of the next card shows that the news can be swiped */
    .home-news {
        flex-basis: 88%;
    }
    .home-news-title {
        flex-basis: 100%;
        margin: 8px 0;
    }
}

.checkout-carrier-note {
    margin: -5px 0 15px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--grey-777);
}

/* what few buyers need opens by a link (08.11.2026): the invoice for organisations, the comment, the promo code */
.checkout-more > summary {
    margin: 8px 0;
    color: var(--orange);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    list-style: none;
}
.checkout-more > summary::-webkit-details-marker {
    display: none;
}

/* reviews page */
.reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.reviews-head .page-title {
    margin-right: 15px;
}
.reviews-write-btn {
    margin-bottom: 12px;
}
.reviews-write-btn,
.reviews-submit {
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--action);
    color: var(--white);
    font-weight: 600;
}
.reviews-write-btn:hover,
.reviews-write-btn:focus,
.reviews-submit:hover,
.reviews-submit:focus {
    background: var(--action-hover);
    color: var(--white);
}
.reviews-lead {
    max-width: 760px;
    margin-bottom: 25px;
    color: var(--grey-666);
    font-size: 15px;
}
.reviews-layout {
    display: flex;
    align-items: flex-start;
}
.reviews-list {
    flex: 1 1 auto;
    min-width: 0;
}
.review-card {
    margin-bottom: 15px;
}
.review-card-head {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.review-avatar {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--line-strong);
    color: var(--brown);
    font-size: 18px;
    font-weight: 700;
}
.review-author {
    flex: 1 1 auto;
    color: var(--brown);
    font-size: 16px;
    font-weight: 700;
}
.review-date {
    margin-left: 10px;
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}
.review-text {
    color: var(--text-strong);
    font-size: 15px;
    line-height: 1.6;
}
.review-reply {
    margin-top: 12px;
    padding: 10px 14px;
    border-left: 3px solid var(--orange);
    border-radius: 0 6px 6px 0;
    background: var(--cream);
    font-size: 14px;
    line-height: 1.5;
}
.review-reply-title {
    margin-bottom: 4px;
    color: var(--brown);
    font-weight: 700;
}
.reviews-form {
    position: sticky;
    top: 70px;
    scroll-margin-top: 70px; /* "Написать отзыв" on phones: the header turns fixed on scroll and shifts the page up */
    flex: 0 0 340px;
    margin-left: 30px;
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--cream);
}
.reviews-form-title {
    margin: 0 0 15px;
    color: var(--brown);
    font-size: 20px;
    font-weight: 700;
    text-transform: none;
}
.reviews-form .form-control {
    border-color: var(--line-strong);
    border-radius: var(--radius-sm);
}
.reviews-submit {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 15px;
}
.reviews-form-note {
    margin: 10px 0 0;
    color: var(--grey-777);
    font-size: 12px;
}
.reviews-flash {
    margin-bottom: 15px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.reviews-flash.is-success {
    background: #eaf4e4;
    color: var(--green);
}
.reviews-flash.is-error {
    background: #fbeae5;
    color: #a33a12;
}
@media (min-width: 992px) {
    .reviews-write-btn {
        display: none;
    }
}
@media (max-width: 991px) {
    .reviews-layout {
        display: block;
    }
    .reviews-form {
        position: static;
        margin: 25px 0 0;
    }
}
@media (max-width: 767px) {
    .review-card {
        padding: 14px;
    }
    .review-text {
        font-size: 14px;
    }
    .reviews-form .form-control {
        font-size: 16px;
    }
}
@media (max-width: 479px) {
    .review-card-head {
        flex-wrap: wrap;
    }
    .review-date {
        flex-basis: 100%;
        margin: 2px 0 0 52px;
    }
}

/* admin: one grouped menu (left column and the header dropdown) */
#column-left .admin-menu {
    padding: 6px 0 10px;
}
.admin-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* groups are separated by a rule and a heading in the brand colours */
.admin-menu-group + .admin-menu-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.admin-menu-title {
    display: flex;
    align-items: center;
    margin: 0 0 6px;
    padding: 0 10px;
    color: var(--brown);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.admin-menu-title .fa {
    flex: 0 0 20px;
    margin-right: 6px;
    color: var(--orange);
    text-align: center;
}
.admin-menu-note {
    margin-left: auto;
    color: #a89884;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.admin-menu a {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--brown);
    font-size: 14px;
    line-height: 1.3;
}
.admin-menu a .fa {
    flex: 0 0 20px;
    margin-right: 6px;
    color: #c9b896;
    text-align: center;
}
.admin-menu a:hover,
.admin-menu a:focus {
    background: var(--cream);
    color: var(--orange);
    text-decoration: none;
}
.admin-menu a:hover .fa,
.admin-menu a.is-active .fa {
    color: var(--orange);
}
.admin-menu a.is-active {
    background: var(--cream);
    box-shadow: inset 3px 0 0 var(--orange);
    color: var(--orange);
    font-weight: 700;
}
.admin-menu-dropdown {
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px 6px;
}
/* the theme capitalises every word in the account dropdown */
.admin-menu-dropdown a {
    text-transform: none;
}

/* admin: page head, hint and dashboard */
.admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}
#content .admin-title {
    margin: 0;
    color: var(--brown);
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
}
#content .admin-subtitle {
    margin: 24px 0 10px;
    color: var(--brown);
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
}
.admin-hint {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    border: 1px solid var(--line-strong);
}
.admin-hint .fa {
    margin-top: 2px;
    color: var(--orange);
    font-size: 16px;
}
.admin-hint a {
    color: var(--orange);
    font-weight: 600;
    white-space: nowrap;
}
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 12px;
}
.dash-tile {
    display: flex;
    flex-direction: column;
    padding: 16px;
    color: var(--brown);
    transition: border-color .15s, box-shadow .15s;
}
.dash-tile:hover,
.dash-tile:focus {
    border-color: var(--orange);
    box-shadow: 0 2px 10px rgba(69, 35, 31, .1);
    color: var(--brown);
    text-decoration: none;
}
.dash-tile.is-alert {
    border-left: 4px solid var(--orange);
}

/* KeyFigure (docs/DESIGN.md): a figure of a period, not a link: no hover of the dashboard tile */
.key-figure:hover,
.key-figure:focus {
    border-color: var(--line);
    box-shadow: none;
}
.key-figure-cmp {
    color: var(--text-body);
    font-size: 13px;
    line-height: 1.4;
}

/* Chart (docs/DESIGN.md): Chart.js needs a box of a set height when it does not keep its own ratio */
.chart-box {
    position: relative;
    height: 260px;
}
.chart-box.is-tall {
    height: 340px;
}
@media (max-width: 767px) {
    .chart-box {
        height: 220px;
    }
    .chart-box.is-tall {
        height: 300px;
    }
}

/* Fold (docs/DESIGN.md): the look of the archived order of the account, as its own role */
.fold {
    padding: 0;
}
.fold > summary {
    display: block;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    color: var(--brown);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.fold > summary::-webkit-details-marker {
    display: none;
}
.fold > summary::before {
    content: "\f105";
    display: inline-block;
    width: 14px;
    margin-right: 8px;
    font-family: FontAwesome;
    color: var(--text-muted);
    transition: transform .15s;
}
.fold[open] > summary {
    border-bottom: 1px solid var(--line);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    background: var(--cream);
}
.fold[open] > summary::before {
    transform: rotate(90deg);
}
.fold > summary .hint {
    display: inline;
    font-weight: 400;
}
.fold > :not(summary) {
    margin: 12px 16px;
}

/* «Посещаемость» (/admin/visits): one rhythm of docs/DESIGN.md, space-16 between the blocks of the screen and space-8 for a
   hint under the block it explains; grids keep space-12 between their cards */
.visits > * {
    margin: 0 0 16px;
}
.visits > .hint {
    margin-top: -8px;
}
.visits > .page-title {
    margin-bottom: 8px;
}
.visits .card > h2 {
    margin-top: 0;
}
.visits-period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
}
.visits-period label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 400;
}
.visits-period .btn.is-current {
    border-color: var(--orange);
}
.visits-alerts ul {
    margin: 6px 0 0;
    padding-left: 0;
    list-style: none;
}
.visits-alerts li {
    margin: 4px 0;
}
.visits-figures {
    grid-template-columns: repeat(5, 1fr);
}
.visits-figures.has-online {
    grid-template-columns: repeat(6, 1fr);
}
/* the body of the screen keeps the rhythm of the screen: it is the part the live view refreshes */
.visits-body > * {
    margin: 0 0 16px;
}
.visits-live[aria-pressed="true"] {
    border-color: var(--orange);
    color: var(--brown);
}
.visits-period select.form-control {
    width: auto;
    max-width: 180px;
}
.visits-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}
.visits-table {
    margin-bottom: 0;
}
.visits-table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.visits-table .is-sub td:first-child {
    padding-left: 24px;
    color: var(--text-muted);
}
@media (max-width: 767px) {
    .visits-grid {
        grid-template-columns: 1fr;
    }
    .visits-figures,
    .visits-figures.has-online {
        grid-template-columns: repeat(2, 1fr);
    }
    .visits-period .form-control,
    .visits-period select.form-control {
        width: 100%;
        max-width: none;
    }
    .visits-period label,
    .visits-period select {
        flex: 1 1 100%;
    }
    /* the first column stays while the numbers scroll inside the card */
    .visits-table th:first-child,
    .visits-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--white);
    }
}
.dash-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}
.dash-num-small {
    font-size: 20px;
}
.dash-label {
    flex: 1 1 auto;
    margin: 6px 0 10px;
    color: var(--grey-666);
    font-size: 13px;
    line-height: 1.4;
}
.dash-more {
    color: var(--orange);
    font-weight: 600;
    font-size: 13px;
}
.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* admin: help page */
.help {
    max-width: 820px;
    color: var(--text-strong);
    font-size: 14px;
    line-height: 1.6;
}
.help-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.help-toc a {
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--white);
    color: var(--brown);
    font-weight: 600;
    font-size: 13px;
}
.help-toc a:hover {
    border-color: var(--orange);
    color: var(--orange);
    text-decoration: none;
}
.help section {
    margin-bottom: 18px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    scroll-margin-top: 70px;
}
.help section:target {
    border-color: var(--orange);
}
#content .help h2 {
    margin: 0 0 10px;
    color: var(--brown);
    font-size: 19px;
    font-weight: 700;
    text-transform: none;
}
#content .help h3 {
    margin: 14px 0 6px;
    color: var(--brown);
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
}
.help ol,
.help ul {
    padding-left: 20px;
}
.help li {
    margin-bottom: 4px;
}
.help a {
    color: var(--orange);
}

/* admin: products list */
.orders-count.is-quiet {
    background: var(--line);
    color: var(--brown);
}
.orders-tabs .is-active .orders-count.is-quiet {
    background: var(--white);
}
.product-sections {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin: 0 0 14px;
    font-size: 13px;
}
.product-sections a {
    color: var(--brown);
    border-bottom: 1px dashed var(--line-strong);
}
.product-sections a:hover,
.product-sections a.is-active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    text-decoration: none;
}
.product-sections a.is-active {
    font-weight: 700;
}
.product-search-note {
    color: var(--text-muted);
}
.product-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: box-shadow .15s;
}
.product-row:hover {
    box-shadow: 0 6px 18px -10px rgba(69, 35, 31, .45);
}
.product-row.is-hidden {
    background: #faf8f3;
}
.product-row.is-hidden .product-row-photo {
    opacity: .5;
}
.product-row-photo img,
.product-row-nophoto {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
}
.product-row-nophoto {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warn-bg);
    color: var(--orange);
    font-size: 20px;
}
.product-row-main {
    flex: 1 1 auto;
    min-width: 0;
}
.product-row-link {
    display: block;
    color: var(--brown);
    font-size: 15px;
    font-weight: 700;
}
/* the whole row opens the product */
a.product-row-link:after {
    content: '';
    position: absolute;
    inset: 0;
}
a.product-row-link:hover {
    color: var(--orange);
    text-decoration: none;
}
.product-row-meta {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}
.product-row-price {
    flex: 0 0 auto;
    color: var(--brown);
    text-align: right;
    white-space: nowrap;
}
.product-row-price s {
    color: var(--grey-999);
    font-size: 12px;
}
.product-row-price small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}
.product-row-status {
    display: flex;
    flex: 0 0 120px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
/* sits above the stretched row link */
.product-row-site {
    position: relative;
    z-index: 1;
    padding: 6px;
    color: var(--text-muted);
}
.product-row-site:hover {
    color: var(--orange);
}
.product-price-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin: 0 0 14px;
    padding: 8px 12px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    font-size: 13px;
}
.product-price-file-title {
    color: var(--text-muted);
}
.product-price-file a,
.product-price-file-pick {
    margin: 0;
    color: var(--orange);
    font-weight: 600;
    cursor: pointer;
}
.product-price-file-pick {
    position: relative;
}
/* the theme forces file inputs visible: keep it in the label, out of sight */
.product-price-file-pick input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    overflow: hidden;
}
@media (max-width: 767px) {
    .product-row {
        flex-wrap: wrap;
    }
    .product-row-main {
        flex-basis: calc(100% - 80px);
    }
    .product-row-price {
        margin-left: 68px;
        text-align: left;
    }
    .product-row-status {
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* admin: product form */
.product-form-card {
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}
#content .product-form-title {
    margin: 0 0 12px;
    color: var(--brown);
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
}
.product-form-title span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}
summary.product-form-title {
    cursor: pointer;
}
.product-form-seo:not([open]) .product-form-title {
    margin-bottom: 0;
}
.product-form-cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 0 14px;
}
/* the codes of a batch of coupons: a grid to read and copy */
.discount-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.discount-codes li.is-used code {
    text-decoration: line-through;
}
/* the discount's lists of categories and products: a long product name must not widen the column */
.product-form-cols > .form-group {
    min-width: 0;
}
select.discount-picker {
    width: 100%;
    height: auto;
}
.product-form-help {
    margin: -8px 0 12px;
    color: var(--text-muted);
    font-size: 12px;
}
.product-form-note {
    margin: 0 0 12px;
}
/* wholesale price not below the retail one: shown while typing (Product/_form.html.twig) */
.product-form .form-control.is-invalid {
    border-color: var(--danger);
}
.product-form-help.is-error {
    color: var(--danger);
    font-weight: 600;
}
.product-form-checks .form-check,
.product-form-checks .checkbox {
    margin-bottom: 6px;
}
/* photos of the product form, in the gallery's order (picture_order_controller.js) */
.product-form-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.product-form-photo {
    width: 140px;
    color: var(--text-muted);
    font-size: 13px;
}
.product-form-photo img {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}
.product-form-photo.is-main img {
    border-color: var(--orange);
}
.product-form-photo.is-removed img {
    opacity: .35;
}
.product-form-photo-main {
    display: block;
    visibility: hidden;
    margin: 4px 0;
    color: var(--orange);
    font-weight: 600;
}
.product-form-photo.is-main .product-form-photo-main {
    visibility: visible;
}
.product-form-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.product-form [type=submit] {
    padding: 10px 28px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--action);
    color: var(--white);
    font-weight: 700;
}
.product-form [type=submit]:hover {
    background: var(--action-hover);
}

/* admin: reviews moderation */
.review-admin {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}
.review-admin-head {
    margin-bottom: 6px;
    color: var(--brown);
}
.review-admin-meta {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.review-admin-text {
    color: var(--text-strong);
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}
.review-admin-reply {
    margin-top: 8px;
    padding: 6px 10px;
    border-left: 3px solid var(--orange);
    background: var(--cream);
    font-size: 13px;
}
.review-admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.review-admin-actions form {
    margin: 0;
}
.admin-flash {
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

/* admin: dictionary lists — the name opens the record */
.dict-table .dict-link {
    color: var(--brown);
    font-weight: 700;
}
.dict-table .dict-link:hover {
    color: var(--orange);
}

/* admin: shared look for the old list and form pages (body.admin comes from admin_content) */
body.admin #content .table {
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
}
body.admin #content .table > thead > tr > th,
body.admin #content .table > tbody > tr:first-child > th {
    padding: 10px 12px;
    border: 0;
    background: var(--cream);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
body.admin #content .table > tbody > tr > td {
    padding: 10px 12px;
    border-top: 1px solid #f3ecdd;
    vertical-align: middle;
}
body.admin #content .table-striped > tbody > tr:nth-of-type(odd) {
    background: var(--white);
}
body.admin #content .table > tbody > tr:hover > td {
    background: var(--selected);
}
.dict-muted {
    color: var(--text-muted);
    font-size: 12px;
}
.dict-action {
    padding: 4px 6px;
    color: #a89884;
}
.dict-action:hover {
    color: var(--orange);
}
body.admin #content > form:not(.product-form):not(.orders-search):not(.product-price-file),
body.admin #content > div > form[name],
body.admin #content .record-tabs > [data-pane] > form:not(.product-form),
body.admin #content .record-tabs > [data-pane] > div > form[name] {
    max-width: 760px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}
body.admin #content form:not(.product-price-file) label {
    margin-bottom: 4px;
    color: var(--brown);
    font-size: 13px;
    font-weight: 600;
}
body.admin #content form .form-group {
    margin-bottom: 14px;
}
body.admin #content .form-control {
    min-height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: none;
}
body.admin #content .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(210, 94, 22, .15);
}
body.admin #content input[type=checkbox],
body.admin #content input[type=radio] {
    accent-color: var(--orange);
}
body.admin #content form .form-check-label,
body.admin #content form .checkbox label {
    font-weight: 400;
}
/* admin UI kit (/admin/ui): primary = orange, secondary = .btn-default outline, delete = .btn-delete, small = .btn-sm */
body.admin #content .btn-primary,
body.admin #content button[type=submit]:not(.btn-default):not(.btn-link),
body.admin #content input[type=submit] {
    padding: 9px 24px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--action);
    color: var(--white);
    font-weight: 700;
    text-transform: none;
}
body.admin #content .btn-primary:hover,
body.admin #content button[type=submit]:not(.btn-default):not(.btn-link):hover,
body.admin #content input[type=submit]:hover {
    background: var(--action-hover);
    color: var(--white);
}
body.admin #content .btn-default {
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--brown);
    font-weight: 600;
    text-transform: none;
}
body.admin #content .btn-default:hover,
body.admin #content .btn-default:focus {
    border-color: var(--orange);
    background: var(--white);
    color: var(--orange);
}
body.admin #content .btn-default .fa {
    color: var(--orange);
}
body.admin #content .btn-link {
    color: var(--brown);
    font-weight: 600;
    text-transform: none;
}
body.admin #content .btn-link:hover,
body.admin #content .btn-link:focus {
    color: var(--orange);
}
body.admin #content .btn-delete {
    padding-left: 0;
    padding-right: 0;
    color: var(--danger);
    font-weight: 600;
    text-transform: none;
}
body.admin #content .btn-delete:hover,
body.admin #content .btn-delete:focus {
    color: var(--danger);
    text-decoration: underline;
}
/* same weight as the submit rule above (element + three classes), so the later one wins */
body.admin #content a.btn.btn-sm,
body.admin #content button.btn.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}
body.admin #content .order-panel > .btn {
    margin-top: 10px;
}
body.admin #content .btn.btn-link.btn-sm {
    padding-left: 0;
    padding-right: 0;
}

/* admin article form: "Товары к статье" (Node/_catalog_links.html.twig) */
.catalog-links {
    margin: 20px 0;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--cream);
}
.catalog-links legend {
    float: none; /* the theme floats legends, the help text would run beside it */
    display: block;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    color: var(--brown);
    font-size: 18px;
    font-weight: 600;
}
.catalog-links-help {
    margin: 0 0 14px;
    color: #6b5a50;
    font-size: 14px;
}
.catalog-links-help code,
.help code {
    padding: 1px 5px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--white);
    color: var(--orange);
}
.catalog-links-group + .catalog-links-group {
    margin-top: 14px;
}
.catalog-links-label {
    margin-bottom: 6px;
    color: var(--brown);
    font-weight: 600;
}
.catalog-links-count {
    color: var(--orange);
    font-weight: 400;
}
.catalog-links-checks {
    columns: 3 220px;
    column-gap: 20px;
}
.catalog-links-checks .form-check,
.catalog-links-checks .checkbox {
    margin: 0 0 4px;
    break-inside: avoid;
}
/* a long product name wrapped under its tick as a whole (both inline-block): keep the tick beside the first line */
.catalog-links-checks .form-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.catalog-links-checks .form-check-input {
    flex: none;
    margin-top: 4px;
}
.catalog-links-checks .form-check-label {
    line-height: 1.4;
}
.catalog-links-search {
    max-width: 420px;
    margin-bottom: 8px;
}
.catalog-links-products {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
}

/* ===== content page / news / blog post (Node/show.html.twig) ===== */
.article-head {
    margin-bottom: 22px; /* no line under the title: no other page had one (27.10.2026, one look of headings) */
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 10px;
    color: #8a776b;
    font-size: 13px;
}
.article-section {
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--cream);
    border: 1px solid var(--line-strong);
    color: var(--brown);
    font-weight: 600;
}
.article-section:hover,
.article-section:focus {
    border-color: var(--orange);
    color: var(--orange);
}
.article-admin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.article-hidden {
    padding: 3px 10px;
    border-radius: 12px;
    background: #fbe9e0;
    color: #a33d0c;
    font-weight: 600;
}
.article-edit {
    padding: 5px 12px;
    border: 1px solid var(--orange);
    border-radius: var(--radius-sm);
    color: var(--orange);
    font-weight: 600;
}
.article-edit:hover,
.article-edit:focus {
    background: var(--action);
    color: var(--white);
}
/* beats the theme's ".container h1" (uppercase 18px) */
.article-head .article-title {
    margin: 0;
    color: var(--brown);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}
/* one reading size for articles and product descriptions; long lines are hard to follow */
.article-text,
.productpage #tab-description.rich-text {
    font-size: 16px;
}
.article-text {
    max-width: 780px;
}
.productpage #tab-description.rich-text > * {
    max-width: 780px;
}
.article-more {
    margin: 35px 0 10px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.article-more-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.article-more-head h2 {
    margin: 0;
    color: var(--brown);
    font-size: 22px; /* a section heading, as «Новинки» and «Похожие товары» */
    font-weight: 700;
    text-transform: none;
}
.article-more-head a {
    color: var(--orange);
    font-weight: 600;
    white-space: nowrap;
}
.article-more-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.article-more-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--brown);
    transition: border-color .2s, box-shadow .2s;
}
.article-more-item:hover,
.article-more-item:focus {
    border-color: var(--orange);
    box-shadow: 0 6px 16px rgba(69, 35, 31, .12);
}
.article-more-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cream);
}
.article-more-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-more-cover.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brown);
}
.article-more-cover.is-empty img {
    width: 55%;
    height: auto;
    object-fit: contain;
}
.article-more-item time {
    margin: 12px 14px 4px;
    color: #8a776b;
    font-size: 12px;
}
.article-more-title {
    margin: 0 14px 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.article-more-item:hover .article-more-title {
    color: var(--orange);
}
@media (max-width: 767px) {
    .article-head .article-title {
        font-size: 22px;
    }
    .article-admin {
        margin-left: 0;
    }
    .article-more-list {
        grid-template-columns: 1fr;
    }
}

/* sign-in by a code from SMS */
.login-card {
    max-width: 420px;
    margin: 10px auto 40px;
    padding: 24px;
}
#content .login-card h1 {
    margin: 0 0 8px;
    color: var(--brown);
    font-size: 24px;
    text-transform: none;
}
.login-lead {
    color: #6b5b4d;
    line-height: 1.5;
}
.login-card label {
    display: block;
    margin: 14px 0 6px;
    color: var(--brown);
    font-weight: 600;
}
.login-card .form-control {
    height: 44px;
    font-size: 16px;
}
#content .login-card .login-code {
    font-size: 22px;
    letter-spacing: .3em;
    text-align: center;
}
.login-submit {
    width: 100%;
    height: 44px;
    margin-top: 16px;
    font-size: 16px;
}
.login-error,
.login-notice {
    margin: 12px 0 0;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.login-error {
    background: #fdecea;
    color: #b3261e;
}
.login-notice {
    background: #edf6e8;
    color: var(--green);
}
.login-resend {
    margin-top: 6px;
    text-align: center;
}
.login-lead a,
.login-resend .btn-link {
    color: var(--orange);
}
.login-resend .btn-link {
    text-transform: none;
    font-size: 14px;
}
.login-resend .btn-link[disabled] {
    color: var(--text-muted);
    opacity: 1;
}
.login-switch {
    margin: 12px 0 0;
    text-align: center;
    font-size: 14px;
}
.login-switch a {
    color: var(--orange);
}

/* customer account: orders */
.account-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
#content .account-head h1 {
    margin: 0;
    color: var(--brown);
    text-transform: none;
}
.account-head p {
    margin: 0;
    color: #6b5b4d;
}
.account-head a {
    color: var(--orange);
}
.account-order {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}
.account-order-head,
.account-order-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 12px 16px;
}
.account-order-head {
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    border-radius: 10px 10px 0 0;
    color: var(--brown);
}
.account-order-date {
    margin-left: 6px;
    color: var(--text-muted);
}
.account-order-status {
    padding: 2px 10px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
}
.account-order-status.is-active {
    background: var(--warn-bg);
    color: var(--orange);
}
.account-order-status.is-done {
    background: #edf6e8;
    color: var(--green);
}
.account-order-status.is-canceled {
    background: #f1ece4;
    color: var(--text-muted);
}
#content .account-order-items {
    margin: 0;
    padding: 4px 16px;
    list-style: none;
}
.account-order-items li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3ecdc;
}
.account-order-items li:last-child {
    border-bottom: 0;
}
.account-order-name {
    flex: 1 1 auto;
}
.account-order-name a {
    color: var(--brown);
}
.account-order-name a:hover,
.account-order-name a:focus {
    color: var(--orange);
}
.account-order-option {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: var(--radius-lg);
    background: var(--warn-bg);
    color: var(--orange);
    font-size: 12px;
}
.account-order-qty,
.account-order-sum {
    white-space: nowrap;
}
.account-order-qty {
    color: var(--text-muted);
}
.account-order-foot {
    border-top: 1px solid var(--line);
    color: #6b5b4d;
}
.account-order-foot strong {
    color: var(--brown);
    font-size: 17px;
}
.account-order-paid {
    color: var(--green);
}
@media (max-width: 479px) {
    .login-card {
        padding: 18px 14px;
    }
}
#content h2.account-section {
    margin: 24px 0 10px;
    color: var(--brown);
    font-size: 18px;
    text-transform: none;
}
.account-section span {
    margin-left: 4px;
    color: var(--text-muted);
    font-weight: 400;
}
.account-order.is-archived {
    margin-bottom: 8px;
}
.account-order.is-archived > summary {
    cursor: pointer;
    list-style: none;
    border-bottom: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
}
.account-order.is-archived > summary::-webkit-details-marker {
    display: none;
}
.account-order.is-archived > summary::before {
    content: "\f105";
    margin-right: 10px;
    font-family: FontAwesome;
    color: var(--text-muted);
    transition: transform .15s;
}
.account-order.is-archived[open] > summary {
    border-bottom: 1px solid var(--line);
    border-radius: 10px 10px 0 0;
    background: var(--cream);
}
.account-order.is-archived[open] > summary::before {
    transform: rotate(90deg);
}
.account-order.is-archived > summary > div {
    flex: 1 1 auto;
}
.account-order-brief {
    margin-left: 6px;
    color: #6b5b4d;
}
.account-repeat {
    padding: 0 16px 14px;
    text-align: right;
}
.account-repeat .btn-primary {
    margin-top: 0;
}
.checkout-page > .login-notice {
    margin-bottom: 12px;
}
@media (max-width: 479px) {
    .account-order-brief {
        display: block;
        margin: 2px 0 0;
    }
    .account-repeat .btn-primary {
        width: 100%;
    }
}
.account-order-items li {
    align-items: center;
}
.account-order-pic {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border: 1px solid #f3ecdc;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--cream);
    color: #c9b48f;
    font-size: 20px;
    line-height: 54px;
    text-align: center;
}
.account-order-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.account-page .catalog-pager {
    margin-top: 16px;
}
@media (max-width: 479px) {
    .account-order-items li {
        display: grid;
        grid-template-columns: 56px 1fr auto;
        gap: 4px 12px;
    }
    .account-order-pic {
        grid-row: span 2;
    }
    .account-order-name {
        grid-column: 2 / 4;
    }
    .account-order-sum {
        margin-left: 0;
        text-align: right;
    }
}

/* staff inside a customer's account (switch_user) */
.switch-user-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 16px;
    background: var(--action);
    color: var(--white);
    font-size: 14px;
    text-align: center;
}
.switch-user-bar a {
    margin-left: 10px;
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
}

/* admin: journal (audit_log) */
.journal-lead {
    color: #6b5b4d;
}
.journal-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}
.journal-filter .form-control {
    width: auto;
    flex: 1 1 160px;
}
.journal-filter .btn-checkout {
    margin-top: 0;
}
#content .journal td {
    vertical-align: top;
    border-top: 1px solid #f3ecdc;
    font-size: 13px;
}
.journal-time {
    white-space: nowrap;
    color: var(--text-muted);
}
.journal-time b {
    color: var(--brown);
}
.journal-who a {
    color: var(--brown);
    font-weight: 600;
}
.journal-ip,
.journal-as,
.journal-muted {
    color: var(--text-muted);
    font-size: 12px;
}
.journal-as {
    color: var(--orange);
}
.journal-action {
    font-weight: 600;
}
.journal-ok .journal-action {
    color: var(--green);
}
.journal-bad .journal-action {
    color: #b3261e;
}
.journal-warn .journal-action,
.journal-info .journal-action {
    color: var(--orange);
}
.journal-muted .journal-action {
    color: var(--text-muted);
}
.journal-class {
    color: var(--text-muted);
}
.journal-history {
    margin-left: 4px;
    color: #c9b48f;
}
#content .journal-details ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.journal-details li {
    margin-bottom: 2px;
    word-break: break-word;
}
.journal-field {
    color: var(--text-muted);
}
.journal-old {
    color: #b3261e;
    text-decoration: line-through;
    text-decoration-color: rgba(179, 38, 30, .4);
}
.journal-new {
    color: var(--green);
}

/* admin: staff list and card */
.admin-groups-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.admin-groups-head > span {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.admin-groups-lead {
    color: #6b5b4d;
}
.staff-list {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
a.staff-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3ecdc;
    color: var(--brown);
    text-decoration: none;
}
a.staff-row:last-child {
    border-bottom: 0;
}
a.staff-row:hover,
a.staff-row:focus {
    background: var(--cream);
    color: var(--brown);
    text-decoration: none;
}
.staff-row.is-blocked {
    opacity: .6;
}
.staff-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brown);
    color: var(--cream);
    font-size: 18px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}
.staff-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    min-width: 0;
}
.staff-sub {
    color: #6b5b4d;
    font-size: 13px;
}
.staff-you {
    align-self: flex-start;
    padding: 1px 6px;
    border-radius: var(--radius-md);
    background: var(--warn-bg);
    color: var(--orange);
    font-size: 11px;
}
.staff-groups {
    flex: 1 1 200px;
}
.staff-warn {
    color: #b3261e;
    font-size: 13px;
}
.staff-blocked {
    color: #b3261e;
    font-weight: 600;
}
.staff-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #6b5b4d;
    font-size: 12px;
}
.staff-mail .fa {
    margin-left: 6px;
    color: var(--orange);
}
.staff-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}
.staff-form {
    flex: 1 1 420px;
}
.staff-form section,
.staff-side {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}
#content .staff-form h2,
#content .staff-side h2 {
    margin: 0 0 12px;
    color: var(--brown);
    font-size: 16px;
    text-transform: none;
}
.staff-field {
    margin-bottom: 12px;
}
.staff-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.staff-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    font-weight: 400;
    cursor: pointer;
}
.staff-check input {
    margin-top: 3px;
}
.staff-actions .btn-checkout {
    margin-top: 0;
}
.staff-side {
    flex: 0 1 300px;
}
#content .staff-journal {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    font-size: 13px;
}
.staff-journal li {
    padding: 4px 0;
    border-bottom: 1px solid #f3ecdc;
    word-break: break-word;
}
@media (max-width: 767px) {
    .staff-meta {
        align-items: flex-start;
    }
    .staff-side {
        flex-basis: 100%;
    }
}
.staff-logout-all {
    margin: 0 0 14px;
}
.staff-logout-all .btn {
    margin-bottom: 4px;
}
.account-logout-all .btn-link {
    padding: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: none;
}

/* account: profile, address book; menu as tabs on phones (the left column is hidden there) */
.account-tabs {
    display: none;
}
@media (max-width: 767px) {
    .account-tabs {
        display: flex;
        gap: 6px;
        margin-bottom: 14px;
    }
    .account-tabs a {
        flex: 1;
        padding: 9px 8px;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-md);
        background: var(--white);
        color: var(--brown);
        font-size: 14px;
        text-align: center;
    }
    .account-tabs a.is-current {
        border-color: var(--orange);
        background: var(--selected);
        color: var(--orange);
        font-weight: 600;
    }
}
.account-box {
    margin-bottom: 22px;
}
.account-box-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
#content .account-box h2.account-section {
    margin-top: 0;
}
.account-form .form-control {
    font-size: 15px;
}
.account-email-state {
    margin: -6px 0 10px;
    color: #a0522d;
    font-size: 13px;
}
.account-email-state.is-ok {
    color: var(--green);
}
.account-email-state .btn-link {
    padding: 0;
    color: var(--orange);
    font-size: 13px;
    text-transform: none;
    vertical-align: baseline;
}
.account-address {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.account-address-text {
    flex: 1 1 260px;
    min-width: 0;
}
.account-address-text > b,
.account-address-text > span {
    display: block;
    overflow-wrap: anywhere;
}
.account-address-text > span {
    color: #6b5b4b;
    font-size: 14px;
}
.account-address-badge {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 1px 8px;
    border-radius: var(--radius-lg);
    background: var(--cream);
    color: var(--brown);
    font-size: 12px;
}
.account-address-badge.is-default {
    background: #eaf3e4;
    color: var(--green);
}
.account-address-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.account-address-actions form {
    margin: 0;
}
.account-address-actions .btn-link {
    color: var(--text-muted);
}
/* erasing the profile cannot be undone: it reads as a dangerous link, not as grey text */
.account-erase .btn-link {
    color: var(--danger);
    text-decoration: underline;
}
.account-address-delete .btn-link:hover,
.account-erase .btn-link:hover {
    color: #b0302a;
}
.account-erase {
    margin: 0 0 20px;
}
.account-erase .btn-link {
    padding-left: 0;
}
.account-erase .hint {
    display: block;
}
.account-restore .form-control {
    max-width: 360px;
}
.account-discount {
    max-width: 520px;
    margin: 0 0 24px;
}
.account-discount-text {
    margin: 8px 0 16px;
    font-size: 13px;
}
/* the receipt inside a ticket: label, dotted leader, value; the saving is the total under a line */
.discount-ticket-body .receipt {
    margin-top: 6px;
    font-size: 13px;
}
.receipt-row {
    display: flex;
    align-items: baseline;
    margin-top: 3px;
}
.receipt-row > span {
    color: var(--text-muted);
    white-space: nowrap;
}
.receipt-row > i {
    flex: 1 1 12px;
    min-width: 12px;
    margin: 0 6px;
    border-bottom: 1px dotted var(--text-muted);
    transform: translateY(-3px);
}
.receipt-row > b {
    max-width: 62%;
    font-weight: 600;
    text-align: right;
}
.receipt-row.is-total {
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px solid var(--line-strong);
    font-size: 14px;
}
.receipt-row.is-total > b {
    color: var(--green);
    font-weight: 700;
}
.account-order-contacts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 2px 12px;
    margin: 0;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    font-size: 14px;
}
.account-order-contacts dt {
    color: var(--text-muted);
    font-weight: normal;
}
.account-order-contacts dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.account-order-change {
    margin: 0;
    padding: 8px 16px 12px;
    color: var(--text-muted);
    font-size: 13px;
}
/* checkout: address book cards and "Запомнить" */
.address-cards .choice-card-hint {
    overflow-wrap: anywhere;
}
.checkout-pick-note {
    color: var(--text-muted);
    font-size: 13px;
}
.checkout-save-address {
    margin: -6px 0 12px;
}
.checkout-save-address label {
    font-weight: normal;
    cursor: pointer;
}
.checkout-save-address input {
    margin-right: 6px;
    accent-color: var(--orange);
}
.customer-profile-address {
    margin: 0 0 8px;
    font-size: 13px;
}

/* ===== site header (18.10.2026): top bar + one row; replaces the theme's centred logo and caps menu ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--brown);
    color: var(--cream);
    transition: box-shadow .2s;
}
.site-header.is-scrolled {
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .55);
}
.site-header a {
    color: inherit;
}
.site-topbar {
    border-bottom: 1px solid rgba(253, 247, 231, .12);
    font-size: 13px;
    transition: margin-top .2s;
}
.site-topbar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 34px;
}
.site-topbar-contacts {
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-topbar-phone {
    font-weight: 600;
}
.site-topbar-hours,
.site-topbar-promo {
    opacity: .7;
}
.site-topbar-promo {
    margin: 0 auto;
}
.site-topbar-account {
    position: relative;
    float: none;
    margin: 0;
}
/* the theme draws its own person icon (sprite), caps and padding on the staff dropdown: one icon is ours */
.site-header .site-topbar-account .dropdown.myaccount > a {
    padding: 0;
    background: none;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}
.site-topbar-account > a,
.site-topbar-account .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.site-header .site-topbar a:hover,
.site-header .site-topbar a:focus {
    color: #f3a46c;
    text-decoration: none;
}
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 76px;
    transition: min-height .2s;
}
/* Bootstrap's clearfix pseudo-elements on .container would be flex/grid items (an empty cell, an extra gap) */
.site-header .site-topbar-inner::before,
.site-header .site-topbar-inner::after,
.site-header .site-header-inner::before,
.site-header .site-header-inner::after {
    content: none;
    display: none;
}
.site-logo {
    flex: 0 0 auto;
}
.site-logo img {
    display: block;
    width: 140px;
    height: auto;
    transition: width .2s;
}
.site-header.is-scrolled .site-header-inner {
    min-height: 58px;
}
.site-header.is-scrolled .site-logo img {
    width: 110px;
}
.site-burger,
.site-account-link,
.site-nav-head,
.site-nav-foot,
.hnav-toggle {
    display: none;
}

/* menu row */
.site-nav {
    flex: 1 1 auto;
}
.site-header .hnav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hnav-item {
    position: relative;
}
.site-header .hnav-link {
    position: relative;
    display: block;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.site-header .hnav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 1px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform .15s;
}
.site-header .hnav-item:hover > .hnav-link::after,
.site-header .hnav-item:focus-within > .hnav-link::after,
.site-header .hnav-link.is-current::after {
    transform: scaleX(1);
}
.site-header .hnav-link:hover,
.site-header .hnav-link:focus {
    color: var(--white);
    text-decoration: none;
}
.has-drop > .hnav-link {
    padding-right: 24px;
}
.has-drop > .hnav-link::before {
    content: "\f107";
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -9px;
    font-family: FontAwesome;
    font-size: 13px;
    opacity: .6;
}
.hnav-drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45);
    color: var(--text-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.hnav-drop.is-wide .hnav-sub {
    column-count: 2;
    column-gap: 8px;
    width: 580px;
}
.hnav-item:hover > .hnav-drop,
.hnav-item:focus-within > .hnav-drop {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.site-header .hnav-sub {
    margin: 0;
    padding: 0;
    list-style: none;
}
.hnav-sub li {
    break-inside: avoid;
}
.site-header .hnav-sub a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-strong);
    font-size: 14px;
    line-height: 1.3;
}
.site-header .hnav-sub a:hover,
.site-header .hnav-sub a:focus,
.site-header .hnav-sub a.is-current {
    background: var(--cream);
    color: var(--brown);
    text-decoration: none;
}
.site-header .hnav-all {
    display: block;
    margin-top: 6px;
    padding: 9px 12px 4px;
    border-top: 1px solid var(--line);
    color: var(--orange);
    font-size: 14px;
    font-weight: 600;
}
.site-header .hnav-all:hover {
    color: var(--orange-hover);
    text-decoration: none;
}

/* search and cart; search is an icon everywhere (the menu row has no room for a field): it opens under the bar */
.site-header-tools {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}
.site-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cream);
    font-size: 19px;
}
.site-search-toggle:hover,
.site-header.search-open .site-search-toggle {
    color: var(--orange);
}
.site-header #search {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    float: none;
    width: auto;
    margin: 0;
    padding: 10px 16px 12px;
    background: var(--brown);
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5);
}
.site-header.search-open #search {
    display: block;
}
.site-header #searchbox {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}
.site-header #search .input-lg,
.site-header #search .input-lg:focus {
    border-color: var(--white);
    background: var(--white);
    color: var(--text-strong);
    font-size: 16px; /* 16px keeps iOS from zooming into the field */
}
.site-header #search .input-group-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
}
.site-header #search .btn-lg .fa {
    color: var(--brown);
}
.site-header .header-cart {
    float: none;
    margin: 0;
}
.site-header .header-cart #cart > .btn.header-cart-btn {
    float: none;
}
.site-header .header-cart .mini-cart {
    color: var(--text-strong);
}
@media (max-width: 1199px) {
    .site-header-inner {
        gap: 16px;
    }
    .site-header .hnav-link {
        padding: 10px 8px;
        font-size: 14px;
    }
    .has-drop > .hnav-link {
        padding-right: 20px;
    }
    .has-drop > .hnav-link::before {
        right: 6px;
    }
    .site-topbar-promo {
        display: none;
    }
}

/* phones and small tablets: burger + slide-in menu, search opens under the bar */
@media (max-width: 991px) {
    .site-topbar {
        display: none;
    }
    /* logo in the middle whatever the widths of the burger and the icons */
    .site-header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 6px;
        min-height: 60px;
    }
    .site-burger {
        justify-self: start;
    }
    .site-header-tools {
        justify-self: end;
    }
    .site-burger,
    .site-account-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--cream);
        font-size: 19px;
    }
    .site-burger {
        flex-direction: column;
        gap: 5px;
    }
    .site-burger span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
    }
    .site-logo {
        margin: 0;
    }
    .site-logo img,
    .site-header.is-scrolled .site-logo img {
        width: 104px;
    }
    .site-header.is-scrolled .site-header-inner {
        min-height: 60px;
    }
    .site-header-tools {
        gap: 4px;
        margin-left: 0;
    }
    .site-header .header-cart-text {
        display: none;
    }
    .site-header .header-cart #cart > .btn.header-cart-btn {
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .site-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1010;
        display: flex;
        flex-direction: column;
        width: min(86vw, 360px);
        background: var(--white);
        color: var(--text-strong);
        transform: translateX(-100%);
        transition: transform .25s ease;
        visibility: hidden;
        overflow-y: auto;
    }
    .site-header.nav-open .site-nav {
        transform: none;
        visibility: visible;
    }
    .site-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1005;
        background: rgba(0, 0, 0, .45);
    }
    .site-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
        font-weight: 700;
        color: var(--brown);
    }
    .site-nav-close {
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        background: none;
        font-size: 28px;
        line-height: 1;
        color: var(--brown);
    }
    .site-header .hnav-list {
        display: block;
        padding: 6px 0;
    }
    .hnav-item {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid #f3ecdc;
    }
    .site-header .hnav-link {
        flex: 1 1 auto;
        padding: 14px 16px;
        color: var(--brown);
        font-size: 16px;
    }
    .has-drop > .hnav-link {
        padding-right: 16px;
    }
    .has-drop > .hnav-link::before,
    .site-header .hnav-link::after {
        display: none;
    }
    .site-header .hnav-link.is-current {
        color: var(--orange);
    }
    .hnav-toggle {
        display: block;
        width: 52px;
        border: 0;
        border-left: 1px solid #f3ecdc;
        background: none;
        color: var(--brown);
        font-size: 20px;
    }
    .hnav-toggle .fa {
        transition: transform .2s;
    }
    .hnav-item.is-open .hnav-toggle .fa {
        transform: rotate(180deg);
    }
    .hnav-drop,
    .hnav-item:hover > .hnav-drop,
    .hnav-item:focus-within > .hnav-drop {
        position: static;
        display: none;
        flex: 1 1 100%;
        min-width: 0;
        padding: 0 8px 10px 16px;
        border-radius: 0;
        box-shadow: none;
        background: var(--white);
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .hnav-item.is-open > .hnav-drop {
        display: block;
    }
    .hnav-drop.is-wide .hnav-sub {
        column-count: 1;
        width: auto;
    }
    .site-header .hnav-sub a {
        padding: 10px 12px;
        font-size: 15px;
    }
    .site-nav-foot {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
        padding: 16px;
        background: var(--cream);
        color: var(--brown);
        font-size: 15px;
    }
    .site-nav-foot span {
        color: var(--text-muted);
        font-size: 13px;
    }
}
body.nav-locked {
    overflow: hidden;
}

/* ===== home: the three section banners (old photos, two halves + one wide) with text and a button ===== */
.home-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 13px 28px;
}
.home-banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--brown);
    box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
    transition: box-shadow .25s;
}
.home-banner:hover,
.home-banner:focus {
    color: var(--brown);
    text-decoration: none;
    box-shadow: 0 18px 36px -20px rgba(69, 35, 31, .6), 0 0 0 1px var(--line-strong);
}
.home-banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s;
}
.home-banner:hover img {
    transform: scale(1.04);
}
.home-banner.is-wide {
    grid-column: 1 / -1;
}
/* the photos have an empty right half: the text goes there */
.home-banner-text {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    width: 50%;
    padding: 0 24px 0 8px;
}
/* the wide photo has goods on both sides: the text in the middle */
.home-banner.is-wide .home-banner-text {
    left: 0;
    width: auto;
    align-items: center;
    text-align: center;
}
.home-banner-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}
/* the gap between the goods of the wide photo is ~280px: a long name (it comes from the admin) wraps there instead of running over a jar */
.home-banner.is-wide .home-banner-title {
    max-width: 280px;
    font-size: 32px;
    line-height: 1.05;
    text-wrap: balance;
}
.home-banner-sub {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.35;
}
.home-banner-go {
    margin-top: 6px;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    background: var(--action);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}
.home-banner:hover .home-banner-go {
    background: var(--action-hover);
}
@media (max-width: 991px) {
    .home-banner-title {
        font-size: 28px;
    }
    .home-banner-sub {
        font-size: 13px;
    }
}
@media (max-width: 767px) {
    .home-banners {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 16px 0 20px;
    }
    /* too narrow for text between the two halves of the wide photo: its left half and the text beside it */
    .home-banner.is-wide {
        aspect-ratio: 685 / 280;
        min-height: 160px; /* the three-line title and the button on 360px phones */
        width: 100%; /* else the width follows the min-height through the ratio: 391px in a 360px column */
    }
    .home-banner.is-wide img {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
    }
    .home-banner.is-wide .home-banner-text {
        left: auto;
        width: 50%;
        align-items: flex-start;
        text-align: left;
    }
    .home-banner-title {
        font-size: 26px;
    }
    .home-banner-go {
        padding: 7px 16px;
    }
    /* a long section name (it comes from the admin) is wider than half a phone at 26px */
    .home-banner.is-wide .home-banner-title {
        font-size: 20px;
        hyphens: auto;
    }
}

/* ===== one look for every page (19.10.2026): the theme's caps, black and grey replaced by the brand ones ===== */
/* the brown band behind the header: the theme made it 520px for its tall header; now it reaches the same ~60px
   into the white content box everywhere */
body {
    background: var(--cream); /* the theme's brown photo (header-bkg2.jpg) stretched to ~400px under the content */
}
body:before {
    height: 255px;
}
@media (max-width: 767px) {
    body:before {
        height: 185px;
    }
    /* crumbs in 2-3 lines push the white box below the 185px band: the wrapper carries the brown down to the box
       (its 20px margin was the cream strip) */
    .wrap-breadcrumb {
        margin-bottom: 0;
        padding-bottom: 20px;
        background: var(--brown); /* the palette brown: one level off the theme band, invisible */
    }
}

/* page titles and section headings: the theme set every h1/h2 in a .container to 18px black caps */
.container h1 {
    margin: 0 0 18px;
    color: var(--brown);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}
.container h1.page-title-br-top-bottom {
    padding: 0;
    border: 0;
}
.container h2 {
    color: var(--brown);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}
.box-heading,
.czcategory_block .box-heading {
    color: var(--brown);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none !important;
}
@media (max-width: 767px) {
    .container h1 {
        font-size: 24px;
    }
    .container h2 {
        font-size: 19px;
    }
    .box-heading,
    .czcategory_block .box-heading,
    .productpage .product-similar-title,
    .article-more-head h2 {
        font-size: 20px;
    }
}
/* section headings start at the left edge like the content under them («Новинки» was centred, «Похожие товары» not) */
.latest-wrapper .box-head,
.latest-wrapper .box-heading {
    text-align: left;
}
.latest-wrapper .box-heading {
    padding-left: 15px; /* the gutter of the cards under it */
}
@media (max-width: 767px) {
    .latest-wrapper .box-heading {
        padding-left: 6px;
    }
}

/* left column of text pages, the catalog and the account */
#column-left .box .box-heading,
#column-right .box .box-heading {
    margin: 0 0 8px;
    padding: 6px 0 10px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    color: var(--brown);
    font: 700 16px/1.3 "Open Sans", sans-serif;
    letter-spacing: 0;
    text-transform: none !important;
}
#column-left .box-category a {
    display: block;
    padding: 5px 0;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.4;
}
#column-left .box-category a:hover,
#column-left .box-category a:focus {
    color: var(--orange);
    text-decoration: none;
}
/* the catalog tree (contacts page): plain lists, no +/- boxes */
#column-left .treeview .hitarea {
    display: none;
}
#column-left .treeview li {
    padding-left: 0;
    background: none;
}
#column-left .treeview > li.collapsable > a,
#column-left .treeview > li.expandable > a {
    margin-top: 6px;
    color: var(--brown);
    font-weight: 700;
}
#column-left .treeview ul {
    display: block !important;
    padding-left: 12px;
}

/* buttons: the theme's black ones in brand colours (.btn.btn-primary: bootstrap.min.css loads after this file) */
.btn.btn-primary,
.btn.btn-primary:focus {
    border: 1px solid var(--action);
    border-radius: var(--radius-sm);
    background: var(--action);
    color: var(--white);
    text-transform: none;
}
.btn.btn-primary:hover,
.btn.btn-primary:active,
.btn.btn-primary.active {
    border-color: var(--action-hover);
    background: var(--action-hover);
    color: var(--white);
}

/* fields of public forms (contacts, reviews): the checkout look */
#content .support-form .form-control,
#content .support-form textarea {
    height: auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: none;
    font-size: 15px;
}
#content .support-form .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(210, 94, 22, .15);
}
#content .support-form label {
    color: var(--brown);
    font-size: 14px;
    font-weight: 600;
}
@media (max-width: 767px) {
    #content .support-form .form-control {
        font-size: 16px; /* no iOS zoom */
    }
}

/* shops: list as cards, page with a facts box */
.shops-lead {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.6;
}
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.shop-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-body);
    transition: border-color .2s, box-shadow .2s;
}
.shop-card:hover,
.shop-card:focus {
    border-color: var(--line-strong);
    box-shadow: 0 12px 26px -18px rgba(69, 35, 31, .55);
    color: var(--text-body);
    text-decoration: none;
}
.shop-card-city {
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.shop-card-name {
    color: var(--brown);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
.shop-card-line {
    font-size: 14px;
    line-height: 1.45;
}
.shop-card-line .fa {
    width: 16px;
    color: var(--text-muted);
}
.shop-card-more {
    margin-top: 4px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 600;
}
.shops-map {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.shops-map iframe {
    display: block;
    width: 100%;
    height: 440px;
}
@media (max-width: 767px) {
    .shops-map iframe {
        height: 320px;
    }
}
.shop-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.shop-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 24px;
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--cream);
}
.shop-facts dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.shop-facts dd {
    margin: 2px 0 0;
    color: var(--brown);
    font-size: 15px;
    font-weight: 600;
}
.shop-facts a {
    color: var(--orange);
}

/* manufacturers page: the importer once on top, makers as cards (classes set in the page text) */
.rich-text .maker-importer {
    padding: 14px 18px;
    border-left: 3px solid var(--orange);
    border-radius: 0 10px 10px 0;
    background: var(--cream);
    color: var(--text-body);
    font-size: 14px;
}
.rich-text .maker-importer strong {
    color: var(--brown);
    font-size: 15px;
}
.rich-text ul.maker-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}
.rich-text ul.maker-list li {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--grey-666);
    font-size: 14px;
    line-height: 1.5;
}
.rich-text ul.maker-list li::before {
    content: none;
}
.rich-text ul.maker-list li strong {
    color: var(--brown);
    font-size: 16px;
}
@media (max-width: 767px) {
    #content h1.product-title {
        font-size: 24px;
    }
}

/* phones: the account icon; a dot when signed in */
.site-header .site-account-link {
    position: relative;
    color: var(--cream);
    text-decoration: none;
}
.site-account-link.is-signed::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 8px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--brown);
    border-radius: 50%;
    background: var(--orange);
}

/* product page gallery (gallery_controller.js): a scroll-snap strip with one photo per view, thumbnails under it,
   dots instead of them on phones */
.product-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.product-gallery-track::-webkit-scrollbar {
    display: none;
}
.product-gallery-track > a {
    flex: 0 0 100%;
    scroll-snap-align: center;
}
.product-gallery-track img {
    width: 100%;
    height: auto;
}
.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.product-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
}
.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
    border-color: var(--orange);
}
.product-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 767px) {
    .product-gallery-thumb {
        width: 10px;
        height: 10px;
        border: 0;
        border-radius: 50%;
        background: var(--line-strong);
    }
    .product-gallery-thumb.is-active {
        background: var(--orange);
    }
    .product-gallery-thumb img {
        display: none;
    }
}

/* phones: the price and the button before the description (variant Б, the owner, 08.11.2026). By `order`, not a second copy
   of the markup: the desktop column keeps its order. `contain`: a photo gets side fields rather than a cut product. */
.product-buy-bar {
    display: none;
}
@media (max-width: 767px) {
    .product-gallery-track > a.thumbnail {
        height: 260px;
        padding: 0;
        border: 0;
        background: var(--white);
    }
    .product-gallery-track > a.thumbnail img {
        height: 260px;
        object-fit: contain;
    }
    .product-gallery-thumbs {
        margin: 8px 0 10px;
    }
    .productpage .product-right {
        display: flex;
        flex-direction: column;
    }
    .productpage .product-right > * {
        order: 3;
    }
    .productpage .product-right > .product-title {
        order: 1;
    }
    .productpage .product-right > .product-price-row {
        order: 2;
    }
    .productpage .product-right > #product,
    .productpage .product-right > .out-of-stock-note {
        order: 4;
    }
    .productpage .product-right > .attr {
        order: 5;
    }
    .productpage .product-right > .product-taste {
        order: 6;
    }
    .productpage .product-right > .product-brew {
        order: 7;
    }
    .productpage .product-right > .product-perks {
        order: 8;
    }
    .product-buy-bar:not([hidden]) {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--line-strong);
        background: var(--white);
    }
    .product-buy-bar-info {
        flex: 1;
        min-width: 0;
        font-size: 17px;
        line-height: 1.3;
        color: var(--brown);
    }
    .product-buy-bar-choice {
        display: block;
        font-size: 12px;
        line-height: 1.4;
        color: var(--text-body);
    }
    #content.productpage .product-buy-bar .btn-primary {
        width: auto;
        margin: 0;
        padding: 8px 22px;
    }
    body:has(.product-buy-bar) {
        padding-bottom: 70px;
    }
}

/* keyboard focus: one visible ring everywhere (the theme had removed it for all; :root beats Bootstrap's a:focus) */
:root :focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* 404 page (templates/bundles/TwigBundle/Exception/error404.html.twig) */
.error-page {
    padding: 40px 0 60px;
    text-align: center;
}
.error-page-links .btn {
    width: auto; /* with its margins the whole width of a phone sticks out of the screen */
    margin: 4px;
}

/* fields: what was typed reads darker than the hint (the theme had it the other way round, a filled field looked empty);
   16px on phones, or iOS zooms the page into the field */
.form-control,
#content .form-control {
    color: var(--text-strong);
}
.form-control::placeholder,
#content .form-control::placeholder {
    color: var(--grey-999);
    opacity: 1;
}
@media (max-width: 767px) {
    .form-control,
    #content .form-control,
    .checkout-form .form-control,
    .account-form .form-control {
        font-size: 16px;
    }
}

/* the theme's hover of the product page's «В корзину» was black (0,4,0, stronger than .btn.btn-primary:hover) */
/* the theme paints this button in the old orange */
.quickview .form-group.qty .btn-lg,
.productpage .form-group.qty .btn-lg {
    margin-top: 0;
    border-color: var(--action);
    background: var(--action);
}
.quickview .form-group.qty .btn-lg:hover,
.productpage .form-group.qty .btn-lg:hover {
    background: var(--action-hover);
    border-color: var(--action-hover);
}

/* ===== shop buttons (27.10.2026; the owner: no caps anywhere) — three roles, as in the admin kit =====
   primary: orange, its own classes (.btn-primary, .btn-checkout, .card-buy...); secondary: .btn-default, white with the
   #e3d6bb outline; a link: .btn-link, orange text. One radius 6px. The theme made .btn caps, .btn-default black, .btn-link
   Bootstrap blue and .btn-sm square. */
.btn {
    text-transform: none;
    border-radius: var(--radius-sm);
}
.btn-default {
    background: var(--white);
    border-color: var(--line-strong);
    color: var(--brown);
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
    background: var(--white);
    border-color: var(--orange);
    color: var(--orange);
}
.btn-link {
    color: var(--orange);
}
.btn-link:hover,
.btn-link:focus {
    color: var(--orange-hover);
}

/* ===== shop fields (27.10.2026): one look everywhere — the cream outline, radius 6, an orange outline in focus, red with
   an error. The account had square grey fields, the contacts 8px, the checkout 4px. The quantity stepper is not a field. ===== */
.form-control:not(.input-pred-car) {
    border-color: var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: none;
}
.form-control:not(.input-pred-car):focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(210, 94, 22, .15);
    outline: none; /* the border and the glow show the focus, for the mouse and the keyboard alike */
}
.form-control.is-valid {
    border-color: var(--green);
}
.form-control.is-invalid {
    border-color: var(--danger);
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(176, 65, 62, .15);
}

/* phones: the left column is a collapsed list at the bottom; where the page already has its own phone navigation (the
   subcategory chips of the catalog, the tabs of the account) it said the same thing twice */
@media (max-width: 767px) {
    /* the theme forces the column with `.layout-2.left-col #column-left { display: block !important }` (1,2,0) */
    body:has(.subcat-chips) #column-left.col-sm-3,
    body:has(.account-tabs) #column-left.col-sm-3 {
        display: none !important;
    }
}

/* a lone description (no «О бренде» beside it) is a section like «Похожие товары»: a left heading, no tab frame */
#tabs_info > .product-similar-title {
    margin: 0 0 12px;
    text-align: left;
}
#tabs_info > .product-similar-title + .tab-content {
    padding: 0;
    border: 0;
    background: none;
}

/* account: «Выйти» beside the phone only where the column with it is hidden (phones); the phone's own «на других устройствах» */
@media (min-width: 768px) {
    .account-head-logout,
    .account-logout-all-xs {
        display: none;
    }
}
/* payment cards: 2 x 2 instead of 3 + 1 (a lone «ЕРИП» in the second row) */
.choice-cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
/* the trash of a cart line: a target of 44px on phones, not 13px */
@media (max-width: 767px) {
    .cart-item-remove {
        min-width: 44px;
        min-height: 44px;
        font-size: 18px;
    }
}

/* ===== «Акции» (/promotions): the tiles are the blog's .post-card; the cover shows the percent ===== */
.promo-cover {
    position: relative;
}
.promo-cover-percent {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: var(--cream);
}
/* a mark on a tile: a chip of radius 11 in the top left corner (the shop's rule) */
.promo-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 14px;
}
.promo-card-note {
    font-size: 14px;
    color: var(--brown);
}
.promo-percent {
    margin: 0 0 14px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--orange);
}
.promo-picture {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
}
.promo-terms {
    margin: 22px 0 8px;
    padding: 18px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--cream);
}
#content .promo-terms-title {
    margin: 0 0 12px;
    font-size: 20px;
}
.promo-terms-list {
    margin: 0;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--brown);
}
.promo-card-code {
    margin: 0 0 14px;
    padding: 8px 10px;
    border: 1px dashed var(--orange);
    border-radius: var(--radius-sm);
    background: var(--white);
}
.promo-card-code strong {
    letter-spacing: 1px;
}
.promo-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.promo-steps li {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--cream);
    font-size: 15px;
    color: var(--brown);
}
.promo-steps .checkout-step-num {
    flex: none;
}
.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}
/* the shop's main button has a margin on top and is full width on phones: beside another button the pair came apart */
.promo-actions .btn {
    margin: 0;
}
@media (max-width: 767px) {
    .promo-steps {
        grid-template-columns: 1fr;
    }
    .promo-terms {
        padding: 14px 16px;
    }
    .promo-actions .btn {
        width: 100%;
    }
}
