/* Focused compatibility improvements; the existing OEM palette and layouts remain. */
:root { --oem-success: #198754; --oem-safe-top: env(safe-area-inset-top, 0px); }

.oem-top-navbar > .container { gap: .5rem; }
.oem-top-navbar .nav { flex-shrink: 0; }
.oem-order-status { display: inline-flex; align-items: center; gap: .35rem; color: #fff; font-size: .8rem; line-height: 1.3; }
.oem-order-status i { flex-shrink: 0; }
.oem-order-status span { overflow-wrap: anywhere; }
.oem-main-header .navbar-brand img { width: 106px; height: 45px; object-fit: contain; }
#appTopBar { position: fixed; inset: 0 0 auto; z-index: 1055; display: none; align-items: center; gap: 8px; padding: calc(8px + var(--oem-safe-top)) 10px 8px; background: #fff; border-bottom: 1px solid #dce4ee; box-shadow: 0 2px 10px #0000000f; }
.app-top-back { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f6fb; color: #182b42; display: grid; place-items: center; }
.app-top-search { flex: 1; min-width: 0; display: flex; gap: 6px; }
.app-top-search input { width: 0; min-width: 0; flex: 1; min-height: 44px; border: 1px solid #dce4ee; border-radius: 20px; padding: 7px 12px; font: inherit; font-size: 16px; background: #f8f9fb; }
.app-top-search button { flex: 0 0 44px; min-height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #2f3742; color: #fff; }
:is(.oem-main-header, .oem-top-navbar, #appTopBar, .mobile-bottom-bar) :is(a, button, input):focus-visible { outline: 2px solid #145da6; outline-offset: 2px; }

.oem-product-card .product-name { display: block; overflow: visible; font-size: .875rem; line-height: 1.4; min-height: 2.8em; overflow-wrap: anywhere; }
.oem-card-controls { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 6px; }
.oem-product-card .oem-card-quantity { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); width: 100%; min-width: 0; flex-wrap: nowrap; }
.oem-product-card .oem-card-quantity > .btn { width: 100%; min-width: 0; min-height: 44px; padding: .3rem 0; }
.oem-product-card .oem-card-quantity > .qty-input { width: 100% !important; max-width: none !important; min-width: 0; min-height: 44px; padding: .3rem 0; }
.oem-product-card .addToCartBtn, .catalog-listing .oem-product-card .addToCartBtn { width: 44px; min-height: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: .3rem; }
.catalog-listing .oem-product-card .wish-remove, .oem-product-card .wish-remove { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.oem-product-card .price-badge { max-width: calc(100% - 64px); overflow-wrap: anywhere; }
.oem-product-card .product-thumb-wrap { position: relative; }
.oem-image-missing { position: absolute; inset: auto .5rem .4rem; text-align: center; font-size: .7rem; line-height: 1.3; color: #53657a; }

.product-image-note { margin-top: .5rem; padding: .45rem .6rem; border-radius: .4rem; color: #53657a; background: #f3f7fb; font-size: .8rem; }
.product-detail .product-share { padding-top: .5rem; }
.product-detail .product-share a { color: #53657a; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.oem-purchase-note { margin: .75rem 0 0; font-size: .8rem; line-height: 1.5; color: #53657a; }
.oem-purchase-note a { text-decoration: underline; text-underline-offset: 3px; }
.oem-closed { max-width: 40rem; margin: 2rem auto; padding: 1.5rem; background: #fff; border: 1px solid #dce4ee; border-radius: 14px; }
.oem-closed h1 { font-size: 1.4rem; color: #182b42; }

@media (max-width: 767.98px) {
  #appTopBar { display: flex; }
  body { padding-top: calc(61px + var(--oem-safe-top)); }
  .oem-top-navbar { min-height: 44px; padding: 0; }
  .oem-top-navbar > .container { min-height: 44px; }
  .oem-top-navbar .oem-order-status { font-size: .75rem; }
  .oem-top-navbar .nav { flex-wrap: nowrap; gap: .2rem !important; }
  .oem-top-navbar .nav-link { padding-inline: .35rem; }
  .oem-main-header .header-actions { gap: .35rem; }
  .main-nav { padding-block: 0; }
  .main-nav .navbar-nav { padding-block: .5rem; }
  .product-detail #main-product-image { max-height: 260px !important; }
  .mobile-bottom-bar .mb-link > span:not(.mb-chat-circle) { max-width: 100%; text-align: center; overflow-wrap: anywhere; padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .oem-product-card, .oem-product-card img, .mobile-bottom-bar .mb-link, .app-badge { transition: none; }
}
