/* ORDERZY Header & Homepage Theme — v3B (2026-11-01)
   Loaded after style.css / site-fixes.css. Small, scoped CSS; no JS dependencies.
   Uses validated CSS variables from dynamic-theme.blade.php. */
@media (min-width:901px) {
  body.app-home .site-header .header-inner {gap:clamp(10px,1.4vw,24px);padding-top:9px;padding-bottom:9px}
  body.app-home .site-header .header-inner > .logo {flex:0 0 auto;min-width:0}
  body.app-home .site-header .header-inner > .logo img {
    display:block;height:clamp(61px,5vw,75px);width:auto;max-width:210px;object-fit:contain
  }
  body.app-home .site-header .mobile-search,
  body.app-home .site-header .header-search {min-width:170px;flex:1 1 220px;max-width:700px}
  body.app-home .site-header .header-actions {display:flex;align-items:center;gap:clamp(6px,.75vw,14px);flex:0 0 auto}
  body.app-home .site-header .header-actions .cart-btn,
  body.app-home .site-header .header-actions .profile-btn,
  body.app-home .site-header .header-actions .btn-track {
    display:flex!important;flex-direction:column;align-items:center;justify-content:center;
    width:auto;min-width:clamp(68px,7.1vw,106px);height:67px;gap:4px;
    padding:6px 8px;border:1px solid transparent;border-radius:10px;
    background:transparent;color:#18243c;box-shadow:none;
    text-decoration:none;font-size:13px;font-weight:700;line-height:1.25;
    transition:background .16s ease,border-color .16s ease,color .16s ease
  }
  body.app-home .site-header .header-actions .cart-btn:hover,
  body.app-home .site-header .header-actions .profile-btn:hover,
  body.app-home .site-header .header-actions .btn-track:hover,
  body.app-home .site-header .header-actions .cart-btn:focus-visible,
  body.app-home .site-header .header-actions .profile-btn:focus-visible,
  body.app-home .site-header .header-actions .btn-track:focus-visible {
    background:rgba(var(--primary-rgb),.07);color:#101d34;border-color:rgba(var(--primary-rgb),.20)
  }
  body.app-home .site-header .header-actions .oa-header-icon {
    position:relative;display:inline-flex;align-items:center;justify-content:center;
    width:38px;height:34px;line-height:1;color:#14243c;font-size:25px
  }
  body.app-home .site-header .header-actions .oa-header-action-label {
    display:block;white-space:nowrap;font-size:13px;color:#17243b;font-weight:700;line-height:1.2
  }
  body.app-home .site-header .header-actions .cart-amount {display:none!important}
  body.app-home .site-header .header-actions .cart-count {
    position:absolute;top:-5px;right:-10px;min-width:20px;height:20px;border-radius:99px;
    font-size:11px;line-height:20px;text-align:center;padding:0 4px;background:#fb8b24;color:#fff;border:2px solid #fff
  }
  /* Flexible ribbon: wraps to a second row instead of running beyond the viewport.
     The parent remains overflow:visible to preserve submenu dropdowns. */
  body.app-home .header-category-bar {background:var(--oa-header-category-bg,var(--primary));}
  body.app-home .header-category-inner {
    display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;
    width:100%;max-width:100%;min-width:0;overflow:visible
  }
  body.app-home .header-category-inner > .header-cat-item,
  body.app-home .header-category-inner > .header-cat-link {
    flex:0 1 auto;min-width:0;max-width:100%;border-bottom:1px solid rgba(255,255,255,.10)
  }
  body.app-home .header-category-inner .header-cat-link {
    display:inline-flex;justify-content:center;align-items:center;text-align:center;
    white-space:normal;overflow-wrap:anywhere;line-height:1.35;
    padding:11px clamp(9px,1.15vw,18px);font-size:clamp(12px,.93vw,15px)
  }
  body.app-home .header-category-inner > .header-cat-link {display:flex}
  body.app-home .header-category-inner > .header-cat-item:last-child .header-cat-dropdown,
  body.app-home .header-category-inner > .header-cat-item:nth-last-child(2) .header-cat-dropdown {
    right:0;left:auto
  }
}
@media (min-width:901px) and (max-width:1160px) {
  body.app-home .site-header .header-inner > .logo img {height:60px;max-width:156px}
  body.app-home .site-header .header-actions .cart-btn,
  body.app-home .site-header .header-actions .profile-btn,
  body.app-home .site-header .header-actions .btn-track {min-width:66px;padding:5px}
  body.app-home .site-header .header-actions .oa-header-action-label {font-size:12px}
  body.app-home .site-header .header-actions .oa-header-icon {font-size:23px}
}
/* Keep the existing compact mobile layout, but make its brand easier to identify. */
@media (max-width:900px) {
  body.app-home .header-inner > .logo img {height:clamp(44px,7vw,53px);max-width:180px;width:auto;object-fit:contain}
  body.app-home .header-actions .oa-header-icon {position:relative;display:inline-flex;align-items:center;justify-content:center}
  body.app-home .header-actions .oa-header-action-label {display:none}
  body.app-home .header-actions .cart-count {position:absolute;top:-10px;right:-10px}
}
/* Section colors remain independent of text; white-on-dark section labels are preserved. */
body.app-home .top-categories-panel {
  background:var(--oa-top-categories-gradient,linear-gradient(135deg,#4a148c,#6a1b9a 52%,#7b1fa2));
  box-shadow:0 10px 30px rgba(25,22,60,.17)
}
body.app-home .flash-sale-panel {
  background:linear-gradient(135deg,var(--oa-flash-gradient-start,#ff2d55),var(--primary) 48%,var(--oa-flash-gradient-end,#c2185b));
}
@media (prefers-reduced-motion: reduce) {
 body.app-home .site-header .header-actions a {transition:none!important}
}
