/* TFP Shop: one grid, consistent controls, product-first typography. */
body.tfp-shop-body {
    --s-ink:#172d3d; --s-muted:#657381; --s-line:#e1e7ed; --s-paper:#fff;
    --s-purple:#713de0; --s-purple-dark:#582ab9; --s-soft:#f3f5f8;
    margin:0; background:#f6f7f9; color:var(--s-ink);
    font:400 15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
.tfp-shop-body .s-shell { width:min(1240px,calc(100% - 64px)); max-width:none; margin:0 auto; padding:32px 0 0; text-align:left; }
.s-shell *, .s-dialog *, .s-lightbox * { box-sizing:border-box; }
.s-shell [hidden], .s-dialog [hidden], .s-lightbox [hidden], .s-toast[hidden] { display:none!important; }
.s-shell :where(h1,h2,h3,p,ul,dl,fieldset), .s-dialog :where(h2,p) { margin:0; }
.s-shell :where(h1,h2,h3) { color:var(--s-ink); text-align:left; letter-spacing:-.025em; line-height:1.25; }
.s-shell a { color:inherit; text-decoration:none; }
.s-shell :where(button,input,select,textarea), .s-dialog :where(button,input,select,textarea) { font-family:inherit; letter-spacing:normal; text-transform:none; }
.s-shell button, .s-dialog button, .s-lightbox button { cursor:pointer; }
.s-shell button:disabled, .s-dialog button:disabled { cursor:wait; opacity:.6; }
.s-shell :is(a,button,input,select,textarea):focus-visible, .s-dialog :is(button,input,select,textarea):focus-visible, .s-lightbox button:focus-visible { outline:3px solid #9870f0; outline-offset:3px; }
.s-icon { display:block; width:20px; height:20px; flex:0 0 20px; stroke-width:1.7; }
.s-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.s-skip { position:fixed; left:16px; top:-100px; z-index:200000; padding:12px; border-radius:8px; background:#fff; color:#172d3d; }
.s-skip:focus { top:12px; }

/* Controls share one baseline and height across the catalogue and the editor. */
.s-shell .s-btn, .s-dialog .s-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    width:auto; min-height:44px; padding:11px 16px; margin:0; border:1px solid transparent;
    border-radius:9px; background:#f0f3f7; color:#273f51; box-shadow:none;
    font:650 13px/20px Inter,system-ui,sans-serif; text-align:center; text-decoration:none; white-space:nowrap;
    transition:background .15s,border-color .15s;
}
.s-shell .s-btn--primary, .s-dialog .s-btn--primary { color:#fff; background:#713de0; border-color:#713de0; }
.s-shell .s-btn--primary:hover, .s-dialog .s-btn--primary:hover { color:#fff; background:#582ab9; border-color:#582ab9; }
.s-shell .s-btn--navy { background:#18394c; border-color:#18394c; color:#fff; }
.s-shell .s-btn--navy:hover { background:#102d3e; color:#fff; }
.s-shell .s-btn--outline { color:#273f51; background:#fff; border-color:#d7e0e8; }
.s-shell .s-btn--outline:hover { border-color:#aebcca; background:#f8fafc; }
.s-shell .s-btn--quiet { background:#f0f3f7; color:#334b5d; border-color:#e7ecf2; }
.s-shell .s-btn--quiet:hover { background:#e7edf3; }
.s-shell .s-btn--small { min-height:36px; padding:7px 11px; border-radius:7px; font-size:12px; }
.s-btn--small .s-icon { width:16px; height:16px; flex-basis:16px; }
.s-shell .s-btn--full { display:flex; width:100%; margin-top:10px; }
.s-shell .s-text-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:auto; min-height:40px; padding:6px 0; border:0; border-radius:6px; background:transparent; box-shadow:none; color:#526779; font:600 12px/1.5 Inter,system-ui,sans-serif; }
.s-shell .s-text-button:hover { color:#713de0; }
.s-shell .s-danger { color:#ad3952; }
.s-eyebrow { display:block; font-size:10px; font-weight:700; letter-spacing:.1em; color:#657381; }
.s-surface { border:1px solid var(--s-line); border-radius:12px; background:#fff; }

/* The store starts with its navigation and products, without a decorative banner. */
.s-topbar { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:28px; }
.s-wordmark { display:block; flex:0 1 auto; min-width:0; }
.s-wordmark strong { display:block; font-size:28px; line-height:1.2; font-weight:750; letter-spacing:-.045em; color:#172d3d; }
.s-wordmark small { display:block; margin-top:6px; color:#657381; font-size:12px; line-height:1.5; }
.s-topbar-actions { display:flex; align-items:center; gap:22px; }
.s-shell .s-subnav { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; color:#526578; font-size:12px; font-weight:600; white-space:nowrap; }
.s-subnav .s-icon { width:18px; height:18px; flex-basis:18px; }
.s-shell .s-subnav:hover, .s-shell .s-subnav.is-active { color:#713de0; }
.s-categories { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
.s-categories a { display:flex; align-items:center; justify-content:center; min-width:0; min-height:44px; padding:11px 12px; background:#fff; border:1px solid #e1e7ed; border-radius:8px; color:#586b7c; }
.s-categories strong { font-size:13px; font-weight:600; line-height:20px; }
.s-categories a:hover { background:#f0f3f7; border-color:#c4d0db; }
.s-categories a.is-selected { background:#18394c; border-color:#18394c; color:#fff; }
.s-type-filters { display:flex; flex-wrap:wrap; gap:8px; margin:-3px 0 20px; }
.s-type-filters a { display:flex; align-items:center; min-height:35px; max-width:100%; padding:7px 12px; border:1px solid #e1e7ed; border-radius:7px; background:#fff; color:#657381; font-size:12px; }
.s-type-filters a:hover { border-color:#b8c6d3; color:#334f63; }
.s-type-filters a.is-selected { border-color:#c6b5e5; background:#f1ecfb; color:#6840ac; }
.s-search { display:flex; align-items:center; gap:10px; min-height:54px; margin-bottom:26px; padding:5px 6px 5px 16px; background:#fff; border:1px solid #d7e0e8; border-radius:10px; }
.s-search-icon { display:flex; padding:0; margin:0; color:#7a8996; }
.s-search input { flex:1; min-width:0; width:auto; height:42px; padding:6px 0; margin:0; border:0!important; border-radius:0; background:transparent!important; box-shadow:none!important; color:#172d3d; font:400 15px/1.5 Inter,system-ui,sans-serif; }
.s-search input::placeholder { color:#758492; opacity:1; }
.s-search .s-btn { min-height:42px; padding:10px 18px; border-radius:7px; }
.s-catalog-layout { display:grid; grid-template-columns:218px minmax(0,1fr); align-items:start; gap:28px; }
.s-catalog-sidebar, .s-results { min-width:0; }
.s-catalog-sidebar { position:sticky; top:calc(var(--tfp-header-fixed-height,72px) + 24px); }
.s-filters { padding:18px; background:#fff; border:1px solid #e1e7ed; border-radius:12px; }
.s-filters summary { display:flex; align-items:center; gap:9px; min-height:26px; list-style:none; color:#253f52; font-size:14px; cursor:pointer; }
.s-filters summary::-webkit-details-marker { display:none; }
.s-filters summary>.s-icon:last-child { width:16px; height:16px; flex-basis:16px; margin-left:auto; }
.s-filters[open] summary>.s-icon:last-child { transform:rotate(180deg); }
.s-filter-form { display:flex; flex-direction:column; gap:22px; padding-top:22px; }
.s-filter-form fieldset { min-width:0; padding:0; border:0; }
.s-filter-form legend { padding:0; margin-bottom:9px; font-size:12px; font-weight:700; color:#394f60; }
.s-shell .s-filter-radio { display:flex; align-items:center; gap:9px; min-height:31px; padding:3px 0; color:#526779; font-size:13px; font-weight:400; cursor:pointer; }
.s-filter-radio input { display:block; width:16px; height:16px; min-height:0; margin:0; padding:0; flex:0 0 16px; accent-color:#713de0; }
.s-price-range { display:grid; grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr); align-items:center; gap:6px; }
.s-price-range label { position:relative; min-width:0; }
.s-shell .s-price-range input { margin:0; min-height:40px; padding:9px 23px 9px 9px; font-size:13px; }
.s-price-range label>span:last-child { position:absolute; top:11px; right:8px; color:#6a7b89; font-size:11px; font-weight:400; }
.s-filter-form>.s-btn { min-height:40px; padding:9px 10px; font-size:12px; }
.s-clear-filters { display:block; margin-top:-10px; color:#657381!important; font-size:12px; text-align:center; }
.s-clear-filters:hover { text-decoration:underline; }
.s-results-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; min-height:44px; margin-bottom:18px; }
.s-shell .s-results-toolbar h2 { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; font-size:21px; font-weight:700; letter-spacing:-.035em; }
.s-results-toolbar h2 span { color:#6e7e8c; font-size:12px; font-weight:400; letter-spacing:0; white-space:nowrap; }
.s-sort-form select { display:block; width:auto; max-width:184px; height:40px; margin:0; padding:8px 27px 8px 11px; background:#fff; border:1px solid #dfe6ed; border-radius:8px; color:#526779; font:400 12px/1.5 Inter,system-ui,sans-serif; }

/* Fixed image ratios and a two-line title keep every price on the same baseline. */
.s-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 18px; align-items:stretch; }
.s-product { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid #e1e7ed; border-radius:12px; background:#fff; transition:border-color .15s,box-shadow .15s; }
.s-product:hover { border-color:#b6c4d2; box-shadow:0 4px 16px #172d3d06; }
.s-product-photo { position:relative; aspect-ratio:1; overflow:hidden; background:#f0f2f5; isolation:isolate; }
.s-product-photo>a { display:grid; place-items:center; width:100%; height:100%; }
.s-product-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.s-photo-placeholder { display:grid; place-items:center; width:100%; height:100%; color:#94a3af; }
.s-photo-placeholder .s-icon { width:40px; height:40px; stroke-width:1.3; }
.s-condition { display:inline-flex; align-items:center; justify-content:center; padding:5px 8px; border:1px solid #e1e7ed; border-radius:5px; background:#fffffff5; color:#526477; font-size:10px; font-weight:600; line-height:16px; white-space:nowrap; }
.s-product-photo>.s-condition { position:absolute; top:12px; left:12px; }
.s-condition.is-new { border-color:#d5e7df; background:#f0f8f3; color:#367052; }
.s-shell .s-favorite { position:absolute; top:9px; right:9px; z-index:1; display:grid; place-items:center; width:38px; height:38px; min-width:38px; min-height:38px; padding:9px; border:1px solid #e0e7ed; border-radius:50%; background:#fffffff7; box-shadow:none; color:#637787; }
.s-favorite .s-icon { width:18px; height:18px; }
.s-shell .s-favorite:hover { color:#713de0; border-color:#cbbbed; }
.s-shell .is-favorite { color:#713de0; }
.s-shell .is-favorite .s-icon { fill:#eee6fc; stroke:#713de0; }
.s-product-info { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto 42px auto auto; gap:8px; padding:16px; }
.s-product-category { display:block; overflow:hidden; color:#6f7e8c; font-size:11px; line-height:16px; white-space:nowrap; text-overflow:ellipsis; }
.s-shell .s-product h3 { min-width:0; height:42px; font-size:15px; font-weight:600; line-height:21px; letter-spacing:-.02em; }
.s-product h3 a { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.s-product h3 a:hover { color:#713de0; }
.s-product-price { display:block; margin:0; color:#172d3d; font-size:22px; font-weight:750; line-height:1.2; letter-spacing:-.04em; white-space:nowrap; }
.s-shell .s-location { display:flex; align-items:center; gap:5px; min-width:0; min-height:18px; margin:1px 0 0; color:#6f7e8c; font-size:11px; line-height:18px; }
.s-location>.s-icon { width:13px; height:13px; flex-basis:13px; }
.s-location>span:first-of-type { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.s-card-shipping { display:flex; margin-left:auto; color:#6f7e8c; }
.s-card-shipping .s-icon { width:15px; height:15px; flex-basis:15px; }
.s-product--inactive .s-product-photo img { opacity:.5; }
.s-unavailable { position:absolute; bottom:12px; left:12px; right:12px; padding:7px 9px; border-radius:6px; background:#17394def; color:#fff; font-size:11px; text-align:center; }
.s-mine-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:12px; margin-top:5px; border-top:1px solid #edf0f4; }
.s-mine-actions .s-text-button { font-size:11px; }
.s-pagination { display:flex; justify-content:center; align-items:center; gap:16px; margin:30px 0 0; color:#657381; font-size:12px; }
.s-pagination .s-btn { min-height:40px; font-size:12px; }

/* Empty states use a neutral icon and the same compact type scale. */
.s-empty { display:flex; flex-direction:column; align-items:center; padding:58px 24px; margin:24px 0; text-align:center; }
.s-empty-icon { display:grid; place-items:center; width:56px; height:56px; margin-bottom:18px; border:1px solid #e2e8ef; border-radius:14px; background:#f2f5f8; color:#738796; }
.s-empty-icon .s-icon { width:27px; height:27px; stroke-width:1.5; }
.s-shell .s-empty h1, .s-shell .s-empty h2 { max-width:580px; margin:0 0 12px; font-size:24px; letter-spacing:-.035em; text-align:center; }
.s-shell .s-empty p { max-width:440px; color:#657381; font-size:13px; line-height:1.8; text-align:center; }
.s-empty-actions { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin-top:24px; }
.s-catalog-empty { min-height:320px; margin:0; padding:42px 24px; border:1px solid #e1e7ed; border-radius:12px; background:#fff; }
.s-catalog-empty .s-empty-icon { width:48px; height:48px; border-radius:12px; }
.s-catalog-empty .s-empty-icon .s-icon { width:24px; height:24px; }
.s-shop-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:24px 0 30px; margin-top:42px; border-top:1px solid #e1e7ed; color:#71808d; font-size:11px; }
.s-shop-footer nav { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.s-shop-footer a:hover { color:#713de0; text-decoration:underline; }
.s-shell .s-back { display:inline-flex; align-items:center; gap:8px; min-height:36px; color:#607486; font-size:12px; }
.s-back .s-icon { width:16px; height:16px; flex-basis:16px; }
.s-page-heading { margin:12px 0 26px; }
.s-shell .s-page-heading h1 { margin:0 0 9px; font-size:30px; letter-spacing:-.04em; }
.s-shell .s-page-heading p { max-width:700px; color:#657381; font-size:13px; }
.s-page-heading--compact { margin-top:0; }
.s-page-heading--compact .s-back { margin-bottom:10px; }

/* Base form styles use :where so checkbox and radio alignment can never be overridden. */
.s-shell :where(.s-editor,.s-filter-form,.s-moderation-list) label, .s-dialog label { display:block; color:#3b5163; font-size:12px; font-weight:600; line-height:1.5; }
.s-shell :where(.s-editor,.s-filter-form,.s-moderation-list) :where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea),
.s-dialog :where(input:not([type=checkbox]):not([type=hidden]),select,textarea) {
    display:block; width:100%; min-width:0; min-height:44px; margin:7px 0 0; padding:10px 12px;
    border:1px solid #d8e1e9; border-radius:8px; background:#fff; box-shadow:none; color:#243f53;
    font:400 14px/22px Inter,system-ui,sans-serif;
}
.s-shell :where(.s-editor,.s-filter-form) :where(input,textarea)::placeholder { color:#7c8b98; opacity:1; }
.s-shell :where(.s-editor,.s-filter-form,.s-moderation-list) textarea, .s-dialog textarea { resize:vertical; }
.s-optional { margin-left:4px; font-size:11px; font-weight:400; color:#738290; }
.s-editor { display:grid; grid-template-columns:minmax(0,1fr) 280px; align-items:start; gap:28px; width:100%; max-width:none; margin:0; }
.s-editor-main { min-width:0; }
.s-form-section { margin:0 0 18px; padding:26px; border:1px solid #e1e7ed; border-radius:12px; background:#fff; }
.s-section-title { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.s-section-title>span { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid #e7e0f7; border-radius:9px; background:#f4f0fb; color:#7755ac; font-size:11px; font-weight:700; }
.s-shell .s-section-title h2 { font-size:19px; font-weight:700; }
.s-shell .s-section-title p { margin-top:4px; color:#6f7e8c; font-size:12px; }
.s-form-section>label, .s-form-section>.s-two-fields, .s-form-section>.s-contact-note, .s-form-section>.s-price-field { margin-top:22px; }
.s-form-section>.s-section-title+label { margin-top:0; }
.s-two-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:20px; }
.s-editor fieldset { min-width:0; padding:0; border:0; }
.s-category-choice>legend, .s-subcategory-editor legend { margin:0 0 11px; padding:0; color:#3b5163; font-size:12px; font-weight:600; }
.s-category-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.s-shell .s-category-picker button { display:flex; justify-content:center; align-items:center; min-width:0; min-height:46px; padding:10px; border:1px solid #d8e1e9; border-radius:8px; background:#fff; color:#526779; box-shadow:none; font-size:13px; line-height:20px; }
.s-shell .s-category-picker button:hover { border-color:#aebfce; background:#f7f9fc; }
.s-shell .s-category-picker button.is-selected { border-color:#18394c; background:#18394c; color:#fff; }
.s-subcategory-editor { margin-top:20px; }
.s-subcategory-choices { display:flex; flex-wrap:wrap; gap:8px; }
.s-shell .s-subcategory-choices button { display:flex; align-items:center; justify-content:center; min-height:36px; padding:7px 12px; border:1px solid #e0e6ee; border-radius:7px; background:#f8fafc; color:#657381; box-shadow:none; font-size:12px; line-height:20px; }
.s-shell .s-subcategory-choices button:hover { border-color:#c6b5e5; }
.s-shell .s-subcategory-choices button.is-selected { border-color:#baa2df; background:#f1ecfb; color:#6840ac; }
.s-traits-section { margin-top:22px; padding:18px; border:1px solid #e5eaf1; border-radius:9px; background:#f8fafc; }
.s-shell .s-traits-section h3 { margin:0 0 16px; font-size:14px; font-weight:650; letter-spacing:0; }
.s-trait-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:18px; }
.s-trait-fields>label:last-child:nth-child(odd) { grid-column:1/-1; }
.s-preview-heading { margin:0 0 12px; color:#657381; font-size:12px; font-weight:600; }
.s-draft-preview { pointer-events:none; }
.s-draft-preview .s-product-photo { aspect-ratio:4/3; }
.s-draft-preview .s-product-photo>img { position:absolute; inset:0; }
.s-draft-preview .s-product-info { grid-template-rows:auto 42px auto auto; }
.s-draft-preview h3 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.s-condition-field legend { padding:0; color:#3b5163; font-size:12px; font-weight:600; line-height:18px; }
.s-choice-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:7px; }
.s-choice-row label { position:relative; }
.s-choice-row input { position:absolute; width:1px; height:1px; opacity:0; }
.s-choice-row span { display:grid; place-items:center; min-height:44px; padding:10px; border:1px solid #d8e1e9; border-radius:8px; background:#fff; color:#607486; font-size:13px; font-weight:500; line-height:22px; cursor:pointer; }
.s-choice-row input:checked+span { background:#f3effb; color:#6840ac; border-color:#bba8df; box-shadow:inset 0 0 0 1px #bba8df; }
.s-choice-row input:focus-visible+span { outline:3px solid #9870f0; outline-offset:3px; }
.s-upload-zone { position:relative; min-height:134px; overflow:hidden; border:1px dashed #bdcbd9; border-radius:10px; background:#fafbfd; }
.s-upload-zone input[type=file] { position:absolute; inset:0; z-index:1; width:100%; height:100%; opacity:0; cursor:pointer; }
.s-upload-zone:focus-within { outline:3px solid #9870f0; outline-offset:3px; }
.s-editor .s-upload-zone label { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; min-height:134px; padding:20px; text-align:center; }
.s-upload-zone .s-icon { width:26px; height:26px; color:#7b8e9e; }
.s-upload-zone strong { color:#334f64; font-size:13px; font-weight:650; }
.s-upload-zone span { color:#6d7e8e; font-size:11px; font-weight:400; }
.s-shell .s-field-hint { margin-top:9px; color:#738290; font-size:11px; line-height:1.7; }
.s-photo-previews { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.s-photo-previews:empty { display:none; }
.s-photo-preview { position:relative; min-width:0; }
.s-photo-previews img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border:1px solid #e1e7ed; border-radius:8px; }
.s-shell .s-photo-preview button { position:absolute; top:6px; right:6px; display:grid; place-items:center; width:30px; height:30px; min-height:0; padding:4px; border:1px solid #d7e0e8; border-radius:50%; background:#fff; color:#526779; font-size:19px; line-height:1; }
.s-photo-preview>span { position:absolute; left:7px; bottom:7px; padding:3px 6px; border:1px solid #e1e7ed; border-radius:4px; background:#fff; color:#526779; font-size:10px; }
.s-existing-photo { min-width:0; }
.s-existing-photo span { display:flex; align-items:center; gap:6px; margin-top:8px; color:#657381; font-size:11px; font-weight:400; }
.s-existing-photo input { margin:0; accent-color:#713de0; }
.s-existing-photo:has(input:checked) img { opacity:.3; }
.s-price-field { display:grid; grid-template-columns:220px minmax(0,1fr); align-items:center; gap:22px; padding-top:22px; border-top:1px solid #edf0f4; }
.s-price-field>label { width:auto; min-width:0; }
.s-shell .s-price-field p { margin-top:22px; color:#657381; font-size:12px; }
.s-currency-input { position:relative; margin-top:7px; }
.s-shell .s-editor .s-currency-input input { min-height:48px; margin:0; padding-right:40px; color:#172d3d; font-size:22px; font-weight:700; }
.s-currency-input>span { position:absolute; top:50%; right:13px; transform:translateY(-50%); color:#738290; font-size:14px; font-weight:400; }
.s-contact-note { display:flex; align-items:flex-start; gap:11px; padding:15px; border:1px solid #e3eaf1; border-radius:9px; background:#f7f9fc; }
.s-contact-note>.s-icon { flex:0 0 20px; margin-top:2px; color:#72899c; }
.s-contact-note strong { color:#405b70; font-size:12px; }
.s-shell .s-contact-note p { margin-top:5px; color:#657381; font-size:12px; line-height:1.7; }
.s-shell .s-checkbox, .s-dialog .s-checkbox { display:flex; align-items:flex-start; gap:10px; color:#657381; font-size:12px; font-weight:400; line-height:1.7; }
.s-checkbox input { display:block; flex:0 0 16px; width:16px; height:16px; min-height:0; margin:2px 0 0; padding:0; accent-color:#713de0; }
.s-checkbox a { color:#713de0; text-decoration:underline; }
.s-business-fields { margin-top:18px; padding:18px; border:1px solid #e3eaf1; border-radius:9px; background:#f7f9fc; }
.s-business-fields>.s-two-fields { margin-top:18px; }
.s-publish-bar { padding:20px 22px; border:1px solid #e1e7ed; border-radius:12px; background:#fff; }
.s-publish-bar>div { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.s-editor-aside { position:sticky; top:calc(var(--tfp-header-fixed-height,72px) + 24px); }
.s-seller-tip { padding:22px; border:1px solid #e1e7ed; border-radius:12px; background:#fff; }
.s-shell .s-seller-tip h2 { margin:0 0 20px; font-size:16px; font-weight:650; }
.s-seller-tip ul { display:flex; flex-direction:column; gap:15px; padding:0; list-style:none; }
.s-seller-tip li { display:flex; align-items:flex-start; gap:9px; color:#657381; font-size:12px; line-height:1.7; }
.s-seller-tip li .s-icon { width:16px; height:16px; flex-basis:16px; margin-top:2px; color:#7e69ab; }
.s-shell .s-muted-note { padding:16px 6px; color:#738290; font-size:11px; line-height:1.8; }
.s-errors, .s-flash { margin:0 0 22px; padding:14px 17px; border:1px solid #f0d8db; border-radius:9px; color:#a44755; background:#fff4f5; font-size:13px; }
.s-errors p+p { margin-top:7px; }
.s-errors a { text-decoration:underline; }
.s-flash { display:flex; align-items:center; gap:9px; border-color:#d4e7de; color:#3d7057; background:#eff8f3; }
.s-shell .s-form-feedback, .s-dialog .s-form-feedback { margin-top:10px; color:#a44755; font-size:12px; }

/* Listing detail uses the same edge alignment as the catalogue. */
.s-breadcrumbs { display:flex; align-items:center; gap:9px; min-width:0; margin:2px 0 22px; color:#7c8b97; font-size:11px; }
.s-breadcrumbs a { flex:0 0 auto; color:#607486; }
.s-breadcrumbs>span:last-child { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.s-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 370px; align-items:start; gap:28px; }
.s-detail-main, .s-detail-sidebar { min-width:0; }
.s-detail-sidebar { position:sticky; top:calc(var(--tfp-header-fixed-height,72px) + 24px); }
.s-gallery { margin-bottom:24px; }
.s-shell .s-gallery-main { display:block; position:relative; width:100%; aspect-ratio:1.18; overflow:hidden; padding:0; border:1px solid #e1e7ed; border-radius:12px; background:#f0f2f5; box-shadow:none; cursor:zoom-in; }
.s-gallery-main img { display:block; width:100%; height:100%; object-fit:contain; }
.s-gallery-main>.s-icon { width:48px; height:48px; margin:auto; color:#8ea1af; }
.s-gallery-counter, .s-zoom-hint { position:absolute; bottom:13px; padding:5px 8px; border:1px solid #e1e7ed; border-radius:6px; background:#fffffff2; color:#526779; font-size:10px; }
.s-gallery-counter { left:13px; }
.s-zoom-hint { right:13px; }
.s-gallery-thumbs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; margin-top:10px; }
.s-shell .s-gallery-thumbs button { display:block; min-width:0; padding:2px; overflow:hidden; border:2px solid transparent; border-radius:8px; background:#eff2f6; box-shadow:none; }
.s-gallery-thumbs img { display:block; width:100%; height:auto; aspect-ratio:1.2; object-fit:cover; border-radius:4px; }
.s-shell .s-gallery-thumbs button.is-current { border-color:#977acb; background:#fff; }
.s-description { padding:26px; }
.s-shell .s-description h2 { margin-bottom:20px; font-size:20px; }
.s-specs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:24px!important; padding:18px; border:1px solid #edf0f4; border-radius:9px; background:#f8fafc; }
.s-specs dt { margin-bottom:5px; color:#738290; font-size:11px; }
.s-specs dd { margin:0; color:#40596c; font-size:13px; overflow-wrap:anywhere; }
.s-description-text { color:#526779; font-size:14px; line-height:1.85; overflow-wrap:anywhere; }
.s-detail-card { padding:25px; }
.s-detail-tags { display:flex; align-items:center; gap:10px; margin-bottom:15px; color:#6f7e8c; font-size:11px; }
.s-shell .s-detail-card h1 { color:#172d3d; font-size:26px; line-height:1.3; letter-spacing:-.035em; overflow-wrap:anywhere; }
.s-detail-price { display:block; margin:15px 0 20px; color:#172d3d; font-size:34px; font-weight:750; line-height:1.2; letter-spacing:-.045em; white-space:nowrap; }
.s-delivery-lines { display:flex; flex-direction:column; gap:10px; padding-bottom:22px; margin-bottom:12px; border-bottom:1px solid #e9edf2; }
.s-shell .s-delivery-lines p { display:flex; align-items:center; gap:8px; color:#657381; font-size:12px; }
.s-delivery-lines .s-icon { width:17px; height:17px; flex-basis:17px; color:#74899b; }
.s-shell .s-detail-card .s-btn--full { min-height:46px; font-size:13px; }
.s-owner-banner { margin-bottom:3px; color:#6a7e8f; font-size:11px; }
.s-seller { display:flex; align-items:center; gap:11px; padding-top:22px; margin-top:22px; border-top:1px solid #e9edf2; }
.s-seller-avatar { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border:1px solid #e1e7ed; border-radius:50%; background:#f0f3f7; color:#526779; font-size:15px; font-weight:650; }
.s-seller>div { min-width:0; }
.s-seller span:not(.s-seller-avatar) { display:block; color:#738290; font-size:10px; }
.s-seller strong { display:block; margin-top:2px; color:#334f63; font-size:13px; font-weight:650; overflow-wrap:anywhere; }
.s-seller small { display:block; margin-top:2px; color:#738290; font-size:11px; }
.s-shell .s-company-info { margin-top:14px; color:#657381; font-size:12px; overflow-wrap:anywhere; }
.s-detail-extra { display:flex; justify-content:center; align-items:center; gap:22px; padding-top:12px; margin-top:20px; border-top:1px solid #e9edf2; }
.s-detail-extra .s-text-button { font-size:12px; }
.s-detail-extra .s-icon { width:16px; height:16px; flex-basis:16px; }
.s-delete { display:flex!important; margin:10px auto 0; font-size:11px!important; }
.s-safety-tip { display:flex; align-items:flex-start; gap:10px; padding:20px 5px 10px; }
.s-safety-tip>.s-icon { margin-top:2px; color:#73899b; }
.s-safety-tip strong { color:#526779; font-size:12px; }
.s-shell .s-safety-tip p { margin-top:5px; color:#738290; font-size:11px; line-height:1.8; }
.s-detail-meta { display:flex; justify-content:space-between; align-items:center; padding:0 5px; color:#7c8b97; font-size:10px; }
.s-detail-meta .s-text-button { color:#738290; font-size:11px; }
.s-detail-meta .s-icon { width:14px; height:14px; flex-basis:14px; }
.s-sold-message { display:flex; align-items:center; gap:9px; padding:13px; margin:15px 0; border:1px solid #d4e7de; border-radius:8px; background:#f0f8f4; color:#3e7259; font-size:12px; }

/* Dialogs keep their actions inside their own bounds. */
.s-dialog { width:min(520px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:auto; border:1px solid #dfe6ed; border-radius:14px; background:#fff; color:#172d3d; box-shadow:0 24px 80px #071b2b33; font-family:Inter,system-ui,sans-serif; }
.s-dialog::backdrop, .s-lightbox::backdrop { background:#0b2032c9; backdrop-filter:blur(3px); }
.s-dialog-top { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 22px; border-bottom:1px solid #e5ebf1; }
.s-dialog-top h2 { color:#172d3d; font-size:19px; font-weight:700; letter-spacing:-.025em; }
.s-dialog .s-icon-button, .s-lightbox .s-icon-button { display:grid; place-items:center; width:38px; height:38px; min-height:38px; padding:8px; border:1px solid #dce4ec; border-radius:8px; background:#f5f7fa; color:#61768a; box-shadow:none; }
.s-report-form { display:flex; flex-direction:column; gap:18px; padding:22px; }
.s-dialog .s-form-feedback { margin:0; }
.s-lightbox { width:min(1100px,calc(100vw - 24px)); height:min(850px,calc(100dvh - 24px)); max-width:none; max-height:none; margin:auto; padding:12px; overflow:hidden; border:1px solid #4c6172; border-radius:12px; background:#142a3b; color:#fff; }
.s-lightbox[open] { display:grid; grid-template-rows:44px minmax(0,1fr) 44px; gap:10px; }
.s-lightbox img { display:block; width:100%; height:100%; object-fit:contain; }
.s-lightbox-toolbar { display:flex; justify-content:space-between; align-items:center; padding:0 3px 0 10px; font-size:12px; }
.s-lightbox .s-icon-button { border-color:#ffffff28; background:#ffffff0a; color:#fff; }
.s-lightbox-controls { display:flex; align-items:center; justify-content:center; gap:18px; }
.s-manage-links { display:flex; flex-direction:column; gap:10px; padding:22px; }
.s-manage-links .s-btn { width:100%; }
.s-toast { position:fixed; bottom:calc(24px + env(safe-area-inset-bottom,0px)); left:50%; z-index:200000; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 28px); padding:13px 18px; border:1px solid #3a5569; border-radius:9px; background:#18394c; color:#fff; box-shadow:0 6px 24px #071b2b22; font:500 12px/1.5 Inter,system-ui,sans-serif; }
.s-rules { max-width:800px; margin:20px 0; padding:32px; }
.s-shell .s-rules h1 { margin:8px 0 28px; font-size:28px; }
.s-shell .s-rules h2 { margin:24px 0 10px; font-size:18px; }
.s-shell .s-rules p { color:#657381; font-size:13px; line-height:1.9; }
.s-rules a { color:#713de0; text-decoration:underline; }
.s-moderation-list { display:flex; flex-direction:column; gap:20px; }
.s-report-card { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; padding:24px; }
.s-report-card h2 { margin:8px 0 14px; font-size:19px; }
.s-report-card p { margin:12px 0; color:#526779; font-size:13px; line-height:1.8; }
.s-report-details { overflow-wrap:anywhere; }
.s-report-card small { color:#738290; font-size:11px; }
.s-report-card form { display:flex; flex-direction:column; gap:16px; }

@media(min-width:761px) {
    .s-filters>summary { cursor:default; }
    .s-filters>summary>.s-icon:last-child { display:none; }
}
@media(max-width:1100px) {
    .tfp-shop-body .s-shell { width:calc(100% - 48px); }
    .s-catalog-layout { grid-template-columns:200px minmax(0,1fr); gap:24px; }
    .s-filters { padding:16px; }
    .s-topbar-actions { gap:17px; }
    .s-wordmark strong { font-size:26px; }
    .s-product-grid { gap:20px 14px; }
    .s-product-info { padding:14px; }
    .s-detail-grid { grid-template-columns:minmax(0,1fr) 330px; gap:24px; }
    .s-detail-card { padding:22px; }
}
@media(max-width:1000px) {
    .s-categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .s-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .s-editor { grid-template-columns:minmax(0,1fr); }
    .s-editor-aside { display:none; }
    .s-wordmark small { max-width:220px; }
    .s-topbar-actions { gap:14px; }
    .s-shell .s-subnav { font-size:11px; gap:6px; }
    .s-detail-grid { grid-template-columns:minmax(0,1fr) 312px; gap:20px; }
}
@media(max-width:760px) {
    .tfp-shop-body .s-shell { width:calc(100% - 32px); padding-top:22px; }
    .s-topbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:17px 12px; margin-bottom:22px; }
    .s-wordmark { grid-column:1; grid-row:1; }
    .s-wordmark strong { font-size:23px; }
    .s-wordmark small { display:none; }
    .s-topbar-actions { display:contents; }
    .s-topbar .s-add-offer { grid-column:2; grid-row:1; justify-self:end; min-height:42px; padding:10px 13px; font-size:12px; }
    .s-topbar .s-subnav { display:flex; gap:8px; min-height:40px; padding:9px 12px; border:1px solid #e1e7ed; border-radius:8px; background:#fff; font-size:12px; }
    .s-topbar .s-subnav:first-child { grid-column:1; grid-row:2; }
    .s-topbar .s-subnav:nth-child(2) { grid-column:2; grid-row:2; }
    .s-subnav .s-icon { width:17px; height:17px; flex-basis:17px; }
    .s-categories { gap:7px; margin-bottom:16px; }
    .s-categories a { min-height:42px; padding:10px 4px; }
    .s-categories strong { font-size:11px; line-height:20px; }
    .s-search { min-height:52px; margin-bottom:16px; padding:5px 5px 5px 13px; border-radius:9px; }
    .s-search input { height:40px; font-size:16px; }
    .s-search .s-btn { min-height:40px; padding:9px 13px; font-size:12px; }
    .s-search .s-btn .s-icon { display:none; }
    .s-search-icon .s-icon { width:18px; height:18px; flex-basis:18px; }
    .s-catalog-layout { display:flex; flex-direction:column; align-items:stretch; gap:20px; }
    .s-catalog-sidebar { position:static; width:100%; }
    .s-filters { padding:11px 14px; border-radius:9px; }
    .s-filters summary { min-height:24px; font-size:13px; }
    .s-filters summary>.s-icon:first-child { width:18px; height:18px; flex-basis:18px; }
    .s-filter-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding-top:20px; padding-bottom:4px; }
    .s-filter-form>label, .s-filter-form>.s-btn, .s-clear-filters { grid-column:1/-1; }
    .s-results-toolbar { gap:12px; min-height:40px; margin-bottom:15px; }
    .s-shell .s-results-toolbar h2 { font-size:20px; gap:7px; }
    .s-results-toolbar h2 span { font-size:11px; }
    .s-sort-form select { max-width:168px; height:38px; padding:8px 21px 8px 9px; font-size:11px; }
    .s-product-grid { gap:18px 14px; }
    .s-product-info { padding:13px; }
    .s-product-price { font-size:22px; }
    .s-product-photo>.s-condition { top:10px; left:10px; }
    .s-shell .s-favorite { top:7px; right:7px; }
    .s-shell :where(.s-editor,.s-filter-form,.s-moderation-list) :where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea),
    .s-dialog :where(input:not([type=checkbox]):not([type=hidden]),select,textarea) { min-height:46px; padding:11px 12px; font-size:16px; }
    .s-shell .s-price-range input { min-height:44px; padding-right:26px; margin:0; font-size:16px; }
    .s-price-range label>span:last-child { top:13px; }
    .s-form-section { padding:22px; }
    .s-shell .s-section-title h2 { font-size:19px; }
    .s-shell .s-section-title p { font-size:12px; }
    .s-two-fields { gap:18px; }
    .s-choice-row span { min-height:46px; padding:11px; }
    .s-page-heading { margin:10px 0 24px; }
    .s-shell .s-page-heading h1 { font-size:27px; }
    .s-shell .s-page-heading p { font-size:13px; }
    .s-detail-grid { display:flex; flex-direction:column; gap:22px; }
    .s-detail-main { display:contents; }
    .s-gallery { order:0; width:100%; margin-bottom:0; }
    .s-detail-sidebar { order:1; position:static; width:100%; }
    .s-description { order:2; width:100%; padding:23px; }
    .s-detail-card { padding:24px; }
    .s-shell .s-detail-card h1 { font-size:27px; }
    .s-detail-price { font-size:34px; }
    .s-gallery-main { aspect-ratio:1.15; }
    .s-gallery-thumbs { gap:7px; }
    .s-breadcrumbs { margin-bottom:18px; }
    .s-catalog-empty { min-height:290px; padding:35px 20px; }
    .s-shop-footer { padding-top:22px; margin-top:32px; font-size:11px; gap:17px; }
    .s-shop-footer nav { gap:16px; }
    .s-rules { padding:25px; }
    .s-report-card { grid-template-columns:minmax(0,1fr); gap:22px; }
}
@media(max-width:600px) {
    .s-categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .s-categories strong { font-size:12px; }
    .s-topbar .s-add-offer span { font-size:0; }
    .s-topbar .s-add-offer span:after { content:"Wystaw"; font-size:12px; }
}
@media(max-width:480px) {
    .tfp-shop-body .s-shell { width:calc(100% - 28px); padding-top:20px; }
    .s-topbar { gap:15px 10px; margin-bottom:20px; }
    .s-wordmark strong { font-size:22px; letter-spacing:-.04em; }
    .s-topbar .s-add-offer { padding:9px 12px; min-height:40px; gap:6px; }
    .s-add-offer .s-icon { width:17px; height:17px; flex-basis:17px; }
    .s-topbar .s-subnav { padding:9px 7px; font-size:12px; min-height:40px; }
    .s-categories { gap:7px; }
    .s-product-grid { gap:16px 10px; }
    .s-product { border-radius:10px; }
    .s-product-info { grid-template-rows:auto 40px auto auto; gap:8px; padding:12px; }
    .s-product-category { font-size:10px; }
    .s-shell .s-product h3 { height:40px; font-size:14px; line-height:20px; }
    .s-product-price { font-size:21px; }
    .s-shell .s-location { font-size:10px; }
    .s-card-shipping { display:none; }
    .s-product-photo>.s-condition { top:9px; left:9px; padding:3px 6px; font-size:9px; }
    .s-shell .s-favorite { top:6px; right:6px; width:34px; height:34px; min-width:34px; min-height:34px; padding:8px; }
    .s-favorite .s-icon { width:16px; height:16px; }
    .s-shell .s-results-toolbar h2 { font-size:18px; }
    .s-results-toolbar h2 span { font-size:10px; }
    .s-sort-form select { max-width:144px; font-size:10px; }
    .s-form-section { padding:19px; }
    .s-section-title { align-items:flex-start; gap:10px; margin-bottom:22px; }
    .s-section-title>span { width:30px; height:30px; flex-basis:30px; font-size:10px; }
    .s-shell .s-section-title h2 { font-size:18px; }
    .s-shell .s-section-title p { font-size:11px; }
    .s-two-fields { grid-template-columns:minmax(0,1fr); gap:20px; }
    .s-trait-fields { grid-template-columns:minmax(0,1fr); gap:18px; }
    .s-traits-section { padding:15px; }
    .s-shell .s-category-picker button { min-height:44px; padding:10px 5px; font-size:12px; }
    .s-shell .s-subcategory-choices button { padding:7px 10px; font-size:11px; }
    .s-form-section>label, .s-form-section>.s-two-fields, .s-form-section>.s-contact-note, .s-form-section>.s-price-field { margin-top:21px; }
    .s-photo-previews { gap:8px; }
    .s-price-field { grid-template-columns:minmax(0,1fr); gap:8px; }
    .s-shell .s-price-field p { margin:0; }
    .s-publish-bar { padding:18px; }
    .s-publish-bar>div { gap:9px; }
    .s-publish-bar .s-btn { padding:11px 12px; font-size:12px; }
    .s-publish-bar .s-btn--primary { flex:1; }
    .s-mine-actions { align-items:stretch; flex-direction:column; gap:2px; padding-top:10px; }
    .s-mine-actions .s-text-button { min-height:32px; font-size:11px; }
    .s-detail-card, .s-description { padding:21px; }
    .s-shell .s-detail-card h1 { font-size:25px; }
    .s-detail-price { font-size:32px; }
    .s-shell .s-empty h1, .s-shell .s-empty h2 { font-size:22px; }
    .s-shell .s-empty p { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .s-shell *, .s-dialog *, .s-lightbox * { transition:none!important; scroll-behavior:auto!important; } }
