/* Shared storefront/admin controls. Native semantics and form events are retained. */
#app .section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
#app .section-head .section-title{margin:0;line-height:1.25}
#app .section-head>.text-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;margin:0;padding:10px 16px;border:1px solid #d2d2ca;border-radius:12px;background:#f3f3ee;color:#171717;font:700 13px/1.4 Manrope,Arial,sans-serif;text-decoration:none}
#app .section-head>.text-button:hover{background:#e8e8e1;border-color:#8d8d84}
#app .price-fields{gap:12px}
#app .price-fields label{min-width:0;min-height:54px;padding:0 14px;gap:10px;background:#f6f6f2;border:1px solid #b9b9b2;border-radius:14px;color:#55554f}
#app .price-fields label>span{flex-shrink:0;font:500 14px/1.4 Manrope,Arial,sans-serif}
#app .price-fields input{min-width:0;width:100%;min-height:52px;padding:12px 0;border:0;border-radius:0;background:transparent;color:#171717;box-shadow:none;font:600 16px/1.5 Manrope,Arial,sans-serif}
#app .price-fields input:focus{border:0;box-shadow:none;outline:none}
#app .price-fields label:focus-within{outline:2px solid #171717;outline-offset:3px;border-color:#171717;box-shadow:none}
#app .price-fields input::placeholder{color:#676760;opacity:1}
#app .catalog-pagination{display:grid;grid-template-columns:minmax(88px,1fr) auto minmax(88px,1fr);align-items:center;gap:16px;margin:28px 0 32px;padding:18px 0;border-top:1px solid #deded8;color:#171717}
#app .catalog-pagination button{display:flex;align-items:center;justify-content:center;width:100%;max-width:180px;min-height:48px;padding:12px 18px;border:1px solid #b9b9b2;border-radius:14px;background:#f4f4ef;color:#171717;font:700 14px/1.4 Manrope,Arial,sans-serif;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
#app .catalog-pagination button:last-child{justify-self:end;background:#242422;color:#fff;border-color:#242422}
#app .catalog-pagination button:hover:not(:disabled){background:#45453f;color:#fff;border-color:#45453f}
#app .catalog-pagination button:disabled{background:#eeeee9;color:#696962;border-color:#deded6;opacity:1;cursor:not-allowed;box-shadow:none;transform:none}
#app .catalog-pagination-status{text-align:center;white-space:nowrap;font:500 14px/1.5 Manrope,Arial,sans-serif;color:#55554e}
#app .catalog-pagination-status strong{color:#171717;font-weight:800}
#app .catalog-pagination button:focus-visible{outline:2px solid #171717;outline-offset:3px}
#app .product-card .product-info{container-type:inline-size}
#app .product-card .price{white-space:nowrap;font-size:clamp(14px,13cqi,22px)}
@media(max-width:440px){#app .catalog-pagination{gap:8px;margin-block:22px;padding-block:16px}#app .catalog-pagination button{padding:10px 12px;font-size:13px}#app .catalog-pagination-status{font-size:12px}}
html body select:not([multiple]):not([size]),
html body #app select:not([multiple]):not([size]) {
  min-width:0; max-width:100%; min-height:48px; padding:12px 16px;
  border:1px solid #b9b9b2; border-radius:14px;
  background-color:#f5f5f1; color:#171717; color-scheme:light;
  font-family:Manrope,Arial,sans-serif; font-size:14px; font-weight:600;
  line-height:1.5; text-align:start; cursor:pointer;
  box-shadow:none; transition:border-color .18s,background-color .18s,box-shadow .18s;
}
html body select:not([multiple]):not([size]):hover:not(:disabled){border-color:#767670;background-color:#fff}
html body select:focus-visible{outline:2px solid #171717;outline-offset:3px;box-shadow:0 0 0 5px #fff}
html body select:disabled{opacity:1;color:#62625c;background-color:#e9e9e4;cursor:not-allowed}
html body select option,html body select optgroup{color:#171717;background:#fff;font-family:Manrope,Arial,sans-serif}
html body select option:disabled{color:#73736c}

/* Browsers without base-select retain their accessible system picker. */
@supports (appearance:base-select){
  html body select:not([multiple]):not([size]),
  html body #app select:not([multiple]):not([size]),
  html body select:not([multiple]):not([size])::picker(select){appearance:base-select}
  html body select:not([multiple]):not([size]){display:flex;align-items:center;justify-content:space-between;gap:14px}
  html body select:not([multiple]):not([size])::picker-icon{color:#55554f;font-size:12px;transition:rotate .18s}
  html body select:not([multiple]):not([size]):open::picker-icon{rotate:180deg}
  html body select:not([multiple]):not([size])::picker(select){
    padding:6px; margin-block:8px; border:1px solid #d2d2cb; border-radius:18px;
    background:#fff; color:#171717; box-shadow:0 16px 48px #00000024;
    max-height:min(360px,60dvh); max-width:calc(100vw - 24px); overflow:auto;
    scrollbar-width:thin; scrollbar-color:#a5a59e transparent;
  }
  html body select:not([multiple]):not([size]) option{
    display:flex;align-items:center;gap:12px;min-height:44px;padding:11px 14px;
    border:0;border-radius:11px;font-size:14px;font-weight:600;line-height:1.5;
    white-space:normal;overflow-wrap:anywhere;cursor:pointer;
  }
  html body select:not([multiple]):not([size]) option+option{margin-top:3px}
  html body select:not([multiple]):not([size]) option:hover,
  html body select:not([multiple]):not([size]) option:focus{color:#171717;background:#eeeee8;outline:none}
  html body select:not([multiple]):not([size]) option:checked{color:#fff;background:#20201e}
  html body select:not([multiple]):not([size]) option::checkmark{color:inherit;order:1;margin-inline-start:auto}
  html body select:not([multiple]):not([size]) option:disabled{color:#73736c;background:#f5f5f1;cursor:not-allowed}
  html body select optgroup{padding:8px 4px;font-size:12px;font-weight:800}
}
html body input[type=file]{
  box-sizing:border-box;width:100%;max-width:100%;min-height:54px;padding:7px;
  border:1px dashed #aaa9a1;border-radius:14px;background:#f5f5f1;color:#30302c;
  font:500 14px/1.5 Manrope,Arial,sans-serif;
}
html body input[type=file]::file-selector-button{
  margin-inline-end:12px;padding:10px 14px;border:0;border-radius:9px;
  background:#242422;color:#fff;font:700 13px/1.4 Manrope,Arial,sans-serif;cursor:pointer;
  transition:background .18s;
}
html body input[type=file]:hover::file-selector-button{background:#44443e}
html body input[type=file]:focus-visible{outline:2px solid #171717;outline-offset:3px;box-shadow:0 0 0 5px #fff}
html body input[type=file]:disabled::file-selector-button{background:#d8d8d1;color:#565650;cursor:not-allowed}
/* Keep the editor's label-driven dropzone input visually hidden and focusable. */
html body :is(.photo-dropzone,.review-media-picker,.editor-upload) input[type=file]{width:1px;height:1px;min-height:0;padding:0;border:0;clip-path:inset(50%)}
html body #app .poizon-upload-control:focus-within{outline-color:#171717;box-shadow:0 0 0 5px #fff}
@media(max-width:600px){
  html body select:not([multiple]):not([size]),html body #app select:not([multiple]):not([size]){font-size:16px}
  html body input[type=file]{font-size:12px}
}
@media(prefers-reduced-motion:reduce){html body select,html body select::picker-icon,html body input[type=file]::file-selector-button{transition:none}}

/* Visual audit: readable steps and a form-first mobile checkout. */
#app .about-page .about-block .tag{color:#585852}
#app .about-page .about-intro .tag{color:#c2c2ba}
#modal-root .checkout-progress button{color:#d2d2cc;min-height:48px;line-height:1.4}
#modal-root .checkout-progress button:disabled{opacity:1;color:#b5b5ae;background:#242424;cursor:not-allowed}
#modal-root .checkout-progress .current button{background:#383836;color:#fff;box-shadow:inset 0 -2px 0 #f5f5ef}
#modal-root .checkout-progress button>span{flex:0 0 18px;width:18px;height:auto;background:transparent;color:inherit;border:0}
#modal-root .checkout-progress .done button{color:#eee}
#modal-root .checkout-summary p{font-size:12px;line-height:1.6;color:#55554e}
@media(max-width:899px){#modal-root .checkout-summary{grid-row:auto;grid-column:auto}#modal-root .checkout-step-actions .full-button{white-space:normal;line-height:1.5}}

#modal-root .customer-consent{gap:12px;align-items:flex-start}
#modal-root .customer-consent>span{min-width:0;line-height:1.65;color:#eee}
#modal-root .customer-consent input{margin:2px 0 0}
#modal-root .customer-form input[name="fullName"]::placeholder{color:#b5b5ae;opacity:1}
#modal-root .checkout-delivery-options .receipt-choice--unavailable,#modal-root .payment-options .is-unavailable{opacity:1;color:#b5b5ae;background:#242424;cursor:not-allowed}
#modal-root .receipt-choice--unavailable :is(strong,small,span),#modal-root .payment-options .is-unavailable :is(span,small){color:#b5b5ae}

#app :is(input,textarea)::placeholder,#modal-root :is(input,textarea)::placeholder{color:currentColor;opacity:.65}

@media(max-width:600px){
  nav[aria-label="Разделы управления"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px;overflow:visible;border-radius:18px}
  nav[aria-label="Разделы управления"] a{min-width:0;min-height:44px;padding:12px 8px;white-space:normal;text-align:center;line-height:1.4}
  nav[aria-label="Разделы управления"] a:last-child{grid-column:1/-1}
}
