.wp-static-mirror { margin: 0; color: #282828; background: #fff; font-family: "Roboto", Arial, sans-serif; }
.wp-static-mirror a { color: inherit; text-decoration: none; }
.mirror-header { position: relative; z-index: 20; background: #fff; }
.mirror-mobile-toggle { display: none; }
.mirror-header-main { box-sizing: border-box; width: min(100% - 48px, 1350px); min-height: 110px; margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: 257px minmax(0, 822px) 157px 24px; align-items: center; gap: 20px; }
.mirror-logo { width: 247px; min-height: 82px; display: flex; align-items: center; overflow: visible; }
.mirror-logo img { width: 247px; max-width: 100%; height: auto; display: block; opacity: 1; visibility: visible; object-fit: contain; }
.mirror-discovery { min-width: 0; display: grid; gap: 8px; }
.mirror-search { height: 45px; display: grid; grid-template-columns: 1fr 70px; border: 2px solid #d71920; border-radius: 4px; overflow: hidden; }
.mirror-search input { min-width: 0; padding: 0 16px; border: 0; outline: 0; color: #333; font: inherit; font-size: 13px; }
.mirror-search button { border: 0; color: #fff; background: #d71920; font-size: 25px; cursor: pointer; }
.mirror-quick-links { max-width: 100%; display: flex; align-items: center; gap: 7px; overflow-x: auto; overscroll-behavior-inline: contain; white-space: nowrap; scrollbar-width: none; }
.mirror-quick-links::-webkit-scrollbar { display: none; }
.mirror-quick-links a { flex: 0 0 auto; min-height: 25px; padding: 4px 10px; display: inline-flex; align-items: center; border: 1px solid #d5d5d5; border-radius: 999px; color: #333; background: #fff; font-size: 10px; font-weight: 600; line-height: 1.2; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.mirror-quick-links a:hover, .mirror-quick-links a:focus-visible { border-color: #d71920; color: #d71920; background: #fff7f7; outline: 0; }
.mirror-hotlines { display: grid; grid-template-columns: 1fr; gap: 4px; }
.mirror-hotlines span { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px; }
.mirror-hotlines small { color: #555; font-size: 14px; font-weight: 500; text-transform: none; }
.mirror-hotlines a { color: #d71920; font-size: 14px; font-weight: 800; white-space: nowrap; }
.mirror-quote { display: grid; justify-items: center; gap: 2px; color: #d71920; }
.mirror-quote b { font-size: 31px; line-height: 1; }
.mirror-quote small { font-size: 9px; font-weight: 800; }
.mirror-nav-bar { height: 56px; border-top: 1px solid #aeb1b4; border-bottom: 1px solid #aeb1b4; background: #c6c7c8; }
.mirror-nav { width: min(100% - 32px, 1500px); height: 100%; margin: 0 auto; display: flex; align-items: stretch; justify-content: center; }
.mirror-nav > a, .mirror-nav > .mirror-language, .mirror-products-menu > summary, .mirror-nav > .mirror-nav-layer-menu > summary { min-height: 56px; padding: 0 12px; display: flex; align-items: center; justify-content: center; color: #171717; font-size: clamp(13px, .9vw, 14.5px); font-weight: 750; white-space: nowrap; }
.mirror-nav > a:hover, .mirror-products-menu > summary:hover, .mirror-nav > .mirror-nav-layer-menu > summary:hover,
.mirror-products-menu[open] > summary, .mirror-nav > .mirror-nav-layer-menu[open] > summary { color: #d71920; background: rgba(255,255,255,.5); box-shadow: inset 0 -3px #d71920; }
.mirror-products-menu { position: relative; }
.mirror-products-menu > summary { padding-left: 45px; padding-right: 18px; list-style: none; cursor: pointer; }
.mirror-products-menu > summary::-webkit-details-marker { display: none; }
.mirror-products-menu > .mega-panel { top: 56px; border-top: 3px solid #d71920; }
.mirror-products-menu .mega-roots > a, .mirror-products-menu .mega-l2-panel > a, .mirror-products-menu .mega-leaf-grid > a { color: #272727; }
.mirror-products-menu .mega-roots > a:hover, .mirror-products-menu .mega-roots > a.is-active, .mirror-products-menu .mega-l2-panel > a:hover, .mirror-products-menu .mega-l2-panel > a.is-active, .mirror-products-menu .mega-leaf-grid > a:hover { color: #d71920; }
.mirror-store-link { min-height: 30px !important; margin-left: auto; padding: 0 8px !important; align-self: center; border-radius: 4px; color: #fff !important; background: #012169; font-size: 11.8px !important; }
.mirror-flash-link { min-height: 32px !important; margin-left: 14px; padding: 0 15px !important; align-self: center; border-radius: 4px; color: #fff !important; background: #ea1d29; font-size: 12.8px !important; font-weight: 800 !important; }
.mirror-nav > .sale-link { color: #fff !important; background: #d71920; }
.mirror-language { margin-left: 14px; }
.mirror-hero { width: 100%; height: min(41.15vw, 783px); min-height: 520px; position: relative; overflow: hidden; background: #333; }
.mirror-hero .carousel-slides, .mirror-hero .carousel-slide { position: absolute; inset: 0; margin: 0; }
.mirror-hero .carousel-slide { opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.mirror-hero .carousel-slide.is-active { opacity: 1; visibility: visible; }
.mirror-hero .carousel-slide-link { width: 100%; height: 100%; display: block; }
.mirror-hero .carousel-slide img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.mirror-hero .carousel-control { width: 54px; height: 54px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(0,0,0,.08); color: #fff; font-size: 38px; line-height: 1; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.mirror-hero .carousel-control:hover, .mirror-hero .carousel-control:focus-visible { border-color: #fff; background: rgba(0,0,0,.26); }
.mirror-hero .carousel-control.prev { left: 38px; }
.mirror-hero .carousel-control.next { right: 38px; }
.mirror-hero .carousel-dots { bottom: 18px; }
.mirror-products { width: min(100%, 1880px); margin: 0 auto; padding: 40px 28px 48px; }
.mirror-section-title { display: grid; justify-items: center; margin-bottom: 26px; }
.mirror-section-title h2 { margin: 0; color: #d71920; font-size: 25px; font-weight: 700; line-height: 1.2; }
.mirror-section-title i { width: 54px; height: 2px; margin-top: 10px; background: #d71920; }
.mirror-product-window { overflow: hidden; }
.mirror-product-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 90px) / 6); gap: 18px; }
.mirror-product-card { min-width: 0; position: relative; background: #fff; }
.mirror-product-image { display: block; aspect-ratio: 1; overflow: hidden; background: #f7f7f7; }
.mirror-product-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.mirror-product-card:hover .mirror-product-image img { transform: scale(1.025); }
.mirror-sale-badge { position: absolute; z-index: 2; top: 12px; left: 12px; min-width: 48px; padding: 7px 8px; border-radius: 2px; color: #fff; background: #d71920; font-size: 10px; font-weight: 800; text-align: center; }
.mirror-product-copy { padding: 13px 2px 4px; }
.mirror-product-category { display: block; margin-bottom: 7px; color: #999; font-size: 10px; text-transform: uppercase; }
.mirror-product-card h3 { min-height: 36px; margin: 0 0 7px; font-size: 13px; font-weight: 700; line-height: 1.38; }
.mirror-product-card h3 a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mirror-price { min-height: 23px; display: flex; align-items: baseline; gap: 8px; }
.mirror-price del { color: #999; font-size: 11px; }
.mirror-price strong { color: #d71920; font-size: 14px; }
.mirror-product-button { width: max-content; min-width: 77px; margin-top: 9px; padding: 9px 13px; display: inline-flex; justify-content: center; color: #fff !important; background: #d71920; font-size: 9px; font-weight: 800; }
.mirror-sale { width: min(calc(100% - 56px), 1824px); margin: 0 auto 38px; padding: 0 20px 25px; border: 1px solid #e6b9bb; background: #fff5f5; }
.mirror-sale > header { min-height: 102px; margin: 0 -20px 23px; padding: 15px 28px; display: flex; align-items: center; gap: 42px; color: #fff; background: linear-gradient(100deg,#b90009,#ed1c24 68%,#bc0009); }
.mirror-sale > header small { font-size: 9px; letter-spacing: .08em; }
.mirror-sale > header h2 { margin: 2px 0 0; font-size: 29px; }
.mirror-countdown { display: flex; align-items: center; gap: 8px; }
.mirror-countdown span { min-width: 49px; padding: 8px 7px; display: grid; justify-items: center; border-radius: 3px; color: #222; background: #fff; }
.mirror-countdown b { font-size: 20px; line-height: 1; }
.mirror-countdown span small { margin-top: 4px; color: #777; font-size: 7px; }
.mirror-countdown i { font-style: normal; font-size: 21px; }
.mirror-best-sellers { padding-top: 20px; }
.mirror-floating { position: fixed; z-index: 40; right: 22px; top: 39%; display: grid; gap: 9px; }
.mirror-floating a { width: 50px; height: 50px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; overflow: hidden; background: #d71920; box-shadow: 0 3px 12px rgba(0,0,0,.24); }
.mirror-floating img { width: 100%; height: 100%; object-fit: contain; }
.mirror-chat { position: fixed; z-index: 39; right: 20px; bottom: 16px; width: 294px; min-height: 76px; padding: 10px 52px 10px 80px; display: flex; align-items: center; border-radius: 5px; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.22); }
.mirror-chat > img { position: absolute; left: 10px; width: 38px; height: 38px; object-fit: contain; }
.mirror-chat > img.mirror-chat-brand { width: 60px; height: 36px; border-radius: 0; }
.mirror-chat > div { display: grid; gap: 2px; }
.mirror-chat strong { font-size: 12px; }
.mirror-chat span { color: #666; font-size: 10px; line-height: 1.35; }
.mirror-chat > a { position: absolute; right: 11px; width: 36px; height: 36px; padding: 7px; display: grid; place-items: center; border-radius: 50%; background: #1688f5; }
.mirror-chat > a img { width: 100%; height: 100%; filter: brightness(0) invert(1); }
.mirror-footer { min-height: 220px; padding: 35px max(24px,calc((100vw - 1320px)/2)); display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; color: #eee; background: #222; }
.mirror-footer > div { display: grid; align-content: start; gap: 9px; }
.mirror-footer img { width: 165px; height: auto; filter: brightness(0) invert(1); }
.mirror-footer strong { font-size: 12px; }
.mirror-footer a, .mirror-footer p, .mirror-footer small { color: #bbb; font-size: 11px; line-height: 1.5; }
.mirror-footer address { color: #bbb; font-size: 11px; font-style: normal; line-height: 1.5; }
@media (max-width: 1380px) {
  .mirror-header-main { width: min(100% - 28px, 1240px); padding: 0; grid-template-columns: 195px minmax(390px,1fr) 190px 50px; gap: 14px; }
  .mirror-logo { width: 185px; min-height: 70px; }
  .mirror-logo img { width: 185px; }
  .mirror-nav > a, .mirror-nav > .mirror-language, .mirror-products-menu > summary, .mirror-nav > .mirror-nav-layer-menu > summary { padding-left: 8px; padding-right: 8px; font-size: clamp(13px, 1vw, 14px); }
}
@media (max-width: 1020px) {
  .mirror-header-main { grid-template-columns: 180px 1fr 52px; }
  .mirror-hotlines { display: none; }
  .mirror-nav { justify-content: flex-start; overflow-x: auto; }
  .mirror-product-track { grid-auto-columns: calc((100% - 54px)/4); }
}
@media (max-width: 720px) {
  .mirror-header-main { width: 100%; min-height: 68px; padding: 5px 12px; grid-template-columns: 42px minmax(0, 1fr) 42px; grid-template-areas: "toggle brand basket"; gap: 8px; }
  .mirror-mobile-toggle { grid-area: toggle; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 0; color: #444; background: transparent; font-size: 25px; line-height: 1; cursor: pointer; }
  .mirror-mobile-toggle:focus-visible { outline: 2px solid #d71920; outline-offset: 2px; }
  .mirror-logo { grid-area: brand; width: 165px; min-height: 58px; justify-self: center; }
  .mirror-logo img { width: 165px; }
  .mirror-quote { grid-area: basket; }
  .mirror-discovery { display: none; }
  .mirror-search { height: 40px; }
  .mirror-quick-links { max-width: calc(100vw - 24px); display: flex; gap: 6px; padding: 1px 0 3px; scroll-snap-type: x proximity; }
  .mirror-quick-links a { padding: 5px 9px; scroll-snap-align: start; border: 1px solid #ddd; border-radius: 999px; background: #f7f7f7; font-size: 10px; line-height: 1; }
  .mirror-quick-links a:hover, .mirror-quick-links a:focus-visible { background: #fff0f0; }
  .mirror-nav-bar { display: none; position: fixed; z-index: 81; top: 158px; left: 0; right: 0; height: calc(100vh - 158px); overflow-y: auto; border-top: 1px solid #ddd; background: #fff; box-shadow: 0 18px 34px rgba(0,0,0,.24); }
  .mirror-header.is-mobile-nav-open .mirror-discovery { position: fixed; z-index: 82; top: 68px; left: 0; right: 0; padding: 10px 12px 9px; display: grid; gap: 7px; border-bottom: 1px solid #ddd; background: #fff; }
  .mirror-header.is-mobile-nav-open .mirror-nav-bar { display: block; }
  .mirror-header.is-mobile-nav-open .mirror-mobile-toggle { color: #d71920; }
  .mirror-nav { width: 100%; height: auto; display: flex; align-items: stretch; flex-direction: column; justify-content: flex-start; overflow: visible; }
  .mirror-nav > a, .mirror-nav > .mirror-language, .mirror-products-menu > summary, .mirror-nav > .mirror-nav-layer-menu > summary { width: 100%; min-height: 44px; padding: 0 16px; justify-content: flex-start; border-bottom: 1px solid #e4e4e4; font-size: 12px; }
  .mirror-nav > a:nth-of-type(n+5) { display: flex; }
  .mirror-products-menu, .mirror-nav-layer-menu { width: 100%; }
  .mirror-products-menu > summary { padding-left: 16px; padding-right: 16px; }
  .mirror-products-menu > .catalog-mobile-tree { position: static; max-height: none; margin: 0; padding: 6px; border: 0; box-shadow: none; }
  .mirror-nav-layer-menu > .nav-layer-panel { position: static; width: 100%; max-height: none; padding: 12px; overflow: visible; border: 0; border-bottom: 1px solid #ddd; transform: none; box-shadow: none; }
  .mirror-store-link, .mirror-flash-link, .mirror-language { min-height: 44px !important; margin: 0 !important; border-radius: 0; }
  .wp-static-mirror.mirror-mobile-nav-open { overflow: hidden; }
  .mirror-hero { height: 41vw; min-height: 150px; }
  .mirror-hero .carousel-control { width: 38px; height: 38px; font-size: 27px; }
  .mirror-hero .carousel-control.prev { left: 10px; }
  .mirror-hero .carousel-control.next { right: 10px; }
  .mirror-products { padding: 28px 12px 36px; }
  .mirror-section-title h2 { font-size: 20px; }
  .mirror-product-window { overflow-x: auto; scrollbar-width: none; }
  .mirror-product-track { grid-auto-columns: calc((100% - 12px)/2); gap: 12px; }
  .mirror-product-card h3 { min-height: 51px; font-size: 12px; -webkit-line-clamp: 3; }
  .mirror-product-image { aspect-ratio: 1; }
  .mirror-sale { width: calc(100% - 24px); padding: 0 8px 17px; }
  .mirror-sale > header { min-height: 124px; margin-left: -8px; margin-right: -8px; padding: 13px 12px; flex-wrap: wrap; gap: 10px 20px; }
  .mirror-sale > header > div:first-child { width: 100%; }
  .mirror-sale > header h2 { font-size: 22px; }
  .mirror-countdown span { min-width: 40px; padding: 7px 5px; }
  .mirror-floating { right: 7px; top: auto; bottom: 82px; }
  .mirror-floating a { width: 42px; height: 42px; }
  .mirror-chat { right: 7px; bottom: 8px; width: 244px; min-height: 62px; padding-left: 68px; }
  .mirror-chat > img { width: 32px; height: 32px; }
  .mirror-footer { grid-template-columns: 1fr 1fr; gap: 24px; }
  .mirror-footer > small { grid-column: 1 / -1; }
}

/* Phase 3 — keep the accepted mirror while matching WP header/menu behavior more closely. */
.mirror-header { position: sticky; top: 0; }
.mirror-products-menu > .mega-panel {
  min-height: min(460px, calc(100vh - 170px));
  max-height: calc(100vh - 170px);
  overflow: hidden;
}
.mirror-products-menu .mega-roots,
.mirror-products-menu .mega-level-two,
.mirror-products-menu .mega-level-three {
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

@media (max-width: 1380px) and (min-width: 1021px) {
  .mirror-header-main {
    grid-template-columns: 220px minmax(390px, 1fr) 180px 50px;
    gap: 15px;
  }
  .mirror-logo { width: 215px; min-height: 78px; }
  .mirror-logo img { width: 215px; }
  .mirror-hotlines { gap: 5px; }
  .mirror-nav > a,
  .mirror-nav > .mirror-language,
  .mirror-products-menu > summary,
  .mirror-nav > .mirror-nav-layer-menu > summary {
    padding-left: 9px;
    padding-right: 9px;
    font-size: clamp(13px, 1vw, 14px);
  }
}

@media (min-width: 1021px) {
  .mirror-nav > .mirror-products-menu,
  .mirror-nav > .mirror-nav-layer-menu,
  .mirror-nav > a:not(.store-link):not(.sale-link) {
    min-width: 0;
    flex: 1 1 auto;
    border-left: 1px solid rgba(67, 70, 73, .23);
  }
  .mirror-nav > .mirror-products-menu > summary,
  .mirror-nav > .mirror-nav-layer-menu > summary { width: 100%; }
  .mirror-nav > a[href="/cong-ty-thiet-ke-kien-truc/"] { flex-grow: 1.55; }
  .mirror-nav > .store-link {
    min-height: 40px !important;
    margin: 8px 7px 8px 12px !important;
    flex: 0 0 132px;
    border: 1px solid #17427e;
  }
  .mirror-nav > .sale-link {
    min-height: 40px !important;
    margin: 8px 7px !important;
    flex: 0 0 116px;
    border: 1px solid #cc151e;
  }
  .mirror-nav > .mirror-language,
  .mirror-nav > .language-switch {
    min-width: 54px;
    margin-left: 0;
    padding: 0 8px;
    justify-content: center;
    border-left: 1px solid rgba(67, 70, 73, .23);
    border-right: 1px solid rgba(67, 70, 73, .23);
  }
}

@media (max-width: 820px) {
  .mirror-header { position: relative; }
}

@media (max-width: 720px) {
  .mirror-header-main { min-height: 68px; }
  .mirror-products-menu > .mega-panel { display: none; }
  .mirror-floating { z-index: 38; }
  .mirror-chat { z-index: 37; }
}
