/* ALO PARDEH v79 — cohesive media workflow, mobile-first grid and compact save dock. */
.alo77-photo-studio .alo62-gallery,.alo62-gallery{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:start!important;gap:13px!important;min-width:0}
.alo62-gallery>.alo62-card{min-width:0;max-width:100%;box-sizing:border-box}
.alo62-gallery>.alo62-card.alo79-editing{grid-column:span 2;box-shadow:0 7px 24px #5e49301a}
.alo62-card .alo62-card-top{aspect-ratio:5/4}
.alo62-card .alo62-actions{display:flex;gap:5px;justify-content:space-between;flex-wrap:nowrap}
.alo62-card .alo62-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:34px;padding:5px;border-radius:9px}
.alo62-card .alo62-actions .alo62-handle{touch-action:none;cursor:grab;min-width:34px;flex:0 0 34px;user-select:none}
.alo62-card .alo62-actions .alo62-handle:active{cursor:grabbing}
.alo62-card.dragging{opacity:.80;transform:scale(1.025);box-shadow:0 13px 30px #3223173b;z-index:4;background:white}
.alo62-card .alo62-actions button[data-action="move-prev"],.alo62-card .alo62-actions button[data-action="move-next"]{font-size:17px;font-weight:800;min-width:28px}
.alo62-card .alo62-actions button[data-action="edit"]{min-width:42px;flex:1}
/* Keep the save button available but never obscure the last product card. */
.alo62-panel#manage,.alo77-photo-studio .alo62-panel#manage{position:relative;padding-bottom:115px!important}
.alo62-save-zone,.alo77-photo-studio .alo62-save-zone{position:sticky!important;bottom:8px!important;z-index:35!important;box-sizing:border-box!important;width:100%!important;margin:16px auto 0!important;padding:9px 12px!important;min-height:58px!important;max-height:85px!important;border-radius:14px!important;box-shadow:0 7px 18px #3c2b1830!important;background:#fffdf7f5!important;display:flex!important;gap:10px!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;text-align:start!important}
.alo62-save-zone .alo62-help,.alo77-photo-studio .alo62-save-zone .alo62-help{display:none!important}
.alo62-save-zone #alo62-save,.alo77-photo-studio .alo62-save-zone #alo62-save{flex:0 0 auto!important;width:auto!important;max-width:none!important;min-height:42px!important;margin:0!important;padding:9px 17px!important;font-size:13px!important;border-radius:11px!important;white-space:nowrap!important}
.alo62-save-zone .alo62-unsaved,.alo77-photo-studio .alo62-save-zone .alo62-unsaved{min-width:0!important;flex:1 1 auto!important;max-width:100%!important;margin:0!important;font-size:12px!important;line-height:1.6!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.alo79-delete-user{margin-top:15px;padding:14px;border-radius:12px;border:1px solid #eed6d1;background:#fff8f7;display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.alo79-delete-user .alo79-delete-user-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#fff!important;color:#a12f30!important;border:1px solid #cc9692!important;font-size:13px}
.alo79-delete-user small{font-size:12px;color:#816764}
.alo79-category-manager{padding:clamp(12px,2.5vw,23px)}
.alo79-category-manager p{font-size:13px;color:#75614a;line-height:1.9}
.alo79-category-manager label{display:block;font-size:13px;margin-bottom:8px;font-weight:650}
.alo79-category-manager .alo79-new-category-row{display:flex;gap:8px;align-items:center}
.alo79-category-manager input{width:100%;min-width:0;font:inherit;padding:12px;border:1px solid #d8c6b2;border-radius:12px;box-sizing:border-box}
.alo79-category-manager button{background:#735639;border:0;color:white;border-radius:10px;padding:10px 14px;cursor:pointer;white-space:nowrap;font:inherit}
.alo79-category-manager button[disabled]{opacity:.5;cursor:progress}
.alo79-category-manager #alo79-category-list{margin-top:17px;display:grid;gap:9px}
.alo79-category-manager .alo79-cat-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:10px;border-radius:12px;border:1px solid #e8ddcd;background:#fff}
.alo79-category-manager .alo79-cat-row input{width:100%}
.alo79-category-manager .alo79-cat-row .alo79-cat-del{background:#fff2ef;color:#9c3932;border:1px solid #e2aca6}
.alo79-category-manager .alo79-category-message{font-weight:700;font-size:13px;min-height:23px}
@media(max-width:1060px){.alo77-photo-studio .alo62-gallery,.alo62-gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:680px){.alo77-photo-studio .alo62-gallery,.alo62-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.alo62-gallery>.alo62-card.alo79-editing{grid-column:1/-1}.alo62-card .alo62-card-top{aspect-ratio:1/1}.alo62-card .alo62-actions{gap:3px}.alo62-card .alo62-actions button{min-width:25px;min-height:32px;padding:3px!important}.alo62-card .alo62-actions .alo62-handle{min-width:27px;flex-basis:27px}.alo62-card .alo62-actions button[data-action="edit"] span{display:none}.alo62-card .alo62-actions button[data-action="edit"]{min-width:29px}.alo62-save-zone,.alo77-photo-studio .alo62-save-zone{padding:7px!important;gap:6px!important;max-height:75px!important}.alo62-save-zone #alo62-save,.alo77-photo-studio .alo62-save-zone #alo62-save{font-size:12px!important;padding:7px 9px!important;min-height:42px!important}.alo62-save-zone .alo62-unsaved{font-size:11px!important}.alo79-category-manager .alo79-cat-row{grid-template-columns:1fr 1fr}.alo79-category-manager .alo79-cat-row input{grid-column:1/-1}.alo79-category-manager .alo79-new-category-row{flex-wrap:wrap}.alo79-category-manager .alo79-new-category-row button{width:100%}}
