/* FloatCommerce RC2.9.14.4 — Global UI Layout Foundation
   Layout-only release. No order/payment/stock/refund logic. */

/* ---------- Management shell ---------- */
:root{
  --fc144-admin-max:1600px;
  --fc144-admin-gutter:28px;
  --fc144-gap:22px;
}
body.fc-dashboard-page .fc-admin-nav,
body.fc-dashboard-page .fc-admin-page-container,
body.fc-dashboard-page section>.container-fluid:not(.fc-no-admin-shell),
body.fc-dashboard-page .fc-cms>.container-fluid,
body.fc-dashboard-page .fc-site-settings-page>.container-fluid,
body.fc-dashboard-page .fc-delivery-settings-page>.container-fluid{
  width:min(100%,var(--fc144-admin-max))!important;
  max-width:var(--fc144-admin-max)!important;
  margin-inline:auto!important;
  padding-inline:var(--fc144-admin-gutter)!important;
  box-sizing:border-box!important;
}
body.fc-dashboard-page .fc-admin-nav{
  grid-template-columns:minmax(210px,280px) minmax(0,1fr)!important;
  gap:22px!important; align-items:center!important;
}
body.fc-dashboard-page .fc-admin-tabs{justify-content:flex-start!important;min-width:0!important}
body.fc-dashboard-page .fc-admin-content{width:100%!important}
body.fc-dashboard-page .row{--bs-gutter-x:1.35rem}
body.fc-dashboard-page .card,
body.fc-dashboard-page .fc-card{border-radius:12px!important}
body.fc-dashboard-page .fc-legacy-admin-heading{padding-top:20px!important}
body.fc-dashboard-page .fc-legacy-admin-heading+.py-4{padding-top:20px!important}

/* Order detail: defeat legacy narrow bootstrap geometry and dead space. */
body.fc-dashboard-page .fc-order-detail-content .fc-order-shell{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.85fr) minmax(340px,.85fr)!important;
  gap:var(--fc144-gap)!important;
  align-items:start!important;
}
body.fc-dashboard-page .fc-order-detail-content .fc-order-main,
body.fc-dashboard-page .fc-order-detail-content .fc-order-side{width:100%!important;max-width:none!important;min-width:0!important}
body.fc-dashboard-page .fc-order-detail-content .fc-order-side{display:grid!important;gap:16px!important}
body.fc-dashboard-page .fc-order-detail-content .fc-order-main>.fc-card,
body.fc-dashboard-page .fc-order-detail-content .fc-order-main>.card{width:100%!important}
body.fc-dashboard-page .fc-order-info-grid{grid-template-columns:minmax(120px,.85fr) minmax(0,1.15fr)!important}
body.fc-dashboard-page .fc-order-info-grid .fc-v{text-align:right!important}
body.fc-dashboard-page .fc-history-list{position:relative}
body.fc-dashboard-page .fc-history-list li{position:relative}
body.fc-dashboard-page .fc-history-list li:not(:last-child)::after{
  content:"";position:absolute;left:9px;top:22px;bottom:-12px;width:2px;background:#d9e7df
}

/* ---------- Public menu canvas ---------- */
body.fc-storefront .fw-wave-menu>.container{
  width:100%!important;max-width:1640px!important;padding-inline:28px!important;
}
body.fc-storefront .fw-wave-shell{
  width:100%!important;max-width:none!important;
  grid-template-columns:190px minmax(0,1fr) 320px!important;
  gap:24px!important;align-items:start!important;
}
body.fc-storefront .fw-wave-main{min-width:0!important}
body.fc-storefront .fw-wave-products{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
}
body.fc-storefront .fw-wave-card{min-width:0!important}
body.fc-storefront .fw-wave-card-title-row{gap:10px!important}
body.fc-storefront .fw-wave-card-title-row h3{font-size:15px!important;line-height:1.25!important}
body.fc-storefront .fw-wave-card-title-row strong{font-size:13px!important;white-space:nowrap!important}
body.fc-storefront .fw-wave-card-body>p{font-size:12px!important;line-height:1.45!important}
body.fc-storefront .fw-wave-add{font-size:11px!important;min-height:36px!important}
body.fc-storefront .fw-wave-basket{width:100%!important;min-width:0!important}

/* Product customisation: stable 45/55 split and usable option width. */
body.fc-storefront .tw-product-detail-section>.container{width:100%!important;max-width:1440px!important;padding-inline:28px!important}
body.fc-storefront .tw-product-detail-section .row.g-5{
  display:grid!important;grid-template-columns:minmax(340px,.85fr) minmax(0,1.15fr)!important;
  gap:32px!important;margin-inline:0!important;
}
body.fc-storefront .tw-product-detail-section .row.g-5>[class*="col-"]{
  width:100%!important;max-width:none!important;padding-inline:0!important;
}
body.fc-storefront .tw-product-detail-card{width:100%!important;max-width:none!important}
body.fc-storefront .tw-option-card{width:100%!important}

/* ---------- Breakpoints ---------- */
@media(max-width:1199.98px){
  body.fc-dashboard-page .fc-admin-nav{grid-template-columns:1fr!important}
  body.fc-dashboard-page .fc-order-detail-content .fc-order-shell{grid-template-columns:minmax(0,1.45fr) minmax(310px,.8fr)!important}
  body.fc-storefront .fw-wave-shell{grid-template-columns:170px minmax(0,1fr) 280px!important;gap:18px!important}
}
@media(max-width:991.98px){
  :root{--fc144-admin-gutter:18px}
  body.fc-dashboard-page .fc-order-detail-content .fc-order-shell{grid-template-columns:1fr!important}
  body.fc-dashboard-page .fc-order-detail-content .fc-order-side{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.fc-storefront .fw-wave-menu>.container,
  body.fc-storefront .tw-product-detail-section>.container{padding-inline:18px!important}
  body.fc-storefront .fw-wave-shell{grid-template-columns:160px minmax(0,1fr)!important}
  body.fc-storefront .fw-wave-basket{grid-column:1/-1!important;position:relative!important;top:auto!important}
  body.fc-storefront .tw-product-detail-section .row.g-5{grid-template-columns:1fr!important}
}
@media(max-width:767.98px){
  :root{--fc144-admin-gutter:14px}
  body.fc-dashboard-page .fc-order-detail-content .fc-order-side{grid-template-columns:1fr!important}
  body.fc-dashboard-page .fc-order-info-grid{grid-template-columns:1fr!important}
  body.fc-dashboard-page .fc-order-info-grid .fc-v{text-align:left!important;margin-bottom:5px}
  body.fc-storefront .fw-wave-shell{grid-template-columns:1fr!important}
  body.fc-storefront .fw-wave-categories,body.fc-storefront .fw-wave-basket{position:relative!important;top:auto!important}
  body.fc-storefront .fw-wave-products{grid-template-columns:1fr!important}
}
@media(max-width:575.98px){
  body.fc-storefront .fw-wave-menu>.container,
  body.fc-storefront .tw-product-detail-section>.container{padding-inline:12px!important}
}

/* ==========================================================
   RC2.9.15.0.5 — Unified Back Office Layout Contract
   Single authority for all dashboard/admin page geometry.
   ========================================================== */

:root{
  --fc-admin-max:1600px;
  --fc-admin-gutter:28px;
}

body.fc-dashboard-page .fc-admin-nav,
body.fc-dashboard-page .fc-admin-page-container,
body.fc-dashboard-page section>.container-fluid:not(.fc-no-admin-shell),
body.fc-dashboard-page .fc-cms>.container-fluid,
body.fc-dashboard-page .fc-site-settings-page>.container-fluid,
body.fc-dashboard-page .fc-delivery-settings-page>.container-fluid{
  width:100%!important;
  max-width:var(--fc-admin-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--fc-admin-gutter)!important;
  padding-right:var(--fc-admin-gutter)!important;
  box-sizing:border-box!important;
}

/* Delivery Centre inherits the master admin shell.
   No module-level page-width override is permitted. */
body.fc-dashboard-page .fc-delivery-admin > .fc-admin-page-container{
  width:100%!important;
  max-width:var(--fc-admin-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--fc-admin-gutter)!important;
  padding-right:var(--fc-admin-gutter)!important;
}

@media(max-width:991.98px){
  :root{--fc-admin-gutter:18px;}
}

@media(max-width:767.98px){
  :root{--fc-admin-gutter:14px;}
}
