@import url("https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap");

:root{
  --apx-ink:#15161b;
  --apx-ink-2:#1c1e25;
  --apx-signal:#f2a400;
  --apx-steel:#a9adb8;
  --apx-line-dark:rgba(255,255,255,.13);
  --apx-gutter:clamp(16px,3vw,40px);
}

.apx-header,
.apx-header *{box-sizing:border-box}

.apx-header a{text-decoration:none}

/* exact Home-style compact top facility bar */
.apx-facility{
  position:relative;
  z-index:5001;
  margin:0;
  padding:0;
  background:var(--apx-ink);
}
.apx-facility::after{
  content:"";
  position:absolute;
  left:var(--apx-gutter);
  right:var(--apx-gutter);
  bottom:0;
  height:1px;
  background:rgba(255,255,255,.07);
}
.apx-facility-inner{
  width:min(100% - (var(--apx-gutter) * 2),1460px);
  min-height:27px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.apx-facility-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(18px,2.5vw,42px);
  min-height:27px;
}
.apx-facility-link{
  min-height:27px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:3px 0;
  color:#e6e8ee;
  font:700 8px/1.1 Inter,Arial,sans-serif;
  white-space:nowrap;
}
.apx-facility-mark{
  color:var(--apx-signal);
  font-size:9px;
  font-weight:800;
}
.apx-facility-link:hover{color:var(--apx-signal)}

/* exact Home navbar appearance */
.apx-nav{
  position:sticky;
  top:0;
  z-index:5000;
  background:var(--apx-ink);
  border-bottom:1px solid var(--apx-line-dark);
}
.apx-nav-inner{
  width:min(100% - (var(--apx-gutter) * 2),1460px);
  min-height:68px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:26px;
}
.apx-brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  color:#fff;
}
.apx-brand img{
  width:38px;
  height:38px;
  border-radius:6px;
  object-fit:cover;
  background:#fff;
}
.apx-brand-copy{display:flex;flex-direction:column;line-height:1.05}
.apx-brand-copy strong{
  font:800 15px/1.05 "Archivo Narrow",Inter,sans-serif;
  letter-spacing:.2px;
}
.apx-brand-copy small{
  margin-top:3px;
  color:var(--apx-steel);
  font:400 10px/1.05 Inter,Arial,sans-serif;
}
.apx-links{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:2px;
}
.apx-links>a,
.apx-products-hover>a{
  min-height:0;
  padding:9px 12px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-bottom:2px solid transparent;
  border-radius:6px;
  color:#c7cad2;
  background:transparent;
  font:600 13.5px/1.2 Inter,Arial,sans-serif;
  white-space:nowrap;
}
.apx-links a:hover{color:#fff}
.apx-links a.active{color:#fff;border-bottom-color:var(--apx-signal)}
.apx-actions{display:flex;align-items:center;gap:8px}
.apx-login,.apx-cart{
  min-height:38px;
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid var(--apx-line-dark);
  border-radius:6px;
  color:#fff;
  font:700 12.5px/1 Inter,Arial,sans-serif;
}
.apx-login:hover,.apx-cart:hover{border-color:var(--apx-signal)}
.apx-cart-count{
  min-width:18px;height:18px;padding:0 4px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:var(--apx-signal);color:#1c1200;
  font:800 9.5px/1 Inter,Arial,sans-serif;
}
.apx-menu{
  display:none;width:38px;height:36px;
  border:1px solid var(--apx-line-dark);border-radius:6px;
  background:transparent;color:#fff;font-size:17px;cursor:pointer;
}
.apx-mobile{
  display:none;
  width:min(100% - (var(--apx-gutter) * 2),1460px);
  margin:auto;padding:0 0 14px;
}
.apx-mobile.open{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.apx-mobile a{
  padding:11px;border-radius:6px;
  color:#e6e8ee;background:rgba(255,255,255,.06);
  text-align:center;font:600 12px/1.2 Inter,Arial,sans-serif;
}
.apx-mobile a.active{outline:1px solid var(--apx-signal);color:#fff}

/* Home-style Products mega menu */
.apx-products-hover{position:relative}
.apx-products-hover>a::before{
  content:"";position:absolute;left:-18px;right:-18px;top:100%;height:18px;
}
.apx-product-mega{
  position:absolute;top:calc(100% + 14px);left:50%;
  width:calc(100vw - 28px);max-width:1500px;max-height:min(78vh,860px);
  padding:14px 18px;overflow:auto;
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translate(-50%,8px);
  border:1px solid var(--apx-line-dark);border-radius:10px;
  background:var(--apx-ink-2);box-shadow:0 26px 60px rgba(0,0,0,.4);
  transition:.12s ease;
}
.apx-products-hover:hover .apx-product-mega,
.apx-products-hover:focus-within .apx-product-mega{
  opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0);
}
.apx-mega-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid var(--apx-line-dark);
}
.apx-mega-head strong{color:#fff;font:700 13px/1.2 Inter,sans-serif}
.apx-mega-all{
  min-height:32px;padding:0 12px;display:inline-flex;align-items:center;
  border:1px solid var(--apx-signal);border-radius:6px;color:var(--apx-signal);
  font:700 11px/1 Inter,sans-serif;
}
.apx-mega-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:6px 18px;
}
.apx-category{
  padding:10px;border:1px solid rgba(255,255,255,.08);
  border-radius:10px;background:rgba(255,255,255,.035);
}
.apx-category-main{
  display:block;padding:4px 2px 6px;
  border-bottom:1px solid var(--apx-line-dark);
  color:#fff;font:700 11.5px/1.2 Inter,sans-serif;
}
.apx-category-main:hover{color:var(--apx-signal)}
.apx-category-child{
  display:block;padding:4px;margin-top:3px;border-radius:5px;
  color:#c7cad2;font:600 10.5px/1.2 Inter,sans-serif;
}
.apx-category-child:hover{color:#fff;background:rgba(242,164,0,.1)}
.apx-mega-empty{grid-column:1/-1;padding:24px;color:var(--apx-steel);text-align:center;font-size:11px}

@media(max-width:850px){
  .apx-links{display:none}
  .apx-menu{display:block}
  .apx-products-hover{display:none}
}
@media(max-width:650px){
  .apx-nav-inner{min-height:60px;gap:10px}
  .apx-brand img{width:33px;height:33px}
  .apx-brand-copy strong{font-size:12px}
  .apx-brand-copy small{display:none}
  .apx-login{padding:0 9px;font-size:0}
  .apx-login::before{content:"👤";font-size:15px}
  .apx-mobile.open{grid-template-columns:repeat(2,1fr)}
  .apx-facility-inner{width:calc(100% - 16px);min-height:25px}
  .apx-facility-row{width:100%;justify-content:space-between;gap:6px;overflow-x:auto}
  .apx-facility-link{font-size:7px;flex:0 0 auto}
  .apx-facility-mark{font-size:8px}
}


/* =========================================================
   [APX-PRODUCT-CATEGORY-SYNC-01]
   Same deep Product category hierarchy on all customer pages.
   Black + gold style matches the corrected products.html.
========================================================= */

.apx-product-mega{
  border-color:rgba(242,164,0,.24);
  background:#15161b;
  box-shadow:0 22px 46px rgba(21,22,27,.30);
}

.apx-mega-head{
  border-bottom-color:rgba(242,164,0,.16);
}

.apx-mega-head strong{
  color:#f2a400;
}

.apx-mega-all{
  border-color:#f2a400;
  background:#f2a400;
  color:#1c1404;
}

.apx-mega-all:hover{
  background:#ffc247;
  border-color:#ffc247;
  color:#1c1404;
}

.apx-mega-grid{
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px,1fr)
    );
  gap:9px;
  align-items:start;
}

.apx-root-card{
  padding:6px;
  border:1px solid rgba(242,164,0,.12);
  border-radius:11px;
  background:rgba(255,255,255,.035);
}

.apx-category-main{
  min-height:40px;
  padding:7px 9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:0;
  border-radius:8px;
  color:#f0f1f4;
  background:rgba(255,255,255,.025);
  font:800 11px/1.2 Inter,sans-serif;
}

.apx-category-main:hover{
  color:#ffc247;
  background:rgba(242,164,0,.07);
}

.apx-category-main small{
  flex:0 0 auto;
  color:#ffc247;
  font:700 8px/1 Inter,sans-serif;
}

.apx-root-branches{
  margin-top:5px;
  display:grid;
  gap:3px;
}

.apx-deep-node{
  display:block;
}

.apx-deep-row{
  min-height:32px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px;
  gap:4px;
  align-items:center;
  padding-left:
    calc(
      var(--apx-level) * 10px
    );
}

.apx-deep-select{
  min-width:0;
  min-height:30px;
  padding:5px 8px;
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid transparent;
  border-radius:7px;
  color:#d7d9df;
  background:transparent;
  font:700 10px/1.2 Inter,sans-serif;
  transition:.08s ease;
}

.apx-deep-select span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.apx-deep-select small{
  margin-left:auto;
  color:#ffc247;
  font:700 8px/1 Inter,sans-serif;
}

.apx-deep-select:hover{
  border-color:rgba(242,164,0,.18);
  color:#ffc247;
  background:rgba(242,164,0,.065);
  transform:translateX(2px);
}

.apx-deep-expand{
  width:28px;
  height:28px;
  padding:0;
  border:1px solid rgba(242,164,0,.14);
  border-radius:7px;
  background:rgba(255,255,255,.035);
  color:#f2a400;
  cursor:pointer;
  font-size:15px;
}

.apx-deep-expand:hover{
  border-color:#f2a400;
  background:rgba(242,164,0,.10);
}

.apx-deep-children{
  display:none;
  margin:2px 0 3px 8px;
  padding-left:6px;
  border-left:1px solid rgba(242,164,0,.16);
}

.apx-deep-node.branch-open
> .apx-deep-children{
  display:block;
}

@media(min-width:851px){

  .apx-deep-node.has-children:hover
  > .apx-deep-children{
    display:block;
  }

  .apx-product-mega{
    width:min(88vw,1260px);
    max-width:1260px;
    max-height:min(68vh,760px);
    padding:14px;
    scrollbar-width:thin;
  }
}


/* Mobile Products category hierarchy */
.apx-mobile-products{
  grid-column:1/-1;
}

.apx-mobile-products-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px;
  gap:6px;
}

.apx-mobile-products-main,
.apx-mobile-products-toggle{
  min-height:42px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:7px;
  background:rgba(255,255,255,.06);
  color:#e6e8ee;
}

.apx-mobile-products-main{
  padding:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  font:600 12px/1.2 Inter,Arial,sans-serif;
}

.apx-mobile-products-toggle{
  cursor:pointer;
  color:#f2a400;
  font-size:15px;
}

.apx-mobile-product-tree{
  display:none;
  max-height:58vh;
  margin-top:6px;
  padding:8px;
  overflow:auto;
  border:1px solid rgba(242,164,0,.18);
  border-radius:9px;
  background:#15161b;
}

.apx-mobile-products.open
.apx-mobile-product-tree{
  display:block;
}

.apx-mobile-all-products{
  min-height:40px;
  margin-bottom:6px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  border:1px solid #f2a400;
  border-radius:8px;
  background:#f2a400;
  color:#1c1404 !important;
  text-align:left !important;
  font:900 10px/1.2 Inter,sans-serif !important;
}

.apx-mobile-deep-node{
  display:block;
  width:100%;
}

.apx-mobile-deep-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  gap:4px;
  align-items:center;
  margin-bottom:3px;
  padding-left:
    calc(
      var(--apx-mobile-level) * 10px
    );
}

.apx-mobile-deep-select{
  min-width:0;
  min-height:38px;
  padding:7px 9px;
  display:flex !important;
  align-items:center;
  gap:7px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:8px !important;
  background:rgba(255,255,255,.035) !important;
  color:#dfe1e6 !important;
  text-align:left !important;
  font:700 10px/1.2 Inter,sans-serif !important;
}

.apx-mobile-deep-select span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.apx-mobile-deep-select small{
  margin-left:auto;
  color:#ffc247;
  font-size:8px;
}

.apx-mobile-deep-expand{
  width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(242,164,0,.16);
  border-radius:8px;
  background:rgba(242,164,0,.06);
  color:#f2a400;
  cursor:pointer;
  font-size:14px;
}

.apx-mobile-deep-children{
  display:none;
  margin-left:7px;
  border-left:1px solid rgba(242,164,0,.16);
}

.apx-mobile-deep-node.branch-open
> .apx-mobile-deep-children{
  display:block;
}

/* =========================================================
   [APX-MOBILE-HEADER-COLOR-FIX-01]
   Keep the facility bar, navbar, hamburger button and opened
   mobile menu at the exact same APPLIONIC dark tone on phones.
========================================================= */
@media (max-width:850px){
  .apx-header,
  .apx-facility,
  .apx-nav,
  .apx-nav-inner,
  .apx-mobile,
  .apx-mobile.open{
    background:#15161b !important;
  }

  .apx-menu{
    background:#15161b !important;
    border-color:rgba(242,164,0,.48) !important;
    color:#f2a400 !important;
    box-shadow:none !important;
  }

  .apx-menu:active,
  .apx-menu:focus-visible{
    background:#1c1e25 !important;
    border-color:#f2a400 !important;
    outline:none !important;
  }

  .apx-mobile{
    width:100% !important;
    margin:0 !important;
    padding:8px var(--apx-gutter) 14px !important;
    border-top:1px solid rgba(255,255,255,.07) !important;
  }

  .apx-mobile.open{
    display:grid;
  }

  .apx-mobile a{
    background:#1c1e25 !important;
    border:1px solid rgba(255,255,255,.09) !important;
    color:#e6e8ee !important;
  }

  .apx-mobile a:hover,
  .apx-mobile a:focus-visible,
  .apx-mobile a.active{
    background:#202229 !important;
    border-color:rgba(242,164,0,.55) !important;
    color:#fff !important;
    outline:none !important;
  }
}

@media (max-width:650px){
  .apx-mobile{
    padding-left:8px !important;
    padding-right:8px !important;
  }
}
