/* HABIBI Premium Fixes 2026-06-14 - lisibilité, responsive, admin plein écran, WhatsApp compact */
html{scroll-behavior:smooth} body{overflow-x:hidden}.habibi-loading,.hb-loading{pointer-events:none}
img{max-width:100%;height:auto}.product-card,.hb-card,.card{content-visibility:auto;contain-intrinsic-size:360px 480px}.product-card [class*="badge"],.hb-card [class*="badge"]{max-width:100%}
.hb-payment-badges,.payment-badges,.cart-payment-badges{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:8px!important;max-width:100%!important;overflow:visible!important}.hb-payment-badges>*{min-width:0!important;white-space:normal!important;text-align:center!important}
.hb-product-gallery,.product-gallery,.gallery-slider{background:transparent!important;max-width:min(96vw,980px)!important;margin-inline:auto!important}.hb-product-gallery img,.product-gallery img,.gallery-slider img{object-fit:contain!important;background:transparent!important;border-radius:18px!important;max-height:78vh!important}.hb-gallery-track,.gallery-track{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;gap:12px!important}.hb-gallery-track>*{flex:0 0 100%!important;scroll-snap-align:center!important}
.hb-wa-simulator,.whatsapp-sim-panel,.hb-whatsapp-panel{height:min(760px,calc(100vh - 140px))!important;max-height:calc(100vh - 120px)!important;display:flex!important;flex-direction:column!important;color:#111827!important}.hb-wa-messages,.whatsapp-messages,#hbWaMessages{flex:1 1 auto!important;min-height:240px!important;overflow:auto!important;background:#efeae2!important;color:#111827!important}.hb-wa-message,.whatsapp-bubble,.wa-bubble{color:#111827!important;line-height:1.38!important}.hb-wa-message.bot,.wa-bubble.bot{background:#fff!important}.hb-wa-message.user,.wa-bubble.user{background:#dcf8c6!important}.hb-wa-input,textarea[name="wa_message"],#hbWaInput{color:#111827!important;background:#fff!important;border:1px solid #cbd5e1!important}
.admin-shell{width:min(100%,1680px)!important;max-width:1680px!important;box-sizing:border-box!important}.game-admin,.hb-admin-split{grid-template-columns:minmax(230px,285px) minmax(0,1fr)!important}.game-main,.admin-panel,.hb-backend-pro{min-width:0!important;overflow-x:auto!important}.hb-products-table,.admin-table,table{max-width:100%!important}.hb-row-actions,.game-row-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}.hb-row-actions button,.hb-row-actions a,.game-row-actions button,.game-row-actions a{flex:1 1 96px!important;min-width:86px!important;white-space:normal!important}
.hb-modal,.modal{z-index:99999!important}.hb-modal .modal-content,.hb-product-editor,.product-edit-modal{width:min(1120px,96vw)!important;max-height:88vh!important;overflow:auto!important;color:#111827!important}.hb-product-editor input,.hb-product-editor textarea,.hb-product-editor select,.modal input,.modal textarea,.modal select{color:#111827!important;background:#fff!important;border-color:#cbd5e1!important}.hb-product-editor label,.modal label{color:#1f2937!important;font-weight:800!important}
@media (max-width:900px){.game-admin,.hb-admin-split{display:block!important}.game-sidebar,.hb-smart-sidebar{position:relative!important;top:auto!important;margin-bottom:12px!important}.admin-tabs{overflow-x:auto!important;white-space:nowrap!important}.hb-wa-simulator,.whatsapp-sim-panel,.hb-whatsapp-panel{height:calc(100vh - 105px)!important;max-height:none!important}.hb-product-gallery img,.product-gallery img,.gallery-slider img{max-height:70vh!important}.hb-row-actions button,.hb-row-actions a{flex:1 1 calc(50% - 8px)!important}}
@media (max-width:560px){.admin-shell{padding:8px!important}.admin-header{border-radius:20px!important;padding:16px!important}.game-main,.admin-panel,.hb-backend-pro{padding:10px!important;border-radius:18px!important}.hb-row-actions button,.hb-row-actions a{flex:1 1 100%!important}.hb-payment-badges>*{font-size:11px!important;padding:7px 8px!important}.hb-modal .modal-content,.hb-product-editor{width:98vw!important;max-height:92vh!important}}
/* Admin edit command lines - Amir */
.hb-admin-order-edit-form{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:24px!important;padding:12px!important;box-shadow:0 18px 40px rgba(15,23,42,.08)!important;margin-bottom:18px!important}.hb-admin-edit-items{display:grid!important;gap:12px!important}.hb-admin-edit-item{border:1px solid #dbe4ef!important;background:#fff!important;border-radius:20px!important;padding:14px!important}.hb-admin-new-item{background:#fff7df!important;border-color:#f2d58b!important}.hb-admin-edit-grid{display:grid!important;grid-template-columns:1.4fr .8fr .9fr .65fr .75fr auto!important;gap:10px!important;align-items:end!important;margin-top:10px!important}.hb-admin-edit-grid label,.hb-admin-options-label{display:flex!important;flex-direction:column!important;gap:5px!important;color:#172033!important;font-weight:900!important;font-size:12px!important}.hb-admin-edit-grid input,.hb-admin-options-label textarea{width:100%!important;background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important;border-radius:13px!important;padding:9px 10px!important;font-weight:800!important;box-shadow:none!important}.hb-admin-delete-line{align-self:center!important;flex-direction:row!important;align-items:center!important;color:#b91c1c!important;background:#fee2e2!important;border-radius:999px!important;padding:8px 10px!important}.hb-admin-delete-line input{width:auto!important}.hb-admin-options-label{margin-top:10px!important}.hb-admin-order-savebar{position:sticky!important;bottom:8px!important;z-index:5!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-top:12px!important;padding:12px!important;border-radius:18px!important;background:#111827!important;color:#fff!important;box-shadow:0 16px 40px rgba(0,0,0,.22)!important}.hb-admin-order-savebar small{color:#fde68a!important;font-weight:800!important}.hb-admin-order-savebar button{border-radius:999px!important;padding:11px 15px!important;font-weight:950!important}@media(max-width:760px){.hb-admin-edit-grid{grid-template-columns:1fr!important}.hb-admin-order-savebar{position:static!important;align-items:flex-start!important;flex-direction:column!important}.hb-admin-order-savebar button{width:100%!important}}
