html.shop-runtime-loading body > *:not(#shop-runtime-toast) { visibility: hidden; }
html.shop-runtime-loading body { background: #f8fafc; }

.runtime-state { min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 28px; color: #94a3b8; font-size: 14px; text-align: center; grid-column: 1 / -1; }
.runtime-image-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 12px; }
.runtime-rich-detail { color: #475569; line-height: 1.9; overflow-wrap: anywhere; }
.runtime-rich-detail img,.runtime-detail-image { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 8px; }
.runtime-rich-detail table { width: 100%; border-collapse: collapse; }
.runtime-rich-detail td,.runtime-rich-detail th { border: 1px solid #e2e8f0; padding: 8px; }

.runtime-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.runtime-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #f1f5f9; }
.runtime-panel-title h2 { font-size: 18px; font-weight: 800; color: #1e293b; }
.runtime-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.runtime-form-grid input,.runtime-textarea,.form-control { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; background: #fff; outline: none; }
.runtime-form-grid input:focus,.runtime-textarea:focus,.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(197,155,39,.12); }
.runtime-textarea { min-height: 84px; resize: vertical; }
.runtime-notice { padding: 14px 16px; border-radius: 8px; background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.runtime-secondary-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 18px; color: #475569; background: #fff; }
.pay-method-card { width: 100%; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; text-align: left; font-weight: 700; cursor: pointer; }
.pay-method-card.active { border-color: var(--primary); background: #fffbeb; color: #9a7413; box-shadow: 0 0 0 3px rgba(197,155,39,.1); }
.runtime-profile-card { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#0f172a,#334155); box-shadow: 0 14px 32px rgba(15,23,42,.18); }
.runtime-profile-card h1 { font-size: 20px; font-weight: 800; }
.runtime-profile-card p { margin-top: 4px; color: #cbd5e1; font-size: 13px; }
.runtime-avatar { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); font-size: 22px; font-weight: 900; }
.runtime-order-card { padding: 16px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; display: grid; gap: 12px; }
.runtime-order-card > div:first-child { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.runtime-order-status { color: #b0871d; font-weight: 800; }

@media (max-width: 900px) {
  .site-header .max-w-7xl { flex-wrap: wrap; }
  .site-header .search-box { order: 3; flex-basis: 100%; }
  .main-nav-bar { overflow-x: auto; }
  .main-nav-bar .max-w-7xl { width: max-content; min-width: 100%; }
  .nav-links-list { gap: 18px; }
  .runtime-form-grid { grid-template-columns: 1fr; }
  .detail-main-container,.detail-bottom-layout { grid-template-columns: 1fr !important; }
  .detail-main-container { gap: 24px; padding: 22px; }
  .gallery-main-img { height: min(440px, 62vw); }
  .form-row-grid { grid-template-columns: 1fr; gap: 0; }
  .steps-wizard-bar { padding: 20px; gap: 12px; }
  .step-item { min-width: 0; }
  .step-title { font-size: 13px; }
  .runtime-checkout-row td { min-width: 84px; }
  .runtime-checkout-row td:first-child { min-width: 260px; }
}
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .top-bar .max-w-7xl { gap: 8px; font-size: 11px; }
  .site-header .max-w-7xl { padding-top: 12px; padding-bottom: 12px; }
  .site-header .logo-brand strong { font-size: 18px; }
  .header-cart-btn { padding: 7px 10px; font-size: 12px; }
  .nav-all-category { width: auto; min-width: 145px; }
  .nav-links-list { gap: 16px; padding: 0 16px; white-space: nowrap; }
  .home-hero-section { margin-bottom: 22px; }
  .hero-container { display: grid; grid-template-columns: minmax(0,1fr); height: auto; }
  .hero-category-sidebar { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cat-menu-item { min-width: 0; padding: 10px 12px; font-size: 12px; }
  .cat-menu-item > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-slider-box { width: 100%; height: 280px; }
  .slider-content { left: 20px; right: 20px; bottom: 24px; max-width: none; }
  .slider-title { font-size: 24px; }
  .hero-news-sidebar { width: 100%; padding: 16px; gap: 18px; border-left: 0; border-top: 1px solid #f1f5f9; }
  .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-info-box { padding: 10px; }
  .floor-title { font-size: 18px; }
  .runtime-panel { padding: 16px; }
  .runtime-profile-card { align-items: flex-start; flex-wrap: wrap; }
  .runtime-profile-card .ml-auto { margin-left: 0; }
  .detail-main-container,.detail-bottom-layout { grid-template-columns: 1fr !important; }
  .quantity-buy-row { flex-wrap: wrap; }
  .cart-checkout-sticky-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .cart-checkout-actions { justify-content: space-between; }
}
