.store-section{padding:16px 20px}.store-section h2{margin:0 0 14px}.store-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.store-card{background:#fff;border:1px solid #dfd9d0;border-radius:14px;padding:16px;color:#242424;min-width:0}.store-card img{width:100%;height:180px;object-fit:contain}.store-card h3{font-size:18px;margin:12px 0 8px}.store-card p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.store-price{font-weight:700}.store-price del{color:#6b6b6b;font-weight:400;margin-right:8px}.store-card small{display:block;font-size:12px;line-height:1.5}.store-actions{display:flex;gap:8px;margin-top:12px}.store-actions input{width:65px;min-width:0;padding:8px;border:1px solid #aaa;border-radius:6px}.store-actions button{flex:1}
.products-admin,.products-editor{width:min(1050px,95vw);max-height:90vh;padding:18px;border:1px solid #b9ad85;border-radius:10px;background:#fffef7;color:#29251c}.products-editor{width:min(740px,95vw)}.products-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.products-head h2{margin:0}.products-head input{max-width:320px}.products-admin [data-list]{max-height:65vh;overflow:auto}.products-admin table{width:100%;border-collapse:collapse;font-size:13px}.products-admin th{position:sticky;top:0;background:#fff2ba}.products-admin td,.products-admin th{padding:8px;text-align:left;border-bottom:1px solid #ddd}.products-admin td:first-child{min-width:170px}.products-admin tr:hover{background:#fff8d9}.products-admin [data-error],.products-editor [data-error]{color:#9d2929}.products-editor input[type=checkbox]{width:auto;display:inline}.products-editor small{font-size:12px}.products-editor::backdrop,.products-admin::backdrop{background:#0005}

.product-extras{border:1px solid #ddd3b9;border-radius:6px;padding:10px;margin:12px 0;font-size:13px}.product-extras label{display:flex;gap:8px;align-items:center;margin:8px 0}.product-extras input[type=checkbox]{width:16px;min-width:16px}.product-extras input[type=number]{width:55px;padding:5px}.product-extras span{flex:1}.product-extras small{display:block}

.store-list{display:grid;gap:10px}.store-tile{display:grid;grid-template-columns:84px minmax(0,1fr) 16px;align-items:center;gap:12px;width:100%;padding:12px;text-align:left;background:#fff;color:#222;border:1px solid #dfd9d0;border-radius:12px}.store-tile:hover{background:#fff9ed}.store-tile .store-thumb{width:84px;height:84px;object-fit:contain;border-radius:7px;background:#f4f1ec;display:grid;place-items:center;font-size:12px;color:#666}.store-tile b{display:block;font-size:16px;line-height:1.35;overflow-wrap:anywhere}.store-tile .store-price{display:block;font-size:15px;margin-top:8px}.store-tile del{display:block;font-size:12px}
.store-product-dialog{width:min(760px,96vw);max-width:96vw;max-height:94vh;max-height:94dvh;margin:auto;padding:0;border:1px solid #ddd;border-radius:14px;color:#222;background:#f6f3ee}.store-product-dialog::backdrop{background:#0007}.store-dialog-head{position:sticky;top:0;z-index:2;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid #ddd}.store-dialog-head h2{margin:0;font-size:20px;min-width:0;overflow-wrap:anywhere}.store-dialog-head button{width:auto;flex-shrink:0;font-size:13px;padding:8px 10px}.store-product-dialog .store-section{padding:12px}.store-product-dialog .store-grid{display:block}.store-product-dialog .store-card{border:0;padding:12px}.store-card .store-gallery-large{width:100%;height:320px;object-fit:contain}.store-gallery-controls{display:flex;align-items:center;justify-content:center;gap:18px}.store-gallery-controls button{width:auto;padding:8px 16px}.store-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 0}.store-gallery-thumbs button{flex:0 0 64px;padding:3px;border:2px solid transparent;border-radius:6px;background:#eee}.store-gallery-thumbs button[aria-pressed=true]{border-color:#f58220}.store-card .store-gallery-thumbs img{width:54px;height:54px;object-fit:contain}.store-gallery-controls[hidden],.store-gallery-thumbs[hidden]{display:none}
.products-editor{width:calc(100vw - 32px);max-width:calc(100vw - 32px);height:calc(100vh - 32px);max-height:calc(100vh - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:hidden}.products-editor[open]{display:flex;flex-direction:column}.products-editor>.products-head{flex-shrink:0;margin:0;padding:14px 22px;border-bottom:1px solid #d8cd9e;background:#fff4c7}.products-editor>form{flex:1;min-height:0;overflow:auto;padding:20px 24px}.products-editor textarea{min-height:140px}.products-editor>form>button[type=submit]{position:sticky;bottom:0;padding:12px 32px;box-shadow:0 0 0 6px #fffef7}.product-photo-list{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.product-photo-item{width:145px;border:1px solid #cfc8b5;background:#fff;padding:8px;border-radius:8px;display:flex;flex-direction:column;gap:5px}.product-photo-item img{width:127px;height:110px;object-fit:contain;background:#f5f5f2}.product-photo-item button{padding:6px;font-size:12px}.product-photo-item small{color:#444}.products-editor [data-photo-error]{color:#9d2929}
@media(max-width:600px){.products-editor{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.products-editor>form{padding:14px}.store-card .store-gallery-large{height:240px}.store-dialog-head h2{font-size:18px}.store-tile{grid-template-columns:72px minmax(0,1fr) 12px;gap:10px}.store-tile .store-thumb{width:72px;height:72px}.store-tile b{font-size:15px}}
.products-save-bar{flex-shrink:0;padding:12px 24px;border-top:1px solid #d8cd9e;background:#fff4c7}.products-save-bar button{padding:10px 32px}
.products-admin{width:calc(100vw - 32px);max-width:calc(100vw - 32px);height:calc(100vh - 32px);max-height:calc(100vh - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:hidden}.products-admin[open]{display:flex;flex-direction:column}.products-admin>.products-head{flex-shrink:0;margin:0;padding:12px 22px;border-bottom:1px solid #d8cd9e}.products-admin>.products-head:first-child{background:#fff4c7}.products-admin>[data-error]{flex-shrink:0;margin:0;padding:0 22px}.products-admin>[data-error]:empty{display:none}.products-admin>[data-list]{flex:1;min-height:0;max-height:none;overflow:auto;padding:0 22px 16px}.products-admin th{z-index:1}.products-admin .products-head input{width:min(420px,45vw);max-width:none}.products-admin table{min-width:680px}
@media(max-width:600px){.products-admin{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.products-admin>.products-head{padding:10px 12px;gap:8px}.products-admin>.products-head h2{font-size:19px}.products-admin>[data-list]{padding:0 12px 12px}.products-admin .products-head button{padding:8px;font-size:13px}}

.products-admin .products-category-row th{position:static;background:#fff4c7;color:#302b1e;padding:9px 12px;border-top:1px solid #d8cd9e;border-bottom:1px solid #d8cd9e;text-align:left;font-weight:700}.products-category-row span{font-weight:400;color:#625a43}.products-extras-category{font-size:14px;margin:14px 0 6px;padding:7px 10px;background:#fff4c7;color:#302b1e;border-bottom:1px solid #d8cd9e}
