/* Reference product quick-view */
body.r29-editorial #rp29-product-dialog{border:0;border-radius:6px;width:min(805px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(92dvh,760px);overflow-y:auto;padding:28px;background:var(--rp-ref-bg);color:var(--rp-ref-ink);box-shadow:0 22px 65px #15201930}
body.r29-editorial #rp29-product-dialog::backdrop{background:#26382b88;backdrop-filter:blur(3px)}
body.r29-editorial #rp29-product-dialog .rp29-close{position:absolute;right:15px;top:9px;border:0;background:transparent;color:var(--rp-ref-ink);font:26px Arial;line-height:1;cursor:pointer;z-index:2;padding:8px}
body.r29-editorial .rp29-modal-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:27px}
body.r29-editorial .rp29-modal-photo{height:min(480px,64vh);min-height:280px;background:#e8e9df;display:flex;align-items:center;justify-content:center;padding:14px}
body.r29-editorial .rp29-modal-photo img{height:100%;width:100%;object-fit:contain;display:block}
body.r29-editorial .rp29-modal-info{padding-right:0}
body.r29-editorial .rp29-eyebrow{color:var(--rp-ref-gold);font:700 10px Arial,sans-serif;letter-spacing:1.7px;margin-bottom:10px}
body.r29-editorial .rp29-modal-info h2{font:normal clamp(25px,3vw,35px)/1.1 Georgia,serif;margin:0 0 14px;color:var(--rp-ref-ink)}
body.r29-editorial .rp29-sku{font:9px Arial,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#979b90}
body.r29-editorial .rp29-description{font:13px/1.6 Arial,sans-serif;color:var(--rp-ref-muted);white-space:pre-line;margin:18px 0 14px;overflow-wrap:anywhere}
body.r29-editorial .rp29-mini-bar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:13px 0 18px}
body.r29-editorial .rp29-mini{height:58px;width:46px;padding:3px;border:1px solid transparent;background:#eeefe8;border-radius:4px;cursor:pointer;display:grid;place-items:center}
body.r29-editorial .rp29-mini.active{border-color:var(--rp-ref-gold)}
body.r29-editorial .rp29-mini img{width:100%;height:100%;object-fit:contain}
body.r29-editorial .rp29-mini .r282-color-dot{display:block;width:28px;height:28px;border-radius:50%;border:1px solid #9999}
body.r29-editorial .rp29-mini-count{color:var(--rp-ref-muted);font:10px Arial,sans-serif;margin-left:7px}
body.r29-editorial .rp29-modal-price{font:normal 31px Georgia,serif;margin:14px 0 0}
body.r29-editorial .rp29-per{font:10px Arial,sans-serif;color:var(--rp-ref-muted);margin:3px 0 18px}
body.r29-editorial .rp29-modal-add{border:0;border-radius:4px;background:var(--rp-ref-ink);color:white;width:100%;min-height:45px;padding:12px;font:13px Arial,sans-serif;cursor:pointer}
body.r29-editorial .rp29-modal-add:hover{background:#3b5142}
body.r29-editorial .rp29-modal-qty{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:var(--rp-ref-muted);font:11px Arial}
body.r29-editorial .rp29-modal-qty input{width:65px!important;max-width:65px;min-height:33px;padding:5px 7px!important;margin:0!important;border:1px solid var(--rp-ref-line)!important;border-radius:4px!important;text-align:center;background:white}
/* Exact reference cart drawer using existing order-processing nodes */
body.r29-editorial #cart-overlay{padding:0!important;justify-content:flex-end!important;align-items:stretch!important;background:#25372d85!important;backdrop-filter:blur(3px);}
body.r29-editorial #cart-overlay.visible{display:flex!important}
body.r29-editorial #cart-overlay .shop-panel{width:min(470px,100vw)!important;min-width:0!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;padding:28px 26px 25px!important;background:var(--rp-ref-bg)!important;color:var(--rp-ref-ink)!important;box-shadow:-8px 0 35px #182a2016;overflow-y:auto!important}
body.r29-editorial #cart-overlay .shop-panel:before{content:'ВАШ ВЫБОР';color:var(--rp-ref-gold);display:block;letter-spacing:2px;font:700 10px Arial,sans-serif;margin:9px 0 5px}
body.r29-editorial #cart-heading{font:normal 33px Georgia,serif!important;margin:0 0 25px!important;color:var(--rp-ref-ink)}
body.r29-editorial #cart-overlay .shop-close{font:26px Arial;color:var(--rp-ref-ink)}
body.r29-editorial #cart-overlay .shop-line{position:relative;display:grid;grid-template-columns:66px minmax(0,1fr);align-items:start;gap:11px;padding:18px 0;border-top:0;border-bottom:1px solid var(--rp-ref-line);margin:0}
body.r29-editorial #cart-overlay .shop-thumb{grid-row:span 2;width:65px;height:90px;background:#e8e9df;object-fit:contain;border-radius:0}
body.r29-editorial #cart-overlay .shop-info{grid-column:2;min-width:0}
body.r29-editorial #cart-overlay .shop-name{font:normal 19px/1.25 Georgia,serif;color:var(--rp-ref-ink);padding-right:90px}
body.r29-editorial #cart-overlay .shop-unit{font:10px Arial,sans-serif;color:#92968d;letter-spacing:.3px}
body.r29-editorial #cart-overlay .shop-subtotal{position:absolute;right:0;top:22px;font:12px Arial,sans-serif;color:var(--rp-ref-ink)}
body.r29-editorial #cart-overlay .shop-qty{grid-column:2;display:flex;align-items:center;gap:12px;padding-top:1px}
body.r29-editorial #cart-overlay .shop-qty button{padding:0;width:27px;height:27px;border:1px solid var(--rp-ref-line);border-radius:3px;font:16px Arial,sans-serif;color:var(--rp-ref-ink);background:transparent}
body.r29-editorial #cart-overlay .shop-qty span{min-width:13px;text-align:center;font-size:13px}
body.r29-editorial #cart-total{border:0;border-top:1px solid var(--rp-ref-line);margin-top:10px;padding-top:23px;font:normal 21px Georgia,serif;color:var(--rp-ref-ink);text-align:right}
body.r29-editorial #cart-next,body.r29-editorial #order-send{width:100%;background:var(--rp-ref-ink);border-radius:4px;border:0;font:13px Arial;color:white;min-height:45px;margin-top:16px}
body.r29-editorial #cart-overlay .shop-message{font-size:12px;line-height:1.65;color:var(--rp-ref-muted)}
body.r29-editorial #cart-overlay .shop-checkout{border-top:1px solid var(--rp-ref-line)}
body.r29-editorial #cart-overlay .shop-input{border-radius:4px;border:1px solid var(--rp-ref-line);background:white}
body.r29-editorial #cart-overlay .shop-back{color:var(--rp-ref-ink)}
body.r29-editorial:has(#cart-overlay.visible){overflow:hidden}
/* Prior brand nav and product modal preserve responsive layout */
@media(max-width:820px){body.r29-editorial .brandbar{flex-wrap:wrap;gap:8px}body.r29-editorial .rp29-nav{margin:0;gap:12px}body.r29-editorial .rp29-nav button{display:none}body.r29-editorial #rp29-product-dialog{padding:22px}body.r29-editorial .rp29-modal-layout{gap:14px}}
@media(max-width:620px){body.r29-editorial .rp29-nav{order:3;width:100%;justify-content:flex-start}body.r29-editorial .brandbar #cart-open{order:2;margin-left:auto!important}body.r29-editorial .brandbar .price-pdf{display:none}body.r29-editorial .brandbar .r281-brand-info{display:none}body.r29-editorial .rp29-modal-layout{grid-template-columns:1fr}body.r29-editorial .rp29-modal-photo{height:260px;min-height:260px;padding:6px}body.r29-editorial .rp29-modal-info h2{font-size:25px}body.r29-editorial #rp29-product-dialog{max-height:94dvh;padding:19px 17px}body.r29-editorial .rp29-modal-price{font-size:25px}body.r29-editorial .product .amount{display:flex;flex-wrap:wrap}body.r29-editorial .product .addcart{max-width:100%;font-size:10px}body.r29-editorial #cart-overlay .shop-panel{padding:23px 16px!important}}
@media(prefers-reduced-motion:reduce){body.r29-editorial #rp29-product-dialog::backdrop{backdrop-filter:none}}
/* Fine tuning: close cart button matches reference top right, not default float. */
body.r29-editorial #cart-overlay .shop-panel{position:relative}
body.r29-editorial #cart-overlay .shop-close{float:none;position:absolute;right:18px;top:21px;border:0;background:transparent;font:26px Arial,sans-serif;line-height:1;color:var(--rp-ref-ink);z-index:2;padding:3px 8px;cursor:pointer}
body.r29-editorial #rp29-how-dialog{border:0;border-radius:5px;padding:30px;max-width:min(430px,calc(100vw - 30px));background:var(--rp-ref-bg);color:var(--rp-ref-ink)}
body.r29-editorial #rp29-how-dialog::backdrop{background:#26382b88}
body.r29-editorial #rp29-how-dialog h2{font:normal 27px Georgia,serif;margin:0 0 15px}
body.r29-editorial #rp29-how-dialog p{font:13px/1.7 Arial,sans-serif;color:var(--rp-ref-muted)}
body.r29-editorial #rp29-how-dialog button{border:0;background:var(--rp-ref-ink);color:white;padding:12px 24px;border-radius:4px;width:100%}


/* RIPOPT_V293 — storefront replaces the previous editorial rules. */
body.r29-editorial{--rp-ref-bg:#f7f7f2;--rp-ref-ink:#243c30;--rp-ref-muted:#626c63;--rp-ref-line:#dce1d7;--rp-ref-gold:#9d8760;background:var(--rp-ref-bg);color:var(--rp-ref-ink)}
body.r29-editorial main.catalog{max-width:1380px;padding:0 32px 100px;background:transparent;overflow:visible}
body.r29-editorial .brandbar{display:flex;flex-wrap:wrap;align-items:center;gap:20px;min-height:76px;padding:12px 0;border-bottom:1px solid var(--rp-ref-line)}
body.r29-editorial .brandbar>a:first-child{font:32px Georgia,serif;letter-spacing:2px;color:var(--rp-ref-ink)}
body.r29-editorial .r281-brand-info{margin-right:auto;font-size:12px;color:var(--rp-ref-muted)}
body.r29-editorial .brandbar a,body.r29-editorial .rp29-nav button{color:var(--rp-ref-ink);font-size:13px}
body.r29-editorial .rp29-nav{display:flex;gap:18px;align-items:center}
body.r29-editorial .rp29-nav button{background:none;border:0;cursor:pointer}
body.r29-editorial .brandbar #cart-open{position:static!important;transform:none!important;display:flex;gap:8px;align-items:center;width:auto!important;margin:0!important;padding:12px 16px!important;border:0;border-radius:8px;background:#243c30!important;color:white!important;box-shadow:none!important;font:14px Arial!important;z-index:25}
body.r29-editorial #cart-count{background:#ffffff29;border-radius:15px;padding:3px 7px}
body.r29-editorial #cart-fab-total{display:inline!important;font-size:12px}
body.r29-editorial .top{display:grid;grid-template-columns:1fr 180px;align-items:center;gap:24px;min-height:0;margin:0;padding:24px 0;background:none;border:0;border-radius:0}
body.r29-editorial .r281-hero-copy{padding:0}
body.r29-editorial .top .subtitle{font:11px Arial;letter-spacing:1.8px;margin:0 0 10px;color:#69786a}
body.r29-editorial .top h1{font:normal clamp(26px,3.4vw,44px)/1.12 Georgia,serif;letter-spacing:-.8px;margin:0 0 12px;max-width:700px;color:var(--rp-ref-ink)}
body.r29-editorial .top .intro{font:14px/1.6 Arial;max-width:580px;margin:0;color:var(--rp-ref-muted)}
body.r29-editorial .r281-hero-media{height:165px;min-height:0;margin:0;background:#e8ede4;border-radius:70px 70px 10px 10px;overflow:hidden}
body.r29-editorial .r281-hero-media:before{display:none}
body.r29-editorial .r281-hero-media>img{height:150px;max-height:150px;max-width:95%;object-fit:contain}
body.r29-editorial .catalog-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0;margin:0;background:var(--rp-ref-bg);border:0;border-top:1px solid var(--rp-ref-line);border-radius:0}
body.r29-editorial .catalog-search{flex:1;min-width:200px;max-width:none;background:white;border:1px solid #cbd3c7;border-radius:8px;padding:14px;font-size:15px}
body.r29-editorial .catalog-count{font:12px Arial;color:var(--rp-ref-muted)}
body.r29-editorial .r25-sort-box select{padding:12px;border:1px solid #cbd3c7;border-radius:8px;background:white;max-width:100%}
body.r29-editorial .r281-category-section{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 22px;padding:0;border:0}
body.r29-editorial .r281-categories{display:flex;flex-wrap:wrap;gap:8px}
body.r29-editorial .r281-cat,body.r29-editorial .r282-all-categories{display:flex;align-items:center;min-height:44px;padding:10px 20px;margin:0;background:white;border:1px solid #cbd3c7;border-radius:30px;color:var(--rp-ref-ink);text-decoration:none}
body.r29-editorial .r281-cat-photo,body.r29-editorial .r281-cat-text small,body.r29-editorial .r281-cat-arrow{display:none}
body.r29-editorial .r281-cat-text strong{font:14px Arial}
body.r29-editorial .r281-cat.r282-selected{background:#243c30;border-color:#243c30;color:white}
body.r29-editorial .r281-cat.r282-selected strong{color:white}
body.r29-editorial .product-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
body.r29-editorial .category-title{grid-column:1/-1;font:27px Georgia;margin:8px 0 0;color:var(--rp-ref-ink)}
body.r29-editorial article.product{display:flex;flex-direction:column;min-width:0;border:1px solid #dce1d7;border-radius:12px;background:white;overflow:hidden;box-shadow:none;padding:0}
body.r29-editorial .product-photo{height:270px;background:#eff1ea;padding:16px;cursor:zoom-in}
body.r29-editorial .product-photo img{width:100%;height:100%;object-fit:contain;filter:none}
body.r29-editorial .product-text{padding:16px 16px 8px;min-height:0}
body.r29-editorial .article-id{font:11px Arial;color:#687568;margin-bottom:7px}
body.r29-editorial .name{font:22px/1.15 Georgia;margin:0 0 8px;color:var(--rp-ref-ink)}
body.r29-editorial .description{font:13px/1.5 Arial;margin:0;color:var(--rp-ref-muted)}
body.r29-editorial .product .rg-thumbs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:4px 0;margin:0 16px;min-height:52px}
body.r29-editorial .product .rg-mini{width:40px;height:48px;min-width:40px;border:1px solid #cbd3c7;border-radius:5px;background:#f3f4ee;padding:2px;flex:0 0 40px}
body.r29-editorial .rg-mini img{display:block;width:100%;height:100%;object-fit:contain}
body.r29-editorial .rg-mini.active{outline:2px solid #344d3d;outline-offset:-2px}
body.r29-editorial .rg-variant{font:11px/1.4 Arial;padding:4px 16px 8px;color:#626c63}
body.r29-editorial .product .amount{margin:auto 16px 0;padding:14px 0 16px;border-top:1px solid #e8ebe3;display:grid;grid-template-columns:1fr;gap:10px}
body.r29-editorial .amount strong{font:26px Georgia;color:var(--rp-ref-ink)}
body.r29-editorial .product .quantity-row{position:static!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;display:flex;align-items:center;justify-content:space-between;padding:0!important;margin:0!important;font:12px Arial}
body.r29-editorial .qty-stepper{display:flex;align-items:center}
body.r29-editorial .qty-stepper button{width:36px;height:36px;padding:0;font-size:20px}
body.r29-editorial .product-qty{width:40px!important;min-width:0!important;height:36px;padding:4px!important;text-align:center;margin:0!important}
body.r29-editorial .product .addcart{width:100%!important;min-height:44px;padding:12px!important;margin:0!important;background:#243c30!important;color:white;border:0;border-radius:7px;font:14px Arial;cursor:pointer}
body.r29-editorial button:focus-visible,body.r29-editorial a:focus-visible{outline:2px solid #9d8760;outline-offset:3px}
body.r29-editorial .footer{margin-top:32px;padding:22px 0;border-top:1px solid #dce1d7;font:12px/1.6 Arial;color:#626c63}
body.r29-editorial .hidden-product,body.r29-editorial .r282-category-hidden{display:none!important}
@media(max-width:1050px){body.r29-editorial .product-list{grid-template-columns:repeat(3,minmax(0,1fr))}body.r29-editorial .r281-brand-info{display:none}body.r29-editorial .brandbar{gap:12px}body.r29-editorial .brandbar>a:first-child{margin-right:auto}body.r29-editorial .rp29-nav{display:none}}
@media(max-width:650px){body.r29-editorial main.catalog{padding:0 12px 95px}body.r29-editorial .brandbar{min-height:60px;padding:10px 0}body.r29-editorial .brandbar>a:first-child{font-size:26px}body.r29-editorial .brandbar .price-pdf{display:none}body.r29-editorial .top{grid-template-columns:1fr;padding:20px 0;gap:0}body.r29-editorial .r281-hero-media{display:none}body.r29-editorial .top h1{font-size:28px}body.r29-editorial .top .intro{font-size:13px}body.r29-editorial .catalog-search{flex-basis:100%;min-width:0;padding:12px}body.r29-editorial .product-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.r29-editorial .product-photo{height:210px;padding:10px}body.r29-editorial .product-text{padding:12px 10px 8px}body.r29-editorial .name{font-size:19px}body.r29-editorial .product .amount{margin: auto 10px 0}body.r29-editorial .amount strong{font-size:23px}body.r29-editorial .quantity-row label{display:none}body.r29-editorial .product .quantity-row{justify-content:center}body.r29-editorial .product .rg-thumbs{margin:0 10px}body.r29-editorial .rg-variant{padding:4px 10px 8px}body.r29-editorial .brandbar #cart-open{position:fixed!important;bottom:12px!important;left:12px!important;right:12px!important;width:calc(100% - 24px)!important;justify-content:center;min-height:48px!important;box-shadow:0 4px 25px #243c3040!important}body.r29-editorial .r281-cat,body.r29-editorial .r282-all-categories{padding:10px 16px}}
@media(max-width:360px){body.r29-editorial .product-photo{height:180px}body.r29-editorial .product .addcart{font-size:12px}}
