html { scroll-padding-top:72px }
.top { position:sticky; top:0; z-index:12; padding-block:7px; min-height:56px; gap:clamp(12px,2.4vw,36px); background:#fffaf3; box-shadow:0 2px 9px #48382910 }
.top .brand img { width:38px; height:38px }
.top nav { gap:clamp(12px,2vw,28px) }
.top .nav-toggle { display:none }
.top nav [aria-current=page] { color:#225f64; text-decoration:underline; text-underline-offset:4px }
.catalog .tools { display:grid; grid-template-columns:minmax(170px,1fr) minmax(280px,1fr); align-items:end; gap:10px 24px; padding:12px 16px; background:#f4ebdf; border:1px solid #e3d6c6 }
.tools .search { min-width:0 }
.tools .search>span,.category-field>span { position:static; display:block; width:auto; height:auto; margin:0; clip:auto; color:#695349; font-size:12px; font-weight:650 }
.category-field { min-width:0 }
.category-field>span { margin-bottom:5px }
.category-picker { display:flex; align-items:center; gap:0; padding:0 3px; border:1px solid #d5c3ad; border-radius:24px; background:linear-gradient(#e9ddcd,#fff9ee 48%,#ede2d3); box-shadow:inset 0 1px 3px #75624d14; min-width:0 }
.category-picker>button { flex:0 0 34px; min-height:40px; background:transparent; color:#285f61; border:0; font:24px/1 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; cursor:pointer }
.category-picker>button:disabled { opacity:.32; cursor:default }
.category-track { display:flex; align-items:center; position:relative; flex:1; min-width:0; height:40px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent) }
.category-track { user-select:none }
.category-track.dragging { scroll-snap-type:none; cursor:grabbing }
.category-track::-webkit-scrollbar { display:none }
.category-track::before,.category-track::after { content:""; flex:none; width:max(0px,calc((100% - var(--first,0px))/2)) }
.category-track::after { width:max(0px,calc((100% - var(--last,0px))/2)) }
.category-track button { scroll-snap-align:center; flex:none; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:6px 12px; border:1px solid transparent; border-radius:20px; background:transparent; color:#69584b; font:600 13px/1.35 system-ui,sans-serif; cursor:pointer }
.category-track button[aria-checked=true] { border-color:#c3d4c9; background:linear-gradient(#f2f8f2,#deebe1); color:#1e5557; box-shadow:0 1px 2px #4c453020 }
.category-picker button:focus-visible { outline:2px solid #26696e; outline-offset:-3px }
#cartFeedback { position:fixed; z-index:13; right:max(14px,calc((100vw - 1380px)/2)); bottom:max(14px,env(safe-area-inset-bottom)); max-width:min(390px,calc(100% - 28px)); padding:10px 16px; border-radius:12px; background:#214f52; box-shadow:0 3px 14px #0002; color:white; font-size:14px; opacity:0; pointer-events:none; transition:opacity .15s }
#cartFeedback.visible { opacity:1 }
.quick-cart { cursor:pointer }
.quick-cart .cart-tick { display:none }
.quick-cart.in-cart { background:var(--price-color); border-color:var(--price-color); color:#fffaf3 }
.quick-cart.in-cart .cart-tick { display:inline }
@media(prefers-reduced-motion:no-preference) {
  .quick-cart { transition:transform .12s, background-color .15s, color .15s }
  .quick-cart:active { transform:scale(.92) }
}
.pickup-details .seller-details { margin-top:24px; padding-top:18px; border-top:1px solid #e3d6c6 }
.pickup-details .seller-details h2 { margin:0 0 6px; font-size:18px }
.pickup-details .seller-details p { margin:0; line-height:1.55 }
.product-copy { align-self:center }
.product-copy .product-description { display:block; margin:10px 0 18px; font-size:14px; line-height:1.55 }
.product-copy .cart-error:empty { display:none }
#detail.checkout-dialog:has(.customer-account,.shop-auth) { max-width:740px; padding:clamp(20px,4vw,36px); border-radius:20px; background:#fbf6ed }
#detail.checkout-dialog:has(.shop-auth) { max-width:440px }
#detail.checkout-dialog:has(.customer-account,.shop-auth) .dialog-head { height:0; margin:0 }
#detail.checkout-dialog:has(.customer-account,.shop-auth) #close { position:absolute; top:12px; right:12px; width:38px; height:38px }
.customer-account,.shop-auth { color:#48392e }
.customer-account h2,.shop-auth h2 { padding-right:34px }
.profile-identity { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:2px 12px; color:#66584b; font-size:14px }
.profile-link { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:0; background:none; padding:8px 0; color:#235e63; font:650 14px/1.3 system-ui,sans-serif; cursor:pointer }
.profile-link:hover { text-decoration:underline }
.profile-bonus { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 16px; margin:16px 0 24px; border:1px solid #c8dacf; border-radius:16px; padding:clamp(14px,3vw,22px); background:linear-gradient(105deg,#ecf3eb,#d9eae1); color:#234f50 }
.profile-bonus h3 { margin:0; font:700 22px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif }
.profile-bonus p { margin:4px 0 0; font-size:13px }
.profile-bonus>strong { font:700 clamp(30px,5vw,44px)/1 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; white-space:nowrap }
.profile-bonus>strong small { font:600 13px/1 system-ui,sans-serif }
.profile-bonus .bonus-message,.profile-bonus #pendingGifts { grid-column:1/-1 }
.profile-bonus #pendingGifts:empty { display:none }
.profile-history h3 { font:700 23px/1.2 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif }
.profile-orders { display:grid; gap:9px; list-style:none; margin:0; padding:0 }
.profile-order,.profile-empty { border:1px solid #e3d7c7; border-radius:13px; padding:14px 16px; background:#fffdf8 }
.profile-order { display:grid; align-items:end; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px }
.order-heading { grid-column:1/-1; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 12px; font-size:16px }
.order-heading span { font-weight:700; color:#204f52; white-space:nowrap }
.order-meta { min-width:0; font-size:13px; color:#6a594b }
.order-meta b { color:#475e53 }.order-meta p { margin:3px 0 0 }
.profile-order .profile-link { padding:7px 10px; border-radius:8px; background:#edf2eb; font-size:13px }
.profile-order .profile-link i { font-style:normal }
.profile-empty,.shop-auth .auth-intro { color:#655649; font-size:14px }
.customer-account .profile-note,.shop-auth .profile-note { color:#76675c; font-size:12px; margin:15px 0 0 }
.shop-auth form { display:grid; gap:12px; margin-top:18px }
.shop-auth form label { display:grid; gap:5px; margin:0; font-size:14px }
.shop-auth form input { width:100%; margin:0; background:#fffdf9 }
.shop-auth form small { margin-top:-8px; color:#736457 }
.shop-auth form .primary { width:100%; margin:0 }
.shop-auth #authSwitch { width:100%; margin-top:6px }
@media(max-width:860px) {
  html { scroll-padding-top:58px }
  .top.has-menu { display:flex; flex-wrap:nowrap; gap:8px; align-items:center; min-height:50px; padding:4px clamp(8px,2.5vw,18px) }
  .top.has-menu .brand { min-width:0; gap:6px; margin-right:auto }
  .top.has-menu .brand img { width:32px; height:32px }
  .top.has-menu .brand strong { font-size:14px }
  .top.has-menu .brand small { font-size:9px }
  .top.has-menu .nav-toggle { position:relative; display:grid; place-items:center; width:40px; height:40px; flex:none; background:none; border:0; border-radius:9px; color:#275e60; cursor:pointer }
  .nav-toggle span,.nav-toggle span::before,.nav-toggle span::after { display:block; width:19px; height:2px; background:currentColor; border-radius:2px }
  .nav-toggle span::before,.nav-toggle span::after { content:""; position:absolute; transform:translateY(-6px) }
  .nav-toggle span::after { transform:translateY(6px) }
  .nav-toggle[aria-expanded=true] span { background:transparent }
  .nav-toggle[aria-expanded=true] span::before { transform:rotate(45deg) }
  .nav-toggle[aria-expanded=true] span::after { transform:rotate(-45deg) }
  .top:has(#accountUnread:not([hidden])) .nav-toggle::after { content:""; width:7px; height:7px; border-radius:50%; background:#a7394e; position:absolute; top:6px; right:5px }
  .top.has-menu .catalog-cart { flex:none; margin:0; padding:7px 10px; white-space:nowrap }
  .top.has-menu #shopNav { display:none; position:absolute; top:calc(100% + 4px); right:8px; width:min(255px,calc(100vw - 16px)); max-height:calc(100dvh - 64px); overflow:auto; background:#fffaf3; border:1px solid #ded0be; border-radius:14px; padding:6px; box-shadow:0 8px 22px #41332226 }
  .top.has-menu .nav-toggle[aria-expanded=true]+#shopNav { display:grid; grid-template-columns:1fr; gap:0 }
  .top.has-menu #shopNav a { display:block; padding:11px 13px; border-radius:8px; font-size:14px; letter-spacing:normal }
  .top.has-menu #shopNav a:is(:hover,:focus-visible,[aria-current=page]) { background:#e9efe6 }
}
@media(max-width:650px) {
  .catalog .tools { grid-template-columns:minmax(0,1fr); align-items:stretch; gap:8px; padding:8px }
  .tools .search>span,.category-field>span { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
  .tools .search { gap:0 }
  .category-picker>button { flex-basis:32px }
}
@media(max-width:480px) {
  .profile-order { grid-template-columns:minmax(0,1fr); gap:8px }
  .profile-order .profile-link { justify-self:start }
  .product-copy .product-description { margin:6px 0 12px }
}
@media(prefers-reduced-motion:reduce) { #cartFeedback { transition:none } }

.shop-auth .yandex-auth-button {width:100%;margin-top:12px;min-height:44px;background:#1a1a1a;color:white;border:0;border-radius:12px;font:600 16px/1.3 Inter,system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px}
.yandex-auth-button b {font:700 19px/26px system-ui,sans-serif;width:26px;background:#ed3024;color:white;border-radius:50%}
.shop-auth .yandex-auth-button:disabled {opacity:.65}
.customer-account .profile-phone {margin:6px 0;color:#66584b;font-size:14px}
[data-yandex-error]:empty {display:none}
.ozon-payment-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.ozon-payment-actions a.primary { display:inline-flex; align-items:center; min-height:44px; padding:9px 16px; border-radius:10px; background:#226f75; color:white; font-weight:700; text-decoration:none }
.ozon-payment-actions [hidden] { display:none !important }

.product-file-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:12px}
.product-file-grid .product-file-area{min-width:0;padding:14px;border:1px solid #d5ccc0;border-radius:12px;background:#fffcf6;overflow-wrap:anywhere}
.product-file-area h4{margin:0 0 .4em;font-size:1rem}
.product-file-area ul{max-height:12rem;overflow:auto;padding-inline-start:1.2rem}
.product-file-area [hidden]{display:none}

.wb-full-description { margin: 0 0 14px; font-size: .9rem; }
.wb-full-description summary { color: #236364; cursor: pointer; }
.wb-full-description p { white-space: pre-line; line-height: 1.5; overflow-wrap: anywhere; }
[data-bank-actions]:not([hidden]) { display: grid; gap: .55rem; }
[data-bank-actions] a { text-align: center; text-decoration: none; }
.co-shell [hidden] { display: none !important; }
