/* PH Framework BUILD80.21 - canonical reusable frontend shell.
   Shared by every site/theme; site-specific CSS may decorate but must not duplicate this shell. */

:root{
  --ph-shell-dark:#1c232b;
  --ph-shell-dark-2:#151b21;
  --ph-shell-line:rgba(255,255,255,.10);
  --ph-shell-muted:#b9c3cc;
}

/* ---------- canonical header/menu ---------- */
.ph-unified-site-header{
  position:relative!important;
  top:0!important;
  z-index:1050!important;
  background:var(--ph-header-bg,#fff)!important;
  border-bottom:1px solid var(--ph-header-border-color,#edf0f2)!important;
  box-shadow:0 4px 16px rgba(17,24,39,.04)!important;
  padding:0!important;
  margin:0!important;
  min-height:0!important;
}
.ph-unified-site-header>.container{max-width:1440px!important;padding-top:0!important;padding-bottom:0!important;}
.ph-unified-site-header .header-wrap{
  min-height:88px!important;
  height:88px!important;
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  padding:5px 0!important;
  margin:0!important;
}
.ph-unified-site-header .logo{display:flex!important;align-items:center!important;flex:0 0 auto!important;margin:0!important;}
.ph-unified-site-header .logo img{display:block!important;width:auto!important;height:auto!important;max-width:145px!important;max-height:66px!important;object-fit:contain!important;}
.ph-unified-site-header .navbar{flex:1 1 auto!important;min-width:0!important;padding:0!important;margin:0!important;}
.ph-unified-site-header .navbar-collapse{width:100%!important;}
.ph-unified-site-header .navbar-nav{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:var(--ph-header-menu-justify,center)!important;
  gap:var(--ph-header-menu-gap,8px)!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
.ph-unified-site-header .navbar-nav>li{display:flex!important;align-items:center!important;position:relative!important;white-space:nowrap!important;}
.ph-unified-site-header .navbar-nav>li>a{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:10px 5px!important;
  color:var(--ph-header-menu-color,#252b31)!important;
  font-family:var(--ph-header-font-family,inherit)!important;
  font-size:var(--ph-header-menu-font-size,16px)!important;
  font-weight:var(--ph-header-menu-font-weight,500)!important;
  line-height:1.2!important;
  text-decoration:none!important;
}
.ph-unified-site-header .navbar-nav>li.active>a{color:var(--ph-header-menu-active-color,var(--main,#b58b55))!important;}
.ph-unified-site-header .navbar-nav>li>a:hover{color:var(--ph-header-menu-hover-color,var(--main,#b58b55))!important;}
.ph-header-actions{display:flex!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;}
.ph-header-actions .hotline{margin:0!important;}
.ph-header-actions .hotline a{white-space:nowrap!important;text-decoration:none!important;}

@media(max-width:1399px){
  .ph-unified-site-header .header-wrap{gap:14px!important;}
  .ph-unified-site-header .navbar-nav>li>a{font-size:var(--ph-header-menu-font-size,16px)!important;padding-left:6px!important;padding-right:6px!important;}
  .ph-header-actions .hotline span{display:none!important;}
}
@media(min-width:992px){
  .ph-unified-site-header .navbar-collapse{display:flex!important;}
}
@media(max-width:991.98px){
  .ph-unified-site-header .header-wrap{height:auto!important;min-height:76px!important;padding:6px 0!important;}
  .ph-unified-site-header .logo img{max-width:112px!important;max-height:58px!important;}
  .ph-unified-site-header .navbar{order:3!important;flex:0 0 auto!important;}
  .ph-unified-site-header .navbar-collapse{display:none!important;position:absolute!important;left:0!important;right:0!important;top:100%!important;background:#fff!important;padding:14px 20px 20px!important;box-shadow:0 12px 24px rgba(0,0,0,.10)!important;}
  .ph-unified-site-header .navbar-collapse.ph-menu-open{display:block!important;}
  .ph-unified-site-header .navbar-nav{display:block!important;width:100%!important;}
  .ph-unified-site-header .navbar-nav>li{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;width:100%!important;}
  .ph-unified-site-header .navbar-nav>li>a{font-size:var(--ph-header-menu-font-size,16px)!important;padding:11px 4px!important;}
  .ph-unified-site-header .ph-submenu-toggle{display:block!important;}
  .ph-unified-site-header .navbar-nav>li>.submenu{grid-column:1/-1!important;display:none!important;position:static!important;width:100%!important;box-shadow:none!important;}
  .ph-unified-site-header .navbar-nav>li.ph-submenu-open>.submenu{display:block!important;}
}

/* ---------- canonical professional footer ---------- */
footer.ph-site-footer{
  margin:0!important;
  padding:0!important;
  background:linear-gradient(135deg,var(--ph-shell-dark-2),var(--ph-shell-dark))!important;
  color:#f5f7f9!important;
  border-top:1px solid var(--ph-shell-line)!important;
}
.ph-site-footer>.container{max-width:1320px!important;padding-top:54px!important;padding-bottom:0!important;}
.ph-site-footer .ph-footer-grid{
  display:grid!important;
  grid-template-columns:minmax(240px,1.18fr) minmax(250px,1.12fr) minmax(220px,.95fr) minmax(190px,.8fr)!important;
  gap:44px!important;
  align-items:start!important;
}
.ph-site-footer section{min-width:0!important;}
.ph-site-footer h2,.ph-site-footer h3,.ph-site-footer p,.ph-site-footer ul{margin-top:0!important;}
.ph-site-footer h3{font-size:16px!important;font-weight:800!important;letter-spacing:.02em!important;color:#fff!important;margin-bottom:18px!important;}
.ph-footer-logo{display:inline-flex!important;align-items:center!important;margin:0 0 14px!important;}
.ph-footer-logo img{display:block!important;width:auto!important;height:auto!important;max-width:150px!important;max-height:64px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important;opacity:.96!important;}
.ph-footer-name{font-size:18px!important;line-height:1.3!important;color:#fff!important;margin:0 0 8px!important;font-weight:800!important;}
.ph-footer-company{font-size:20px!important;color:#fff!important;font-weight:800!important;text-decoration:none!important;}
.ph-footer-slogan{max-width:330px!important;color:var(--ph-shell-muted)!important;font-size:14px!important;line-height:1.65!important;margin-bottom:12px!important;}
.ph-footer-website{display:inline-flex!important;align-items:center!important;gap:8px!important;color:#fff!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;}
.ph-site-footer a{color:#d7dfe6!important;text-decoration:none!important;}
.ph-site-footer a:hover{color:#fff!important;}
.ph-footer-contact-list,.ph-footer-links ul{list-style:none!important;padding:0!important;margin:0!important;}
.ph-footer-contact-list li{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:10px!important;align-items:start!important;margin:0 0 12px!important;color:#d1d9e0!important;font-size:14px!important;line-height:1.55!important;}
.ph-footer-contact-list i{color:var(--main,#b58b55)!important;margin-top:4px!important;text-align:center!important;}
.ph-footer-links ul{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px 18px!important;}
.ph-footer-links li{margin:0!important;min-width:0!important;}
.ph-footer-links a{display:block!important;font-size:14px!important;line-height:1.45!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.ph-footer-social-links{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-bottom:18px!important;}
.ph-footer-social-links a{display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:7px 11px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:8px!important;background:rgba(255,255,255,.04)!important;font-size:13px!important;font-weight:700!important;}
.ph-footer-contact-cta{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:10px 14px!important;border-radius:9px!important;background:var(--main,#b58b55)!important;color:#fff!important;font-size:14px!important;font-weight:800!important;}
.ph-footer-muted{color:#99a5af!important;font-size:14px!important;}
.ph-footer-bottom{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:24px!important;margin-top:38px!important;padding:18px 0 22px!important;border-top:1px solid var(--ph-shell-line)!important;color:#95a1ab!important;font-size:13px!important;}
.ph-footer-bottom a{font-size:13px!important;}
.ph-shared-float{z-index:60!important;gap:10px!important;}
.ph-shared-float a{display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:48px!important;border-radius:50%!important;background:var(--main,#b58b55)!important;color:#fff!important;text-decoration:none!important;box-shadow:0 8px 24px rgba(0,0,0,.20)!important;}

@media(max-width:1099px){
  .ph-site-footer .ph-footer-grid{grid-template-columns:1fr 1fr!important;gap:34px!important;}
}
@media(max-width:767px){
  .ph-site-footer>.container{padding-top:40px!important;}
  .ph-site-footer .ph-footer-grid{grid-template-columns:1fr!important;gap:28px!important;}
  .ph-footer-links ul{grid-template-columns:1fr 1fr!important;}
  .ph-footer-bottom{flex-direction:column!important;align-items:flex-start!important;gap:8px!important;margin-top:28px!important;}
  .ph-shared-float{right:14px!important;bottom:18px!important;}
  .ph-shared-float a{width:44px!important;height:44px!important;}
}

/* ---------- Company Profile / Contact ---------- */
.page-contact .ph-company-profile{padding:72px 0!important;background:#fff!important;}
.ph-contact-heading{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:24px!important;margin-bottom:30px!important;}
.ph-company-slogan{max-width:680px!important;margin:8px 0 0!important;color:#66717c!important;font-size:16px!important;line-height:1.6!important;}
.ph-contact-website{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:10px 14px!important;border:1px solid #dde3e8!important;border-radius:9px!important;background:#fff!important;color:#202830!important;text-decoration:none!important;font-weight:700!important;white-space:nowrap!important;}
.ph-company-contact-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;}
.ph-company-contact-card{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:14px!important;align-items:start!important;min-height:142px!important;padding:22px!important;border:1px solid #e4e8ec!important;border-radius:14px!important;background:#f9fafb!important;box-shadow:0 8px 24px rgba(17,24,39,.04)!important;}
.ph-company-contact-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;border-radius:12px!important;background:rgba(181,139,85,.12)!important;color:var(--main,#b58b55)!important;font-size:18px!important;}
.ph-company-contact-card strong{display:block!important;margin-bottom:7px!important;color:#1f2933!important;font-size:14px!important;}
.ph-company-contact-card p{margin:0!important;color:#66717c!important;font-size:14px!important;line-height:1.55!important;overflow-wrap:anywhere!important;}
.ph-company-contact-card a{color:#202830!important;text-decoration:none!important;font-weight:700!important;}
.ph-company-social-row{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px 12px!important;margin-top:20px!important;padding-top:18px!important;border-top:1px solid #edf0f2!important;}
.ph-company-social-row a{display:inline-flex!important;padding:7px 11px!important;border-radius:8px!important;background:#f2f4f6!important;color:#26313a!important;text-decoration:none!important;font-size:13px!important;font-weight:700!important;}
.page-contact .contact-form-section{padding:72px 0!important;}
.page-contact .contact-map{overflow:hidden!important;border-radius:14px!important;background:#eef1f4!important;box-shadow:0 10px 28px rgba(17,24,39,.08)!important;}
.page-contact .contact-map iframe{display:block!important;width:100%!important;}

@media(max-width:1199px){.ph-company-contact-grid{grid-template-columns:1fr 1fr!important;}}
@media(max-width:767px){
  .ph-contact-heading{align-items:flex-start!important;flex-direction:column!important;}
  .ph-company-contact-grid{grid-template-columns:1fr!important;}
  .page-contact .ph-company-profile,.page-contact .contact-form-section{padding:52px 0!important;}
}

/* ---------- BUILD80.20 admin toolbar offset + full nested dynamic menu ---------- */
body.ph-admin-toolbar-active .ph-unified-site-header,
body.ph-admin-toolbar-active .header.ph-unified-site-header{
  top:var(--ph-admin-toolbar-height,48px)!important;
}

@media(min-width:992px){
  .ph-unified-site-header .ph-submenu-toggle{display:none!important;}
  .ph-unified-site-header .navbar-nav li{position:relative!important;}
  .ph-unified-site-header .navbar-nav li>.submenu{
    display:block!important;
    position:absolute!important;
    min-width:230px!important;
    margin:0!important;
    padding:8px 0!important;
    list-style:none!important;
    background:#fff!important;
    border:1px solid #e7ebef!important;
    border-radius:10px!important;
    box-shadow:0 14px 34px rgba(15,23,42,.14)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(8px)!important;
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease!important;
    z-index:1200!important;
  }
  .ph-unified-site-header .navbar-nav>li>.submenu{top:100%!important;left:0!important;}
  .ph-unified-site-header .navbar-nav .submenu li>.submenu{
    top:-8px!important;
    left:100%!important;
    transform:translateX(8px)!important;
  }
  .ph-unified-site-header .navbar-nav li:hover>.submenu,
  .ph-unified-site-header .navbar-nav li:focus-within>.submenu{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translate(0,0)!important;
  }
  .ph-unified-site-header .navbar-nav .submenu li{
    display:block!important;
    width:100%!important;
    white-space:normal!important;
  }
  .ph-unified-site-header .navbar-nav .submenu li>a{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:14px!important;
    width:100%!important;
    padding:10px 14px!important;
    color:#28313a!important;
    font-family:var(--ph-header-font-family,inherit)!important;
    font-size:max(13px,calc(var(--ph-header-menu-font-size,16px) - 1px))!important;
    font-weight:var(--ph-header-menu-font-weight,500)!important;
    line-height:1.35!important;
    text-decoration:none!important;
  }
  .ph-unified-site-header .navbar-nav .submenu li>a:hover{background:#f6f8fa!important;color:var(--main,#b58b55)!important;}
}

@media(max-width:991.98px){
  body.ph-admin-toolbar-active .ph-unified-site-header,
  body.ph-admin-toolbar-active .header.ph-unified-site-header{top:var(--ph-admin-toolbar-height,48px)!important;}
  .ph-unified-site-header .submenu{list-style:none!important;margin:0!important;padding:0 0 0 14px!important;}
  .ph-unified-site-header .submenu li{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;width:100%!important;}
  .ph-unified-site-header .submenu li>.submenu{
    grid-column:1/-1!important;
    display:none!important;
    position:static!important;
    width:100%!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    box-shadow:none!important;
    border:0!important;
    background:transparent!important;
  }
  .ph-unified-site-header .submenu li.ph-submenu-open>.submenu{display:block!important;}
}


/* ---------- BUILD80.21 generic brand / floating actions ---------- */
.ph-site-brand-text{display:inline-flex;align-items:center;min-height:48px;font-size:20px;font-weight:800;color:#20262d;text-decoration:none;letter-spacing:.01em}
.ph-floating-actions{position:fixed;right:20px;bottom:24px;z-index:1060;display:flex;flex-direction:column;gap:10px;align-items:center}
.ph-floating-action{appearance:none;border:0;display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border-radius:50%;background:var(--main,#b58b55);color:#fff!important;text-decoration:none!important;box-shadow:0 8px 24px rgba(0,0,0,.20);font:700 16px/1 system-ui;cursor:pointer}
.ph-floating-action--text{font-size:11px;letter-spacing:-.02em}
.ph-floating-action--brand{overflow:hidden}
.ph-floating-action--zalo{background:#fff!important;box-shadow:0 8px 24px rgba(0,104,255,.28)}
.ph-floating-action--zalo .ph-brand-zalo-logo{display:block;width:38px;height:38px;max-width:82%;max-height:82%;object-fit:contain}
.ph-floating-action--messenger{background:#0878ff!important;color:#fff!important;box-shadow:0 8px 24px rgba(0,106,255,.28)}
.ph-floating-action--messenger .ph-brand-fa-primary{display:block;font-size:25px;line-height:1;color:#fff}
.ph-floating-action--messenger .ph-brand-svg-fallback{display:none;width:38px;height:38px;max-width:82%;max-height:82%;object-fit:contain}
.ph-floating-action--messenger.ph-brand-fa-missing{background:#fff!important}
.ph-floating-action--messenger.ph-brand-fa-missing .ph-brand-fa-primary{display:none}
.ph-floating-action--messenger.ph-brand-fa-missing .ph-brand-svg-fallback{display:block}
.ph-back-to-top{opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s ease}
.ph-back-to-top.ph-is-visible{opacity:1;visibility:visible;transform:none}
@media(max-width:767px){.ph-floating-actions{right:14px;bottom:18px}.ph-floating-action{width:44px;height:44px}}

/* ---------- shared product presentation ---------- */
.ph-product-page{padding:54px 0 72px;background:#fff}
.ph-product-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.ph-product-heading h1{margin:0;font-size:clamp(30px,4vw,46px);line-height:1.1}
.ph-product-heading p{margin:8px 0 0;color:#68717a}
.ph-product-grid{display:grid;grid-template-columns:repeat(var(--ph-product-cols-desktop,4),minmax(0,1fr));gap:24px}
.ph-product-card{height:100%;overflow:hidden;border:1px solid #e8ebee;border-radius:12px;background:#fff;box-shadow:0 8px 22px rgba(17,24,39,.04)}
.ph-product-card>a{display:block;color:inherit!important;text-decoration:none!important}
.ph-product-card__image{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#f3f4f5}
.ph-product-card__body{padding:16px}
.ph-product-card h2,.ph-product-card h3{margin:0 0 8px;font-size:18px;line-height:1.35}
.ph-product-card p{margin:0;color:#68717a;font-size:14px;line-height:1.55}
.ph-product-pagination{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px}
.ph-product-pagination a{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;border:1px solid #dfe3e7;border-radius:8px;text-decoration:none;color:#252b31}
.ph-product-detail{padding:48px 0 72px}
.ph-product-detail__grid{display:grid;grid-template-columns:minmax(0,520px) minmax(0,1fr);gap:42px;align-items:start}
.ph-product-detail__image{display:block;width:100%;height:auto;border-radius:12px;background:#f4f5f6}
.ph-product-detail__content{line-height:1.7;color:#3e4750}
@media(max-width:991.98px){.ph-product-grid{grid-template-columns:repeat(var(--ph-product-cols-tablet,3),minmax(0,1fr))}.ph-product-detail__grid{grid-template-columns:1fr}}
@media(max-width:575.98px){.ph-product-grid{grid-template-columns:repeat(var(--ph-product-cols-mobile,2),minmax(0,1fr));gap:14px}.ph-product-page{padding-top:38px}.ph-product-card__body{padding:12px}.ph-product-card h2,.ph-product-card h3{font-size:15px}}

/* BUILD80.37.10 - public website topbar (not admin toolbar). */
.ph-public-topbar{position:relative;z-index:1060;background:var(--ph-topbar-bg,#0d2b45);color:var(--ph-topbar-text,#fff);border-bottom:1px solid var(--ph-topbar-border,#173b59);font-size:14px;line-height:1.35}
.ph-public-topbar__inner{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:7px;padding-bottom:7px}
.ph-public-topbar__contacts{display:flex;align-items:center;flex-wrap:wrap;gap:22px}
.ph-public-topbar__item{display:inline-flex;align-items:center;gap:4px;color:var(--ph-topbar-text,#fff)!important;text-decoration:none!important;white-space:nowrap;opacity:.95}
.ph-public-topbar__item:hover{opacity:1;color:var(--ph-topbar-hover,#fff)!important;text-decoration:underline!important;text-underline-offset:3px}
.ph-public-topbar__item strong{font-weight:600}
.ph-public-topbar__languages{display:flex;align-items:center;margin-left:auto}
.ph-public-topbar__languages .ph-language-switcher,.ph-public-topbar__languages .language-switcher{margin:0!important}
.ph-public-topbar__languages a{color:var(--ph-topbar-lang-text,var(--ph-topbar-text,#fff))!important;border-color:var(--ph-topbar-border,#173b59)!important;background:var(--ph-topbar-lang-bg,transparent)!important}
.ph-public-topbar__languages a.active,.ph-public-topbar__languages a.is-active{background:var(--ph-topbar-lang-active-bg,#b58b55)!important;color:var(--ph-topbar-lang-active-text,#fff)!important}
@media(max-width:767.98px){.ph-public-topbar__inner{align-items:flex-start;gap:10px}.ph-public-topbar__contacts{gap:8px 14px}.ph-public-topbar__item{font-size:12px}.ph-public-topbar__languages{flex:0 0 auto}}


/* BUILD80.37.12 - final header geometry lock: admin toolbar already offsets BODY. */
body.ph-admin-toolbar-active .ph-unified-site-header,
body.ph-admin-toolbar-active .header.ph-unified-site-header{top:var(--ph-admin-toolbar-height,48px)!important;}
.ph-unified-site-header{top:0!important;transform:none!important;}
