.store-hidden{display:none!important}
.header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cart-header-btn,.admin-header-btn{position:relative;border:1px solid rgba(160,139,106,.22);background:#fffaf2;color:var(--ink);border-radius:999px;min-height:42px;padding:0 14px;cursor:pointer;font:inherit}
.admin-header-btn{background:#8f6b3f;color:#fff;border-color:#8f6b3f}
.cart-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-right:5px;border-radius:999px;background:#251d16;color:#fff;font-size:11px}
.item-actions{display:flex;gap:8px;margin-top:14px}
.item-actions button{flex:1;border:1px solid rgba(160,139,106,.2);border-radius:12px;min-height:40px;background:#fffaf2;cursor:pointer;color:var(--ink);font:inherit}
.item-actions .add-cart{background:var(--dark);color:#fff;border-color:var(--dark)}
.item-actions .favorite-btn.active{background:#f1e1c4;color:#6d4c25;border-color:#caa873}
.item-card-link{display:block;color:inherit;text-decoration:none}

.store-dialog{width:min(980px,96vw);max-height:92vh;border:0;border-radius:26px;padding:0;background:#fffdf8;box-shadow:0 30px 90px rgba(0,0,0,.32)}
.store-dialog::backdrop{background:rgba(31,23,17,.58);backdrop-filter:blur(4px)}
.store-shell{display:grid;grid-template-columns:210px 1fr;min-height:620px}
.store-sidebar{background:#251d16;color:#f6eddf;padding:22px 16px;display:flex;flex-direction:column;gap:8px}
.store-sidebar h2{margin:0 0 12px;font-size:22px}
.store-sidebar button{border:0;background:transparent;color:#d8c9b6;text-align:right;border-radius:12px;padding:12px 13px;cursor:pointer;font:inherit}
.store-sidebar button.active{background:#dfc79b;color:#2b2117;font-weight:700}
.store-sidebar .store-admin-tab{margin-top:14px;border:1px solid rgba(223,199,155,.28)}
.store-main{padding:22px;overflow:auto;max-height:92vh}
.store-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.store-top h3{margin:0;font-size:26px}
.store-close{width:40px;height:40px;border-radius:50%;border:1px solid rgba(160,139,106,.22);background:#fff;cursor:pointer;font-size:24px}
.store-panel{display:none}
.store-panel.active{display:block}
.store-card{background:#fffaf2;border:1px solid rgba(160,139,106,.17);border-radius:18px;padding:16px;margin-bottom:14px}
.store-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.store-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.store-field{display:flex;flex-direction:column;gap:6px;color:#5f5448;font-size:13px}
.store-field input,.store-field select,.store-field textarea{width:100%;border:1px solid #ddd1bc;border-radius:12px;background:#fff;padding:11px 12px;outline:none;color:#241c14;font:inherit}
.store-field textarea{min-height:100px;resize:vertical}
.store-btn{border:0;border-radius:12px;min-height:44px;padding:0 16px;background:#251d16;color:white;cursor:pointer;font:inherit}
.store-btn.secondary{background:#f3ead9;color:#382b1e;border:1px solid #d9c8aa}
.store-btn.danger{background:#8c3c32}
.store-btn.gold{background:#b8894f}
.store-btn:disabled{opacity:.55;cursor:not-allowed}
.store-status{min-height:22px;margin:10px 0;font-size:13px;color:#6f6358}
.store-status.success{color:#2f6e46}.store-status.error{color:#a23e34}
.store-list{display:grid;gap:10px}
.store-row{display:grid;grid-template-columns:74px 1fr auto;gap:12px;align-items:center;border:1px solid rgba(160,139,106,.17);border-radius:16px;padding:10px;background:#fff}
.store-row img,.store-thumb{width:74px;height:74px;border-radius:12px;object-fit:cover;background:#eee2cd}
.store-row h4{margin:0 0 5px;font-size:15px}.store-row p{margin:0;color:#74685b;font-size:12px;line-height:1.8}
.store-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.store-row-actions button,.store-row-actions a{border:1px solid #dbcdb6;background:#fff9ef;color:#3f3326;border-radius:10px;padding:8px 10px;cursor:pointer;font:inherit;font-size:12px;text-decoration:none}
.store-empty{text-align:center;color:#7a6e61;padding:32px 14px;border:1px dashed #d9ccb7;border-radius:16px}
.store-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;font-weight:800;font-size:17px}
.store-tabs-inline{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.store-tabs-inline button{border:1px solid #d9cbb4;background:#fff8ed;border-radius:999px;padding:8px 13px;cursor:pointer;font:inherit}
.store-tabs-inline button.active{background:#2a2017;color:#fff}
.order-status{display:inline-flex;border-radius:999px;background:#f2e7d4;padding:4px 9px;font-size:11px;color:#604a31}
.admin-form-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.admin-form-title h4{margin:0;font-size:20px}
.image-preview-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.image-preview{position:relative;width:90px}
.image-preview img{width:90px;height:90px;object-fit:cover;border-radius:12px;border:1px solid #dbcdb7}
.image-preview button{position:absolute;left:4px;top:4px;width:26px;height:26px;border-radius:50%;border:0;background:#8d3c33;color:#fff;cursor:pointer}
.admin-items-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:20px 0 10px}
.admin-note{background:#f4ead8;border:1px solid #dcc8a7;border-radius:14px;padding:12px;color:#5b4935;font-size:13px;line-height:1.9}
.checkout-box{margin-top:18px;border-top:1px solid #e0d4bf;padding-top:18px}
.account-email{direction:ltr;text-align:right}
@media(max-width:760px){
 .header-actions{gap:6px}.cart-header-btn,.admin-header-btn{padding:0 10px;font-size:12px}.store-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.store-shell{grid-template-columns:1fr;display:block;min-height:100dvh}.store-sidebar{position:sticky;top:0;z-index:2;flex-direction:row;overflow:auto;padding:10px;background:#251d16}.store-sidebar h2{display:none}.store-sidebar button{white-space:nowrap;padding:9px 11px}.store-sidebar .store-admin-tab{margin-top:0}.store-main{max-height:none;padding:14px 12px}.store-grid-2,.store-grid-3{grid-template-columns:1fr}.store-row{grid-template-columns:62px 1fr}.store-row img,.store-thumb{width:62px;height:62px}.store-row-actions{grid-column:1/-1;justify-content:flex-start}.store-top h3{font-size:22px}}
