/* Functional layer; original Store sizing remains untouched. */
button[id*="btn-opt-"]{min-height:48px!important;padding:10px 16px!important;border-color:#2C1B10!important;background:#2C1B10!important;color:#fff!important;font-size:13px!important;}
button[id*="btn-opt-"]:hover,button[id*="btn-opt-"].selected-weight,button[id*="btn-opt-"][aria-pressed="true"]{border-color:#2C1B10!important;background:#2C1B10!important;color:#fff!important;box-shadow:0 4px 12px rgba(36,20,79,.16)!important;}
.khalaf-store-name{color:#fff;font-size:1rem;font-weight:900;text-align:center;margin-top:8px;direction:ltr;}
#khalaf-cart-drawer{position:fixed;inset:0;z-index:100;pointer-events:none;visibility:hidden;}#khalaf-cart-drawer.open{pointer-events:auto;visibility:visible;}
.khalaf-cart-backdrop{position:absolute;inset:0;background:rgba(37,21,63,.35);opacity:0;transition:opacity .2s;}.khalaf-cart-panel{position:absolute;top:0;right:0;width:min(390px,92vw);height:100%;background:#fffdf9;box-shadow:-10px 0 30px rgba(37,21,63,.18);padding:32px 24px;transform:translateX(100%);transition:transform .25s ease;color:#2C1B10;}#khalaf-cart-drawer.open .khalaf-cart-backdrop{opacity:1}#khalaf-cart-drawer.open .khalaf-cart-panel{transform:translateX(0);}
.khalaf-cart-panel h2{font-size:1.5rem;font-weight:900;margin:28px 0 12px}.khalaf-cart-panel p{color:#756c67}.khalaf-cart-close{position:absolute;top:16px;left:16px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#2C1B10}.khalaf-cart-continue{border:0;background:#2C1B10;color:#fff;border-radius:12px;padding:13px 18px;font:800 14px Cairo;cursor:pointer;width:100%;margin-top:22px;}
.khalaf-cart-item{display:flex;flex-direction:column;gap:6px;padding:14px 0;border-bottom:1px solid #D4C4B5;color:#2C1B10}.khalaf-cart-item strong{font-weight:900}.khalaf-cart-item span{font-size:.88rem;color:#756c67}
.khalaf-cart-product{display:flex;align-items:center;gap:10px}.khalaf-cart-product img{width:54px;height:54px;object-fit:cover;border-radius:9px;border:1px solid #eaded8}.khalaf-cart-controls{display:flex;align-items:center;gap:10px;margin-right:64px}.khalaf-cart-controls button{border:1px solid #d8cfc8;background:#fff;border-radius:7px;min-width:30px;height:30px;cursor:pointer}.khalaf-cart-controls button[data-cart-action=remove]{border:0;color:#8b3b30}.khalaf-cart-subtotal-row{display:flex;justify-content:space-between;font-weight:900;padding:16px 0 4px;color:#2C1B10}
.khalaf-cart-checkout{border:0;background:#2C1B10;color:#fff;border-radius:12px;padding:13px 18px;font:800 14px Cairo;cursor:pointer;width:100%;margin-top:18px}.khalaf-checkout-form{display:none;margin-top:20px}.khalaf-checkout-form.visible{display:block}.khalaf-checkout-form h3{font-size:1.1rem;font-weight:900;margin:0 0 12px}.khalaf-checkout-form input,.khalaf-checkout-form textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #D4C4B5;border-radius:10px;background:#fff;padding:11px;margin:8px 0;font:14px Cairo}.khalaf-checkout-form textarea{min-height:82px;resize:vertical}.khalaf-checkout-form button[type=submit]{width:100%;border:0;border-radius:10px;background:#9A4318;color:#fff;padding:11px;font:800 14px Cairo;cursor:pointer}.checkout-status{font-size:.8rem;margin-top:8px;color:#2C1B10!important}
#products-catalog{padding-bottom:2.5rem!important;}
#reviews{margin-top:-105px!important;}
#reviews .mx-auto.h-1.w-16.rounded-full{display:none!important;}
.animate-pulse.h-2.w-2.rounded-full{display:none!important;}
#order-checkout-modal{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:16px}.order-modal-backdrop{position:absolute;inset:0;background:rgba(20,16,25,.68)}#order-checkout-modal.open{display:flex}.order-modal-card{position:relative;width:min(460px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid #ededed;border-radius:16px;padding:22px;box-shadow:0 24px 70px rgba(0,0,0,.25);color:#2C1B10}.order-modal-close{position:absolute;top:10px;left:14px;border:0;background:transparent;color:#333;font-size:30px;line-height:1;cursor:pointer}.order-modal-card h2{text-align:center;font-size:1.25rem;font-weight:900;margin:2px 28px 18px}.order-summary{border:1px solid #e4e4e4;border-radius:10px;background:#fafafa;padding:13px;margin-bottom:18px}.order-summary>div{display:flex;justify-content:space-between;align-items:center;padding:7px 0;font-size:.9rem}.order-summary hr{border:0;border-top:1px solid #e5e5e5;margin:5px 0}.order-summary .order-total-row{font-size:1rem}.order-modal-card h3{font-size:1rem;font-weight:900;margin:14px 0 9px}.shipping-choice{border:1px solid #ddd;border-radius:10px;background:#fff;padding:12px;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.shipping-choice label{display:flex;gap:7px;align-items:center}.shipping-choice input{accent-color:#222}.order-field{display:flex;align-items:center;gap:9px;border:1px solid #d8d8d8;border-radius:10px;background:#fff;margin:9px 0;padding:0 9px;height:49px}.order-field>span{display:flex;align-items:center;justify-content:center;width:30px;height:31px;border:1px solid #ddd;border-radius:6px;padding:0;color:#7a3f32;background:#fff;font-size:16px}.order-field input,.order-field select{border:0;outline:0;flex:1;width:100%;height:100%;font:14px Cairo;background:#fff;color:#2C1B10}.order-field input::placeholder{color:#aaa}.order-submit{width:100%;border:0;border-radius:11px;background:#9b4f3c;color:#fff;padding:14px 12px;margin-top:12px;font:900 15px Cairo;cursor:pointer}.order-submit:hover{background:#7f3c2e}.order-error{color:#a32626;font-size:.82rem;text-align:center;margin:8px 0 0}

/* Brand override and left-side cart drawer. */
#khalaf-cart-drawer .khalaf-cart-panel{right:auto;left:0;transform:translateX(-100%);transition:transform .25s ease;background:#FBF3E2;color:#2C1B10;box-shadow:10px 0 30px rgba(44,27,16,.18)}
#khalaf-cart-drawer.open .khalaf-cart-panel{transform:translateX(0)}
#khalaf-cart-drawer .khalaf-cart-checkout{background:#9A4318!important}
#khalaf-cart-drawer .khalaf-cart-continue{background:#2C1B10!important}
#khalaf-cart-drawer .khalaf-cart-subtotal-row{color:#2C1B10}
.order-field>span{color:#9A4318!important;border-color:#E7A233!important}
.order-submit{background:#9A4318!important}.shipping-choice input{accent-color:#2C1B10!important}

/* Precision cart drawer layout. */
#khalaf-cart-drawer .khalaf-cart-panel{width:min(340px,80vw);padding:28px 16px 22px;}
#khalaf-cart-drawer .khalaf-cart-items{display:flex;flex-direction:column;gap:10px;overflow:auto;max-height:calc(100vh - 245px);}
#khalaf-cart-drawer .khalaf-cart-item{background:#fff;border:1px solid #D4C4B5;border-radius:16px;padding:12px;box-shadow:0 3px 12px rgba(44,27,16,.08);}
#khalaf-cart-drawer .khalaf-cart-product{align-items:flex-start;gap:10px;}
#khalaf-cart-drawer .khalaf-cart-product>div{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;}
#khalaf-cart-drawer .khalaf-cart-product strong{line-height:1.45;}
#khalaf-cart-drawer .khalaf-cart-weight{display:block!important;font-size:.82rem;color:#6B5A4E;}
#khalaf-cart-drawer .khalaf-cart-price{display:block!important;font-size:.82rem;color:#9A4318;font-weight:800;}
#khalaf-cart-drawer .khalaf-cart-subtotal-row{margin-top:10px;border-top:1px solid #D4C4B5;}
#khalaf-cart-drawer .khalaf-cart-checkout{background:transparent!important;color:#2C1B10!important;border:1px solid #9A4318!important;border-radius:12px;padding:12px 18px;margin-top:14px;}
#khalaf-cart-drawer .khalaf-cart-checkout:hover{background:#FBF3E2!important;}
#khalaf-cart-drawer .khalaf-cart-backdrop{cursor:pointer;}

.shopping-bag-icon{display:inline-block;width:19px;height:19px;vertical-align:-4px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-left:4px}
.order-submit{display:flex;align-items:center;justify-content:center;gap:4px}

/* Checkout modal reference layout: compact, white, RTL mobile card. */
#order-checkout-modal{padding:0;align-items:center;justify-content:center}
#order-checkout-modal .order-modal-card{width:min(675px,calc(100vw - 44px));max-height:calc(100vh - 42px);overflow:auto;border:2px solid #a94a2b;border-radius:16px;padding:28px 30px 30px;background:#fff;color:#111;box-shadow:0 20px 60px rgba(0,0,0,.28)}
#order-checkout-modal .order-modal-close{top:18px;left:28px;color:#111;font-size:35px;font-weight:300}
#order-checkout-modal .order-modal-card h2{font-size:1.75rem;line-height:1.3;margin:0 42px 26px;font-weight:500;color:#111}
#order-checkout-modal .order-summary{border:2px solid #d6d6d6;border-radius:8px;background:#fff;padding:10px 16px;margin-bottom:28px}
#order-checkout-modal .order-summary>div{padding:7px 0;font-size:1.35rem;font-weight:500;color:#111}
#order-checkout-modal .order-summary .order-total-row{font-size:1.45rem;font-weight:900}
#order-checkout-modal .order-summary hr{border-top:2px solid #ddd;margin:4px 0}
#order-checkout-modal .order-modal-card h3{font-size:1.45rem;text-align:right;margin:0 0 14px;font-weight:900;color:#111}
#order-checkout-modal .shipping-choice{height:64px;box-sizing:border-box;border:2px solid #ddd;border-radius:8px;margin-bottom:24px;padding:0 18px;font-size:1.3rem;color:#111}
#order-checkout-modal .shipping-choice label{gap:12px}
#order-checkout-modal .shipping-choice input{width:24px;height:24px;accent-color:#111}
#order-checkout-modal .order-field{height:76px;margin:14px 0;padding:0;border:2px solid #cfcfcf;border-radius:10px;gap:0;overflow:hidden;direction:rtl}
#order-checkout-modal .order-field>span{order:0;width:72px;height:100%;border:0;border-right:1px solid #cfcfcf;border-radius:0;color:#ad4a2a!important;background:#fff;font-size:25px}
#order-checkout-modal .order-field input,#order-checkout-modal .order-field select{order:1;padding:0 18px;font-size:1.25rem;color:#444;text-align:right}
#order-checkout-modal .order-field input::placeholder{color:#555;opacity:1}
#order-checkout-modal .order-city-hidden{display:none}
#order-checkout-modal .order-submit{height:82px;border-radius:12px;margin-top:20px;background:#ad4727!important;font-size:1.45rem;font-weight:800;box-shadow:none}
#order-checkout-modal .shopping-bag-icon{width:25px;height:25px;fill:#fff;stroke:#fff;margin:0 0 0 8px}
#order-checkout-modal .order-error{font-size:1rem}
@media (max-width:600px){
  #order-checkout-modal .order-modal-card{width:calc(100vw - 44px);max-height:calc(100vh - 36px);padding:25px 29px 29px}
  #order-checkout-modal .order-modal-close{top:15px;left:25px;font-size:32px}
  #order-checkout-modal .order-modal-card h2{font-size:1.5rem;margin-bottom:22px}
  #order-checkout-modal .order-summary>div{font-size:1.15rem}
  #order-checkout-modal .order-summary .order-total-row{font-size:1.25rem}
  #order-checkout-modal .order-modal-card h3{font-size:1.25rem}
  #order-checkout-modal .shipping-choice{font-size:1.15rem;height:62px}
  #order-checkout-modal .order-field{height:74px}
  #order-checkout-modal .order-field input,#order-checkout-modal .order-field select{font-size:1.12rem}
  #order-checkout-modal .order-submit{height:76px;font-size:1.25rem}
}

#order-checkout-modal .checkout-field-icon svg{width:28px;height:28px;fill:none;stroke:#ad4a2a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Mobile reference sizing: keep the complete checkout card within one viewport. */
@media (max-width:600px){
  #order-checkout-modal{padding:12px;overflow:hidden}
  #order-checkout-modal .order-modal-card{width:calc(100vw - 28px);max-height:calc(100vh - 24px);overflow:hidden;padding:17px 16px 18px;border-width:1.5px;border-radius:15px}
  #order-checkout-modal .order-modal-close{top:10px;left:15px;font-size:29px}
  #order-checkout-modal .order-modal-card h2{font-size:1.2rem;line-height:1.2;margin:0 28px 14px}
  #order-checkout-modal .order-summary{padding:6px 10px;margin-bottom:13px;border-width:1px;border-radius:7px}
  #order-checkout-modal .order-summary>div{padding:4px 0;font-size:.92rem;line-height:1.25}
  #order-checkout-modal .order-summary .order-total-row{font-size:1rem}
  #order-checkout-modal .order-summary hr{border-top-width:1px;margin:2px 0}
  #order-checkout-modal .order-modal-card h3{font-size:1rem;margin:0 0 7px}
  #order-checkout-modal .shipping-choice{height:43px;margin-bottom:9px;padding:0 10px;border-width:1px;border-radius:7px;font-size:.92rem}
  #order-checkout-modal .shipping-choice input{width:18px;height:18px}
  #order-checkout-modal .order-field{height:47px;margin:8px 0;border-width:1px;border-radius:8px}
  #order-checkout-modal .order-field>span{width:48px;border-right-width:1px;font-size:18px}
  #order-checkout-modal .checkout-field-icon svg{width:21px;height:21px}
  #order-checkout-modal .order-field input,#order-checkout-modal .order-field select{padding:0 11px;font-size:.95rem}
  #order-checkout-modal .order-submit{height:54px;margin-top:12px;border-radius:9px;font-size:1.02rem}
  #order-checkout-modal .shopping-bag-icon{width:20px;height:20px;margin-left:5px}
  #order-checkout-modal .order-error{font-size:.72rem;margin:4px 0 0}
}

/* Product card reference sizing and removal of the oversized gap before reviews. */
#products-catalog{padding-bottom:10px!important}
#reviews{padding-top:18px!important}
@media (max-width:600px){
  #products-catalog{padding-bottom:6px!important}
  #reviews{padding-top:14px!important}
  #products-catalog button[id*="btn-opt-"]{min-height:64px;height:64px;padding:8px 6px!important;border-radius:16px!important;font-size:.9rem!important;line-height:1.15}
  #products-catalog [class*="grid"]:has(>button[id*="btn-opt-"]){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  #products-catalog .selected-weight{background:#2C1B10!important;color:#fff!important;border-color:#2C1B10!important}
}

/* Final spacing and weight controls match the supplied mobile reference. */
#products-catalog{margin-bottom:0!important}
#products-catalog + #reviews{margin-top:0!important}
@media (max-width:600px){
  #products-catalog button[id*="btn-opt-"]{min-height:80px;height:80px;font-size:.86rem!important;background:#fff!important;color:#2C1B10!important;border:1px solid #e6ddd3!important}
  #products-catalog button[id*="btn-opt-"].selected-weight{background:#2C1B10!important;color:#fff!important;border-color:#2C1B10!important}
  #products-catalog [class*="grid"]:has(>button[id*="btn-opt-"]){gap:10px!important}
  #products-catalog + #reviews{margin-top:0!important;padding-top:8px!important}
}

/* Keep the quality card fully visible and separated from customer reviews. */
.quality-card{height:auto!important;min-height:0!important;overflow:visible!important;position:relative;z-index:1;padding-bottom:32px!important}
#reviews{clear:both!important;position:relative;z-index:2}

/* Prevent the reviews section from overlapping the complete quality card. */
#reviews{margin-top:0!important}

/* Weight controls: navy-reference two-line label with price in every option. */
#products-catalog button[id*="btn-opt-"] .weight-label{display:block;font-weight:900;line-height:1.2}
#products-catalog button[id*="btn-opt-"] .weight-price{display:block;font-size:.9em;font-weight:800;line-height:1.2;margin-top:5px;opacity:.92}

/* Exact reference scale for weight buttons and their two-line labels. */
@media (max-width:600px){
  #products-catalog button[id*="btn-opt-"]{min-height:80px!important;height:80px!important;padding:8px 6px!important;font-size:.86rem!important}
  #products-catalog button[id*="btn-opt-"] .weight-price{font-size:.8em!important;margin-top:3px!important}
}

/* Reference width: weight buttons should not stretch edge-to-edge. */
@media (max-width:600px){
  #products-catalog button[id*="btn-opt-"]{width:100%!important;max-width:255px!important;justify-self:center!important}
  #products-catalog [class*="grid"]:has(>button[id*="btn-opt-"]){justify-items:center!important}
}

/* Exact mobile reference dimensions: 285 x 80px weight controls. */
@media (max-width:600px){
  #products-catalog button[id*="btn-opt-"]{width:285px!important;max-width:285px!important;min-width:285px!important;height:80px!important;min-height:80px!important;padding:8px 6px!important;border-radius:18px!important;font-size:1rem!important;line-height:1.15!important}
  #products-catalog button[id*="btn-opt-"] .weight-label{font-size:1rem!important}
  #products-catalog button[id*="btn-opt-"] .weight-price{font-size:.86rem!important;margin-top:3px!important}
  #products-catalog [class*="grid"]:has(>button[id*="btn-opt-"]){grid-template-columns:repeat(2,285px)!important;justify-content:center!important;justify-items:center!important;gap:10px 14px!important}
}

/* Final reference fit on a 390-430px mobile viewport. */
@media (max-width:600px){
  #products-catalog button[id*="btn-opt-"]{width:180px!important;max-width:180px!important;min-width:180px!important;height:80px!important;min-height:80px!important}
  #products-catalog [class*="grid"]:has(>button[id*="btn-opt-"]){grid-template-columns:repeat(2,180px)!important;gap:10px!important;justify-content:center!important}
}

/* Reduced height per final reference adjustment. */
@media (max-width:600px){
  #products-catalog button[id*="btn-opt-"]{height:64px!important;min-height:64px!important;padding:5px 6px!important}
  #products-catalog button[id*="btn-opt-"] .weight-price{margin-top:1px!important}
}

/* 3% shorter weight controls: 64px -> approximately 62px. */
@media (max-width:600px){
  #products-catalog button[id*="btn-opt-"]{height:62px!important;min-height:62px!important}
}

/* Second proportional adjustment requested: width -3%, height -8%. */
@media (max-width:600px){
  #products-catalog button[id*="btn-opt-"]{width:175px!important;max-width:175px!important;min-width:175px!important;height:57px!important;min-height:57px!important;padding:4px 5px!important}
  #products-catalog button[id*="btn-opt-"] .weight-price{font-size:.8rem!important;margin-top:0!important}
  #products-catalog [class*="grid"]:has(>button[id*="btn-opt-"]){grid-template-columns:repeat(2,175px)!important;gap:8px!important}
}

/* Cart actions use the Khalaf brand palette. */
#khalaf-cart-drawer .khalaf-cart-checkout,#khalaf-cart-drawer .khalaf-checkout-form button{background:#9A4318!important;color:#fff!important;border-color:#9A4318!important}
#khalaf-cart-drawer .khalaf-cart-checkout:hover,#khalaf-cart-drawer .khalaf-checkout-form button:hover{background:#2C1B10!important}

.khalaf-whatsapp-link{display:inline-block;margin:8px 4px;padding:8px 16px;border-radius:8px;background:#9A4318!important;color:#fff!important;text-decoration:none;font-weight:800}

/* All purchase actions use the Khalaf brand colors. */
#order-checkout-modal .order-submit,
button[id^="btn-add-to-cart-"]{background:#9A4318!important;color:#fff!important;border-color:#9A4318!important}
#order-checkout-modal .order-submit:hover,
button[id^="btn-add-to-cart-"]:hover{background:#2C1B10!important;color:#fff!important}

/* Final cart button palette: every cart action follows Khalaf identity. */
#khalaf-cart-drawer .khalaf-cart-close{background:#2C1B10!important;color:#fff!important;border:1px solid #2C1B10!important;border-radius:50%;width:34px;height:34px;line-height:28px}
#khalaf-cart-drawer .khalaf-cart-controls button{background:#FBF3E2!important;color:#2C1B10!important;border:1px solid #E7A233!important}
#khalaf-cart-drawer .khalaf-cart-controls button[data-cart-action="remove"]{background:#9A4318!important;color:#fff!important;border:1px solid #9A4318!important}
#khalaf-cart-drawer .khalaf-cart-checkout,
#khalaf-cart-drawer .khalaf-cart-continue,
#khalaf-cart-drawer .khalaf-checkout-form button{background:#9A4318!important;color:#fff!important;border:1px solid #9A4318!important}
#khalaf-cart-drawer .khalaf-cart-checkout:hover,
#khalaf-cart-drawer .khalaf-cart-continue:hover,
#khalaf-cart-drawer .khalaf-checkout-form button:hover{background:#2C1B10!important;color:#fff!important}

/* Admin file manager: isolated from the storefront unless /admin/files is opened. */
#admin-files-app{min-height:100vh;background:#FBF3E2;color:#2C1B10;padding:48px 24px;font-family:"Noto Sans Arabic",sans-serif}
.admin-files-shell{max-width:1180px;margin:auto}.admin-files-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px}.admin-files-kicker{color:#9A4318;font-weight:800;font-size:13px}.admin-files-header h1{font-size:clamp(30px,5vw,48px);margin:5px 0;font-weight:900}.admin-files-header p{margin:0;color:#6B5A4E}.admin-files-back,.admin-files-toolbar button,.admin-files-upload{border:1px solid #D4C4B5;background:#fff;border-radius:12px;padding:11px 16px;color:#2C1B10;font-weight:800;text-decoration:none;cursor:pointer}.admin-files-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}.admin-files-upload{background:#9A4318;color:#fff;border-color:#9A4318;display:inline-flex}.admin-files-upload input{display:none}.admin-files-toolbar button:hover,.admin-files-back:hover{border-color:#9A4318;background:#FDF1D3}.admin-files-toolbar #admin-files-status{color:#6B5A4E;font-size:13px}.admin-files-toolbar #admin-files-status.error{color:#9A4318}.admin-files-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}.admin-file-card{background:#fff;border:1px solid #D4C4B5;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(44,27,16,.08)}.admin-file-preview{height:180px;background:#FDF1D3;display:flex;align-items:center;justify-content:center}.admin-file-preview img{width:100%;height:100%;object-fit:cover}.admin-file-generic{font-size:24px;font-weight:900;color:#9A4318}.admin-file-meta{padding:14px 16px;display:grid;gap:5px}.admin-file-meta strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-file-meta span,.admin-file-meta small{color:#6B5A4E;font-size:12px}.admin-file-actions{display:flex;gap:8px;padding:0 16px 16px}.admin-file-actions a,.admin-file-actions button{flex:1;border-radius:10px;padding:9px;text-align:center;font:inherit;font-weight:800;cursor:pointer;text-decoration:none}.admin-file-actions a{background:#2C1B10;color:#fff}.admin-file-actions button{background:#fff;color:#9A4318;border:1px solid #D4C4B5}.admin-files-empty{text-align:center;padding:80px 20px;border:1px dashed #D4C4B5;border-radius:18px;color:#6B5A4E}.admin-files-error{color:#9A4318;border-color:#9A4318}
@media(max-width:640px){#admin-files-app{padding:28px 14px}.admin-files-header{display:block}.admin-files-back{display:inline-block;margin-top:18px}.admin-file-preview{height:150px}}

body.admin-files-mode{background:#FBF3E2!important}body.admin-files-mode>#root{display:none!important}body.admin-files-mode>#admin-files-app{display:block!important}

/* Footer logo reference alignment: logo right, Khalaf Store directly below. */
#footer .khalaf-store-name{font-size:.82rem!important;margin-top:4px!important;line-height:1.25;text-align:right!important;direction:ltr}
#footer .md\:col-span-5>div:first-child{align-items:flex-end!important;text-align:right!important}

/* Footer reference: pin the logo group to the far-right corner. */
#footer .md\:col-span-5{align-items:flex-end!important;text-align:right!important}
#footer .md\:col-span-5>div:first-child{width:100%;max-width:240px;margin-left:0!important;margin-right:0!important;align-items:flex-end!important;text-align:right!important}
#footer .md\:col-span-5>p{margin-left:0;margin-right:auto;text-align:right!important}
@media(max-width:767px){#footer .md\:col-span-5>div:first-child{margin-right:0!important;margin-left:auto!important}}

/* Footer reference placement: logo sits inside the right side of the footer content, above the description. */
#footer .md\\:col-span-5{display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:right!important}
#footer .md\\:col-span-5>div:first-child{width:240px!important;max-width:240px!important;margin-left:auto!important;margin-right:0!important;align-self:flex-start!important;align-items:flex-end!important;text-align:right!important}
#footer .md\\:col-span-5>div:first-child img{margin-left:0!important;margin-right:0!important}
#footer .md\\:col-span-5>p{width:100%!important;margin-left:0!important;margin-right:0!important;text-align:right!important}
@media(max-width:767px){#footer .md\\:col-span-5>div:first-child{margin-left:auto!important;margin-right:0!important}}

/* Final correction: move the footer logo group from the center to the right side of Khalaf's footer container. */
#footer .md\\:col-span-5{align-items:flex-end!important;text-align:right!important}
#footer .md\\:col-span-5>div:first-child{align-self:flex-end!important;margin-left:0!important;margin-right:0!important}

/* Physical right alignment, independent of RTL/LTR direction. */
#footer .md\\:col-span-5>div:first-child{width:240px!important;max-width:240px!important;position:relative!important;right:0!important;left:auto!important;margin-left:auto!important;margin-right:0!important;align-self:flex-end!important}

/* Exact reference placement: centered logo group above the footer description. */
#footer .md\\:col-span-5{align-items:center!important;text-align:center!important}
#footer .md\\:col-span-5>div:first-child{width:240px!important;max-width:240px!important;margin-left:auto!important;margin-right:auto!important;align-self:center!important;align-items:center!important;text-align:center!important}
#footer .md\\:col-span-5>div:first-child img{margin-left:auto!important;margin-right:auto!important}
#footer .md\\:col-span-5>p{width:100%!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}

/* Latest reference: footer logo at the upper-right of the footer content, above the text. */
#footer .md\\:col-span-5{align-items:flex-end!important;text-align:right!important}
#footer .md\\:col-span-5>div:first-child{width:240px!important;max-width:240px!important;align-self:flex-end!important;margin-left:auto!important;margin-right:0!important;align-items:flex-end!important;text-align:right!important}
#footer .md\\:col-span-5>div:first-child img{margin-left:0!important;margin-right:0!important}
#footer .md\\:col-span-5>p{width:100%!important;text-align:right!important}
@media(max-width:767px){#footer .md\\:col-span-5>div:first-child{align-self:flex-end!important;margin-left:auto!important;margin-right:0!important}}

/* Final requested footer treatment: large Khalaf logo on the right, name directly below. */
#footer .md\:col-span-5{align-items:stretch!important;text-align:right!important}
#footer .md\:col-span-5>div:first-child{width:240px!important;max-width:240px!important;margin-left:auto!important;margin-right:0!important;align-self:auto!important;align-items:flex-end!important;text-align:right!important}
#footer .md\:col-span-5>div:first-child img{height:140px!important;width:auto!important;max-width:240px!important;object-fit:contain!important;margin-left:0!important;margin-right:0!important}
#footer .khalaf-store-name{font-size:.82rem!important;margin-top:3px!important;text-align:right!important;direction:ltr}
@media(max-width:767px){#footer .md\:col-span-5>div:first-child{margin-left:auto!important;margin-right:0!important}#footer .md\:col-span-5>div:first-child img{height:128px!important}}

/* Final user instruction: keep the original gold logo and only move it right. */
#footer .md\:col-span-5{align-items:stretch!important;text-align:right!important}
#footer .md\:col-span-5>div:first-child{width:240px!important;max-width:240px!important;margin-left:auto!important;margin-right:0!important;align-self:auto!important;align-items:flex-end!important;text-align:right!important}
#footer .md\:col-span-5>div:first-child img{height:130px!important;width:auto!important;max-width:240px!important;object-fit:contain!important;filter:none!important;margin-left:0!important;margin-right:0!important}
#footer .khalaf-store-name{font-size:.82rem!important;margin-top:3px!important;text-align:right!important;direction:ltr}
@media(max-width:767px){#footer .md\:col-span-5>div:first-child{margin-left:auto!important;margin-right:0!important}#footer .md\:col-span-5>div:first-child img{height:130px!important}}

/* Owner admin panel: isolated under /owner-admin, storefront remains unchanged. */
body.owner-admin-mode{background:#fbf3e2!important;color:#2c1b10!important}body.owner-admin-mode>#root{display:none!important}body.owner-admin-mode>#owner-admin-app{display:block!important;min-height:100vh}.owner-shell{min-height:100vh;padding:34px 18px;background:radial-gradient(circle at 15% 0,#fffaf0 0,#fbf3e2 44%,#f0dfc9 100%);font-family:"Noto Sans Arabic",sans-serif}.owner-auth{max-width:430px;margin:8vh auto 0;padding:38px 30px;background:#fffdf8;border:1px solid #e4cfb9;border-radius:24px;box-shadow:0 18px 60px #5a321a18;text-align:center}.owner-brand,.owner-kicker{color:#9a4318;font-weight:900;letter-spacing:.08em}.owner-auth h1,.owner-top h1{margin:.35rem 0;font-size:clamp(1.7rem,4vw,2.4rem)}.owner-auth p{color:#795b49;margin:0 0 25px}.owner-auth form{display:grid;gap:12px}.owner-auth input,.owner-date-form input,.owner-table-wrap input,.owner-order-actions select,#order-search input{border:1px solid #dfcbb5;background:#fff;padding:12px 13px;border-radius:12px;font:inherit;color:#2c1b10}.owner-auth button,.owner-panel-title button,.owner-auth form button,.owner-date-form button,#order-search button,.owner-table-wrap button{border:0;background:#9a4318;color:#fff;padding:11px 16px;border-radius:11px;font:inherit;font-weight:800;cursor:pointer}.owner-link{margin-top:17px;background:none!important;color:#9a4318!important;border:0;font:inherit;cursor:pointer}.owner-back{display:block;margin-top:24px;color:#795b49;text-decoration:none}.owner-error{min-height:22px;color:#ad251f;font-size:.88rem}.owner-note{color:#795b49;font-size:.86rem}.owner-top{max-width:1280px;margin:auto;display:flex;justify-content:space-between;gap:20px;align-items:center;padding:10px 0 28px}.owner-top-actions{display:flex;gap:12px;align-items:center;color:#795b49;font-size:.85rem}.owner-top-actions button{border:1px solid #9a4318;color:#9a4318;background:transparent;padding:9px 13px;border-radius:10px;font:inherit;cursor:pointer}.owner-tabs{max-width:1280px;margin:0 auto 22px;display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #dfcbb5;padding-bottom:10px}.owner-tabs button{border:0;background:transparent;color:#795b49;padding:11px 15px;border-radius:10px;font:inherit;font-weight:800;cursor:pointer}.owner-tabs button.active,.owner-tabs button:hover{background:#2c1b10;color:#fff}.owner-content,#owner-content{max-width:1280px;margin:auto}.owner-loading,.owner-empty{padding:30px;text-align:center;color:#795b49}.owner-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.owner-cards article{background:#fffdf8;border:1px solid #e4cfb9;border-radius:17px;padding:20px;display:grid;gap:7px}.owner-cards b{font-size:1.45rem;color:#2c1b10}.owner-cards span{color:#795b49;font-size:.9rem}.owner-panel{background:#fffdf8;border:1px solid #e4cfb9;border-radius:18px;padding:20px;margin-bottom:18px;overflow:hidden}.owner-panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.owner-panel-title h2{margin:0;font-size:1.2rem}.owner-alert-list{display:grid;gap:9px}.owner-alert-list>div,.owner-order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #f0e3d3}.danger,.stock-out{color:#a12620;font-weight:800}.warning{color:#a66c05;font-weight:800}.stock-ok{color:#28734e;font-weight:800}.owner-order-row em{font-style:normal;color:#9a4318;font-size:.88rem}.owner-table-wrap{overflow:auto}.owner-table-wrap table{width:100%;border-collapse:collapse;min-width:850px}.owner-table-wrap th,.owner-table-wrap td{text-align:right;padding:11px 8px;border-bottom:1px solid #f0e3d3;vertical-align:middle}.owner-table-wrap th{color:#795b49;font-size:.86rem}.owner-table-wrap input{width:100%;min-width:92px;padding:8px}.owner-orders{display:grid;gap:12px}.owner-order-card{border:1px solid #ecdcc9;border-radius:14px;padding:15px}.owner-order-head,.owner-order-details,.owner-order-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.owner-order-head{justify-content:space-between;border-bottom:1px solid #f0e3d3;padding-bottom:10px}.owner-order-head span{color:#795b49;font-size:.85rem}.owner-order-details{padding:13px 0;color:#5c4639}.owner-order-details b{margin-right:auto;color:#2c1b10}.owner-order-actions{justify-content:flex-start}.owner-date-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:18px}.owner-date-form label{display:grid;gap:6px;color:#795b49;font-weight:700}.owner-date-form input{direction:ltr}.owner-date-form button{height:46px}#order-search{display:flex;gap:7px}#order-search input{min-width:230px}@media(max-width:700px){.owner-top{align-items:flex-start;flex-direction:column}.owner-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-top-actions{width:100%;justify-content:space-between}.owner-panel{padding:14px}.owner-auth{margin-top:4vh;padding:30px 20px}.owner-date-form label{flex:1;min-width:140px}#order-search{width:100%}#order-search input{min-width:0;flex:1}}

/* Move only the footer brand label slightly to the right. */
#footer .khalaf-store-name{position:relative!important;right:-8px!important}

/* Increase the small rightward adjustment for the footer brand label. */
#footer .khalaf-store-name{right:-16px!important}
