@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
:root{--cream:#fdf9f0;--paper:#fff;--ink:#191716;--muted:#665f53;--yellow:#f9c200;--orange:#fc910f;--line:#d9d1c1;--green:#355b3a;--surface:#f0eadc;--dark:#2b2b2b;--radius:12px;--ease:cubic-bezier(.2,.7,.2,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.5 'Open Sans',sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;transition:background .18s var(--ease),transform .18s var(--ease)}button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;background:#e8e4da!important;color:#6b665e!important}a{color:inherit;text-underline-offset:4px}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #9c6800;outline-offset:3px}::selection{background:#ffe186;color:var(--ink)}input,textarea{caret-color:#8b6200}input[type=checkbox]{accent-color:#8b6500;width:22px;height:22px;flex-shrink:0}input::placeholder,textarea::placeholder{color:#70685b;opacity:1}[hidden]{display:none!important}.skip{position:absolute;top:-80px;background:var(--yellow);padding:12px;z-index:20}.skip:focus{top:0}header{background:var(--dark);color:white}.header-inner{max-width:1440px;padding:18px 24px;margin:auto;display:flex;align-items:center;gap:32px}.brand{display:flex;flex-shrink:0}.brand .original-logo{width:118px;height:42px;object-fit:contain}.header-label{font-size:14px;color:#e0dcd3}.header-inner nav{display:flex;gap:24px;margin-left:auto;align-items:center;font-size:14px}.header-inner a{text-decoration:none;min-height:44px;display:inline-flex;align-items:center}.header-cart{gap:10px}.header-cart span{display:grid;place-items:center;background:var(--yellow);color:var(--ink);min-width:28px;height:28px;border-radius:6px;font-weight:700}main{max-width:1440px;margin:auto;padding:0 24px}h1,h2,h3{line-height:1.2;letter-spacing:-.025em;text-wrap:balance}h1{font-size:40px;font-weight:700;margin:0 0 16px}h2{font-size:28px;margin:0 0 16px}h3{font-size:20px}.intro{padding:44px 0 30px;display:flex;align-items:end;justify-content:space-between;gap:30px}.intro p{max-width:640px;margin:0;color:var(--muted)}.intro-link{display:inline-flex;align-items:center;justify-content:center;background:var(--yellow);min-height:48px;padding:12px 22px;border-radius:8px;text-decoration:none;font-weight:600;white-space:nowrap}.catalog-section{padding-top:12px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.section-head h2{margin:0;font-size:24px}#product-count{font-size:16px;color:var(--muted);font-weight:400;letter-spacing:0;margin-left:8px}.sync{font-size:13px;color:var(--muted);text-align:right}.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:start}.catalog-main{min-width:0}.search-row{display:flex;gap:16px;align-items:center}.search{display:flex;gap:12px;align-items:center;background:white;border:1px solid var(--line);border-radius:8px;padding:0 14px;flex:1;min-width:0;min-height:48px}.search input{width:100%;min-width:0;border:0;background:transparent;padding:12px 0;outline-offset:0}.search:focus-within{outline:2px solid #9c6800;outline-offset:2px}.search svg{flex-shrink:0}.stock-filter{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;white-space:nowrap}.categories{display:flex;gap:8px;flex-wrap:wrap;padding:20px 0}.category{border:0;background:var(--surface);padding:10px 14px;border-radius:6px;font-size:14px;min-height:44px}.category:hover{background:#e6dcc7}.category.active{background:var(--dark);color:white}.results-bar{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:14px;margin:0 0 16px;gap:16px}.results-bar label{display:flex;align-items:center;gap:8px}.results-bar select{border:1px solid var(--line);background:white;border-radius:6px;padding:10px;font-size:14px;max-width:210px;min-height:44px}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product{background:white;border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;min-width:0}.product-image{aspect-ratio:4/3;background:#f6f3eb;position:relative;overflow:hidden;border-radius:8px;display:grid;place-items:center}.product-image img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;padding:10px;mix-blend-mode:multiply}.product--noimage .product-image{display:none}.product-content{padding-top:14px;display:flex;flex-direction:column;flex:1;min-width:0}.product--noimage .product-content{padding-top:0}.product-code{font-size:13px;color:var(--muted)}.product-name{font-size:16px;line-height:1.45;font-weight:600;margin:8px 0 14px;overflow-wrap:anywhere}.availability{font-size:14px;color:var(--green);margin:0 0 10px}.availability.unavailable{color:var(--muted)}.product-bottom{margin-top:auto}.price{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;display:block}.price small{font-size:14px;font-weight:400;color:var(--muted)}.price.unknown{font-size:16px}.add{width:100%;background:var(--surface);border:0;border-radius:8px;margin-top:12px;min-height:46px;font-size:15px;font-weight:600}.add:not(:disabled):hover{background:var(--yellow)}.quantity{display:flex;align-items:center;border-radius:8px;background:var(--yellow);margin-top:12px;min-height:46px}.quantity button{background:none;border:0;width:44px;min-height:46px;flex-shrink:0;font-size:20px}.quantity input{width:100%;min-width:0;border:0;text-align:center;background:transparent;font-size:16px;appearance:textfield;-moz-appearance:textfield;min-height:44px}.quantity input::-webkit-inner-spin-button{appearance:none}.order{position:sticky;top:20px;border-radius:var(--radius);background:white;padding:22px;min-width:0;scroll-margin-top:20px}.order-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.order h2{font-size:24px;margin:0}.order-heading>span{font-size:13px;color:var(--muted)}.empty-cart{padding:38px 0;color:var(--muted)}.empty-cart h3{font-size:18px;color:var(--ink);margin:0 0 10px}.empty-cart p{font-size:15px;margin:0}.order-total{display:flex;justify-content:space-between;align-items:baseline;background:var(--cream);padding:14px;font-size:16px;gap:12px;margin-top:16px}.order-total strong{font-size:26px;font-variant-numeric:tabular-nums;white-space:nowrap}.delivery-note{font-size:14px;color:var(--muted);line-height:1.6;margin:16px 0 20px}.primary{width:100%;border:0;border-radius:8px;min-height:48px;background:var(--yellow);font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:16px;padding:12px 18px}.primary:not(:disabled):hover{background:#e9b600}.cart-lines{max-height:48vh;overflow:auto}.cart-line{padding:18px 0;border-bottom:1px solid var(--line)}.cart-line h3{font-size:15px;line-height:1.4;font-weight:600;letter-spacing:0;margin:0 0 10px}.cart-line-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.cart-line-bottom .quantity{width:140px;margin:0;background:var(--surface)}.line-total{font-size:15px;font-weight:600;margin-left:auto}.remove{border:0;background:transparent;color:var(--muted);font-size:24px;min-width:44px;min-height:44px}.notice{background:#fff0c9;padding:16px;border-radius:8px;font-size:15px;margin-bottom:20px}.loading,.no-results{grid-column:1/-1;background:var(--surface);padding:40px 24px;border-radius:var(--radius);color:var(--muted)}.more{border:1px solid var(--line);background:transparent;width:100%;padding:14px;border-radius:8px;margin-top:24px;font-size:16px;min-height:48px}.help{padding:48px 0;margin-top:40px;display:grid;grid-template-columns:1fr 1fr;gap:24px;background:var(--surface);border-radius:12px;padding-left:24px;padding-right:24px}.help h2{font-size:28px}.help p{margin:0;color:var(--muted)}.contact-links{display:flex;flex-wrap:wrap;gap:12px;align-content:center}.contact-phone{font-size:22px;font-weight:600;display:flex;align-items:center;min-height:48px;white-space:nowrap}.messenger-links{display:flex;flex-wrap:wrap;gap:12px;width:100%}.messenger-links a{min-height:44px;padding:10px 16px;background:white;border-radius:8px;text-decoration:none}footer{max-width:1440px;margin:auto;display:flex;gap:24px;flex-wrap:wrap;padding:28px 24px;font-size:14px;color:var(--muted)}footer>a:first-of-type{margin-left:auto}dialog{border:0;padding:28px;border-radius:16px;width:min(600px,calc(100% - 24px));max-height:90dvh;background:var(--cream);color:var(--ink);box-shadow:0 20px 80px #19171640}dialog::backdrop{background:#19171699}.dialog-head{display:flex;justify-content:flex-end}.icon-button{border:0;background:var(--surface);border-radius:8px;min-width:44px;min-height:44px;font-size:26px}.dialog-lead{font-size:16px;color:var(--muted);margin:12px 0 24px}form label:not(.consent){display:flex;flex-direction:column;gap:8px;font-size:15px;margin-bottom:18px}form input:not([type=checkbox]),form textarea{background:white;border:1px solid var(--line);border-radius:8px;padding:12px;width:100%;font-size:16px;min-height:46px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.consent{display:flex;gap:10px;font-size:14px;align-items:flex-start;line-height:1.5}.consent input{margin-top:2px}.form-summary{display:flex;justify-content:space-between;gap:12px;margin:24px 0 16px;font-size:16px}.form-summary b{font-size:24px;white-space:nowrap}.mode-note{font-size:14px;color:var(--muted)}#form-message{background:#fff0c9;padding:16px;border-radius:8px;margin-bottom:18px;font-size:15px}.mobile-cart{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1200px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}.header-label{display:none}}
@media(max-width:900px){.catalog-layout{grid-template-columns:1fr}.order{position:static}.cart-lines{max-height:none}.intro{align-items:start}.help{grid-template-columns:1fr}}
@media(max-width:600px){main{padding:0 16px}.header-inner{padding:12px 16px;gap:16px}.brand .original-logo{width:98px;height:38px}.header-inner nav{gap:14px;font-size:14px}.header-inner .franchise-link{display:none}.intro{display:block;padding:30px 0 24px}.intro h1{font-size:32px}.intro-link{margin-top:20px}.section-head{display:block}.section-head h2{font-size:24px}.sync{text-align:left;margin-top:8px}.search-row{flex-wrap:wrap}.search{flex-basis:100%}.stock-filter{font-size:15px}.categories{gap:8px}.category{font-size:14px}.results-bar{align-items:start;flex-direction:column;gap:8px}.results-bar label{width:100%;justify-content:space-between}.products{gap:12px}.product{padding:12px}.product-code{font-size:13px}.product-name{font-size:15px}.availability{font-size:14px}.price{font-size:22px}.order{padding:18px}.help{padding:32px 0;margin-top:32px}.help h2{font-size:26px}.contact-phone{font-size:21px}footer{padding:24px 16px 108px;flex-direction:column;gap:16px}footer>a:first-of-type{margin-left:0}.mobile-cart:not([hidden]){display:flex;position:fixed;z-index:5;bottom:max(12px,env(safe-area-inset-bottom));left:12px;right:12px;background:var(--dark);color:white;padding:14px 18px;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;font-size:16px;min-height:52px}.mobile-cart b{color:var(--yellow)}.form-grid{grid-template-columns:1fr;gap:0}dialog{padding:18px}.form-summary b{font-size:21px}}
@media(max-width:480px){.products{grid-template-columns:1fr}.product{display:grid;grid-template-columns:90px minmax(0,1fr);gap:14px}.product--noimage{grid-template-columns:1fr}.product-image{aspect-ratio:1;align-self:start}.product-content{padding-top:0}.product-name{font-size:16px}.product-code{font-size:13px}.product-bottom{grid-column:1/-1}.product .price{font-size:23px}.quantity button{width:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

.category-buttons{display:flex;flex-wrap:wrap;gap:8px}.category-select{display:none}@media(max-width:600px){.category-buttons{display:none}.category-select{display:flex;flex-direction:column;gap:8px;width:100%;font-size:14px;color:var(--muted)}.category-select select{min-height:48px;padding:10px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);font-size:16px;width:100%}.help{padding:24px 16px}.cart-line .product-name{font-size:15px}}

/* Мобильная выдача: товары сразу после поиска, настройки — по запросу. */
.filter-trigger,.active-filters{display:none}.filter-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.filter-heading h2{font-size:24px;margin:0}.filter-heading .icon-button{flex-shrink:0}#filter-form select{width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:white;font-size:16px}#filter-form .filter-stock{flex-direction:row;align-items:center;gap:12px;min-height:48px;margin:8px 0 24px}.filter-actions{display:flex;align-items:center;gap:12px;padding-top:12px}.filter-actions>button{min-height:48px}#reset-filters{background:transparent;border:0;padding:12px;font-size:15px;text-decoration:underline;text-underline-offset:4px}.filter-actions .primary{flex:1}
@media(max-width:900px){
.storefront .header-inner{padding-top:8px;padding-bottom:8px}.storefront .catalog-section{padding-top:18px}.storefront .section-head{margin-bottom:14px}.storefront .section-head h2{font-size:24px}.storefront .section-head .sync:not(.stale){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.storefront .section-head .sync.stale{font-size:13px;margin-top:6px}
.storefront .search-row>.stock-filter,.storefront #categories,.storefront .results-bar>label{display:none}.storefront .search-row{gap:0}.storefront .results-bar{flex-direction:row;align-items:center;justify-content:space-between;margin:8px 0 12px;gap:12px}.storefront .filter-trigger{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:white;font-size:14px;order:2}.storefront #results-count{font-size:13px}.storefront .active-filters:not([hidden]){display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.active-filters button{min-height:44px;max-width:100%;padding:8px 12px;background:var(--surface);border:0;border-radius:6px;font-size:14px;text-align:left;overflow-wrap:anywhere}.active-filters button span{font-size:20px;padding-left:8px}
#filter-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:90dvh;border-radius:18px 18px 0 0;padding:24px 20px max(20px,env(safe-area-inset-bottom));overflow:auto}body:has(#filter-dialog[open]){overflow:hidden}.storefront .notice{font-size:14px;padding:12px;margin-bottom:12px}
}

/* Исходный hero восстановлен по прямому выбору владельца. */
.storefront .intro{position:relative;clip-path:none;width:auto;height:auto;display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:0;margin:28px 0 24px;padding:0;background:#f4f0e4;border-radius:26px;overflow:hidden;min-height:342px}.intro-copy{padding:32px 24px 30px 40px}.intro-copy .eyebrow{font-size:12px;font-weight:600;color:#945200;display:flex;gap:8px;align-items:center}.intro-copy .eyebrow span{width:6px;height:6px;border-radius:50%;background:#e39320}.storefront .intro h1{font-size:56px;line-height:1.12;margin:20px 0 18px;letter-spacing:-.036em}.intro-copy p{font-size:15px;color:#6b675e;margin:0 0 16px}.storefront .intro .intro-link{display:inline-flex;align-items:center;justify-content:flex-start;gap:24px;background:none;padding:0;min-height:44px;font-weight:600;font-size:14px;margin:0}.intro-link span{width:30px;height:30px;display:grid;place-items:center;background:var(--yellow);border-radius:50%}.intro-art{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f6efda;min-width:0}.intro-art svg{width:92%;max-height:300px}.art-caption{position:absolute;top:24px;right:24px;font-size:12px;color:#716346;transform:rotate(5deg)}.art-note{font-size:11px;letter-spacing:.04em;color:#716346;margin:0 0 16px}
.storefront .desktop-sort{position:relative;min-width:0;display:block}.storefront .desktop-sort select,.storefront .category-select select{appearance:none;-webkit-appearance:none;width:100%;height:48px;min-width:0;max-width:none;padding:0 36px 0 12px;line-height:normal;font-size:14px;border:1px solid var(--line);border-radius:8px;background-color:white;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23665f53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat}
@media(min-width:901px){.storefront .catalog-section{padding-top:0}.storefront .section-head{margin-bottom:14px}.storefront .search-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(150px,200px) auto 202px;gap:12px}.storefront .search{min-width:0}.storefront #categories{padding:0;min-width:0;display:block}.storefront .category-buttons{display:none}.storefront .category-select{display:block;font-size:0;width:100%}.storefront .stock-filter{font-size:13px;gap:6px}.storefront .results-bar{margin:8px 0 12px;min-height:20px;font-size:13px}.storefront #results-count{line-height:20px}}
@media(min-width:901px) and (max-width:1200px){.storefront .search-row{grid-template-columns:minmax(160px,1fr) 202px}.storefront .search{grid-column:1}.storefront #categories{grid-column:2}.storefront .stock-filter{grid-column:1}.storefront .desktop-sort{grid-column:2}.storefront .intro h1{font-size:46px}.intro-copy{padding-left:28px}}
@media(max-width:900px){.storefront .search-row>.desktop-sort{display:none}.storefront .intro{margin:20px 0 24px;min-height:0}.storefront .intro h1{font-size:42px}.intro-copy{padding:28px 24px}.intro-art svg{width:100%}.art-caption{font-size:10px;top:14px;right:14px}}
@media(max-width:600px){.storefront .intro{grid-template-columns:1fr;border-radius:20px}.storefront .intro h1{font-size:clamp(32px,9.8vw,42px);margin:18px 0 16px}.intro-copy{padding:28px 24px 22px}.intro-copy p{font-size:14px;line-height:1.6}.intro-art{height:240px;overflow:hidden}.intro-art svg{height:200px;width:90%;max-height:none;margin-top:0}.art-caption{top:10px;right:16px;font-size:10px}.art-note{position:absolute;left:0;bottom:10px;width:100%;max-width:none;text-align:center;font-size:10px;line-height:1.6;margin:0}.intro-copy .eyebrow{font-size:11px}}

@media(min-width:901px){.storefront .results-bar{display:none}.storefront .search-row{margin-bottom:16px}}
@media(max-width:900px){.storefront .results-bar{justify-content:flex-end}}
.login-page{max-width:460px;margin:60px auto;padding:0 24px}.login-page h1{font-size:32px}.login-page>p{color:var(--muted);margin:16px 0 28px}.logout{border:1px solid #777;background:transparent;color:inherit;border-radius:6px;padding:8px 14px;min-height:44px}@media(max-width:480px){.login-page{margin:32px auto;padding:0 20px}.login-page h1{font-size:28px}.header-inner nav:has(.logout){gap:10px;flex-wrap:wrap;justify-content:flex-end}}

/* Один контур поля при фокусе, без внешней второй рамки. */
input:not([type=checkbox]):focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #9c6800;outline-offset:-2px;border-color:#9c6800}
.search:focus-within{outline:2px solid #9c6800;outline-offset:-2px;border-color:#9c6800}.search input:focus-visible{outline:none}
.field-hint{font-size:13px;color:var(--muted);margin:-8px 0 18px;overflow-wrap:anywhere}

/* Общие поля выбора: единый размер стрелки и отступы на всех страницах. */
body select,.management select,#filter-form select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23665f53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px 16px;padding-right:38px;line-height:1.4;text-overflow:ellipsis}
.price-terms{font-size:14px;line-height:1.5;margin:12px 0;color:var(--ink)}
body:has(dialog[open]){overflow:hidden}input[type=date]{max-width:100%;min-width:0}button,input,select,textarea{-webkit-tap-highlight-color:transparent}
@media(max-width:600px){body:has(.management) .header-inner{gap:12px;padding:10px 16px}body:has(.management) .header-inner nav{gap:8px;font-size:12px;flex-wrap:nowrap}body:has(.management) .header-inner nav>a{max-width:110px;line-height:1.35}body:has(.management) .logout{padding:8px 10px;font-size:12px}body:has(.management) .brand .original-logo{width:90px}.price-terms{font-size:13px}}
