/* NDO all-role visual restoration support.
   Loaded only by the storefront/default theme shell; admin/back-office assets are intentionally untouched. */
:root {
  --ndo-restore-border: #e9eef5;
  --ndo-restore-muted: #6b7280;
}
/* Old layout shell safety */
.__inline-54, .for-padding, .rich-editor-html-content, .page-content { max-width: 100%; }
img { max-width: 100%; }
/* Pre-April-19 carousel/flex fallbacks when plugin JS is unavailable. */
.owl-carousel:not(.owl-loaded),
.legacy-carousel-fallback,
.categories--slider:not(.owl-loaded),
.hero-slider:not(.owl-loaded),
.promotional-banner-slider:not(.owl-loaded),
.brands-slider:not(.owl-loaded),
.flash-deal-slider:not(.owl-loaded),
.new-arrivals-product:not(.owl-loaded),
.footer-top-slider:not(.owl-loaded) {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.owl-carousel:not(.owl-loaded) > *,
.legacy-carousel-fallback > * { flex: 0 0 auto; scroll-snap-align: start; }
.hero-slider:not(.owl-loaded) > * { min-width: 100%; }
.categories--slider:not(.owl-loaded) > *,
.brands-slider:not(.owl-loaded) > *,
.flash-deal-slider:not(.owl-loaded) > *,
.new-arrivals-product:not(.owl-loaded) > * { min-width: 180px; }
/* Restored auth/account forms */
.login-card, .register-card, .customer-auth-card, .card { border-radius: 0.5rem; }
.login-card .form-control, .register-card .form-control, .customer-auth-card .form-control { min-height: 42px; }
.customer-centralize-login-form, .customer-register-form { width: 100%; }
/* Current-only profile/cart pages get legacy spacing until specifically hand-polished. */
.account-section, .profile-section, .wishlist-section, .compare-section, .cart-section,
.support-ticket-section, .wallet-section, .loyalty-section, .checkout-section { padding-top: 1rem; padding-bottom: 1rem; }
/* Tables/buttons/forms match older dense commerce UI better than naked fallback. */
.table, .table-responsive { background: #fff; }
.btnF { background: transparent; border: 0; padding: 0; width: 100%; text-align: inherit; }
/* Missing-image fallback should not collapse layout. */
img[src=""], img:not([src]) { visibility: hidden; }
/* Seller public/auth pages restored from default theme */
.vendor-registration, .seller-registration, .seller-auth-wrapper, .shop-view-wrapper { max-width: 100%; }
/* Driver public auth pages in default theme */
.driver-auth-wrapper, .deliveryman-info-section { max-width: 100%; }
/* The pre-April-19 storefront did not expose the theme switch sidebar. */
.settings-sidebar { display: none !important; }
