@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{--blue:#1554e8;--blue2:#0c3fbd;--navy:#17243a;--red:#e93438;--ink:#1d2635;--muted:#707b8d;--line:#e7eaf0;--bg:#f6f7f9;--shadow:0 8px 26px rgba(20,35,60,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:140px}body{margin:0;font-family:"Be Vietnam Pro",Arial,sans-serif;color:var(--ink);background:#fff}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.wrap{width:min(1240px,calc(100% - 48px));margin:auto}
.top-strip{height:34px;background:#f4f6f9;color:#657084;font-size:10px}.top-strip-inner{height:100%;display:flex;align-items:center;justify-content:space-between}.top-strip b{color:#283348}.top-strip-inner>div{display:flex;align-items:center;gap:13px}.top-strip i{height:12px;width:1px;background:#d8dde5}.top-strip a{color:var(--blue);font-weight:700}
.site-header{background:white;position:relative;z-index:12}.header-main{height:91px;display:flex;align-items:center;gap:30px;width:min(1240px,calc(100% - 48px))}.brand{width:225px;height:77px;flex:none;overflow:hidden}.brand img{width:100%;height:100%;object-fit:contain}.header-search{height:47px;display:flex;flex:1 1 auto;width:100%;min-width:0;border:2px solid var(--blue);border-radius:7px;overflow:hidden;max-width:none}.header-search input{border:0;outline:0;padding:0 15px;min-width:0;flex:1;font-size:12px}.header-search button{border:0;background:var(--blue);color:#fff;padding:0 18px;font-size:12px;font-weight:700;cursor:pointer}.header-search button span{font-size:20px;vertical-align:-2px;margin-right:5px}.header-actions{display:none}.support-link{display:flex;align-items:center;gap:9px;white-space:nowrap}.action-icon{height:35px;width:35px;border-radius:50%;background:#eef3ff;color:var(--blue);display:grid;place-items:center;font-size:19px}.support-link small,.support-link b{display:block}.support-link small{font-size:9px;color:var(--muted)}.support-link b{font-size:12px;margin-top:3px}
.main-nav{border-top:1px solid #f0f1f4;border-bottom:1px solid var(--line);background:white}.nav-inner{height:49px;display:flex;align-items:center;justify-content:space-between;gap:0}.nav-link{height:100%;flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:11px;padding:0 12px;font-size:16px;font-weight:800;text-transform:uppercase;color:#df292f;border-right:1px solid #edf0f4}.nav-link:first-child{padding-left:0;justify-content:flex-start}.nav-link span{font-size:20px;line-height:1}.nav-link .nav-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:21px;filter:saturate(1.15)}.nav-link:hover,.nav-link.active{color:#df292f}.nav-hotline{margin-left:16px;flex:none;background:#1554e8;color:#fff;border-radius:5px;padding:11px 18px;font-size:16px;font-weight:800;white-space:nowrap;text-transform:uppercase}
.hero{margin-top:18px;overflow:hidden;border-radius:5px;background:transparent}.hero img{display:block;width:100%;height:auto;max-height:none;object-fit:cover}
.benefit-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:20px;border:1px solid var(--line);border-radius:0;box-shadow:var(--shadow);padding:16px 0}.benefit-strip article{display:flex;align-items:center;justify-content:flex-start;gap:14px;border-right:1px solid var(--line);padding:0 18px;min-height:48px}.benefit-strip article:first-child{padding-left:12px}.benefit-strip article:last-child{border:0;justify-content:flex-end;padding-right:12px}.benefit-icon-img{width:44px;height:44px;object-fit:contain;flex:none}.benefit-strip .benefit-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:34px;line-height:1;flex:none;filter:saturate(1.15);display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;transform:none}.benefit-strip b,.benefit-strip small{display:block}.benefit-strip b{font-size:14px;font-weight:800;line-height:1.35}.benefit-strip small{font-size:11px;color:var(--muted);margin-top:5px}.benefit-strip .benefit-icon-img{filter:drop-shadow(0 2px 2px rgba(20,40,80,.08))}
.category-section{padding:55px 0 45px}.section-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.section-kicker{font-size:9px;font-weight:800;letter-spacing:1.7px;color:var(--blue)}.section-title h2{font-size:25px;letter-spacing:-.7px;margin:5px 0 0}.view-all{font-size:11px;font-weight:700;color:var(--blue)}.view-all b{font-size:17px;margin-left:5px}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}.category-tile{border:1px solid var(--line);background:#fff;border-radius:9px;min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:.2s}.category-tile:hover{border-color:#b8c9ff;box-shadow:var(--shadow);transform:translateY(-3px)}.category-art{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:29px;margin-bottom:4px}.office{background:#edf3ff;color:#245de0}.mac{background:#f0f1f5;color:#535e70}.gaming{background:#fff0f0;color:#e93438}.work{background:#edf7f0;color:#279a54}.accessory{background:#fff6e8;color:#bb7a18}.category-tile b{font-size:11px}.category-tile small{font-size:9px;color:var(--muted)}
.products-section{background:#f6f7f9;padding:48px 0 62px}.product-title{margin-bottom:19px}.product-title p{margin:7px 0 0;color:var(--muted);font-size:11px}.product-total{font-size:10px;color:var(--muted)}.catalog-tools{display:grid;grid-template-columns:1fr 200px 175px;gap:10px;margin-bottom:18px}.search-box{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 12px;height:41px}.search-box span{font-size:21px;color:var(--blue)}.search-box input{border:0;outline:0;width:100%;font-size:11px}.catalog-tools select{height:41px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 10px;color:#424d5e;font-size:10px;outline-color:var(--blue)}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product-card{border:1px solid #e9ebef;border-radius:8px;overflow:hidden;background:#fff;transition:.2s;cursor:pointer;min-width:0}.product-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #1b2d4b12;border-color:#cbd7f9}.product-image{height:190px;background:#fff;position:relative;display:grid;place-items:center;overflow:hidden;border-bottom:1px solid #f1f2f4}.product-image img{width:100%;height:100%;object-fit:contain;padding:10px}.product-placeholder{font-size:48px;color:#aab4c3}.tag-featured{position:absolute;top:10px;left:10px;background:#fff0e5;color:#c45c14;border-radius:3px;padding:4px 7px;font-size:8px;font-weight:800}.product-info{padding:13px}.product-category{font-size:9px;letter-spacing:.7px;color:var(--blue);font-weight:800;text-transform:uppercase}.product-info h3{font-size:12px;line-height:1.5;margin:6px 0 6px;min-height:36px}.product-specs{font-size:10px;color:var(--muted);line-height:1.55;min-height:31px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.price-row{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-top:11px}.price{font-size:15px;font-weight:800;color:#df2f35}.old-price{font-size:10px;color:#9aa1ad;text-decoration:line-through}.card-bottom{border-top:1px solid #f0f1f4;margin-top:11px;padding-top:9px;display:flex;justify-content:space-between;color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.4px}.loading-state,.empty-state{grid-column:1/-1;text-align:center;padding:45px 15px;color:var(--muted);font-size:12px}.empty-state h3{color:var(--ink);margin-bottom:5px}.empty-symbol{font-size:38px;color:var(--blue)}.hidden{display:none!important}
.promo-band{background:transparent;color:var(--ink);padding:30px 0}.promo-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.promo-inner span{font-size:9px;color:var(--blue);letter-spacing:1.8px;font-weight:800}.promo-inner h2{font-size:22px;margin:5px 0}.promo-inner p{font-size:11px;color:var(--muted);margin:0}.promo-inner>a{background:#f2bd2d;color:#1e2b40;padding:12px 20px;border-radius:5px;font-size:13px;font-weight:800;white-space:nowrap}
.services-section{padding:53px 0 58px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.service-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:19px;display:flex;align-items:flex-start;gap:14px}.service-card>span{width:40px;height:40px;flex:none;border-radius:8px;background:#eef3ff;color:var(--blue);display:grid;place-items:center;font-size:22px}.service-card h3{font-size:12px;margin:2px 0 6px}.service-card p{font-size:10px;color:var(--muted);line-height:1.65;margin:0}
.contact-section{background:#f5f7fb;padding:36px 0}.contact-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}.contact-inner h2{font-size:23px;margin:6px 0}.contact-inner p{font-size:11px;color:var(--muted);margin:0}.contact-details{display:grid;grid-template-columns:1fr 1fr;gap:7px 24px;font-size:10px}.contact-details b,.contact-details span{grid-column:1/-1}.contact-details span{color:var(--muted)}.contact-details a{color:var(--blue);font-weight:800}
footer{background:#17243a;color:#fff}.footer-main{padding:34px 0;display:grid;grid-template-columns:2fr 1fr 1.3fr;gap:35px}.footer-brand img{width:175px;height:65px;object-fit:contain;background:#fff;border-radius:4px}.footer-main p,.footer-main a,.footer-main span{display:block;color:#c2cad7;font-size:16px;line-height:1.9}.footer-main b{display:block;font-size:16px;margin-bottom:10px}.footer-bottom{border-top:1px solid #ffffff1c;padding:12px 0;color:#aeb8c8;font-size:16px}.footer-bottom .wrap{display:flex;justify-content:space-between}.footer-bottom a{color:#fff}
.mobile-bottom-nav{display:none}
.modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:#101725b8}.modal-panel{position:relative;background:#fff;border-radius:12px;width:min(760px,100%);max-height:90vh;overflow:auto;padding:25px}.modal-close{position:absolute;right:13px;top:10px;border:0;background:#f1f3f6;border-radius:50%;width:34px;height:34px;font-size:24px;cursor:pointer;z-index:2}.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding-top:15px}.detail-image{background:#f4f6f9;border-radius:9px;min-height:280px;display:grid;place-items:center}.detail-image img{width:100%;height:100%;max-height:340px;object-fit:contain}.detail-copy h2{font-size:14px;font-weight:800;margin:0 0 5px;line-height:1.4}.detail-copy p{font-size:12px;color:var(--ink);line-height:1.45;margin:0 0 5px;white-space:pre-line}.detail-price{font-size:14px;color:var(--red);font-weight:800;margin:5px 0;line-height:1.4}.primary-btn{border:0;background:var(--blue);color:#fff;display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:12px 18px;border-radius:6px;font-weight:700;cursor:pointer}
.admin-view{position:fixed;inset:0;z-index:50;background:#f5f7fb;overflow:auto}.admin-top{height:66px;background:#202a38;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1200px)/2))}.admin-brand{font-weight:800;letter-spacing:.5px}.admin-brand span{font-weight:400;color:#b9c3d1;font-size:11px}.admin-top>a:last-child{font-size:13px}.admin-content{width:min(1200px,calc(100% - 40px));margin:38px auto 70px}.card-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:0 4px 20px #18243a08}.admin-login{max-width:430px;margin:70px auto}.admin-login h1,.admin-heading h1{font-size:27px;margin:0 0 10px}.muted{color:var(--muted);font-size:13px;line-height:1.6}.admin-login form{display:grid;gap:14px;margin-top:22px}.admin-view label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#303846}.admin-view input:not([type=checkbox]),.admin-view select,.admin-view textarea{width:100%;border:1px solid #dfe4ec;border-radius:7px;padding:11px 12px;outline-color:var(--blue);font-size:13px;background:#fff}.full-btn{width:100%;margin-top:6px}.form-message{font-size:12px;color:var(--red);min-height:16px;margin:0}.admin-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.outline-btn{background:white;border:1px solid var(--line);padding:10px 15px;border-radius:7px;cursor:pointer;font-weight:700}.admin-stats{display:flex;gap:12px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:15px 20px;min-width:170px;display:grid;gap:5px}.stat-card span{font-size:11px;color:var(--muted)}.stat-card strong{font-size:24px}.admin-layout{display:grid;grid-template-columns:390px 1fr;gap:18px;align-items:start}.product-form{display:grid;gap:13px}.form-title,.manager-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.form-title h2,.manager-heading h2{font-size:17px;margin:0}.text-btn{border:0;background:none;color:var(--blue);font-size:12px;font-weight:700;cursor:pointer}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-hint{font-size:10px;color:var(--muted);font-weight:400}.check-label{display:flex!important;align-items:center;gap:8px!important}.check-label input{accent-color:var(--blue)}.image-preview{display:flex;align-items:center;gap:12px}.image-preview img{width:80px;height:65px;object-fit:contain;border:1px solid var(--line);border-radius:6px}.manager-heading{margin-bottom:17px}.manager-heading input{max-width:220px;height:38px}.admin-product-list{display:grid;gap:8px}.admin-item{display:grid;grid-template-columns:62px 1fr auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:9px}.admin-item img{width:62px;height:55px;object-fit:contain;background:#f5f6f8;border-radius:6px}.admin-item strong{font-size:12px;display:block}.admin-item small{font-size:10px;color:var(--muted)}.admin-item-actions{display:flex;gap:6px}.admin-item-actions button{border:1px solid var(--line);background:white;border-radius:5px;padding:6px 8px;font-size:10px;cursor:pointer}.admin-item-actions .delete-btn{color:var(--red)}
@media(max-width:1000px){.header-main{gap:18px}.brand{width:190px}.header-actions{gap:10px}.address-link{display:none}.nav-link{padding:0 10px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.benefit-icon-img{width:34px;height:34px}.benefit-strip b{font-size:12px}.benefit-strip small{font-size:10px}html{scroll-padding-top:70px}body{padding-bottom:61px}.wrap{width:calc(100% - 24px)}.top-strip{height:28px;font-size:8px}.top-strip-inner>div{gap:7px}.top-strip-inner>div>span{display:none}.header-main{height:67px;gap:10px;width:calc(100% - 24px)}.brand{width:145px;height:56px}.header-search{height:39px;border-width:1px}.header-search input{font-size:9px;padding:0 8px}.header-search button{padding:0 9px;font-size:0}.header-search button span{font-size:21px;margin:0}.header-actions{display:none}.main-nav{display:none}.hero{width:100%;margin-top:0;border-radius:0}.hero img{width:100%;height:auto;min-height:112px;object-fit:cover}.benefit-strip{width:calc(100% - 20px);margin-top:12px;padding:10px 0;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px;border-radius:0}.benefit-strip article{justify-content:flex-start;padding:0 10px;border:0}.benefit-strip article:nth-child(odd){border-right:1px solid var(--line)}.benefit-strip article:first-child{padding-left:10px}.benefit-strip article:last-child{justify-content:flex-start;padding-right:10px}.benefit-icon{width:auto;height:auto;font-size:22px}.benefit-strip b{font-size:11px}.benefit-strip small{font-size:9px}.benefit-strip .benefit-emoji{font-size:30px}.category-section{padding:36px 0 30px}.section-title h2{font-size:20px}.section-kicker{font-size:8px}.category-grid{grid-template-columns:repeat(3,1fr);gap:8px}.category-tile{min-height:111px;gap:4px}.category-art{width:40px;height:40px;font-size:23px}.category-tile b{font-size:9px}.category-tile small{font-size:8px}.products-section{padding:34px 0 40px}.product-title p{font-size:9px}.catalog-tools{grid-template-columns:1fr 1fr;gap:7px}.search-box{grid-column:1/-1;height:38px}.catalog-tools select{height:37px;font-size:9px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-image{height:140px}.product-image img{padding:6px}.product-info{padding:9px}.product-info h3{font-size:10px;min-height:30px}.product-specs{font-size:8px;min-height:26px}.price{font-size:12px}.old-price{font-size:8px}.card-bottom{font-size:8px}.tag-featured{font-size:7px}.product-total{font-size:8px}.promo-band{padding:23px 0}.promo-inner h2{font-size:17px}.promo-inner p{font-size:9px;max-width:230px;line-height:1.5}.promo-inner>a{font-size:10px;padding:10px 11px}.services-section{padding:38px 0}.service-grid{grid-template-columns:1fr;gap:8px}.service-card{padding:13px}.service-card h3{font-size:11px}.service-card p{font-size:9px}.contact-section{padding:27px 0}.contact-inner{display:block}.contact-inner h2{font-size:18px}.contact-details{margin-top:16px;font-size:9px;gap:6px 14px}.footer-main{padding:25px 0;grid-template-columns:1fr 1fr;gap:18px}.footer-brand{grid-column:1/-1}.footer-brand img{width:140px;height:50px}.footer-main p,.footer-main a,.footer-main span,.footer-main b{font-size:16px}.footer-bottom,.footer-bottom .wrap{font-size:16px}.mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;height:59px;background:#fff;border-top:1px solid #e6e9ef;z-index:20;display:flex;justify-content:space-around;align-items:center;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -3px 12px #18243a0b}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:#5d6879;font-size:8px;font-weight:600;min-width:50px}.mobile-bottom-nav a span{font-size:19px;line-height:1;color:var(--blue)}.detail-layout{grid-template-columns:1fr;gap:15px}.detail-image{min-height:190px}.detail-copy h2{font-size:19px}.modal-panel{padding:17px}.admin-content{width:calc(100% - 22px);margin:20px auto}.admin-layout{grid-template-columns:1fr}.admin-heading h1{font-size:22px}.admin-stats{flex-wrap:wrap}.stat-card{flex:1}.admin-top{padding:0 14px}.admin-brand span{display:none}.manager-heading{align-items:flex-start;flex-direction:column}.manager-heading input{max-width:none}.admin-item{grid-template-columns:50px 1fr}.admin-item img{width:50px;height:48px}.admin-item-actions{grid-column:2}.form-row{grid-template-columns:1fr 1fr}}


/* Laptop Ninh All - compact benefit row */
@media (min-width: 651px) {
  .benefit-strip {
    height: 42px;
    min-height: 42px;
    padding: 1px 0;
    box-sizing: border-box;
    align-items: center;
  }
  .benefit-strip article {
    height: 38px;
    min-height: 38px;
    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
  .benefit-strip .benefit-emoji,
  .benefit-strip .benefit-icon-img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    font-size: 27px;
    line-height: 1;
    object-fit: contain;
  }
  .benefit-strip article > div {
    min-width: 0;
    overflow: hidden;
  }
  .benefit-strip b {
    display: block;
    font-size: 14px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .benefit-strip small {
    display: block;
    font-size: 10px;
    line-height: 12px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 650px) {
  .benefit-strip article {
    min-height: 38px;
    align-items: center;
    gap: 8px;
  }
  .benefit-strip .benefit-emoji,
  .benefit-strip .benefit-icon-img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 24px;
    object-fit: contain;
  }
  .benefit-strip b {
    font-size: 14px;
    line-height: 1.2;
  }
  .benefit-strip small {
    font-size: 9px;
    line-height: 1.2;
    margin-top: 2px;
  }
}


/* Fine alignment: lift the payment-card icon and left-align the technical-support item */
@media (min-width: 651px) {
  .benefit-strip article:nth-child(3) .benefit-emoji,
  .benefit-strip article:nth-child(3) .benefit-icon-img {
    transform: translateY(-3px);
  }
  .benefit-strip article:last-child {
    justify-content: flex-start;
    padding-left: 18px;
    padding-right: 12px;
  }
}
@media (max-width: 650px) {
  .benefit-strip article:nth-child(3) .benefit-emoji,
  .benefit-strip article:nth-child(3) .benefit-icon-img {
    transform: translateY(-2px);
  }
  .benefit-strip article:last-child {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* Benefit labels: uppercase regular weight; refreshed colorful icons */
.benefit-strip b {
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: .15px;
}
.benefit-strip .benefit-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 30px;
  line-height: 1;
  filter: saturate(1.2);
}
@media (max-width: 650px) {
  .benefit-strip b {
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
  }
  .benefit-strip .benefit-emoji {
    font-size: 26px;
  }
}


/* Benefit strip: centered content, compact Roboto typography */
.benefit-strip article {
  justify-content: center !important;
  align-items: center !important;
  gap: 9px;
  text-align: left;
}
.benefit-strip article:last-child {
  justify-content: center !important;
  padding-left: 18px;
  padding-right: 18px;
}
.benefit-strip article > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.benefit-strip b {
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 15px !important;
  text-transform: uppercase;
  letter-spacing: 0;
}
.benefit-strip small {
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 400;
  line-height: 12px;
  margin-top: 1px;
}
.benefit-strip .benefit-emoji,
.benefit-strip .benefit-icon-img {
  align-self: center;
}
@media (max-width: 650px) {
  .benefit-strip article,
  .benefit-strip article:last-child {
    justify-content: center !important;
    padding-left: 8px;
    padding-right: 8px;
  }
  .benefit-strip b {
    font-size: 12px !important;
  }
}


/* Navigation width follows the banner exactly */
.main-nav {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.main-nav > .nav-inner {
  width: min(1240px, calc(100% - 48px));
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #f0f1f4;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
@media (max-width: 650px) {
  .main-nav > .nav-inner {
    width: calc(100% - 24px);
  }
}


/* Left category rail + compact hero banner, following the supplied shop reference */
.hero-category-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 16px;
}
.category-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px 0;
  border: 1px solid #d9dce2;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.sidebar-category {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 39px;
  padding: 6px 13px;
  border: 0;
  background: transparent;
  color: #171b24;
  text-align: left;
  font: 400 14px/1.35 Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.sidebar-category span {
  width: 22px;
  flex: 0 0 22px;
  text-align: center;
  font-size: 19px;
  line-height: 1;
  filter: saturate(.8);
}
.sidebar-category:hover {
  color: #1554e8;
  background: #f3f6ff;
}
.hero-category-layout .hero {
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f4f7;
}
.hero-category-layout .hero img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 850px) {
  .hero-category-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 10px;
  }
  .sidebar-category {
    min-height: 36px;
    padding: 5px 9px;
    gap: 8px;
    font-size: 12px;
  }
  .sidebar-category span {
    font-size: 17px;
    width: 20px;
    flex-basis: 20px;
  }
}
@media (max-width: 650px) {
  .hero-category-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }
  .category-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-radius: 8px;
    padding: 4px 0;
  }
  .sidebar-category {
    min-height: 34px;
    font-size: 11px;
    padding: 5px 7px;
  }
  .sidebar-category span {
    font-size: 16px;
    width: 18px;
    flex-basis: 18px;
  }
  .hero-category-layout .hero {
    height: auto;
    border-radius: 7px;
  }
  .hero-category-layout .hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* Square-corner treatment for the category panel and banner */
.hero-category-layout,
.category-sidebar,
.hero-category-layout .hero,
.hero-category-layout .hero img {
  border-radius: 0 !important;
}
.category-sidebar {
  overflow: hidden;
}
.sidebar-category,
.sidebar-category:hover,
.sidebar-category:focus,
.sidebar-category:active {
  border-radius: 0 !important;
}


/* Sidebar category heading; category link removed from the top navigation */
.category-sidebar {
  justify-content: flex-start;
  padding: 0;
}
.category-sidebar-title {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  background: #f1f5ff;
  border-bottom: 1px solid #d9dce2;
  color: #1554e8;
  font: 700 14px/1.2 Roboto, Arial, sans-serif;
  letter-spacing: .25px;
}
.category-sidebar .sidebar-category {
  flex: 1 1 0;
  min-height: 0;
}
.hero-category-layout .hero,
.hero-category-layout .hero img,
.category-sidebar,
.category-sidebar-title,
.sidebar-category {
  border-radius: 0 !important;
}
.hero-category-layout .hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 650px) {
  .category-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  .category-sidebar-title {
    grid-column: 1 / -1;
    min-height: 36px;
  }
  .category-sidebar .sidebar-category {
    min-height: 34px;
  }
}


/* Category heading and concise requested category list */
.category-sidebar {
  justify-content: flex-start;
}
.category-sidebar-title {
  height: 30px;
  min-height: 30px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding: 0 10px;
  background: #e5242b;
  border-bottom: 1px solid #c91c23;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
}
.category-sidebar .sidebar-category {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  font-size: 14px;
}
.category-sidebar .sidebar-category span {
  width: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
@media (max-width: 650px) {
  .category-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }
  .category-sidebar-title {
    grid-column: 1 / -1;
    height: 30px;
    min-height: 30px;
  }
  .category-sidebar .sidebar-category {
    min-height: 42px;
    padding: 6px 8px;
    font-size: 12px;
  }
}


/* Category heading: bold, aligned to the left edge of the sidebar */
.category-sidebar-title {
  justify-content: flex-start !important;
  text-align: left !important;
  font-weight: 700 !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}


/* Distribute the six sidebar categories evenly through the full vertical panel */
@media (min-width: 651px) {
  .category-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    height: 100%;
    box-sizing: border-box;
  }
  .category-sidebar .sidebar-category {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
  }
}


/* Hide the removed top navigation bar and reclaim its vertical space */
.main-nav {
  display: none !important;
}


/* Six category rows: fixed 30px height, evenly spaced over the sidebar */
@media (min-width: 651px) {
  .category-sidebar {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    height: 100%;
    box-sizing: border-box;
    padding: 0 !important;
  }
  .category-sidebar-title {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
  .category-sidebar .sidebar-category {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px;
    padding: 0 13px !important;
    display: flex;
    align-items: center !important;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 30px;
  }
  .category-sidebar .sidebar-category span {
    width: 24px;
    height: 30px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
  }
}
@media (max-width: 650px) {
  .category-sidebar .sidebar-category {
    min-height: 30px !important;
    height: 30px;
    padding: 0 8px !important;
    font-size: 12px;
    line-height: 30px;
  }
}


/* Sidebar category spacing: 3px inset and 3px vertical gap */
@media (min-width: 651px) {
  .category-sidebar {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 3px !important;
    padding: 3px !important;
    box-sizing: border-box;
  }
  .category-sidebar-title {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
  }
  .category-sidebar .sidebar-category {
    flex: 0 0 30px !important;
    width: 100%;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    display: flex;
    align-items: center !important;
    box-sizing: border-box;
    line-height: 30px;
  }
  .category-sidebar .sidebar-category span {
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 650px) {
  .category-sidebar {
    gap: 3px !important;
    padding: 3px !important;
    box-sizing: border-box;
  }
  .category-sidebar .sidebar-category {
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 3px !important;
    box-sizing: border-box;
  }
}


/* Final sidebar layout: five requested categories, 30px rows, 5px gaps, 3px inset */
.category-sidebar {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 5px !important;
  padding: 3px !important;
  box-sizing: border-box;
}
.category-sidebar-title {
  flex: 0 0 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
}
.category-sidebar .sidebar-category {
  flex: 0 0 30px !important;
  width: 100%;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin: 0 !important;
  padding: 0 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  box-sizing: border-box;
  line-height: 30px;
  font-size: 14px;
}
.category-sidebar .sidebar-category span {
  width: 24px;
  height: 30px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-size: 20px;
  line-height: 1;
}
@media (max-width: 650px) {
  .category-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 3px !important;
  }
  .category-sidebar-title {
    flex: 0 0 30px !important;
    grid-column: auto;
  }
  .category-sidebar .sidebar-category {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 3px !important;
    font-size: 13px;
  }
}


/* Rebalance category/banner proportions: narrower sidebar, natural banner ratio */
@media (min-width: 851px) {
  .hero-category-layout {
    grid-template-columns: 160px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .hero-category-layout .hero {
    height: auto !important;
    align-self: start;
  }
  .hero-category-layout .hero img {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
  .category-sidebar {
    width: 160px;
    min-width: 160px;
    align-self: stretch;
  }
}
@media (min-width: 651px) and (max-width: 850px) {
  .hero-category-layout {
    grid-template-columns: 145px minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  .category-sidebar {
    width: 145px;
    min-width: 145px;
  }
  .hero-category-layout .hero,
  .hero-category-layout .hero img {
    height: auto !important;
  }
}


/* Desktop hero banner fixed to 350px high without distorting the artwork */
@media (min-width: 651px) {
  .hero-category-layout .hero {
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    overflow: hidden !important;
  }
  .hero-category-layout .hero img {
    display: block;
    width: 100% !important;
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}


/* Mobile/tablet: keep the category menu and its labels inside the available frame */
@media (max-width: 650px) {
  .hero-category-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    box-sizing: border-box;
    overflow: hidden;
  }
  .category-sidebar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    padding: 3px !important;
    gap: 5px !important;
    overflow: hidden;
    align-items: stretch !important;
  }
  .category-sidebar-title {
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    flex: 0 0 30px !important;
    box-sizing: border-box;
    padding: 0 6px !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    overflow: hidden;
    font-size: 14px !important;
    line-height: 30px !important;
  }
  .category-sidebar .sidebar-category {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 30px !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    box-sizing: border-box;
    padding: 4px 3px !important;
    margin: 0 !important;
    gap: 7px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 13px !important;
    line-height: 18px !important;
  }
  .category-sidebar .sidebar-category span {
    width: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: 19px !important;
    line-height: 1 !important;
  }
  .hero-category-layout .hero {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
  }
  .hero-category-layout .hero img {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}


/* Category sidebar heading: reduce title font to 12px */
.category-sidebar-title {
  font-size: 12px !important;
}


/* Category list: six rows balanced through the sidebar height */
.category-sidebar {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 5px !important;
  padding: 3px !important;
  box-sizing: border-box;
  min-width: 0;
}
.category-sidebar-title {
  flex: 0 0 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  font-size: 12px !important;
  box-sizing: border-box;
}
.category-sidebar .sidebar-category {
  flex: 1 1 0 !important;
  min-height: 30px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  box-sizing: border-box;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-align: left !important;
  white-space: normal !important;
}
.category-sidebar .sidebar-category span {
  width: 22px !important;
  min-width: 22px !important;
  flex: 0 0 22px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
@media (max-width: 650px) {
  .category-sidebar {
    height: auto !important;
    gap: 5px !important;
    padding: 3px !important;
  }
  .category-sidebar-title {
    flex: 0 0 30px !important;
  }
  .category-sidebar .sidebar-category {
    flex: 0 0 30px !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 3px !important;
    font-size: 12px !important;
  }
}


/* Sidebar: distribute the six 30px category rows evenly within the full vertical frame */
@media (min-width: 651px) {
  .hero-category-layout {
    align-items: stretch !important;
  }
  .category-sidebar {
    height: 350px !important;
    min-height: 350px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 3px !important;
    overflow: hidden;
  }
  .category-sidebar-title {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
  .category-sidebar .sidebar-category {
    flex: 1 1 0 !important;
    min-height: 30px !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
  .category-sidebar .sidebar-category span {
    flex: 0 0 22px !important;
    width: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
}
@media (max-width: 650px) {
  .category-sidebar {
    height: auto !important;
    min-height: 0 !important;
    gap: 5px !important;
    padding: 3px !important;
    justify-content: flex-start !important;
  }
  .category-sidebar .sidebar-category {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
}


/* Catalog heading without the removed promotional title block */
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
  min-height: 34px;
}
.catalog-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  background: #174fe8;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  white-space: nowrap;
}
.catalog-admin-link:hover { background: #103fc0; }
.manager-heading { flex-wrap: wrap; }
#seedDemoBtn { white-space: nowrap; }
@media (max-width: 650px) {
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .catalog-admin-link { width: 100%; box-sizing: border-box; }
}


/* Admin action sits in the top strip immediately after the hotline */
.top-strip-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-strip .catalog-admin-link {
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
  line-height: 26px;
  border-radius: 3px;
}
.catalog-heading .catalog-admin-link {
  display: none !important;
}
@media (max-width: 650px) {
  .top-strip-inner > div {
    justify-content: flex-end;
    gap: 6px;
  }
  .top-strip .catalog-admin-link {
    min-height: 24px;
    line-height: 24px;
    font-size: 10px;
    padding: 0 7px;
  }
}


/* Hotline-area admin link: transparent background with white text */
.top-strip .catalog-admin-link {
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}
.top-strip .catalog-admin-link:hover,
.top-strip .catalog-admin-link:focus {
  background: transparent !important;
  color: #fff !important;
  text-decoration: underline;
}


/* Admin link after hotline: black text on transparent background */
.top-strip .catalog-admin-link,
.top-strip .catalog-admin-link:hover,
.top-strip .catalog-admin-link:focus {
  color: #000 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* Password reset action on admin sign-in */
.password-reset-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0;
  color: #174fe8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.password-reset-btn:hover { text-decoration: underline; }
#loginMessage { overflow-wrap: anywhere; }


.local-admin-notice {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #f0d48a;
  background: #fff8e6;
  color: #75520a;
  font-size: 12px;
  line-height: 1.5;
}

/* Clear feedback for temporary local product management */
#productMessage, #loginMessage { overflow-wrap: anywhere; }

/* Catalog spacing: hide product count and place content 8px below the upper bar */
.products-section {
  padding-top: 8px !important;
}
.products-section .catalog-heading {
  display: none !important;
}

/* Laptop Ninh All: trang chu nen trang dong bo toan chieu ngang */
html, body {
  background: #ffffff !important;
}
body {
  background-color: #ffffff !important;
}
main,
main > section,
.products-section,
.category-section,
.services-section,
.contact-section,
.promo-band,
.product-list-section {
  background-color: #ffffff !important;
}
.top-strip {
  background-color: #ffffff !important;
}


/* Benefit strip: four distinct red panels, 8px below the hero banner */
.benefit-strip {
  margin-top: 8px !important;
  padding: 1px 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 2px;
  background: transparent !important;
}
.benefit-strip article {
  background: #d9232e !important;
  color: #ffffff !important;
  border: 0 !important;
  min-width: 0;
}
.benefit-strip article:nth-child(1) { background: #c91f2b !important; }
.benefit-strip article:nth-child(2) { background: #df2935 !important; }
.benefit-strip article:nth-child(3) { background: #b81727 !important; }
.benefit-strip article:nth-child(4) { background: #ed3b43 !important; }
.benefit-strip b { color: #ffffff !important; }
.benefit-strip small { color: rgba(255,255,255,.88) !important; }
@media (max-width: 650px) {
  .benefit-strip { margin-top: 8px !important; row-gap: 2px !important; }
  .benefit-strip article { min-height: 48px; }
}

/* Benefit strip: four distinct light pastel backgrounds */
.benefit-strip {
  gap: 2px !important;
  background: transparent !important;
}
.benefit-strip article {
  color: #263247 !important;
  border: 0 !important;
}
.benefit-strip article:nth-child(1) { background: #fff0f0 !important; }
.benefit-strip article:nth-child(2) { background: #fff4e8 !important; }
.benefit-strip article:nth-child(3) { background: #fff0e8 !important; }
.benefit-strip article:nth-child(4) { background: #fff1f5 !important; }
.benefit-strip b { color: #263247 !important; }
.benefit-strip small { color: #687386 !important; }
@media (max-width: 650px) {
  .benefit-strip { row-gap: 2px !important; }
}

/* Benefit strip: requested four light colors - blue, yellow, white, red */
.benefit-strip article:nth-child(1) { background: #EAF4FF !important; }
.benefit-strip article:nth-child(2) { background: #FFF7D6 !important; }
.benefit-strip article:nth-child(3) { background: #FFFFFF !important; }
.benefit-strip article:nth-child(4) { background: #FDEBEC !important; }
.benefit-strip b { color: #263247 !important; }
.benefit-strip small { color: #687386 !important; }

/* Top information strip typography */
.top-strip {
  font-size: 14px !important;
  height: 40px !important;
}
@media (max-width: 650px) {
  .top-strip {
    font-size: 11px !important;
    height: 32px !important;
  }
}


/* Top strip: remove admin entry and align remaining contact details to the right */
.top-strip-inner {
  justify-content: flex-end !important;
}
.top-strip-inner > div {
  margin-left: auto !important;
  justify-content: flex-end !important;
}


/* Footer redesign: light three-column layout inspired by the supplied reference.
   Scoped to the public website footer; admin and Firebase logic are untouched. */
.site-footer {
  background: #f5f6fc;
  color: #17243a;
  border-top: 1px solid #e7eaf2;
}
.site-footer .footer-main {
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.site-footer .footer-main section { min-width: 0; }
.site-footer h2 {
  margin: 0 0 18px;
  color: #174fe8;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
}
.site-footer h3 {
  margin: 0 0 18px;
  color: #17243a;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}
.site-footer .footer-main p,
.site-footer .footer-main a,
.site-footer .footer-main strong {
  color: #25334b;
  font-size: 16px;
  line-height: 1.65;
}
.site-footer .footer-support p { margin: 0 0 18px; }
.site-footer .footer-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .footer-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e9f2;
  color: #174fe8;
  font-weight: 700;
  text-decoration: none;
}
.site-footer .footer-useful-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.site-footer .footer-useful-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #edf0f6;
  text-decoration: none;
}
.site-footer .footer-useful-grid a span {
  color: #4168e8;
  font-size: 20px;
  font-weight: 700;
}
.site-footer .footer-store-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #edf0f6;
}
.site-footer .footer-store-card strong { display: block; margin-bottom: 8px; }
.site-footer .footer-store-card p { margin: 6px 0; }
.site-footer .footer-store-card a { color: #174fe8; text-decoration: none; font-weight: 600; }
.site-footer .footer-store-card .footer-directions {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}
.site-footer .footer-bottom {
  border-top: 1px solid #e2e6ef;
  padding: 13px 0;
  color: #66738a;
}
.site-footer .footer-bottom a { color: #174fe8; text-decoration: none; font-size: 14px; }
@media (max-width: 850px) {
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer .footer-store { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 22px; }
  .site-footer .footer-store { grid-column: auto; }
  .site-footer h2 { font-size: 20px; }
  .site-footer h3 { font-size: 18px; margin-bottom: 12px; }
  .site-footer .footer-useful-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .site-footer .footer-useful-grid a { min-height: 48px; padding: 7px 9px; font-size: 14px; }
  .site-footer .footer-main p,
  .site-footer .footer-main a,
  .site-footer .footer-main strong { font-size: 16px; }
  .site-footer .footer-bottom .wrap { gap: 12px; flex-wrap: wrap; }
}


/* Footer refined to follow the supplied three-column reference layout */
.site-footer{background:#f5f6fc!important;color:#17243a!important;border-top:0!important}
.site-footer .footer-main{padding:34px 0 28px!important;display:grid!important;grid-template-columns:minmax(220px,.95fr) minmax(420px,1.25fr) minmax(300px,1fr)!important;gap:26px!important;align-items:start!important}
.site-footer .footer-main section{min-width:0}
.site-footer h3{margin:0 0 18px!important;color:#101828!important;font-size:22px!important;line-height:1.35!important;font-weight:600!important}
.site-footer .footer-main p,.site-footer .footer-main a,.site-footer .footer-main strong{color:#25334b;font-size:16px!important;line-height:1.6!important}
.site-footer .footer-support p{margin:0 0 20px}
.site-footer .footer-contact-actions{display:flex;flex-wrap:wrap;gap:12px}
.site-footer .footer-contact-actions .footer-round-action{width:58px;height:58px;min-height:58px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#4d6fea;color:#fff!important;border:0;text-decoration:none;font-weight:700;box-sizing:border-box}
.site-footer .footer-contact-actions .footer-round-action svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.site-footer .footer-contact-actions .footer-zalo{background:#fff;color:#0877ef!important;border:3px solid #0877ef;font-size:17px!important}
.site-footer .footer-useful-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
.site-footer .footer-useful-grid a{min-height:60px;box-sizing:border-box;padding:9px 12px;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #edf0f6;border-radius:16px;color:#25334b!important;text-decoration:none;font-size:16px!important;line-height:1.35!important;transition:box-shadow .15s ease,transform .15s ease}
.site-footer .footer-useful-grid a:hover{box-shadow:0 5px 18px #263b6812;transform:translateY(-1px)}
.site-footer .footer-useful-grid .footer-card-icon{flex:0 0 34px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:#eef2ff;color:#4d6fea}
.site-footer .footer-useful-grid .footer-card-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.site-footer .footer-store-card{min-height:220px;padding:20px 22px;box-sizing:border-box;border-radius:18px;background:#fff;border:1px solid #edf0f6}
.site-footer .footer-store-card strong{display:block;margin:0 0 12px;color:#101828;font-size:20px!important;font-weight:600}
.site-footer .footer-store-card p{margin:8px 0}
.site-footer .footer-store-card a{color:#2455e8!important;text-decoration:none;font-weight:600}
.site-footer .footer-store-card .footer-directions{display:inline-block;margin-top:12px}
.site-footer .footer-bottom{border-top:1px solid #e2e6ef!important;padding:13px 0!important;color:#66738a!important}
.site-footer .footer-bottom .wrap{display:flex;justify-content:space-between;gap:12px}
.site-footer .footer-bottom a{color:#2455e8!important;text-decoration:none;font-size:14px!important}
@media(max-width:1100px){.site-footer .footer-main{grid-template-columns:minmax(190px,.8fr) minmax(360px,1.2fr)!important}.site-footer .footer-store{grid-column:1/-1}.site-footer .footer-store-card{min-height:0}}
@media(max-width:650px){.site-footer .footer-main{grid-template-columns:1fr!important;gap:24px!important;padding:28px 0 22px!important}.site-footer .footer-store{grid-column:auto}.site-footer h3{font-size:20px!important;margin-bottom:13px!important}.site-footer .footer-useful-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}.site-footer .footer-useful-grid a{min-height:58px;padding:8px;font-size:13px!important;gap:8px}.site-footer .footer-useful-grid .footer-card-icon{flex-basis:30px;width:30px;height:30px}.site-footer .footer-main p,.site-footer .footer-main a,.site-footer .footer-main strong{font-size:16px!important}.site-footer .footer-store-card{padding:17px}.site-footer .footer-bottom .wrap{gap:10px;flex-wrap:wrap}}


/* Store contact card: match the supplied reference card composition */
.site-footer .footer-store-card {
  min-height: 0 !important;
  padding: 22px 24px 24px !important;
  border-radius: 19px !important;
  background: #fff !important;
  border: 0 !important;
  box-sizing: border-box;
}
.site-footer .footer-store-card .footer-store-name {
  display: block;
  margin: 0 0 12px !important;
  color: #101828 !important;
  font-size: 23px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}
.site-footer .footer-store-card .footer-store-address {
  margin: 0 0 17px !important;
  color: #111827 !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
}
.site-footer .footer-hours-label {
  color: #22bd43 !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  margin: 0 0 14px !important;
}
.site-footer .footer-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #111827;
  font-size: 18px;
  line-height: 1.5;
}
.site-footer .footer-hours-row > span { white-space: nowrap; }
.site-footer .footer-store-card .footer-hours-row .footer-directions {
  flex: 0 0 auto;
  margin: 0 !important;
  color: #214ee8 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}
.site-footer .footer-consult {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 15px auto 0;
}
.site-footer .footer-consult-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  fill: none;
  stroke: #4d6fea;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer .footer-consult-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #25334b;
}
.site-footer .footer-consult-text span {
  color: #25334b;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 400;
}
.site-footer .footer-store-card .footer-consult-text a {
  color: #25334b !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}
@media (max-width: 650px) {
  .site-footer .footer-store-card {
    padding: 20px 18px 22px !important;
  }
  .site-footer .footer-store-card .footer-store-name {
    font-size: 21px !important;
  }
  .site-footer .footer-store-card .footer-store-address,
  .site-footer .footer-hours-label,
  .site-footer .footer-hours-row {
    font-size: 16px !important;
  }
  .site-footer .footer-hours-row {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 5px;
  }
  .site-footer .footer-hours-row > span { white-space: normal; }
  .site-footer .footer-store-card .footer-hours-row .footer-directions {
    font-size: 16px !important;
  }
  .site-footer .footer-consult-icon {
    width: 52px; height: 52px; flex-basis: 52px;
  }
  .site-footer .footer-consult-text span { font-size: 16px; }
  .site-footer .footer-store-card .footer-consult-text a { font-size: 20px !important; }
}


/* Footer final sizing adjustments requested */
.site-footer .footer-store-card { padding: 14px 16px !important; }
.site-footer .footer-store-card .footer-store-name,
.site-footer .footer-store-card .footer-store-address,
.site-footer .footer-store-card .footer-hours-label,
.site-footer .footer-store-card .footer-hours-row,
.site-footer .footer-store-card .footer-consult-text span,
.site-footer .footer-store-card .footer-consult-text a {
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.site-footer .footer-store-card .footer-store-name { margin: 0 0 6px !important; }
.site-footer .footer-store-card .footer-store-address { margin: 0 0 7px !important; }
.site-footer .footer-hours-label { margin: 0 0 5px !important; }
.site-footer .footer-hours-row { min-height: 30px; height: 30px; align-items: center; }
.site-footer .footer-hours-row > span { white-space: nowrap; }
.site-footer .footer-store-card .footer-directions { display: none !important; }
.site-footer .footer-consult { margin: 7px auto 0; gap: 8px; }
.site-footer .footer-consult-icon { width: 50px !important; height: 50px !important; flex: 0 0 50px !important; }
.site-footer .footer-contact-actions .footer-round-action { width: 50px !important; height: 50px !important; min-height: 50px !important; }
.site-footer .footer-contact-actions .footer-round-action svg { width: 25px; height: 25px; }
.site-footer .footer-contact-actions .footer-zalo { font-size: 12px !important; }
@media (max-width: 650px) {
  .site-footer .footer-store-card { padding: 14px 16px !important; }
  .site-footer .footer-store-card .footer-store-address,
  .site-footer .footer-hours-label,
  .site-footer .footer-hours-row { font-size: 12px !important; }
  .site-footer .footer-hours-row { height: auto; min-height: 30px; flex-wrap: nowrap; }
  .site-footer .footer-hours-row > span { white-space: normal; }
  .site-footer .footer-consult-icon { width: 50px !important; height: 50px !important; flex-basis: 50px !important; }
}

/* Footer compact sizing: 11px typography, 30px icons/cards, ~400px total height */
.site-footer {
  min-height: 400px !important;
  box-sizing: border-box !important;
}
.site-footer .footer-main {
  min-height: 350px !important;
  box-sizing: border-box !important;
  padding-top: 22px !important;
  padding-bottom: 18px !important;
}
.site-footer h3,
.site-footer .footer-main p,
.site-footer .footer-main a,
.site-footer .footer-main strong,
.site-footer .footer-store-card .footer-store-name,
.site-footer .footer-store-card .footer-store-address,
.site-footer .footer-hours-label,
.site-footer .footer-hours-row,
.site-footer .footer-consult-text span,
.site-footer .footer-store-card .footer-consult-text a,
.site-footer .footer-bottom,
.site-footer .footer-bottom a {
  font-size: 11px !important;
  line-height: 1.35 !important;
}
.site-footer h3 { margin-bottom: 12px !important; }
.site-footer .footer-support p { margin-bottom: 12px !important; }
.site-footer .footer-contact-actions { gap: 8px !important; }
.site-footer .footer-contact-actions .footer-round-action {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  flex: 0 0 30px !important;
  border-width: 1px !important;
  font-size: 11px !important;
}
.site-footer .footer-contact-actions .footer-round-action svg {
  width: 18px !important;
  height: 18px !important;
}
.site-footer .footer-contact-actions .footer-zalo { font-size: 10px !important; }
.site-footer .footer-useful-grid { gap: 6px !important; }
.site-footer .footer-useful-grid a {
  height: 30px !important;
  min-height: 30px !important;
  padding: 3px 7px !important;
  gap: 7px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
}
.site-footer .footer-useful-grid .footer-card-icon {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
}
.site-footer .footer-useful-grid .footer-card-icon svg {
  width: 15px !important;
  height: 15px !important;
}
.site-footer .footer-store-card {
  min-height: 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
}
.site-footer .footer-store-card .footer-store-name { margin-bottom: 5px !important; }
.site-footer .footer-store-card .footer-store-address { margin-bottom: 6px !important; }
.site-footer .footer-hours-label { margin-bottom: 4px !important; }
.site-footer .footer-hours-row { height: 30px !important; min-height: 30px !important; }
.site-footer .footer-consult { margin-top: 6px !important; gap: 7px !important; }
.site-footer .footer-consult-icon {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  stroke-width: 3 !important;
}
.site-footer .footer-bottom { padding: 10px 0 !important; }
@media (max-width: 650px) {
  .site-footer { min-height: 400px !important; }
  .site-footer .footer-main {
    min-height: 0 !important;
    padding: 22px 0 16px !important;
    gap: 18px !important;
  }
  .site-footer h3 { font-size: 11px !important; margin-bottom: 9px !important; }
  .site-footer .footer-main p,
  .site-footer .footer-main a,
  .site-footer .footer-main strong { font-size: 11px !important; }
  .site-footer .footer-store-card { padding: 12px 14px !important; }
  .site-footer .footer-store-card .footer-store-address,
  .site-footer .footer-hours-label,
  .site-footer .footer-hours-row { font-size: 11px !important; }
  .site-footer .footer-hours-row { height: 30px !important; min-height: 30px !important; flex-wrap: nowrap !important; }
  .site-footer .footer-consult-icon { width: 30px !important; height: 30px !important; flex-basis: 30px !important; }
}


/* Footer update: move clear business hours to the left support column */
.site-footer .footer-contact-actions { display: none !important; }
.site-footer .footer-support-hours { margin-top: 12px !important; }
.site-footer .footer-support-hours .footer-hours-label {
  color: #22a83a !important; font-size: 11px !important; font-weight: 600 !important;
  line-height: 1.4 !important; margin: 0 0 5px !important;
}
.site-footer .footer-support-hours .footer-hours-row {
  display: block !important; height: auto !important; min-height: 0 !important;
  color: #25334b !important; font-size: 11px !important; font-weight: 600 !important;
  line-height: 1.5 !important; opacity: 1 !important;
}
.site-footer .footer-support-hours .footer-hours-row > span {
  color: #25334b !important; white-space: nowrap !important; opacity: 1 !important;
}
.site-footer .footer-store-card .footer-consult { margin-top: 10px !important; }
@media (max-width: 650px) {
  .site-footer .footer-support-hours .footer-hours-row > span { white-space: normal !important; }
}


/* Final footer arrangement: business hours under the address in the right store card */
.site-footer .footer-support .footer-support-hours { display: none !important; }
.site-footer .footer-store-card .footer-support-hours {
  display: block !important;
  margin: 8px 0 10px !important;
  padding: 0 !important;
  text-align: left !important;
}
.site-footer .footer-store-card .footer-hours-label {
  color: #16a34a !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0 0 3px !important;
  opacity: 1 !important;
}
.site-footer .footer-store-card .footer-hours-row,
.site-footer .footer-store-card .footer-hours-row > span {
  color: #25334b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  opacity: 1 !important;
  white-space: normal !important;
}
.site-footer .footer-store-card .footer-consult {
  margin-top: 8px !important;
  justify-content: flex-start !important;
}


/* Final adjustment: center consultation block and align store card with useful-policy grid */
@media (min-width: 651px) {
  .site-footer .footer-main {
    align-items: stretch !important;
  }
  .site-footer .footer-store {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }
  .site-footer .footer-store > h3 {
    flex: 0 0 auto !important;
  }
  .site-footer .footer-store-card {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  .site-footer .footer-consult {
    width: 100% !important;
    margin: auto 0 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  .site-footer .footer-consult-text {
    text-align: left !important;
  }
}
@media (max-width: 650px) {
  .site-footer .footer-consult {
    justify-content: center !important;
    text-align: center !important;
  }
}


/* Final fix 2026-11-25: store card matches useful-grid height; remove artificial footer blank space */
.site-footer {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 0 !important;
}
.site-footer .footer-main {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 22px !important;
  padding-bottom: 12px !important;
  margin-bottom: 0 !important;
  align-items: stretch !important;
}
@media (min-width: 1101px) {
  .site-footer .footer-store {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  .site-footer .footer-store-card {
    height: 138px !important;
    min-height: 138px !important;
    max-height: 138px !important;
    flex: 0 0 138px !important;
    box-sizing: border-box !important;
    padding: 8px 14px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .site-footer .footer-store-card .footer-store-name {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin: 0 0 3px !important;
  }
  .site-footer .footer-store-card .footer-store-address {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin: 0 0 4px !important;
  }
  .site-footer .footer-store-card .footer-support-hours {
    margin: 0 0 3px !important;
  }
  .site-footer .footer-store-card .footer-hours-label {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin: 0 0 2px !important;
  }
  .site-footer .footer-store-card .footer-hours-row {
    height: auto !important;
    min-height: 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  .site-footer .footer-store-card .footer-consult {
    margin: auto 0 0 !important;
    min-height: 30px !important;
    gap: 7px !important;
    justify-content: center !important;
  }
  .site-footer .footer-store-card .footer-consult-icon {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }
  .site-footer .footer-store-card .footer-consult-text,
  .site-footer .footer-store-card .footer-consult-text span,
  .site-footer .footer-store-card .footer-consult-text a {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
}
.site-footer .footer-bottom {
  margin-top: 0 !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}
@media (max-width: 1100px) {
  .site-footer,
  .site-footer .footer-main {
    min-height: 0 !important;
    height: auto !important;
  }
  .site-footer .footer-main {
    padding-bottom: 12px !important;
  }
  .site-footer .footer-store-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
@media (max-width: 650px) {
  .site-footer { min-height: 0 !important; }
  .site-footer .footer-main { min-height: 0 !important; }
}


/* Email and feedback strip aligned with the final useful-links row */
@media (min-width: 1101px) {
  .site-footer .footer-main { align-items: stretch !important; }
  .site-footer .footer-support { display:flex !important; flex-direction:column !important; min-height:0 !important; }
  .site-footer .footer-support-contact-strip {
    margin-top:auto !important; width:100% !important; min-height:42px !important;
    box-sizing:border-box !important; display:flex !important; align-items:center !important;
    justify-content:space-between !important; gap:7px !important; padding:5px 8px !important;
    border-radius:11px !important; background:#fff !important; border:1px solid #edf0f6 !important;
    overflow:hidden !important;
  }
  .site-footer .footer-support-contact-strip a {
    min-width:0 !important; display:inline-flex !important; align-items:center !important;
    gap:5px !important; color:#25334b !important; font-size:10px !important;
    line-height:1.25 !important; text-decoration:none !important; white-space:nowrap !important;
  }
  .site-footer .footer-support-contact-strip a b { color:#2455e8 !important; font-size:inherit !important; font-weight:500 !important; }
  .site-footer .footer-support-contact-strip svg {
    width:17px !important; height:17px !important; flex:0 0 17px !important; fill:none !important;
    stroke:#39404a !important; stroke-width:1.8 !important; stroke-linecap:round !important; stroke-linejoin:round !important;
  }
  .site-footer .footer-support-divider { width:1px !important; height:20px !important; flex:0 0 1px !important; background:#dce2ed !important; }
}
@media (max-width:1100px) {
  .site-footer .footer-support-contact-strip {
    margin-top:14px !important; display:flex !important; flex-wrap:wrap !important;
    align-items:center !important; gap:8px 12px !important; padding:9px 10px !important;
    border-radius:10px !important; background:#fff !important; border:1px solid #edf0f6 !important;
  }
  .site-footer .footer-support-contact-strip a {
    display:inline-flex !important; align-items:center !important; gap:6px !important;
    color:#25334b !important; font-size:11px !important; line-height:1.35 !important; text-decoration:none !important;
  }
  .site-footer .footer-support-contact-strip a b { color:#2455e8 !important; }
  .site-footer .footer-support-contact-strip svg {
    width:18px !important; height:18px !important; flex:0 0 18px !important; fill:none !important;
    stroke:#39404a !important; stroke-width:1.8 !important; stroke-linecap:round !important; stroke-linejoin:round !important;
  }
  .site-footer .footer-support-divider { display:none !important; }
}
@media (max-width:650px) {
  .site-footer .footer-support-contact-strip { flex-direction:column !important; align-items:flex-start !important; }
}


/* Final contact strip sizing and requested copy */
.site-footer .footer-support-contact-strip {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  box-sizing: border-box !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}
.site-footer .footer-support-contact-strip a,
.site-footer .footer-support-contact-strip a span,
.site-footer .footer-support-contact-strip a b {
  font-size: 11px !important;
  line-height: 1.1 !important;
}
.site-footer .footer-support-contact-strip svg {
  width: 16px !important;
  height: 16px !important;
  flex-basis: 16px !important;
}
.site-footer .footer-support-divider {
  height: 17px !important;
}
@media (max-width: 1100px) {
  .site-footer .footer-support-contact-strip {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    flex-wrap: nowrap !important;
    padding: 2px 8px !important;
  }
  .site-footer .footer-support-contact-strip a,
  .site-footer .footer-support-contact-strip a span,
  .site-footer .footer-support-contact-strip a b {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }
  .site-footer .footer-support-contact-strip svg {
    width: 16px !important;
    height: 16px !important;
    flex-basis: 16px !important;
  }
}
@media (max-width: 650px) {
  .site-footer .footer-support-contact-strip {
    height: auto !important;
    min-height: 30px !important;
    max-height: none !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* Contact details: two separate stacked white boxes */
.site-footer .footer-support-contact-stack {
  margin-top: auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-sizing: border-box !important;
}
.site-footer .footer-support-contact-box {
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid #edf0f6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #25334b !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.site-footer .footer-support-contact-box span,
.site-footer .footer-support-contact-box b {
  font-size: 11px !important;
  line-height: 1.1 !important;
}
.site-footer .footer-support-contact-box b {
  color: #2455e8 !important;
  font-weight: 500 !important;
}
.site-footer .footer-support-contact-box svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  fill: none !important;
  stroke: #39404a !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
@media (max-width: 650px) {
  .site-footer .footer-support-contact-stack { margin-top: 12px !important; }
}


/* Final footer contact boxes: keep each item on one line and use a clear phone icon */
.site-footer .footer-support-contact-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
}
.site-footer .footer-support-contact-box {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 7px !important;
  gap: 5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  font-size: 9px !important;
  line-height: 1 !important;
}
.site-footer .footer-support-contact-box span {
  display: block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  font-size: 9px !important;
  line-height: 1 !important;
}
.site-footer .footer-support-contact-box b {
  font-size: 9px !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
}
.site-footer .footer-support-contact-box svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
}

/* Fix: keep the label and value on the same horizontal line inside each contact box */
.site-footer .footer-support-contact-box {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}
.site-footer .footer-support-contact-box > span {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-height: 1 !important;
}
.site-footer .footer-support-contact-box > span b {
  display: inline !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-height: 1 !important;
}

/* Final correction: label and contact value share one centered baseline at 12px */
.site-footer .footer-support-contact-box {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 8px !important;
  gap: 7px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.site-footer .footer-support-contact-box > span {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 12px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  vertical-align: middle !important;
}
.site-footer .footer-support-contact-box > span b {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
.site-footer .footer-support-contact-box > svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  align-self: center !important;
}


/* Final requested typography: 11px, readable bold labels, aligned values */
.site-footer .footer-support-contact-box > span {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  font-size: 11px !important;
  line-height: 11px !important;
  color: #25334b !important;
  white-space: nowrap !important;
}
.site-footer .footer-support-contact-box .footer-contact-label {
  display: inline !important;
  color: #25334b !important;
  font-size: 11px !important;
  line-height: 11px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}
.site-footer .footer-support-contact-box > span b {
  display: inline !important;
  color: #2455e8 !important;
  font-size: 11px !important;
  line-height: 11px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}


/* Final request: footer body text 11px regular; only section headings stay bold */
.site-footer .footer-main p,
.site-footer .footer-main a,
.site-footer .footer-main strong,
.site-footer .footer-main .footer-store-name,
.site-footer .footer-main .footer-store-address,
.site-footer .footer-main .footer-hours-label,
.site-footer .footer-main .footer-hours-row,
.site-footer .footer-main .footer-hours-row span,
.site-footer .footer-main .footer-contact-label,
.site-footer .footer-main .footer-support-contact-box > span,
.site-footer .footer-main .footer-support-contact-box > span b,
.site-footer .footer-main .footer-consult-text,
.site-footer .footer-main .footer-consult-text span,
.site-footer .footer-main .footer-consult-text a,
.site-footer .footer-main .footer-useful-grid > a {
  font-size: 11px !important;
  font-weight: 400 !important;
}
.site-footer .footer-main h3 {
  font-weight: 700 !important;
}
/* Raise the consultation icon and text slightly within the store card */
.site-footer .footer-store-card .footer-consult {
  transform: translateY(-8px) !important;
}


/* Footer store information: plain text, no white card */
.site-footer .footer-store-plain {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.site-footer .footer-store-plain,
.site-footer .footer-store-plain p,
.site-footer .footer-store-plain span,
.site-footer .footer-store-plain a {
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #17243a;
}
.site-footer .footer-store-plain .footer-store-name {
  display: block;
  margin: 0 0 4px;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.site-footer .footer-store-plain .footer-store-address {
  margin: 0 0 5px;
}
.site-footer .footer-store-plain .footer-hours-label {
  color: #16a34a !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}
.site-footer .footer-store-plain .footer-hours-row,
.site-footer .footer-store-plain .footer-hours-row span {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #17243a !important;
}
.site-footer .footer-consult { display: none !important; }

/* Contact details sit directly below store opening hours, each label and value on one line. */
.site-footer .footer-store-contacts {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.site-footer .footer-store-contact-line {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  gap: 4px !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: #17243a !important;
}
.site-footer .footer-store-contact-line .footer-contact-label {
  display: inline !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: inherit !important;
  font-weight: 400 !important;
  color: #17243a !important;
}
.site-footer .footer-store-contact-line a {
  display: inline !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: inherit !important;
  font-weight: 400 !important;
  color: #2455e8 !important;
  text-decoration: none !important;
}

/* Final correction: keep each contact label and its value on the same row. */
.site-footer .footer-store-plain {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 5px !important;
}
.site-footer .footer-store-plain .footer-store-name,
.site-footer .footer-store-plain .footer-store-address,
.site-footer .footer-store-plain .footer-support-hours,
.site-footer .footer-store-plain .footer-store-contacts {
  margin: 0 !important;
}
.site-footer .footer-store-plain .footer-store-contacts {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 5px !important;
  width: max-content !important;
  max-width: 100% !important;
}
.site-footer .footer-store-plain .footer-store-contact-line {
  display: grid !important;
  grid-template-columns: max-content max-content !important;
  align-items: baseline !important;
  justify-content: start !important;
  column-gap: 4px !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.site-footer .footer-store-plain .footer-store-contact-line .footer-contact-label,
.site-footer .footer-store-plain .footer-store-contact-line a {
  display: inline !important;
  width: auto !important;
  white-space: nowrap !important;
  line-height: inherit !important;
  margin: 0 !important;
}

/* Final request 2026-11-25: increase store information text to 12px. */
.site-footer .footer-store-plain,
.site-footer .footer-store-plain p,
.site-footer .footer-store-plain span,
.site-footer .footer-store-plain a,
.site-footer .footer-store-plain .footer-store-name,
.site-footer .footer-store-plain .footer-store-address,
.site-footer .footer-store-plain .footer-hours-label,
.site-footer .footer-store-plain .footer-hours-row,
.site-footer .footer-store-plain .footer-hours-row span,
.site-footer .footer-store-plain .footer-store-contact-line,
.site-footer .footer-store-plain .footer-store-contact-line .footer-contact-label,
.site-footer .footer-store-plain .footer-store-contact-line a {
  font-size: 12px !important;
}


/* Final layout adjustment 2026-11-25:
   Stretch store information to match the useful-links grid from first to last row. */
@media (min-width: 1101px) {
  .site-footer .footer-main {
    align-items: stretch !important;
  }
  .site-footer .footer-store {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  .site-footer .footer-store > h3 {
    flex: 0 0 auto !important;
    margin-bottom: 18px !important;
  }
  .site-footer .footer-store-plain {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }
  .site-footer .footer-store-plain .footer-store-name,
  .site-footer .footer-store-plain .footer-store-address,
  .site-footer .footer-store-plain .footer-support-hours,
  .site-footer .footer-store-plain .footer-store-contacts {
    margin: 0 !important;
  }
  .site-footer .footer-store-plain .footer-store-contacts {
    gap: 5px !important;
  }
}
@media (max-width: 1100px) {
  .site-footer .footer-store-plain {
    height: auto !important;
    justify-content: flex-start !important;
    gap: 5px !important;
  }
}

/* FIX: thanh tìm kiếm đầu trang cao 30px, viền đỏ 1px */
.header-search{
  height:30px !important;
  min-height:30px !important;
  border:1px solid #ff0000 !important;
  box-sizing:border-box;
  border-radius:7px;
  align-items:stretch;
}
.header-search input{
  height:28px;
  min-height:0;
  box-sizing:border-box;
  padding-top:0;
  padding-bottom:0;
}
.header-search button{
  height:28px;
  min-height:0;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.header-search button span{
  font-size:16px;
  vertical-align:middle;
}

/* UPDATE: thanh tìm kiếm cao 38px, góc vuông, viền đỏ 1px */
.header-search{
  height:38px !important;
  min-height:38px !important;
  border:1px solid #ff0000 !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
  align-items:stretch !important;
  overflow:hidden;
}
.header-search input{
  height:36px !important;
  min-height:36px !important;
  box-sizing:border-box !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}
.header-search button{
  height:36px !important;
  min-height:36px !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  background:#e52329 !important;
  border-radius:0 !important;
}
.header-search button span{
  font-size:15px !important;
  line-height:1 !important;
  vertical-align:middle !important;
  margin-right:5px !important;
}
@media(max-width:650px){
  .header-search{height:38px !important;min-height:38px !important;border-radius:0 !important;}
  .header-search input{height:36px !important;min-height:36px !important;}
  .header-search button{height:36px !important;min-height:36px !important;}
}


/* UPDATE 25/11/2026: thanh tìm kiếm rộng vừa nội dung, viền đỏ 2px, icon trắng */
.header-search{
  width:620px !important;
  max-width:620px !important;
  flex:0 1 620px !important;
  height:38px !important;
  min-height:38px !important;
  border:2px solid #FF0000 !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  align-items:stretch !important;
}
.header-search input{
  height:34px !important;
  min-height:34px !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
.header-search button{
  height:34px !important;
  min-height:34px !important;
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  padding:0 16px !important;
  color:#fff !important;
  background:#e52329 !important;
  border:0 !important;
  border-radius:0 !important;
}
.header-search .search-white-icon{
  display:block !important;
  width:16px !important;
  height:16px !important;
  flex:0 0 16px !important;
  color:#fff !important;
}
.header-search .search-button-label{
  color:#fff !important;
  font-size:12px !important;
  line-height:1 !important;
  margin:0 !important;
}
@media(max-width:650px){
  .header-search{
    width:auto !important;
    max-width:none !important;
    flex:1 1 auto !important;
    height:38px !important;
    min-height:38px !important;
    border-width:2px !important;
  }
  .header-search input{height:34px !important;min-height:34px !important;}
  .header-search button{height:34px !important;min-height:34px !important;padding:0 9px !important;gap:4px !important;}
  .header-search .search-white-icon{width:14px !important;height:14px !important;flex-basis:14px !important;}
  .header-search .search-button-label{font-size:10px !important;}
}

/* UPDATE 25/11/2026: search field extends to the banner's right edge */
.site-header .header-main{
  width:min(1240px,calc(100% - 48px)) !important;
  box-sizing:border-box !important;
}
.site-header .header-search{
  width:auto !important;
  max-width:none !important;
  flex:1 1 0 !important;
  min-width:0 !important;
  height:38px !important;
  min-height:38px !important;
  border:2px solid #FF0000 !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
.site-header .header-search input{
  height:34px !important;
  min-height:34px !important;
  min-width:0 !important;
  flex:1 1 auto !important;
  box-sizing:border-box !important;
}
.site-header .header-search button{
  height:34px !important;
  min-height:34px !important;
  flex:0 0 auto !important;
  box-sizing:border-box !important;
}
@media(max-width:650px){
  .site-header .header-main{
    width:calc(100% - 24px) !important;
    gap:10px !important;
  }
  .site-header .header-search{
    width:auto !important;
    max-width:none !important;
    flex:1 1 0 !important;
    height:38px !important;
    min-height:38px !important;
  }
}

/* UPDATE 25/11/2026: align search top with the LAPTOP NINH ALL wordmark */
@media (min-width: 651px) {
  .site-header .header-search {
    transform: translateY(12px) !important;
  }
}

/* UPDATE 25/11/2026: compact category sidebar; 30px rows with 5px gaps */
@media (min-width: 651px) {
  .hero-category-layout {
    grid-template-columns: 160px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
  }
  .category-sidebar {
    width: 160px !important;
    min-width: 160px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 5px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .category-sidebar-title {
    flex: 0 0 30px !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 30px !important;
  }
  .category-sidebar .sidebar-category {
    flex: 0 0 30px !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    font-size: 12px !important;
    line-height: 30px !important;
    white-space: nowrap !important;
  }
  .category-sidebar .sidebar-category span {
    width: 22px !important;
    min-width: 22px !important;
    height: 30px !important;
    flex: 0 0 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }
  .hero-category-layout .hero {
    width: 100% !important;
    height: 242px !important;
    min-height: 242px !important;
    max-height: 242px !important;
    align-self: start !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .hero-category-layout .hero img {
    display: block !important;
    width: 100% !important;
    height: 242px !important;
    min-height: 242px !important;
    max-height: 242px !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}
@media (max-width: 650px) {
  .site-header .header-search { transform: none !important; }
  .category-sidebar {
    gap: 5px !important;
    padding: 3px !important;
  }
  .category-sidebar-title {
    height: 30px !important;
    min-height: 30px !important;
    flex-basis: 30px !important;
  }
  .category-sidebar .sidebar-category {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    flex-basis: 30px !important;
  }
}


/* HEADER UPDATE 25/11/2026: logo moi, thong tin tren cung 12px, cach hang tren 5px */
.top-strip {
  height: 30px !important;
  min-height: 30px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.top-strip-inner {
  height: 30px !important;
  align-items: center !important;
}
.top-strip-inner > div,
.top-strip-inner > div span,
.top-strip-inner > div a {
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.site-header .header-main {
  height: 96px !important;
  min-height: 96px !important;
  padding-top: 5px !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
  gap: 24px !important;
}
.site-header .brand {
  width: 340px !important;
  height: 78px !important;
  flex: 0 0 340px !important;
  margin: 0 !important;
  overflow: visible !important;
}
.site-header .brand img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: left top !important;
}
.site-header .header-search {
  margin-top: 0 !important;
  transform: none !important;
  align-self: flex-start !important;
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 2px solid #FF0000 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 1000px) and (min-width: 651px) {
  .site-header .brand { width: 270px !important; flex-basis: 270px !important; }
  .site-header .header-main { gap: 16px !important; }
}
@media (max-width: 650px) {
  .top-strip { height: 32px !important; min-height: 32px !important; font-size: 11px !important; }
  .top-strip-inner { height: 32px !important; }
  .site-header .header-main {
    height: 67px !important; min-height: 67px !important; padding-top: 5px !important;
    align-items: flex-start !important; gap: 8px !important;
  }
  .site-header .brand { width: 125px !important; height: 48px !important; flex: 0 0 125px !important; }
  .site-header .header-search {
    flex: 1 1 0 !important; width: auto !important; max-width: none !important;
    height: 38px !important; min-height: 38px !important; margin-top: 0 !important;
    transform: none !important; border-width: 2px !important;
  }
}

/* LOGO HEADER: width matches the 220px laptop-category sidebar; 100px logo area */
@media (min-width: 1001px) {
  .site-header .header-main {
    height: 110px !important;
    min-height: 110px !important;
    align-items: flex-start !important;
  }
  .site-header .brand {
    width: 220px !important;
    height: 100px !important;
    flex: 0 0 220px !important;
  }
  .site-header .brand img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: left top !important;
  }
}
@media (max-width: 1000px) and (min-width: 651px) {
  .site-header .header-main { height: 110px !important; min-height: 110px !important; }
  .site-header .brand { width: 220px !important; height: 100px !important; flex: 0 0 220px !important; }
}
@media (max-width: 650px) {
  .site-header .header-main { height: 67px !important; min-height: 67px !important; }
  .site-header .brand { width: 125px !important; height: 48px !important; flex: 0 0 125px !important; }
}


/* UPDATE 25/11/2026: place category/banner row 5px below the logo header */
@media (min-width: 651px) {
  .site-header .header-main {
    height: 105px !important;
    min-height: 105px !important;
  }
  .hero-category-layout {
    margin-top: 5px !important;
  }
}

/* FINAL FIX 25/11/2026: remove the oversized empty header area.
   On desktop/tablet, the logo artwork is 220x43px when contained at 220px wide;
   the search field ends at 55px from the header start. End the header at 55px,
   then place the category/banner row exactly 5px below it. */
@media (min-width: 651px) {
  .site-header .header-main {
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    padding-top: 5px !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .site-header .brand {
    width: 220px !important;
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    flex: 0 0 220px !important;
    margin: 0 !important;
  }
  .site-header .brand img {
    display: block !important;
    width: 220px !important;
    height: 43px !important;
    object-fit: contain !important;
    object-position: left top !important;
  }
  .site-header .header-search {
    margin-top: 0 !important;
    transform: translateY(12px) !important;
  }
  .hero-category-layout {
    margin-top: 5px !important;
    padding-top: 0 !important;
  }
}


/* HEADER UPDATE 25/11/2026: align search with logo wordmark and add green cart/login actions */
@media (min-width: 651px) {
  .site-header .header-main {
    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: flex-start !important;
    gap: 24px !important;
    overflow: visible !important;
  }
  .site-header .brand {
    width: 340px !important;
    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;
    flex: 0 0 340px !important;
    margin: 0 !important;
  }
  .site-header .brand img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: left top !important;
  }
  .site-header .header-search {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    transform: none !important;
    align-self: flex-start !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 180px !important;
  }
  .site-header .header-search input,
  .site-header .header-search button { height: 34px !important; min-height: 34px !important; }
  .site-header .header-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: flex-start !important;
    gap: 12px !important;
    height: 38px !important;
    margin: 0 !important;
  }
  .site-header .header-action-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    background: #07834b;
    color: #fff;
    font: 600 13px/1 "Be Vietnam Pro", Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
  }
  .site-header .header-action-btn:hover { background: #066d40; }
  .site-header .header-action-btn svg {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .site-header .login-action { background: #299568; }
  .site-header .login-action:hover { background: #21835b; }
  .site-header .cart-count {
    position: absolute;
    top: 3px;
    left: 30px;
    transform: translate(-50%, -35%);
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 50%;
    background: #ffd43b;
    color: #243047;
    font-size: 10px;
    font-weight: 800;
  }
  .top-strip .catalog-admin-link,
  .top-strip .catalog-admin-link:hover,
  .top-strip .catalog-admin-link:focus {
    color: #1554e8 !important;
    background: transparent !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none;
    padding: 0 2px !important;
  }
}
@media (max-width: 1000px) and (min-width: 651px) {
  .site-header .header-main { gap: 12px !important; }
  .site-header .brand { width: 220px !important; flex-basis: 220px !important; }
  .site-header .header-actions { gap: 6px !important; }
  .site-header .header-action-btn { padding: 0 8px; font-size: 11px; gap: 4px; }
}
@media (max-width: 650px) {
  .site-header .header-main {
    height: auto !important;
    min-height: 67px !important;
    max-height: none !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 0 !important;
  }
  .site-header .brand { width: 125px !important; height: 48px !important; flex: 0 0 125px !important; }
  .site-header .header-search { flex: 1 1 calc(100% - 135px) !important; transform: none !important; margin: 0 !important; }
  .site-header .header-actions { display: flex !important; flex: 1 1 100% !important; justify-content: flex-end !important; gap: 7px !important; }
  .site-header .header-action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 5px; background: #07834b; color: #fff; font-size: 10px; font-weight: 700; }
  .site-header .login-action { background: #299568; }
  .site-header .header-action-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .site-header .cart-count { font-size: 9px; color: #243047; background: #ffd43b; border-radius: 50%; padding: 1px 5px; }
  .top-strip .catalog-admin-link { color: #1554e8 !important; background: transparent !important; padding: 0 2px !important; font-size: 9px !important; }
}
@media (min-width: 651px) {
  .site-header .header-main {
    width: calc(100% - 48px) !important;
    max-width: none !important;
  }
}


/* FINAL HEADER ALIGNMENT: match the exact content width of the category/banner .wrap */
@media (min-width: 651px) {
  .site-header .header-main {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 650px) {
  .site-header .header-main {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}


/* FINAL HEADER ALIGNMENT — 26/11/2026
   Desktop: logo width matches the laptop category sidebar (160px).
   Search starts at the banner's left edge; controls finish at its right edge.
   Keep the existing search/cart/login handlers and mobile rules unchanged. */
@media (min-width: 651px) {
  .site-header .header-main {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .site-header .brand {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 160px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .site-header .brand img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .site-header .header-search {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    align-self: center !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    border: 2px solid #FF0000 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
  .site-header .header-search input {
    min-width: 0 !important;
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  .site-header .header-search button {
    height: 34px !important;
    min-height: 34px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #e9232b !important;
    color: #fff !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
  }
  .site-header .header-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 5px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-header .header-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #07834b !important;
    color: #fff !important;
    font: 600 12px/1 "Be Vietnam Pro", Arial, sans-serif !important;
    gap: 6px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }
  .site-header .login-action {
    background: #299568 !important;
  }
  .site-header .header-action-btn svg {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }
  .site-header .cart-count {
    top: 1px !important;
    left: 27px !important;
  }
}

/* FINAL HEADER MICRO-ALIGNMENT — 26/11/2026
   Logo artwork fills the same 38px vertical height as the search control.
   Search-to-cart spacing is exactly 5px; cart quantity badge is hidden only visually. */
@media (min-width: 651px) {
  .site-header .header-main {
    column-gap: 5px !important;
  }
  .site-header .brand {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
  }
  .site-header .brand img {
    width: 100% !important;
    height: 38px !important;
    object-fit: fill !important;
    object-position: center !important;
  }
  .site-header .header-search {
    margin-right: 0 !important;
    flex: 1 1 0 !important;
    min-width: 120px !important;
  }
  .site-header .header-actions {
    margin-left: 0 !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
  }
}
.site-header .cart-count {
  display: none !important;
}


/* HEADER TOP STRIP UPDATE — 26/11/2026
   Delivery message on the left above the logo; store contacts stay on the right. */
.top-strip {
  height: 32px !important;
  min-height: 32px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.top-strip-inner {
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.top-strip-inner .delivery-note {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin: 0 auto 0 0 !important;
  color: #111 !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}
.top-strip-inner .delivery-note svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  color: #111 !important;
}
.top-strip-inner .top-contact {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin: 0 0 0 auto !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.top-strip-inner .top-contact span,
.top-strip-inner .top-contact a {
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.top-strip-inner .top-contact span { color: #657084 !important; }
.top-strip-inner .top-contact a {
  color: #1554e8 !important;
  font-weight: 700 !important;
}
.top-strip-inner .top-contact .catalog-admin-link {
  min-height: 0 !important;
  line-height: 1.2 !important;
  padding: 0 2px !important;
  font-size: 12px !important;
  color: #1554e8 !important;
  background: transparent !important;
  border: 0 !important;
}
.top-strip-inner .top-contact i {
  display: inline-block !important;
  height: 12px !important;
  width: 1px !important;
  background: #d8dde5 !important;
}
@media (max-width: 650px) {
  .top-strip {
    height: auto !important;
    min-height: 32px !important;
    padding: 5px 0 !important;
  }
  .top-strip-inner {
    height: auto !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 5px !important;
  }
  .top-strip-inner .delivery-note,
  .top-strip-inner .top-contact {
    width: 100% !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    gap: 5px !important;
    font-size: 11px !important;
  }
  .top-strip-inner .top-contact span,
  .top-strip-inner .top-contact a,
  .top-strip-inner .top-contact .catalog-admin-link {
    font-size: 11px !important;
  }
}


/* HEADER FINISH — match the approved Laptop Ninh All reference image */
.top-strip {
  height: 38px !important;
  min-height: 38px !important;
  background: #e7f0ff !important;
  color: #111827 !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
.top-strip-inner {
  height: 38px !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.top-strip-inner .delivery-note {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 auto 0 0 !important;
  color: #111 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.top-strip-inner .delivery-note svg {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;
  color: #ed242b !important;
}
.top-strip-inner .top-contact {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin: 0 0 0 auto !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
.top-strip-inner .top-contact .top-address,
.top-strip-inner .top-contact .top-hotline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}
.top-strip-inner .top-contact .top-address { color: #111 !important; }
.top-strip-inner .top-contact .top-address svg {
  width: 19px !important; height: 19px !important; flex: 0 0 19px !important;
  color: #ed242b !important;
}
.top-strip-inner .top-contact .top-hotline { color: #1548e8 !important; }
.top-strip-inner .top-contact .top-hotline svg {
  width: 18px !important; height: 18px !important; flex: 0 0 18px !important;
  color: #1548e8 !important;
}
.top-strip-inner .top-contact i {
  display: inline-block !important;
  height: 16px !important;
  width: 1px !important;
  flex: 0 0 1px !important;
  background: #aebbd0 !important;
}
.top-strip-inner .top-contact .catalog-admin-link,
.top-strip-inner .top-contact .catalog-admin-link:hover,
.top-strip-inner .top-contact .catalog-admin-link:focus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #d7e6ff !important;
  color: #1548e8 !important;
  line-height: 1 !important;
}
.top-strip-inner .top-contact .catalog-admin-link svg {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}
@media (max-width: 650px) {
  .top-strip { height: auto !important; min-height: 38px !important; padding: 5px 0 !important; }
  .top-strip-inner { height: auto !important; min-height: 0 !important; align-items: flex-start !important; flex-direction: column !important; gap: 5px !important; }
  .top-strip-inner .delivery-note,
  .top-strip-inner .top-contact { width: 100% !important; margin: 0 !important; justify-content: flex-start !important; flex-wrap: wrap !important; white-space: normal !important; gap: 6px !important; }
  .top-strip-inner .delivery-note { font-size: 11px !important; }
  .top-strip-inner .top-contact .top-address,
  .top-strip-inner .top-contact .top-hotline { font-size: 11px !important; }
  .top-strip-inner .top-contact .catalog-admin-link { width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important; }
}

/* HEADER WIDTH + ADMIN ICON CLEANUP — 26/11/2026
   Keep the header row on the exact same centered .wrap rails as the logo,
   category sidebar and banner; remove the admin icon's colored tile. */
@media (min-width: 651px) {
  .site-header .header-main {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .top-strip-inner {
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  .top-strip-inner .top-contact .catalog-admin-link,
  .top-strip-inner .top-contact .catalog-admin-link:hover,
  .top-strip-inner .top-contact .catalog-admin-link:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}


/* TOP STRIP COMPACT ALIGNMENT + UPDATED CONTACT ICONS — 26/11/2026 */
@media (min-width: 651px) {
  /* Keep the pale information bar inside the same rails as the logo and banner. */
  .top-strip { background: #fff !important; }
  .top-strip-inner {
    background: #e7f0ff !important;
    width: min(1240px, calc(100% - 48px)) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
.top-strip-inner .top-contact .top-address svg {
  width: 21px !important; height: 21px !important; flex: 0 0 21px !important;
  color: #ed242b !important;
}
.top-strip-inner .top-contact .top-hotline svg {
  width: 20px !important; height: 20px !important; flex: 0 0 20px !important;
  color: #1554e8 !important;
}
@media (max-width: 650px) {
  .top-strip { background: #e7f0ff !important; }
  .top-strip-inner { background: transparent !important; padding-left: 0 !important; padding-right: 0 !important; }
}


/* HEADER LOGO UPDATE — 26/11/2026
   Use the approved compact 215x55 horizontal logo; preserve search and action controls. */
@media (min-width: 651px) {
  .site-header .header-main {
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
  }
  .site-header .brand {
    width: 215px !important;
    min-width: 215px !important;
    max-width: 215px !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    flex: 0 0 215px !important;
    overflow: hidden !important;
  }
  .site-header .brand img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}


/* TOP INFORMATION BAR — NORMAL FONT WEIGHT 26/11/2026
   Make delivery, address and hotline text regular weight, without changing icons or layout. */
.top-strip-inner .delivery-note,
.top-strip-inner .top-contact,
.top-strip-inner .top-contact .top-address,
.top-strip-inner .top-contact .top-hotline {
  font-weight: 400 !important;
}
.top-strip-inner .delivery-note *,
.top-strip-inner .top-contact .top-address *,
.top-strip-inner .top-contact .top-hotline * {
  font-weight: 400 !important;
}


/* BENEFIT STRIP REDESIGN — Laptop Ninh All
   Four equal benefit panels, pale-blue rounded background, unified blue/red icons. */
.benefit-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: min(100% - 32px, 1500px) !important;
  margin: 14px auto 0 !important;
  padding: 8px 0 !important;
  min-height: 82px !important;
  height: auto !important;
  box-sizing: border-box !important;
  border: 1px solid #d8e9ff !important;
  border-radius: 24px !important;
  background: linear-gradient(110deg, #edf6ff 0%, #f8fbff 48%, #edf6ff 100%) !important;
  box-shadow: 0 5px 18px rgba(29, 89, 160, .07) !important;
  overflow: hidden !important;
}
.benefit-strip article,
.benefit-strip article:last-child {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  min-height: 62px !important;
  height: auto !important;
  padding: 7px 14px !important;
  border: 0 !important;
  border-right: 1px solid #b8d2f1 !important;
  background: transparent !important;
  text-align: left !important;
}
.benefit-strip article:last-child { border-right: 0 !important; }
.benefit-strip .benefit-custom-icon {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  flex: 0 0 48px !important;
  object-fit: contain !important;
  filter: none !important;
  transform: none !important;
}
.benefit-strip article > div {
  min-width: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.benefit-strip b {
  color: #152846 !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  letter-spacing: .1px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.benefit-strip small {
  color: #64748b !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  margin-top: 4px !important;
  white-space: normal !important;
}
@media (max-width: 900px) and (min-width: 651px) {
  .benefit-strip article,
  .benefit-strip article:last-child { gap: 8px !important; padding: 6px 8px !important; }
  .benefit-strip .benefit-custom-icon { width: 40px !important; height: 40px !important; min-width: 40px !important; flex-basis: 40px !important; }
  .benefit-strip b { font-size: 11px !important; }
  .benefit-strip small { font-size: 9px !important; }
}
@media (max-width: 650px) {
  .benefit-strip {
    width: calc(100% - 20px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 10px !important;
    padding: 5px 0 !important;
    min-height: 0 !important;
    border-radius: 16px !important;
    row-gap: 0 !important;
  }
  .benefit-strip article,
  .benefit-strip article:last-child {
    justify-content: flex-start !important;
    min-height: 65px !important;
    padding: 7px 9px !important;
    gap: 7px !important;
    border-right: 1px solid #c9dcf3 !important;
    border-bottom: 1px solid #c9dcf3 !important;
  }
  .benefit-strip article:nth-child(2n) { border-right: 0 !important; }
  .benefit-strip article:nth-child(n+3) { border-bottom: 0 !important; }
  .benefit-strip .benefit-custom-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex: 0 0 32px !important;
  }
  .benefit-strip b { font-size: 10px !important; line-height: 1.2 !important; }
  .benefit-strip small { font-size: 9px !important; line-height: 1.2 !important; margin-top: 3px !important; }
}


/* BENEFIT STRIP — 38px HIGH, 12px TYPE, ALIGNED TO CATEGORY/BANNER EDGES */
.benefit-strip {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 12px auto 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  border-radius: 0 !important;
}
.benefit-strip article,
.benefit-strip article:last-child {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}
.benefit-strip .benefit-custom-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  flex: 0 0 26px !important;
  object-fit: contain !important;
}
.benefit-strip article > div {
  min-width: 0 !important;
  overflow: hidden !important;
}
.benefit-strip b {
  display: block !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.benefit-strip small {
  display: block !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 14px !important;
  margin-top: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Match the hero/category wrapper exactly at tablet and mobile widths too. */
@media (max-width: 650px) {
  .benefit-strip {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 10px auto 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 38px) !important;
  }
  .benefit-strip article,
  .benefit-strip article:last-child {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 7px !important;
    gap: 6px !important;
  }
  .benefit-strip .benefit-custom-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex-basis: 22px !important;
  }
  .benefit-strip b,
  .benefit-strip small {
    font-size: 12px !important;
    line-height: 13px !important;
  }
}


/* BENEFIT STRIP TYPOGRAPHY UPDATE — FONT SIZE 11PX */
.benefit-strip b,
.benefit-strip small {
  font-size: 11px !important;
}
@media (max-width: 650px) {
  .benefit-strip b,
  .benefit-strip small {
    font-size: 11px !important;
  }
}


/* Admin PIN gate and editable home banner */
.pin-gate{position:fixed;inset:0;z-index:100;background:linear-gradient(135deg,#101a2b,#263a59);display:grid;place-items:center;padding:20px}
.pin-card{width:min(390px,100%);background:#fff;border-radius:16px;padding:30px 26px;box-shadow:0 24px 80px #0005;text-align:center;display:grid;gap:13px}
.pin-lock-icon{font-size:34px}.pin-card .eyebrow{margin:0;color:var(--blue);font-weight:800;letter-spacing:1.4px;font-size:10px}.pin-card h1{margin:0;font-size:25px}.pin-card .muted{margin:0}.pin-card input{height:54px;text-align:center;letter-spacing:14px;font-size:24px;font-weight:800;max-width:210px;margin:4px auto;border:1px solid #dfe4ec;border-radius:9px}.pin-back{font-size:12px;color:var(--muted);margin-top:3px}.banner-manager{margin:0 0 18px}.banner-manager .muted{margin:6px 0 0}.banner-manager-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);gap:18px;align-items:center;margin-top:15px}.banner-manager-row>img{width:100%;aspect-ratio:1500/652;object-fit:cover;border:1px solid var(--line);border-radius:8px;background:#f5f6f8}.banner-manager-controls{display:grid;gap:10px}.banner-manager-controls label{display:grid;gap:8px;font-size:12px;font-weight:700}.banner-manager-controls input{font-size:12px}.banner-manager-controls .primary-btn{justify-self:start;padding:11px 18px;border:0;border-radius:7px;cursor:pointer}@media(max-width:650px){.pin-card{padding:25px 20px}.banner-manager-row{grid-template-columns:1fr}.banner-manager-row>img{max-height:190px}.banner-manager-controls .primary-btn{width:100%}}


/* PRODUCT CARD CONTENT COMPACT — 11PX, HIDE CATEGORY LABEL — 26/11/2026 */
.product-card .product-info {
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
.product-card .product-category {
  display: none !important;
}
.product-card .product-info h3 {
  margin: 0 !important;
  min-height: 0 !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 700 !important;
}
.product-card .product-specs {
  margin: 0 !important;
  min-height: 0 !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
}
.product-card .price-row {
  margin-top: 0 !important;
  gap: 3px !important;
  line-height: 14px !important;
}
.product-card .price,
.product-card .old-price {
  font-size: 11px !important;
  line-height: 14px !important;
}
.product-card .card-bottom {
  margin-top: 3px !important;
  padding-top: 5px !important;
  font-size: 11px !important;
  line-height: 14px !important;
}


/* PRODUCT CARD UPDATE — 12PX, 5PX SPACING, RIGHT-ALIGNED PRICE — 26/11/2026 */
.product-card .product-info {
  gap: 5px !important;
}
.product-card .product-info h3 {
  font-size: 12px !important;
  line-height: 17px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.product-card .product-specs {
  font-size: 12px !important;
  line-height: 17px !important;
  margin: 0 !important;
}
.product-card .price-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  text-align: right !important;
  width: 100% !important;
  gap: 6px !important;
  margin-top: 0 !important;
  line-height: 17px !important;
}
.product-card .price {
  font-size: 12px !important;
  line-height: 17px !important;
  font-weight: 800 !important;
  text-align: right !important;
}
.product-card .old-price {
  font-size: 11px !important;
  line-height: 17px !important;
}
.product-card .card-bottom {
  margin-top: 0 !important;
  padding-top: 5px !important;
  font-size: 12px !important;
  line-height: 17px !important;
}


/* Product card typography and spacing - 26 Nov 2026 */
.product-info{padding:13px;}
.product-category{display:none!important;}
.product-info h3{font-size:12px!important;font-weight:800;line-height:17px;margin:0 0 5px!important;min-height:0!important;}
.product-specs{font-size:11px!important;line-height:16px!important;min-height:0!important;margin:0 0 5px!important;}
.price-row{justify-content:flex-end!important;align-items:center;margin-top:5px!important;gap:5px;}
.price{font-size:12px!important;font-weight:800;color:#df2f35;}
.old-price{font-size:10px;}
.card-bottom{font-size:12px!important;line-height:17px;margin-top:5px!important;padding-top:5px!important;letter-spacing:0!important;}

/* PRODUCT CARD: PRICE AND DETAIL ON ONE CENTERED ROW — 26/11/2026 */
.product-card .price-row { display: none !important; }
.product-card .card-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 5px !important;
  padding-top: 7px !important;
  font-size: 12px !important;
  line-height: 16px !important;
  min-height: 30px !important;
}
.product-card .card-price {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  color: #e52f36 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
.product-card .card-price .old-price {
  margin-left: 5px !important;
  color: #9299a5 !important;
  font-size: 10px !important;
  font-weight: 400 !important;
}
.product-card .card-detail-label {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--blue) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Product multi-image gallery in detail view */
.detail-gallery{display:grid;grid-template-columns:1fr;gap:10px;align-content:start}
.detail-gallery img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;border-radius:10px;background:#f7f8fa}
@media(min-width:700px){.detail-gallery{grid-template-columns:1fr 1fr}.detail-gallery img:first-child{grid-column:1/-1}}
/* Multi-image product upload preview */
.admin-image-gallery{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.admin-image-gallery img{width:76px;height:76px;object-fit:cover;border:1px solid var(--line,#dce2eb);border-radius:8px;background:#fff}
#pImage{max-width:100%}

/* Product detail: one-image carousel, swipe, and full-screen zoom */
.detail-gallery-wrap{min-width:0}
.detail-gallery-viewport{position:relative;width:100%;height:390px;min-height:250px;background:#f4f6f9;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:zoom-in}
.detail-gallery-viewport .detail-slide{display:none;width:100%;height:100%;max-height:100%;object-fit:contain;padding:0;background:#f4f6f9}
.detail-gallery-viewport .detail-slide.active{display:block}
.gallery-arrow,.lightbox-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:48px;border:0;border-radius:8px;background:#10182899;color:#fff;font-size:32px;line-height:1;cursor:pointer;z-index:2}
.gallery-prev,.lightbox-prev{left:10px}.gallery-next,.lightbox-next{right:10px}
.gallery-count{position:absolute;right:10px;bottom:10px;background:#101828b8;color:#fff;padding:4px 9px;border-radius:20px;font-size:12px}
.gallery-dots{display:flex;justify-content:center;gap:7px;padding:10px 0 2px}
.gallery-dot{width:8px;height:8px;border:0;border-radius:50%;background:#c7ced8;padding:0;cursor:pointer}
.gallery-dot.active{background:#1954e8;transform:scale(1.2)}
.gallery-hint{font-size:12px;color:#7b8493;text-align:center;margin-top:5px}
.detail-copy p,.detail-description,.detail-description p,.detail-copy small{font-size:12px!important;font-weight:400!important;line-height:1.55!important}
.detail-copy p{margin:8px 0}
.detail-description strong{font-weight:400}
.detail-copy h2{font-weight:700}
.detail-copy .primary-btn{font-size:16px}
.image-lightbox{position:fixed;inset:0;z-index:9999;background:#000e;display:flex;align-items:center;justify-content:center;padding:45px}
.image-lightbox img{max-width:94vw;max-height:90vh;object-fit:contain;border-radius:8px}
.lightbox-close{position:absolute;right:22px;top:18px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#111;font-size:30px;cursor:pointer}
.lightbox-count{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);background:#222b;color:#fff;padding:6px 12px;border-radius:20px;font-size:12px}
@media(max-width:650px){
 .detail-gallery-viewport{height:260px;min-height:220px}
 .detail-layout{gap:12px}
 .detail-copy p,.detail-description,.detail-description p,.detail-copy small{font-size:12px!important}
 .image-lightbox{padding:14px}
 .image-lightbox img{max-width:100%;max-height:84vh}
 .lightbox-arrow{width:34px;height:42px}
}

/* Product detail refinements: image frame follows the image proportions */
.detail-gallery-viewport{
  height:auto!important;min-height:0!important;aspect-ratio:auto;
  background:#fff;display:flex;align-items:center;justify-content:center;
  overflow:hidden;cursor:zoom-in;
}
.detail-gallery-viewport .detail-slide{
  width:100%;height:auto;max-height:62vh;object-fit:contain;
  padding:0;background:#fff;
}
.detail-copy .detail-description,
.detail-copy .detail-description p,
.detail-copy .detail-description strong,
.detail-copy p,
.detail-copy small{
  color:#303846!important;font-size:14px!important;font-weight:400!important;
  line-height:1.5!important;opacity:1!important;
}
.detail-copy .detail-description strong{font-weight:400!important}
.detail-copy h2{font-size:26px;font-weight:700}
.detail-copy .detail-price{font-size:24px}
.detail-copy .buy-product-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:16px;font-weight:700;text-decoration:none}
@media(max-width:650px){
 .detail-gallery-viewport .detail-slide{max-height:55vh;width:auto;max-width:100%}
 .detail-copy .detail-description,.detail-copy .detail-description p,.detail-copy .detail-description strong,.detail-copy p,.detail-copy small{font-size:14px!important}
 .detail-copy h2{font-size:21px}
}

/* Zalo contact popup modeled on the supplied reference */
.zalo-contact-overlay{position:fixed;inset:0;z-index:10050;background:rgba(12,20,35,.58);display:flex;align-items:center;justify-content:center;padding:22px;box-sizing:border-box}
.zalo-contact-card{position:relative;width:min(100%,1040px);background:#fff;border-radius:16px;padding:30px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px;box-shadow:0 18px 60px rgba(0,0,0,.25);color:#172033}
.zalo-contact-close{position:absolute;right:14px;top:14px;border:0;border-radius:50%;width:42px;height:42px;background:#f1f3f6;font-size:25px;cursor:pointer}
.zalo-contact-profile{display:flex;align-items:center;gap:28px;margin:8px 0 58px}
.zalo-store-logo{width:120px;height:120px;object-fit:contain}
.zalo-contact-profile h3{font-size:34px;margin:0 0 12px;color:#081a32}
.zalo-contact-profile p{font-size:22px;margin:0 0 22px;color:#33445c}
.zalo-message-button{display:flex;align-items:center;justify-content:center;width:min(100%,360px);height:72px;border-radius:12px;background:#0866ff;color:white;font-size:22px;font-weight:700;text-decoration:none}
.zalo-contact-main h4{font-size:28px;font-weight:500;margin:0 0 24px;color:#071a32}
.zalo-store-details{list-style:none;padding:0;margin:0;display:grid;gap:16px}
.zalo-store-details li{display:flex;gap:18px;align-items:flex-start;font-size:19px;line-height:1.45;color:#34445a}
.zalo-store-details li:first-letter{color:#647b96}
.zalo-store-details a{color:#0866e9;text-decoration:none}
.zalo-store-details b{color:#22b983;font-weight:500}
.zalo-contact-qr{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:4px}
.zalo-contact-qr img{width:100%;max-width:290px;aspect-ratio:1;object-fit:contain;border-radius:10px;box-shadow:0 3px 16px rgba(0,0,0,.08)}
.zalo-contact-qr p{text-align:center;color:#34445a;font-size:16px;line-height:1.45;margin:12px 0 0}
.zalo-product-context{margin-top:22px;padding:12px 14px;background:#f5f8fc;border-radius:8px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.zalo-product-context span{color:#63738a}
@media(max-width:700px){
 .zalo-contact-overlay{padding:10px;overflow:auto;align-items:flex-start}
 .zalo-contact-card{margin:auto;padding:22px 18px;grid-template-columns:1fr;gap:18px}
 .zalo-contact-profile{gap:16px;margin:10px 0 28px}
 .zalo-store-logo{width:76px;height:76px}
 .zalo-contact-profile h3{font-size:24px}
 .zalo-contact-profile p{font-size:16px;margin-bottom:12px}
 .zalo-message-button{height:52px;font-size:18px}
 .zalo-contact-main h4{font-size:22px;margin-bottom:14px}
 .zalo-store-details{gap:11px}
 .zalo-store-details li{font-size:15px;gap:12px}
 .zalo-contact-qr img{max-width:210px}
 .zalo-contact-qr p{font-size:14px}
 .zalo-product-context{font-size:12px}
}

/* Zalo contact popup refinements */
.zalo-contact-profile{display:block!important;gap:0!important;margin:8px 0 58px!important}
.zalo-store-logo{display:none!important}
.zalo-contact-heading{display:block}
.zalo-contact-heading h3{margin:0 0 12px!important}
.zalo-contact-heading p{margin:0 0 22px!important}
.zalo-message-button{gap:10px!important}
.zalo-chat-icon{width:25px;height:25px;display:block;flex:0 0 25px}
.zalo-contact-qr img{width:100px!important;height:100px!important;max-width:100px!important;aspect-ratio:1/1!important;object-fit:contain!important}
.zalo-contact-qr p{max-width:220px}
@media(max-width:700px){
 .zalo-contact-profile{margin:0 0 22px!important}
 .zalo-contact-qr img{width:100px!important;height:100px!important;max-width:100px!important}
}

/* Zalo popup final layout: 400px square QR, right aligned center, red store title */
.zalo-contact-heading h3{color:#e32636!important}
.zalo-contact-card{grid-template-columns:minmax(0,1fr) 420px!important;align-items:center!important}
.zalo-contact-qr{width:100%;height:100%;align-items:center!important;justify-content:center!important;padding:0!important}
.zalo-contact-qr img{display:block;width:400px!important;height:400px!important;max-width:100%!important;max-height:400px!important;object-fit:contain!important;aspect-ratio:1/1!important}
.zalo-store-details li{align-items:center!important;gap:14px!important}
.zalo-detail-icon{width:23px;height:23px;flex:0 0 23px;fill:none;stroke:#647b96;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){
 .zalo-contact-card{grid-template-columns:1fr!important;gap:20px!important}
 .zalo-contact-qr img{width:min(400px,80vw)!important;height:min(400px,80vw)!important;max-width:100%!important;max-height:none!important}
}


/* Final Zalo store popup layout */
.zalo-contact-card{
  grid-template-columns:minmax(0,1fr) 320px!important;
  align-items:start!important;
}
.zalo-contact-profile{
  margin:8px 0 58px!important;
}
.zalo-contact-heading h3{
  color:#e32636!important;
}
.zalo-contact-qr{
  width:100%!important;
  padding-top:8px!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.zalo-contact-qr img{
  display:block!important;
  width:300px!important;
  height:300px!important;
  max-width:100%!important;
  max-height:300px!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
}
.zalo-store-details li{
  align-items:center!important;
}
.zalo-store-details li b{
  color:#22b983!important;
  font-weight:700!important;
}
@media(max-width:700px){
  .zalo-contact-card{
    grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;
  }
  .zalo-contact-profile{margin:8px 0 28px!important}
  .zalo-contact-qr{padding-top:0!important}
  .zalo-contact-qr img{
    width:min(300px,80vw)!important;
    height:min(300px,80vw)!important;
    max-height:none!important;
  }
}


/* Zalo popup: compact fit-content layout, 14px typography, 30px message button */
.zalo-contact-card{
  box-sizing:border-box!important;
  width:min(100%,1120px)!important;
  height:auto!important;
  max-height:calc(100vh - 32px)!important;
  overflow:auto!important;
  padding:24px!important;
  grid-template-columns:minmax(0,1fr) 320px!important;
  gap:20px!important;
  align-items:start!important;
}
.zalo-contact-main{min-width:0!important}
.zalo-contact-profile{
  margin:0 0 18px!important;
}
.zalo-contact-heading h3{
  font-size:30px!important;
  line-height:1.25!important;
  margin:0 0 5px!important;
}
.zalo-contact-heading p{
  font-size:14px!important;
  line-height:1.35!important;
  margin:0 0 10px!important;
}
.zalo-message-button{
  box-sizing:border-box!important;
  width:min(100%,360px)!important;
  height:30px!important;
  min-height:30px!important;
  padding:0 12px!important;
  border-radius:7px!important;
  font-size:14px!important;
  line-height:1!important;
  gap:7px!important;
}
.zalo-chat-icon{width:17px!important;height:17px!important;flex-basis:17px!important}
.zalo-contact-main h4{
  font-size:14px!important;
  line-height:1.35!important;
  margin:0 0 8px!important;
}
.zalo-store-details{
  gap:5px!important;
}
.zalo-store-details li{
  gap:9px!important;
  font-size:14px!important;
  line-height:1.35!important;
}
.zalo-detail-icon{width:18px!important;height:18px!important;flex-basis:18px!important}
.zalo-store-details b{font-size:14px!important}
.zalo-product-context{
  margin-top:10px!important;
  padding:8px 10px!important;
  font-size:14px!important;
  line-height:1.35!important;
}
.zalo-contact-qr{
  padding:0!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.zalo-contact-qr img{
  width:300px!important;
  height:300px!important;
  max-width:100%!important;
  max-height:300px!important;
}
.zalo-contact-qr p{
  font-size:14px!important;
  line-height:1.35!important;
  margin:8px 0 0!important;
}
@media(max-width:700px){
  .zalo-contact-card{
    width:min(100%,520px)!important;
    max-height:calc(100vh - 20px)!important;
    padding:18px!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }
  .zalo-contact-profile{margin:0 0 14px!important}
  .zalo-contact-qr img{width:min(300px,80vw)!important;height:min(300px,80vw)!important}
}


/* PRODUCT CARD: PRICE FRAME + BUY BUTTON, BOTH 25PX HIGH — 26/11/2026 */
.product-card .card-bottom{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  width:100%!important;
  min-height:25px!important;
  height:25px!important;
  box-sizing:border-box!important;
  margin-top:5px!important;
  padding:0!important;
  border-top:0!important;
  line-height:25px!important;
}
.product-card .card-price{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  box-sizing:border-box!important;
  height:25px!important;
  min-height:25px!important;
  padding:0 8px!important;
  border:1px solid #e6eaf0!important;
  border-radius:5px!important;
  color:#e52f36!important;
  font-size:12px!important;
  line-height:23px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.product-card .card-detail-label{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  height:25px!important;
  min-height:25px!important;
  padding:0 12px!important;
  border:1px solid var(--blue)!important;
  border-radius:5px!important;
  background:var(--blue)!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:23px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
}


/* PRODUCT CARD PRICE ONLY: RIGHT EDGE, NO BUTTON/FRAME — 26/11/2026 */
.product-card .card-bottom{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:0!important;
  width:100%!important;
  min-height:25px!important;
  height:25px!important;
  margin-top:5px!important;
  padding:0!important;
  border:0!important;
  box-sizing:border-box!important;
}
.product-card .card-detail-label{
  display:none!important;
}
.product-card .card-price{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  height:25px!important;
  min-height:25px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#e52f36!important;
  font-size:14px!important;
  line-height:25px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  text-align:right!important;
}


/* Detail popup: equal-width price and purchase action */
.detail-purchase-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  align-items:center;
  width:100%;
  margin-top:12px;
}
.detail-purchase-row .detail-price,
.detail-purchase-row .buy-product-btn{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:48px;
  min-height:48px;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  font-size:16px;
  font-weight:800;
  line-height:1.2;
  text-align:center;
  white-space:nowrap;
}
.detail-purchase-row .detail-price{
  background:#e92535;
  color:#fff;
  padding:0 8px;
}
.detail-purchase-row .buy-product-btn{
  background:#1554e8;
  color:#fff;
  padding:0 8px;
}
@media(max-width:650px){
  .detail-purchase-row{gap:8px}
  .detail-purchase-row .detail-price,
  .detail-purchase-row .buy-product-btn{height:42px;min-height:42px;font-size:14px}
}


/* Product detail content and compact equal-height purchase row */
.detail-purchase-row .detail-price,
.detail-purchase-row .buy-product-btn{
  height:30px!important;
  min-height:30px!important;
  padding:0 8px!important;
  font-size:14px!important;
  line-height:30px!important;
}
.detail-description{
  font-size:12px!important;
  line-height:1.45!important;
}
.detail-info-section{margin:0 0 8px}
.detail-info-section>strong{
  display:block;
  font-size:12px!important;
  font-weight:700!important;
  margin:0 0 3px;
}
.detail-check-lines{
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.45!important;
}
.detail-check-lines>div{margin:0 0 3px}


/* Requested product detail heading colors */
#modalTitle {
  color: #ed2638 !important;
}
.detail-copy .detail-info-section > strong {
  color: #ed2638 !important;
  font-weight: 700 !important;
}


/* Product name: black, 14px */
#modalTitle {
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}


/* LOGO NINH ALL RED/GREEN — 38px high, exact width of laptop category sidebar */
@media (min-width: 651px) {
  .header-main .brand {
    width: 160px !important; min-width: 160px !important; max-width: 160px !important;
    height: 38px !important; min-height: 38px !important; max-height: 38px !important;
    flex: 0 0 160px !important; margin: 0 !important; padding: 0 !important;
    overflow: hidden !important; display: flex !important; align-items: center !important;
  }
  .header-main .brand img {
    display: block !important; width: 160px !important; height: 38px !important;
    max-width: 160px !important; max-height: 38px !important;
    object-fit: fill !important; object-position: center !important;
  }
}


/* LOGO HEIGHT 35PX + BANNER FIT ENTIRE IMAGE INSIDE FRAME — 26/11/2026 */
@media (min-width: 651px) {
  .site-header .header-main .brand {
    width: 160px !important; min-width: 160px !important; max-width: 160px !important;
    height: 35px !important; min-height: 35px !important; max-height: 35px !important;
    flex: 0 0 160px !important;
  }
  .site-header .header-main .brand img {
    width: 160px !important; height: 35px !important;
    max-width: 160px !important; max-height: 35px !important;
    object-fit: contain !important; object-position: left center !important;
  }
  /* Keep the banner frame dimensions; scale the complete uploaded image to fit without cropping. */
  .hero-category-layout .hero {
    overflow: hidden !important;
    background: #fff !important;
  }
  .hero-category-layout .hero img {
    display: block !important;
    width: 100% !important; height: 100% !important;
    min-height: 0 !important; max-height: 100% !important;
    object-fit: contain !important; object-position: center center !important;
  }
}


/* HEADER CONTROLS HEIGHT 35PX TO MATCH LOGO — 26/11/2026 */
@media (min-width: 651px) {
  .site-header .header-search,
  .site-header .header-actions .header-action-btn {
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    box-sizing: border-box !important;
    align-self: center !important;
  }
  .site-header .header-search {
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
  }
  .site-header .header-search input,
  .site-header .header-search button {
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }
  .site-header .header-search button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .site-header .header-actions .header-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}


/* UPDATE 26/11/2026: show the complete banner artwork and soften search border */
@media (min-width: 651px) {
  .hero-category-layout .hero {
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
  }
  .hero-category-layout .hero img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
@media (max-width: 650px) {
  .hero-category-layout .hero img, .hero img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
.site-header .header-search {
  border: 1px solid rgba(220, 38, 38, 0.42) !important;
  box-sizing: border-box !important;
}


/* FINAL BANNER WIDTH FIX — 26/11/2026
   Use the full available desktop banner width and preserve the original image ratio.
   The previous fixed 350px height forced object-fit:contain to shrink the artwork
   horizontally, leaving large blank gutters on both sides. */
@media (min-width: 651px) {
  .hero-category-layout {
    grid-template-columns: 160px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .hero-category-layout .hero {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
    display: block !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  .hero-category-layout .hero img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
  .hero-category-layout .category-sidebar {
    align-self: stretch !important;
  }
}


/* BANNER MATCH CATEGORY SIDEBAR HEIGHT — 26/11/2026 */
@media (min-width: 651px) {
  .hero-category-layout {
    align-items: stretch !important;
  }
  .hero-category-layout .category-sidebar {
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
  }
  .hero-category-layout .hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }
  .hero-category-layout .hero img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: fill !important;
    object-position: center center !important;
  }
}

/* CATEGORY SIDEBAR FIX — FIXED TO MENU CONTENT, 5PX BELOW LAST ITEM
   The banner may be taller, but must not stretch or resize the category menu. */
@media (min-width: 651px) {
  .hero-category-layout {
    align-items: start !important;
  }
  .hero-category-layout .category-sidebar {
    align-self: start !important;
    height: max-content !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    padding: 0 0 5px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .hero-category-layout .category-sidebar-title {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-category-layout .category-sidebar .sidebar-category {
    flex: 0 0 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}


/* FINAL DESKTOP HERO ALIGNMENT — 5PX FROM CATEGORY, MATCH MENU HEIGHT */
@media (min-width: 651px) {
  .hero-category-layout {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    column-gap: 5px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }
  .hero-category-layout .category-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
    height: max-content !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
  }
  .hero-category-layout .hero {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .hero-category-layout .hero img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: fill !important;
    object-position: center center !important;
  }
}


/* FINAL BANNER ALIGNMENT — LEFT EDGE MATCHES HEADER SEARCH, 5PX BELOW HEADER — 26/11/2026 */
@media (min-width: 651px) {
  /* The logo occupies 160px and the header gap is 12px, so the search starts at 172px.
     Keep the category menu at 160px and reserve the same 12px before the banner. */
  .hero-category-layout {
    grid-template-columns: 160px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    margin-top: 5px !important;
    padding-top: 0 !important;
    align-items: start !important;
  }
  .hero-category-layout .category-sidebar {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }
  .hero-category-layout .hero {
    grid-column: 2 !important;
    margin: 0 !important;
    width: 100% !important;
  }
}


/* SEARCH LEFT EDGE ALIGNED EXACTLY WITH BANNER LEFT EDGE — 26/11/2026 */
@media (min-width: 651px) {
  /* Banner begins 12px after the 160px category/logo rail. Keep this same gap in the header. */
  .site-header .header-main {
    column-gap: 12px !important;
  }
  .site-header .brand {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }
  .site-header .header-search {
    margin-left: 0 !important;
    transform: none !important;
  }
}

/* FINAL VERTICAL SPACING FIX — 26/11/2026
   Desktop only: set the four requested block-to-block gaps to exactly 3px.
   Do not alter spacing between the category links themselves. */
@media (min-width: 651px) {
  /* 1. Top information strip -> logo/search header */
  .site-header {
    margin-top: 3px !important;
    padding-top: 0 !important;
  }
  .site-header .header-main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* 2. Logo/search header -> category/banner row */
  .hero-category-layout {
    margin-top: 3px !important;
  }

  /* 3. Category/banner row -> benefits strip */
  .benefit-strip {
    margin-top: 3px !important;
  }

  /* 4. Benefits strip -> catalog search and filters */
  .products-section {
    margin-top: 0 !important;
    padding-top: 3px !important;
  }
  .products-section .catalog-heading {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .products-section .catalog-tools {
    margin-top: 0 !important;
  }
}


/* Final spacing and muted top information strip */
.top-strip {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #8b95a4 !important;
}
.top-strip b,
.top-strip strong {
  color: #8993a2 !important;
  font-weight: 400 !important;
}
.top-strip a {
  color: #8298c8 !important;
  font-weight: 400 !important;
}
.top-strip svg,
.top-strip i {
  opacity: .55;
}
.header-main {
  margin-top: 3px !important;
}
.hero-category-layout {
  margin-top: 3px !important;
  gap: 5px !important;
}
.benefit-strip {
  margin-top: 3px !important;
}
.products-section {
  padding-top: 0 !important;
}
.products-section .catalog-heading {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}
.products-section .catalog-tools {
  margin-top: 3px !important;
}


/* FINAL REQUEST 26/11/2026: 5px gaps around banner/policy/catalog tools.
   Keep all category-item spacing and other header spacing unchanged. */
@media (min-width: 651px) {
  .benefit-strip {
    margin-top: 5px !important;
  }
  .products-section {
    padding-top: 0 !important;
  }
  .products-section .catalog-tools {
    margin-top: 5px !important;
  }
}


/* HEADER COMPACT SPACING — 26/11/2026
   Desktop: 3px from information strip to logo/search row, and 3px
   from logo/search row to category/banner row. Preserve 35px controls. */
@media (min-width: 651px) {
  .top-strip {
    height: 38px !important;
    min-height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }
  .top-strip-inner {
    height: 38px !important;
    min-height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }
  .site-header {
    margin-top: 3px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .site-header .header-main {
    height: 41px !important;
    min-height: 41px !important;
    max-height: 41px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .site-header .header-main .brand,
  .site-header .header-search,
  .site-header .header-actions .header-action-btn {
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    align-self: center !important;
  }
  .hero-category-layout {
    margin-top: 3px !important;
  }
}

/* Laptop Ninh All: tinh chỉnh thanh thông tin đầu trang */
.top-strip{
  height:30px !important;
  min-height:30px !important;
  font-size:11px !important;
  font-weight:400 !important;
  color:#8792a3 !important;
}
.top-strip-inner{
  height:30px !important;
  min-height:30px !important;
}
.top-strip-inner .delivery-note,
.top-strip-inner .top-contact,
.top-strip-inner .top-contact span,
.top-strip-inner .top-contact a,
.top-strip-inner .top-contact .top-address,
.top-strip-inner .top-contact .top-hotline{
  font-size:11px !important;
  line-height:1 !important;
  font-weight:400 !important;
  color:#7d899b !important;
}
.top-strip-inner .top-contact .top-hotline{
  color:#7189c5 !important;
}
.top-strip-inner svg{
  width:15px !important;
  height:15px !important;
  flex:0 0 15px !important;
  opacity:.58 !important;
}
.top-strip-inner .top-address svg{color:#d77b83 !important;}
.top-strip-inner .top-hotline svg{color:#829bd4 !important;}
.top-strip-inner .delivery-note svg{color:#d77b83 !important;}
.top-strip-inner .catalog-admin-link svg{color:#829bd4 !important;}
.top-strip-inner>div{gap:10px !important;}


/* UPDATE 26/11/2026: chữ thanh thông tin đậm màu hơn, vẫn giữ nét mảnh; căn đầu thanh tìm kiếm theo mép trái banner */
.top-strip,
.top-strip-inner .delivery-note,
.top-strip-inner .top-contact,
.top-strip-inner .top-contact span,
.top-strip-inner .top-contact a,
.top-strip-inner .top-contact .top-address,
.top-strip-inner .top-contact .top-hotline {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #4b5563 !important;
}
.top-strip-inner .top-contact .top-hotline {
  color: #315aaf !important;
}
.top-strip-inner svg {
  opacity: .78 !important;
}
@media (min-width: 651px) {
  /* Banner starts after 160px category rail + 5px gap. Match search start exactly. */
  .site-header .header-main {
    column-gap: 5px !important;
  }
  .site-header .brand {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
  }
  .site-header .header-search {
    margin-left: 0 !important;
    transform: none !important;
  }
}


/* PRODUCT CARD IMAGE: CENTER + SHOW FULL IMAGE WITHOUT CROPPING — 26/11/2026 */
.product-card .product-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fff !important;
}
.product-card .product-image > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: auto !important;
}


/* FOOTER UPDATE 2026-11-26: hide footer admin text and emphasize store name */
.site-footer .footer-bottom #adminLink { display:none !important; }
.site-footer .footer-store-plain .footer-store-name { font-size:14px !important; font-weight:700 !important; line-height:1.35 !important; }


/* FOOTER ALIGNMENT 2026-11-26: align store name with the top edge of the privacy-policy link card */
@media (min-width: 651px) { .site-footer .footer-store-plain .footer-store-name { position: relative !important; top: -9px !important; } }


/* Footer store information: evenly distribute each line between the top and bottom of the useful-links grid. Desktop only; mobile layout remains unchanged. */
@media (min-width: 1101px) {
  .site-footer .footer-store {
    align-self: stretch !important;
  }
  .site-footer .footer-store > h3 {
    margin-bottom: 18px !important;
  }
  .site-footer .footer-store-plain {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex: 1 1 auto !important;
    min-height: 138px !important;
    height: auto !important;
    gap: 0 !important;
  }
  /* Flatten the grouped hours and contact wrappers so all six content rows
     participate in the same even vertical distribution. */
  .site-footer .footer-store-plain .footer-support-hours,
  .site-footer .footer-store-plain .footer-store-contacts {
    display: contents !important;
  }
  .site-footer .footer-store-plain .footer-store-name {
    position: static !important;
    top: auto !important;
    margin: 0 !important;
  }
  .site-footer .footer-store-plain .footer-store-address,
  .site-footer .footer-store-plain .footer-hours-label,
  .site-footer .footer-store-plain .footer-hours-row,
  .site-footer .footer-store-plain .footer-store-contact-line {
    margin: 0 !important;
  }
  .site-footer .footer-store-plain .footer-hours-row,
  .site-footer .footer-store-plain .footer-hours-row span {
    display: block !important;
  }
}


/* PRODUCT LIST CARDS: SQUARE CORNERS — 26/11/2026 */
.product-grid .product-card,
.product-grid .product-card .product-image,
.product-grid .product-card .product-info {
  border-radius: 0 !important;
}
.product-grid .product-card {
  overflow: hidden !important;
}


/* CATALOG SEARCH + FILTERS: SQUARE CORNERS — 26/11/2026 */
.catalog-tools .search-box,
.catalog-tools select {
  border-radius: 0 !important;
}


/* FINAL FIX 26-11-2026: align store details exactly with the useful-policy cards.
   Desktop: first line starts at the top of the first card and final line ends
   at the bottom of the last card (4 rows x 30px + 3 gaps x 6px = 138px). */
@media (min-width: 1101px) {
  .site-footer .footer-main {
    align-items: start !important;
  }
  .site-footer .footer-store {
    align-self: start !important;
  }
  .site-footer .footer-store > h3 {
    margin: 0 0 18px !important;
  }
  .site-footer .footer-store-plain {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    height: 138px !important;
    min-height: 138px !important;
    max-height: 138px !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  .site-footer .footer-store-plain .footer-support-hours,
  .site-footer .footer-store-plain .footer-store-contacts {
    display: contents !important;
  }
  .site-footer .footer-store-plain .footer-store-name,
  .site-footer .footer-store-plain .footer-store-address,
  .site-footer .footer-store-plain .footer-hours-label,
  .site-footer .footer-store-plain .footer-hours-row,
  .site-footer .footer-store-plain .footer-store-contact-line {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-footer .footer-store-plain .footer-store-name {
    line-height: 1.2 !important;
  }
  .site-footer .footer-store-plain .footer-hours-row,
  .site-footer .footer-store-plain .footer-hours-row span {
    display: block !important;
  }
}


/* DEFINITIVE FOOTER ALIGNMENT FIX 26/11/2026
   Match the store information block to the exact vertical bounds of the
   useful-links cards. Let the grid row determine the height; do not hardcode
   138px, since card sizing/gaps can vary with the active layout. */
@media (min-width: 1101px) {
  .site-footer .footer-main {
    align-items: stretch !important;
  }
  .site-footer .footer-useful,
  .site-footer .footer-store {
    min-width: 0 !important;
    align-self: stretch !important;
  }
  .site-footer .footer-store {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  .site-footer .footer-store > h3 {
    flex: 0 0 auto !important;
    margin: 0 0 18px !important;
  }
  .site-footer .footer-store-plain {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .site-footer .footer-store-plain .footer-support-hours,
  .site-footer .footer-store-plain .footer-store-contacts {
    display: contents !important;
  }
  .site-footer .footer-store-plain .footer-store-name,
  .site-footer .footer-store-plain .footer-store-address,
  .site-footer .footer-store-plain .footer-hours-label,
  .site-footer .footer-store-plain .footer-hours-row,
  .site-footer .footer-store-plain .footer-store-contact-line {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-footer .footer-store-plain .footer-store-name {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }
  .site-footer .footer-store-plain .footer-hours-row,
  .site-footer .footer-store-plain .footer-hours-row span {
    display: block !important;
  }
}

/* Multi-image product management and storefront gallery */
.admin-image-gallery{display:flex;flex-wrap:wrap;gap:9px;width:100%}
.admin-image-thumb{width:92px;display:flex;flex-direction:column;gap:4px}
.admin-image-thumb img{width:92px;height:72px;object-fit:contain;background:#f5f7fa;border:1px solid var(--line);border-radius:7px}
.admin-image-thumb small{font-size:9px;color:var(--muted);overflow-wrap:anywhere}
.image-preview{align-items:flex-start;flex-wrap:wrap}
.product-image .card-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:28px;height:36px;border:0;border-radius:6px;background:#17243a99;color:#fff;font-size:25px;line-height:1;cursor:pointer;opacity:0;transition:opacity .18s}
.product-image:hover .card-gallery-arrow,.product-image:focus-within .card-gallery-arrow{opacity:1}
.product-image .card-gallery-arrow.prev{left:7px}
.product-image .card-gallery-arrow.next{right:7px}
.card-gallery-count{position:absolute;right:8px;bottom:7px;z-index:3;padding:3px 7px;border-radius:12px;background:#17243a99;color:#fff;font-size:10px}
@media(max-width:700px){.product-image .card-gallery-arrow{opacity:1}}

/* 28/11/2026: Ẩn giỏ hàng và đăng nhập trên header; kéo dài ô tìm kiếm đến mép phải */
@media (min-width: 651px) {
  .site-header .header-main {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .site-header .header-main .brand {
    flex: 0 0 150px !important;
    width: 150px !important;
  }
  .site-header .header-main .header-search {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .site-header .header-main .header-actions {
    display: none !important;
  }
}
@media (max-width: 650px) {
  .site-header .header-main .header-actions { display: none !important; }
  .site-header .header-main .header-search {
    flex: 1 1 calc(100% - 110px) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/* 28/11/2026: Đồng bộ chiều cao logo với toàn bộ thanh tìm kiếm */
@media (min-width: 651px) {
  .site-header .header-main {
    align-items: center !important;
  }
  .site-header .header-main .brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 53px !important;
    min-height: 53px !important;
    max-height: 53px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-header .header-main .brand img {
    display: block !important;
    width: auto !important;
    height: 53px !important;
    min-height: 53px !important;
    max-height: 53px !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .site-header .header-main .header-search {
    height: 53px !important;
    min-height: 53px !important;
    max-height: 53px !important;
    align-self: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  .site-header .header-main .header-search input,
  .site-header .header-main .header-search button {
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }
}

/* HEADER V5 — logo cùng bề rộng menu danh mục, giữ nguyên tỷ lệ ảnh */
@media (min-width: 651px) {
  .site-header .header-main {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .site-header .header-main .brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .site-header .header-main .brand img {
    display: block !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 38px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .site-header .header-main .header-search {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    align-self: center !important;
    box-sizing: border-box !important;
  }
  .site-header .header-main .header-search input,
  .site-header .header-main .header-search button {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 650px) {
  .site-header .header-main .brand {
    width: 110px !important;
    flex: 0 0 110px !important;
  }
  .site-header .header-main .brand img {
    width: 110px !important;
    height: auto !important;
    max-height: 38px !important;
  }
  .site-header .header-main .header-search {
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* HEADER V6 — bỏ logo, thanh tìm kiếm kéo từ mép trái danh mục đến mép phải banner */
.site-header .header-main {
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: 100% !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}
.site-header .header-main .brand {
  display: none !important;
}
.site-header .header-main .header-search {
  display: flex !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.site-header .header-main .header-search input,
.site-header .header-main .header-search button {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
}

/* TOP STRIP BRAND LOGO — logo 30px cao, gọn trong thanh thông tin */
.top-strip-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
}
.top-strip-inner .top-strip-logo {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  max-width: 190px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 !important;
}
.top-strip-inner .delivery-note {
  margin: 0 auto 0 0 !important;
  justify-content: flex-start !important;
  flex: 0 1 auto !important;
}
.top-strip-inner .top-contact {
  margin-left: auto !important;
  flex: 0 0 auto !important;
}
@media (max-width: 650px) {
  .top-strip-inner {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px 9px !important;
  }
  .top-strip-inner .top-strip-logo {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    max-width: 170px !important;
  }
  .top-strip-inner .delivery-note {
    width: auto !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
  }
  .top-strip-inner .top-contact {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* TOP BAR UPDATE: white background, dark text; logo aligned to category/menu left edge */
.top-strip {
  background: #ffffff !important;
  color: #111111 !important;
  border-bottom: 1px solid #e5e7eb !important;
}
.top-strip-inner {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #ffffff !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}
.top-strip-inner .top-strip-logo {
  margin-left: 0 !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  width: auto !important;
  max-width: 190px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
.top-strip, .top-strip b, .top-strip span, .top-strip a,
.top-strip-inner .top-contact, .top-strip-inner .top-contact a {
  color: #111111 !important;
}
.top-strip i { background: #d1d5db !important; }
.top-strip-inner .delivery-note { display: none !important; }

/* Move delivery promise to footer bottom, opposite copyright */
.footer-bottom .wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
.footer-delivery-note {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  color: inherit !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}
.footer-delivery-note svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
}
@media (max-width: 650px) {
  .top-strip-inner {
    width: calc(100% - 24px) !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
  }
  .top-strip-inner .top-strip-logo { max-width: 145px !important; height: 30px !important; }
  .top-strip-inner .top-contact { margin-left: auto !important; }
  .footer-bottom .wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
  }
  .footer-delivery-note { white-space: normal !important; }
}

/* HEADER V9 — 5px breathing room above top info bar; remove divider under logo bar */
body > .top-strip {
  margin-top: 5px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
body > .top-strip::before,
body > .top-strip::after,
body > .top-strip .top-strip-inner::before,
body > .top-strip .top-strip-inner::after {
  content: none !important;
  display: none !important;
}
.site-header {
  border-top: 0 !important;
  box-shadow: none !important;
}

/* Product catalog grouped by laptop brand */
.catalog-brand-section {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
}
.catalog-brand-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 4px solid #e9232b;
  border-bottom: 1px solid #e5e7eb;
  background: #f7f9fc;
}
.catalog-brand-heading h2 {
  margin: 0;
  color: #172b4d;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
}
.catalog-brand-heading span {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}
.catalog-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .catalog-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .catalog-brand-heading h2 { font-size: 14px; }
  .catalog-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-brand-section { margin-bottom: 18px; }
}


/* V11: full-width promotional banner between benefits and catalog search */
.catalog-promo-banner {
  display: block !important;
  width: min(calc(100% - 12px), 1200px) !important;
  margin: 10px auto 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
}
.catalog-promo-banner img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain !important;
}
/* Each brand/category section occupies its own full row. Product cards stay in a grid inside it. */
#productGrid.product-grid {
  display: block !important;
  width: 100% !important;
}
#productGrid .catalog-brand-section {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
}
#productGrid .catalog-brand-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
}
@media (max-width: 900px) {
  #productGrid .catalog-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 650px) {
  .catalog-promo-banner { width: calc(100% - 20px) !important; margin: 8px auto 10px !important; }
  #productGrid .catalog-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
}

/* V12: crisp blue-white promo banner aligned exactly with the benefit and catalog rows */
.catalog-promo-banner {
  display: block !important;
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin: 10px auto 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
  border-radius: 3px;
}
.catalog-promo-banner img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
@media (max-width: 650px) {
  .catalog-promo-banner {
    width: calc(100% - 20px) !important;
    margin: 8px auto 10px !important;
  }
}


/* V13: multi-image promotional banner carousel and admin uploader */
.catalog-promo-banner { position:relative !important; }
.catalog-promo-banner > img { width:100% !important; height:auto !important; display:block !important; object-fit:contain !important; }
.promo-banner-arrow { position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border:0; border-radius:50%; background:rgba(0,35,100,.72); color:#fff; font-size:28px; line-height:1; cursor:pointer; z-index:2; opacity:.88; }
.promo-banner-arrow:hover { background:#0647c8; opacity:1; }
.promo-banner-prev { left:12px; } .promo-banner-next { right:12px; }
.promo-banner-dots { position:absolute; left:0; right:0; bottom:10px; display:flex; justify-content:center; gap:7px; z-index:3; }
.promo-banner-dot { width:9px; height:9px; padding:0; border:1px solid #fff; border-radius:50%; background:rgba(20,50,100,.45); cursor:pointer; }
.promo-banner-dot.active { width:23px; border-radius:8px; background:#0754dc; }
.promo-admin-controls { display:grid; gap:10px; margin-top:14px; }
.promo-admin-controls > label { display:grid; gap:7px; font-size:12px; font-weight:700; }
.promo-admin-preview { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.promo-admin-thumb { min-width:0; border:1px solid var(--line); border-radius:8px; padding:6px; background:#fff; }
.promo-admin-thumb img { width:100%; aspect-ratio:16/5; object-fit:contain; display:block; background:#f4f7fb; }
.promo-admin-thumb span { display:block; margin-top:5px; font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.promo-admin-actions { display:flex; flex-wrap:wrap; gap:9px; }
@media(max-width:650px){ .promo-banner-arrow{width:30px;height:30px;font-size:23px}.promo-banner-prev{left:6px}.promo-banner-next{right:6px}.promo-banner-dots{bottom:5px}.promo-admin-preview{grid-template-columns:repeat(2,minmax(0,1fr))} }


/* V15: carousel is the main hero banner beside the category menu, not a separate strip below benefits. */
.hero-banner-carousel { position:relative !important; min-width:0; }
.hero-banner-carousel > img { display:block !important; width:100% !important; height:100% !important; object-fit:cover !important; object-position:center !important; }
.hero-banner-carousel .promo-banner-arrow { opacity:0; transition:opacity .18s ease; }
.hero-banner-carousel:hover .promo-banner-arrow, .hero-banner-carousel:focus-within .promo-banner-arrow { opacity:.9; }
.hero-banner-carousel .promo-banner-dots { bottom:10px; }
@media (max-width:650px) {
  .hero-banner-carousel { position:relative !important; }
  .hero-banner-carousel > img { height:100% !important; object-fit:cover !important; }
  .hero-banner-carousel .promo-banner-arrow { opacity:.9; }
}


/* V16: banner ngang thứ hai nằm giữa thanh quyền lợi và thanh tìm kiếm */
#catalogPromoBanner.catalog-promo-banner {
  display: block !important;
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin: 10px auto 12px !important;
  padding: 0 !important;
  aspect-ratio: 2048 / 682;
  overflow: hidden !important;
  position: relative !important;
  border-radius: 4px;
  line-height: 0 !important;
  background: #f5f9ff;
}
#catalogPromoBanner > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
}
@media (max-width: 650px) {
  #catalogPromoBanner.catalog-promo-banner {
    width: calc(100% - 20px) !important;
    margin: 8px auto 10px !important;
    aspect-ratio: 2048 / 682;
  }
  #catalogPromoBanner > img { object-fit: contain !important; }
}


/* V19: banner cố định, căn thẳng mép với thanh quyền lợi và thanh tìm kiếm */
#catalogPromoBanner.catalog-promo-banner {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin: 5px auto !important;
  padding: 0 !important;
  aspect-ratio: 2172 / 724 !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: 4px !important;
  line-height: 0 !important;
}
#catalogPromoBanner.catalog-promo-banner > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
}
@media (max-width: 650px) {
  .benefit-strip { width: calc(100% - 24px) !important; }
  #catalogPromoBanner.catalog-promo-banner {
    width: calc(100% - 24px) !important;
    margin: 5px auto !important;
    aspect-ratio: 2172 / 724 !important;
  }
}


/* V20: replacement fixed lower banner, aligned with benefit strip and search controls */
.catalog-promo-banner { display:block !important; width:min(1240px, calc(100% - 48px)) !important; max-width:1240px !important; margin:5px auto 0 !important; padding:0 !important; overflow:hidden !important; line-height:0 !important; border-radius:0 !important; box-sizing:border-box !important; }
.catalog-promo-banner img { display:block !important; width:100% !important; height:auto !important; max-width:100% !important; object-fit:contain !important; }
@media (max-width:650px) { .catalog-promo-banner { width:calc(100% - 20px) !important; margin:5px auto 0 !important; } }
@media (min-width:651px) { .products-section { padding-top:0 !important; } .products-section .catalog-tools { margin-top:5px !important; } }
@media (max-width:650px) { .products-section { padding-top:0 !important; } .products-section .catalog-tools { margin-top:5px !important; } }


/* V21 FIX: remove reserved blank space around the fixed catalog banner.
   The banner image is 2172x500, so let its natural ratio determine height. */
.catalog-promo-banner {
  display: block !important;
  width: calc(100% - 24px) !important;
  max-width: 1240px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 5px auto !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  position: relative !important;
  background: transparent !important;
}
.catalog-promo-banner > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 650px) {
  .catalog-promo-banner {
    width: calc(100% - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 5px auto !important;
  }
  .catalog-promo-banner > img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}


/* V22 HOTFIX: exact 5px gaps around the fixed lower promo banner.
   Use ID-level selectors to override all legacy V11-V21 spacing rules. */
.benefit-strip { margin-bottom: 0 !important; }
#catalogPromoBanner.catalog-promo-banner {
  display: block !important;
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 5px auto 5px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  position: relative !important;
  background: transparent !important;
}
#catalogPromoBanner.catalog-promo-banner > img,
#catalogPromoBannerImage {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
#catalogPromoBanner + .products-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#catalogPromoBanner + .products-section > .wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#catalogPromoBanner + .products-section .catalog-tools {
  margin-top: 0 !important;
}
@media (max-width: 650px) {
  #catalogPromoBanner.catalog-promo-banner {
    width: calc(100% - 24px) !important;
    margin: 5px auto 5px !important;
  }
}


/* V23: danh mục sản phẩm sát thanh tìm kiếm — khoảng cách 3px */
@media (min-width: 651px) {
  #products .catalog-tools {
    margin-bottom: 3px !important;
  }
  #products #productGrid {
    margin-top: 0 !important;
  }
}
@media (max-width: 650px) {
  #products .catalog-tools {
    margin-bottom: 3px !important;
  }
  #products #productGrid {
    margin-top: 0 !important;
  }
}

/* V24: dong bo khoang cach doc 5px giua tat ca cac thanh/khu vuc chinh.
   Chi dieu chinh margin/padding ben ngoai; giu nguyen kich thuoc va noi dung cac thanh. */
@media (min-width: 651px) {
  .site-header .header-main { margin-top: 5px !important; }
  .hero-category-layout { margin-top: 5px !important; margin-bottom: 5px !important; }
  .benefit-strip { margin-top: 5px !important; margin-bottom: 5px !important; }
  #catalogPromoBanner.catalog-promo-banner { margin-top: 5px !important; margin-bottom: 5px !important; }
  #products .catalog-heading { margin-top: 0 !important; margin-bottom: 0 !important; }
  #products .catalog-tools { margin-top: 5px !important; margin-bottom: 5px !important; }
  #products #productGrid { margin-top: 0 !important; }
  #productGrid .catalog-brand-section { margin-top: 0 !important; margin-bottom: 5px !important; }
  #productGrid .catalog-brand-heading { margin-top: 0 !important; margin-bottom: 5px !important; }
}
@media (max-width: 650px) {
  .site-header .header-main { margin-top: 5px !important; }
  .hero-category-layout { margin-top: 5px !important; margin-bottom: 5px !important; }
  .benefit-strip { margin-top: 5px !important; margin-bottom: 5px !important; }
  #catalogPromoBanner.catalog-promo-banner { margin-top: 5px !important; margin-bottom: 5px !important; }
  #products .catalog-heading { margin-top: 0 !important; margin-bottom: 0 !important; }
  #products .catalog-tools { margin-top: 5px !important; margin-bottom: 5px !important; }
  #products #productGrid { margin-top: 0 !important; }
  #productGrid .catalog-brand-section { margin-top: 0 !important; margin-bottom: 5px !important; }
  #productGrid .catalog-brand-heading { margin-top: 0 !important; margin-bottom: 5px !important; }
}


/* V25: carousel banner 4 ảnh tỷ lệ chuẩn 3:1, không bóp méo hoặc cắt ảnh. */
.hero-category-layout > .hero-banner-carousel {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 1 !important;
  align-self: center !important;
  overflow: hidden !important;
  background: #f4f8ff !important;
}
.hero-category-layout > .hero-banner-carousel > #heroBannerImage {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 650px) {
  .hero-category-layout > .hero-banner-carousel {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
    align-self: stretch !important;
  }
  .hero-category-layout > .hero-banner-carousel > #heroBannerImage {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

/* V27: sidebar danh muc luon cao bang chinh xac banner slider ben canh.
   Chieu cao lay theo hang grid do banner 3:1 quyet dinh, khong hard-code 350px. */
@media (min-width: 651px) {
  .hero-category-layout {
    align-items: stretch !important;
  }
  .hero-category-layout > .category-sidebar {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
  }
}

/* V28: thay banner quảng cáo phía dưới bằng thanh tiện ích 4 mục,
   giữ hình robot minh họa theo mẫu người dùng cung cấp. */
.delivery-benefits-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: center !important;
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  min-height: 106px !important;
  margin: 5px auto 5px !important;
  padding: 8px 0 !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: 1px solid #e5e8ec !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 10px rgba(25, 45, 75, .045) !important;
}
.delivery-benefit {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-width: 0 !important;
  min-height: 78px !important;
  padding: 4px 14px !important;
  border-right: 1px solid #dfe3e8 !important;
  box-sizing: border-box !important;
}
.delivery-benefit:last-child { border-right: 0 !important; }
.delivery-benefit img {
  display: block !important;
  flex: 0 0 68px !important;
  width: 68px !important;
  height: 76px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
}
.delivery-benefit > div { min-width: 0 !important; }
.delivery-benefit b {
  display: block !important;
  margin: 0 0 5px !important;
  color: #07843c !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
.delivery-benefit small {
  display: block !important;
  color: #777f89 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
@media (max-width: 900px) {
  .delivery-benefits-strip {
    width: calc(100% - 24px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .delivery-benefit:nth-child(2) { border-right: 0 !important; }
  .delivery-benefit:nth-child(-n+2) { border-bottom: 1px solid #e5e8ec !important; }
}
@media (max-width: 520px) {
  .delivery-benefits-strip {
    width: calc(100% - 16px) !important;
    min-height: 0 !important;
    padding: 4px 0 !important;
    margin: 5px auto !important;
  }
  .delivery-benefit {
    gap: 6px !important;
    min-height: 78px !important;
    padding: 5px 6px !important;
  }
  .delivery-benefit img {
    flex-basis: 48px !important;
    width: 48px !important;
    height: 60px !important;
  }
  .delivery-benefit b { font-size: 11px !important; margin-bottom: 3px !important; }
  .delivery-benefit small { font-size: 9px !important; line-height: 1.3 !important; }
}


/* V29: move the four store-policy benefits to the very top of the storefront */
.benefit-strip-top {
  width: calc(100% - 16px) !important;
  max-width: none !important;
  margin: 5px auto !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 13 !important;
}
.benefit-strip-top article:last-child {
  justify-content: flex-start !important;
}
@media (max-width: 760px) {
  .benefit-strip-top {
    width: calc(100% - 12px) !important;
    margin: 4px auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .benefit-strip-top article {
    padding: 8px 10px !important;
    min-height: 54px !important;
  }
  .benefit-strip-top article:nth-child(2) {
    border-right: 0 !important;
  }
  .benefit-strip-top article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line) !important;
  }
}


/* V30: Place the four store-benefit items immediately above the footer. */
.benefit-strip-footer {
  width: calc(100% - 16px) !important;
  max-width: none !important;
  margin: 5px auto !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 2 !important;
}
.benefit-strip-footer article:last-child {
  justify-content: flex-start !important;
}
@media (max-width: 760px) {
  .benefit-strip-footer {
    width: calc(100% - 12px) !important;
    margin: 5px auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .benefit-strip-footer article {
    padding: 8px 10px !important;
    min-height: 54px !important;
  }
  .benefit-strip-footer article:nth-child(2) {
    border-right: 0 !important;
  }
  .benefit-strip-footer article:nth-child(3) {
    border-top: 1px solid var(--line) !important;
  }
  .benefit-strip-footer article:nth-child(4) {
    border-top: 1px solid var(--line) !important;
    border-right: 0 !important;
  }
}

/* V34: icons blend naturally into the white benefit strip; align both strips to catalog search width. */
.delivery-benefits-strip {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.delivery-benefit img {
  flex: 0 0 82px !important;
  width: 82px !important;
  height: 86px !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
  transform: scale(1.06) !important;
}
.benefit-strip-footer {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 650px) {
  .delivery-benefits-strip,
  .benefit-strip-footer {
    width: calc(100% - 24px) !important;
  }
  .delivery-benefit img {
    flex-basis: 54px !important;
    width: 54px !important;
    height: 64px !important;
    transform: scale(1.04) !important;
  }
}

/* V40: replace emoji category markers with a consistent monochrome hardware icon set */
.category-sidebar .sidebar-category .sidebar-category-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  object-fit: contain;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none;
}
@media (max-width: 650px) {
  .category-sidebar .sidebar-category .sidebar-category-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}


/* FOOTER SUPPORT CONTACT ICONS — added 28/11/2026 */
.site-footer .footer-support .footer-social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.site-footer .footer-support .footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}
.site-footer .footer-support .footer-social-icons a:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 3px 5px rgba(20,45,90,.18));
}
.site-footer .footer-support .footer-social-icons img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
@media (max-width: 700px) {
  .site-footer .footer-support .footer-social-icons {
    gap: 9px;
    margin-top: 10px;
  }
  .site-footer .footer-support .footer-social-icons a {
    width: 54px;
    height: 54px;
  }
}


/* V45: quản lý link các biểu tượng tư vấn ở chân trang */
.contact-links-manager{margin:18px 0 22px}
.contact-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.contact-links-grid label{display:flex;flex-direction:column;gap:7px;font-weight:600;color:var(--text,#17243b)}
.contact-links-grid input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d8e0ee;border-radius:9px;padding:12px 13px;font:inherit;background:#fff;color:#17243b}
.contact-links-grid input:focus{outline:2px solid #2563eb;outline-offset:1px;border-color:#2563eb}
@media(max-width:640px){.contact-links-grid{grid-template-columns:1fr;gap:10px}.contact-links-manager{padding:14px}}


/* V46 — MOBILE RESPONSIVE NORMALIZATION
   Giữ nguyên bố cục desktop; tối ưu riêng màn hình cảm ứng và ngăn tràn ngang/zoom ngoài ý muốn. */
*, *::before, *::after { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
img, video, iframe, canvas, svg { max-width: 100%; }
.wrap { min-width: 0; }

@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .wrap {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Header: các hàng co theo chiều ngang màn hình, không ép trang rộng hơn thiết bị */
  .top-strip { width: 100%; }
  .top-strip-inner {
    width: calc(100% - 20px) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 38px;
    padding: 5px 0;
    gap: 8px;
    flex-wrap: wrap;
  }
  .top-strip-logo { max-width: 105px; height: auto; }
  .top-contact {
    min-width: 0 !important;
    max-width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    font-size: 11px;
    line-height: 1.35;
  }
  .top-contact > * { min-width: 0; }
  .top-address { white-space: normal !important; text-align: center; }
  .site-header { width: 100%; }
  .site-header .header-main {
    width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 5px auto !important;
    padding: 0 !important;
    gap: 8px !important;
    flex-wrap: wrap;
  }
  .brand { max-width: 42%; height: auto; }
  .header-search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    height: 42px !important;
  }
  .header-search input {
    min-width: 0 !important;
    width: 1px;
    flex: 1 1 auto;
    font-size: 16px !important;
    padding: 0 10px !important;
  }
  .header-search button { flex: 0 0 auto; padding: 0 12px !important; }

  /* Hero và danh mục: xếp dọc, banner giữ tỷ lệ, danh mục chia hai cột */
  .hero-category-layout {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 7px !important;
    margin: 5px auto !important;
  }
  .category-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px !important;
    padding: 3px !important;
  }
  .category-sidebar-title { grid-column: 1 / -1; }
  .category-sidebar .sidebar-category {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: auto !important;
    max-height: none !important;
    padding: 5px 6px !important;
    gap: 6px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .category-sidebar .sidebar-category .sidebar-category-icon {
    flex: 0 0 21px !important;
    width: 21px !important;
    height: 21px !important;
  }
  .hero-category-layout > .hero-banner-carousel {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
  }
  .hero-category-layout > .hero-banner-carousel > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Các dải quyền lợi không ép chữ và hình tràn khỏi cột */
  .delivery-benefits-strip,
  .benefit-strip-top,
  .benefit-strip-footer {
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .delivery-benefits-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .delivery-benefit { min-width: 0 !important; }
  .delivery-benefit > div { min-width: 0 !important; }
  .delivery-benefit b, .delivery-benefit small {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Khu vực danh sách: bộ lọc tự xuống dòng, thẻ sản phẩm vừa chiều rộng */
  .products-section, #products, #products > .wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #products > .wrap { padding-left: 12px !important; padding-right: 12px !important; }
  .catalog-tools {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 7px !important;
  }
  .catalog-tools > :first-child { grid-column: 1 / -1; }
  .catalog-tools input, .catalog-tools select,
  .search-box, .search-box input {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
  }
  .catalog-tools input, .catalog-tools select, .search-box input {
    font-size: 16px !important;
  }
  .product-grid {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .product-card { min-width: 0 !important; max-width: 100%; }
  .product-image { height: clamp(112px, 34vw, 165px) !important; }
  .product-image img { max-width: 100%; }
  .product-info { min-width: 0; padding: 9px !important; }
  .product-info h3, .product-specs {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .product-info h3 { font-size: 12px !important; line-height: 1.4 !important; }
  .price-row { min-width: 0; flex-wrap: wrap; }
  .price-row * { overflow-wrap: anywhere; }

  /* Footer chuyển thành một cột dễ đọc */
  .site-footer, .site-footer .footer-main {
    width: 100%;
    min-width: 0;
  }
  .site-footer .footer-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 22px 12px !important;
  }
  .site-footer .footer-main section { min-width: 0 !important; width: 100%; }
  .site-footer h2, .site-footer h3 { font-size: 18px !important; margin-bottom: 9px !important; }
  .site-footer .footer-main p,
  .site-footer .footer-main a,
  .site-footer .footer-main strong {
    font-size: 14px !important;
    overflow-wrap: anywhere;
  }
  .site-footer .footer-social-icons { flex-wrap: wrap; }
  .site-footer .footer-social-icons a { width: 46px !important; height: 46px !important; }

  /* Bảng quản trị, hộp thoại và biểu mẫu */
  .modal, .dialog, .admin-modal, .product-modal {
    max-width: calc(100vw - 20px) !important;
  }
  input, select, textarea, button { max-width: 100%; }
  input, select, textarea { font-size: 16px !important; }
  table { max-width: 100%; }
}

@media (max-width: 380px) {
  .wrap, .site-header .header-main, .hero-category-layout {
    width: calc(100% - 16px) !important;
  }
  #products > .wrap { padding-left: 8px !important; padding-right: 8px !important; }
  .product-grid { gap: 6px !important; }
  .product-info { padding: 7px !important; }
  .product-image { height: 112px !important; }
  .category-sidebar .sidebar-category { font-size: 11px !important; padding-left: 4px !important; }
  .delivery-benefit img {
    flex-basis: 42px !important;
    width: 42px !important;
    height: 52px !important;
  }
}

/* Không cho thao tác double-tap tự phóng trang; vẫn cho cuộn trang bình thường. */
button, a, input, select, textarea { touch-action: manipulation; }


/* V2 — requested mobile spacing, collapsible category panel and refreshed navigation icons */
@media (max-width: 760px) {
  .top-strip { margin-bottom: 5px !important; }
  .site-header .header-main { margin-top: 5px !important; }
  .category-sidebar {
    display: block !important;
    padding: 0 !important;
  }
  .category-sidebar-title {
    display: flex !important;
    width: 100% !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 0 !important;
    border-bottom: 1px solid #d9dce2 !important;
    padding: 0 12px !important;
    text-align: left !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: 700 14px/1.2 Roboto, Arial, sans-serif !important;
  }
  .category-sidebar-items {
    display: none !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    padding: 4px !important;
  }
  .category-sidebar.is-expanded .category-sidebar-items {
    display: grid !important;
  }
  .category-sidebar .sidebar-category {
    width: 100% !important;
    min-width: 0 !important;
  }
  .mobile-bottom-nav a {
    gap: 3px;
  }
  .mobile-bottom-nav .nav-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    line-height: 1;
  }
  .mobile-bottom-nav .nav-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}


/* V3 — collapse category list ONLY on mobile; desktop retains the original sidebar */
@media (min-width: 761px) {
  .category-sidebar .category-sidebar-items {
    display: block !important;
  }
  .category-sidebar .sidebar-category {
    display: flex !important;
  }
}
@media (max-width: 760px) {
  .category-sidebar .category-sidebar-items {
    display: none !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    padding: 4px !important;
  }
  .category-sidebar.is-expanded .category-sidebar-items {
    display: grid !important;
  }
  .category-sidebar .category-sidebar-title {
    display: flex !important;
    width: 100% !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
}


/* V4: keep the original direct-child sidebar structure on desktop.
   Collapse/expand is strictly limited to mobile widths. */
@media (min-width: 761px) {
  .hero-category-layout .category-sidebar {
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-category-layout .category-sidebar > .sidebar-category {
    display: flex !important;
  }
}
@media (max-width: 760px) {
  .hero-category-layout .category-sidebar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    justify-content: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  .hero-category-layout .category-sidebar > .category-sidebar-title {
    grid-column: 1 / -1;
    min-height: 40px !important;
    height: 40px !important;
    cursor: pointer;
  }
  .hero-category-layout .category-sidebar:not(.is-expanded) > .sidebar-category {
    display: none !important;
  }
  .hero-category-layout .category-sidebar.is-expanded > .sidebar-category {
    display: flex !important;
    min-height: 36px !important;
    height: 36px !important;
    max-height: none !important;
    flex: 0 0 36px !important;
    padding: 4px 10px !important;
  }
}


/* V5 — compact mobile category panel; desktop rules remain untouched */
@media (max-width: 760px) {
  .hero-category-layout .category-sidebar {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: start !important;
    justify-content: flex-start !important;
    align-content: start !important;
    gap: 0 !important;
    padding: 0 0 5px !important;
    overflow: hidden !important;
  }
  .hero-category-layout .category-sidebar > .category-sidebar-title {
    flex: 0 0 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
  }
  .hero-category-layout .category-sidebar.is-expanded > .sidebar-category {
    flex: 0 0 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    gap: 9px !important;
    line-height: 1.2 !important;
  }
  .hero-category-layout .category-sidebar > .sidebar-category .sidebar-category-icon {
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
    object-fit: contain !important;
  }
}


/* V6 — exact mobile category spacing: 5px top/bottom, equal category rows */
@media (max-width: 760px) {
  .hero-category-layout .category-sidebar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 40px repeat(6, 44px) !important;
    align-content: start !important;
    justify-content: start !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 0 !important;
    padding: 5px 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .hero-category-layout .category-sidebar > .category-sidebar-title {
    grid-row: 1 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: -5px 0 0 !important;
    align-self: start !important;
  }
  .hero-category-layout .category-sidebar:not(.is-expanded) {
    grid-template-rows: 40px !important;
    padding: 0 !important;
  }
  .hero-category-layout .category-sidebar.is-expanded > .sidebar-category {
    display: flex !important;
    flex: none !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
  }
  .hero-category-layout .category-sidebar.is-expanded > .sidebar-category:first-of-type {
    margin-top: 5px !important;
  }
  .hero-category-layout .category-sidebar.is-expanded > .sidebar-category:last-of-type {
    margin-bottom: 5px !important;
  }
}

@media (max-width: 760px) {
  .hero-category-layout .category-sidebar.is-expanded {
    grid-template-rows: 40px repeat(6, 44px) !important;
    padding: 0 0 5px !important;
  }
  .hero-category-layout .category-sidebar.is-expanded > .category-sidebar-title {
    margin: 0 !important;
  }
  .hero-category-layout .category-sidebar.is-expanded > .sidebar-category:first-of-type {
    margin-top: 5px !important;
    height: 39px !important;
    min-height: 39px !important;
    max-height: 39px !important;
  }
  .hero-category-layout .category-sidebar.is-expanded > .sidebar-category:last-of-type {
    margin-bottom: 5px !important;
    height: 39px !important;
    min-height: 39px !important;
    max-height: 39px !important;
  }
}


/* V7 — exact equal distribution of the six mobile category rows */
@media (max-width: 760px) {
  .hero-category-layout > aside.category-sidebar#categories {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 0 5px !important;
    margin: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .hero-category-layout > aside.category-sidebar#categories > .category-sidebar-title {
    display: flex !important;
    flex: 0 0 40px !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 0 5px 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }
  .hero-category-layout > aside.category-sidebar#categories:not(.is-expanded) {
    height: auto !important;
    padding-bottom: 0 !important;
  }
  .hero-category-layout > aside.category-sidebar#categories:not(.is-expanded) > .sidebar-category {
    display: none !important;
  }
  .hero-category-layout > aside.category-sidebar#categories.is-expanded > .sidebar-category {
    display: flex !important;
    flex: 1 1 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    line-height: 1.2 !important;
  }
  .hero-category-layout > aside.category-sidebar#categories.is-expanded > .sidebar-category .sidebar-category-icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    flex: 0 0 25px !important;
    object-fit: contain !important;
  }
}


/* V8 — DESKTOP/WEB category sidebar spacing.
   The first and last category have 5px inset; the four middle rows
   share the remaining vertical space equally. Mobile styles are untouched. */
@media (min-width: 761px) {
  .hero-category-layout {
    align-items: stretch !important;
  }

  .hero-category-layout > aside.category-sidebar#categories {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    padding: 0 0 5px !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .hero-category-layout > aside.category-sidebar#categories > .category-sidebar-title {
    display: flex !important;
    flex: 0 0 40px !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 0 5px !important;
    box-sizing: border-box !important;
    align-items: center !important;
  }

  .hero-category-layout > aside.category-sidebar#categories > .sidebar-category {
    display: flex !important;
    flex: 1 1 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .hero-category-layout > aside.category-sidebar#categories > .sidebar-category:first-of-type {
    margin-top: 5px !important;
  }

  .hero-category-layout > aside.category-sidebar#categories > .sidebar-category:last-of-type {
    margin-bottom: 5px !important;
  }
}


/* V9 — PHONE ONLY: restore full logo, hide contact/admin strip, add spacing,
   make mobile content widths even, and ensure category toggle works. */
@media (max-width: 760px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body { margin: 0 !important; }

  /* Logo occupies its own clear row; address, phone and admin link are hidden. */
  .top-strip {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 0 0 !important;
    overflow: visible !important;
  }
  .top-strip-inner {
    display: flex !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow: visible !important;
  }
  .top-strip-logo {
    display: block !important;
    flex: 0 1 auto !important;
    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    max-width: min(190px, 70vw) !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
  }
  .top-contact,
  .top-contact .top-address,
  .top-contact .top-hotline,
  .top-contact .catalog-admin-link,
  .top-contact > i {
    display: none !important;
  }

  /* Search bar is a separate row with a visible 5px gap from the logo. */
  .site-header {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 5px 0 0 !important;
  }
  .site-header .header-main {
    display: flex !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
  }
  .header-search {
    display: flex !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .header-search input {
    flex: 1 1 auto !important;
    width: 1px !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }
  .header-search button { flex: 0 0 auto !important; }

  /* Consistent 12px side margins for the phone viewport. */
  .wrap,
  .hero-category-layout.wrap,
  #products > .wrap {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  main, .site-footer, .delivery-benefits-strip,
  .benefit-strip-top, .benefit-strip-footer {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-category-layout {
    width: calc(100% - 24px) !important;
    margin: 8px auto !important;
    padding: 0 !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  /* Collapsible categories on mobile only; title is a working button. */
  .hero-category-layout > #categories.category-sidebar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  #categories > #categoryToggle.category-sidebar-title {
    display: flex !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  #categories:not(.is-expanded) > .sidebar-category {
    display: none !important;
  }
  #categories.is-expanded > .sidebar-category {
    display: flex !important;
    flex: 0 0 38px !important;
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }
  #categories.is-expanded > .sidebar-category:last-child {
    margin-bottom: 5px !important;
  }
}


/* V10 — phone-only header cleanup and catalog edge alignment */
@media (max-width: 760px) {
  /* Hide the complete contact/admin cluster; keep the logo visible. */
  .top-strip .top-contact {
    display: none !important;
  }
  .top-strip .top-strip-inner {
    display: flex !important;
    width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  .top-strip .top-strip-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: min(190px, 70vw) !important;
    height: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  /* Remove only the duplicate catalog search; retain the header search. */
  #products .catalog-tools > .search-box,
  #products .catalog-tools > label.search-box {
    display: none !important;
  }
  #products .catalog-tools {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    gap: 8px !important;
  }
  #products .catalog-tools > select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Match catalog controls and product cards to the banner's left/right edges. */
  #products,
  #products.products-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  #products > .wrap {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  #products .catalog-heading,
  #products .catalog-tools,
  #products .product-grid,
  #products .empty-state {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  #products .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  #products .product-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* V11 — MOBILE ONLY: reliable category accordion with separate, spaced rows.
   Overrides legacy grid/flex sizing rules that caused category buttons to overlap. */
@media screen and (max-width: 760px) {
  #categories.category-sidebar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 42px !important;
    grid-auto-rows: 42px !important;
    align-content: start !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  #categories.category-sidebar > #categoryToggle.category-sidebar-title {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  #categories.category-sidebar:not(.is-expanded) {
    grid-template-rows: 42px !important;
    height: 42px !important;
  }

  #categories.category-sidebar:not(.is-expanded) > .sidebar-category {
    display: none !important;
  }

  #categories.category-sidebar.is-expanded {
    grid-template-rows: 42px repeat(6, 42px) !important;
    height: auto !important;
    min-height: 294px !important;
    overflow: visible !important;
  }

  #categories.category-sidebar.is-expanded > .sidebar-category {
    display: flex !important;
    grid-column: 1 !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    position: static !important;
    float: none !important;
    transform: none !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
  }

  #categories.category-sidebar.is-expanded > .sidebar-category:nth-of-type(1) { grid-row: 2 !important; }
  #categories.category-sidebar.is-expanded > .sidebar-category:nth-of-type(2) { grid-row: 3 !important; }
  #categories.category-sidebar.is-expanded > .sidebar-category:nth-of-type(3) { grid-row: 4 !important; }
  #categories.category-sidebar.is-expanded > .sidebar-category:nth-of-type(4) { grid-row: 5 !important; }
  #categories.category-sidebar.is-expanded > .sidebar-category:nth-of-type(5) { grid-row: 6 !important; }
  #categories.category-sidebar.is-expanded > .sidebar-category:nth-of-type(6) { grid-row: 7 !important; }

  #categories.category-sidebar.is-expanded > .sidebar-category .sidebar-category-icon {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    flex: 0 0 25px !important;
    object-fit: contain !important;
  }
}


/* V13 — MOBILE ONLY: rebuild the category accordion as a normal vertical list.
   Avoid grid row placement and legacy positioning that caused items to overlap. */
@media screen and (max-width: 760px) {
  #categories.category-sidebar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  #categories.category-sidebar > #categoryToggle.category-sidebar-title {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    transform: none !important;
    order: 0 !important;
    flex: 0 0 44px !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    z-index: 1 !important;
  }

  #categories.category-sidebar:not(.is-expanded) > .sidebar-category {
    display: none !important;
  }

  #categories.category-sidebar.is-expanded > .sidebar-category {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;
    transform: none !important;
    order: 1 !important;
    flex: 0 0 46px !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    z-index: auto !important;
  }

  #categories.category-sidebar.is-expanded > .sidebar-category + .sidebar-category {
    border-top: 1px solid rgba(0,0,0,.06) !important;
  }

  #categories.category-sidebar.is-expanded > .sidebar-category .sidebar-category-icon {
    display: block !important;
    position: static !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }
}


/* V14 — MOBILE accordion flow: expanded categories push the banner downward.
   Six category rows are exactly 30px high. Desktop layout is not changed. */
@media screen and (max-width: 760px) {
  .hero-category-layout.wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .hero-category-layout.wrap > #categories.category-sidebar {
    display: flex !important;
    flex: 0 0 auto !important;
    order: 0 !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-category-layout.wrap > #categories.category-sidebar > #categoryToggle {
    display: flex !important;
    flex: 0 0 42px !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    position: relative !important;
    inset: auto !important;
  }

  .hero-category-layout.wrap > #categories.category-sidebar:not(.is-expanded) > .sidebar-category {
    display: none !important;
  }

  .hero-category-layout.wrap > #categories.category-sidebar.is-expanded > .sidebar-category {
    display: flex !important;
    flex: 0 0 30px !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;
    transform: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    line-height: 30px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .hero-category-layout.wrap > #categories.category-sidebar.is-expanded > .sidebar-category .sidebar-category-icon {
    display: block !important;
    position: static !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  .hero-category-layout.wrap > .hero-banner-carousel {
    display: block !important;
    order: 1 !important;
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
}

/* V17 — Editable public policy pages and admin content manager */
.policy-admin-grid { display:grid; grid-template-columns:minmax(220px,1fr) minmax(220px,1fr); gap:12px; margin:12px 0; }
.policy-content-manager textarea { width:100%; min-height:220px; resize:vertical; line-height:1.6; }
.policy-modal { position:fixed; inset:0; z-index:10050; display:flex; align-items:center; justify-content:center; padding:18px; }
.policy-modal.hidden { display:none !important; }
.policy-modal-backdrop { position:absolute; inset:0; background:rgba(12,20,36,.58); }
.policy-modal-panel { position:relative; z-index:1; width:min(760px,100%); max-height:min(82vh,820px); overflow:auto; background:#fff; color:#263247; border-radius:14px; padding:28px; box-shadow:0 18px 60px rgba(0,0,0,.24); }
.policy-modal-panel h2 { margin:0 42px 18px 0; color:#172b4d; font-size:24px; }
.policy-modal-close { position:absolute; top:12px; right:14px; width:36px; height:36px; border:0; border-radius:50%; background:#f1f3f7; color:#27364d; font-size:26px; cursor:pointer; }
.policy-modal-body { font-size:15px; line-height:1.75; overflow-wrap:anywhere; }
.policy-modal-body p { margin:0 0 12px; white-space:pre-wrap; }
.policy-modal-body ul,.policy-modal-body ol { margin:0 0 14px; padding-left:24px; }
body.policy-modal-open { overflow:hidden; }
@media(max-width:640px) {
 .policy-admin-grid { grid-template-columns:1fr; }
 .policy-modal { padding:10px; }
 .policy-modal-panel { padding:22px 18px; max-height:88vh; border-radius:12px; }
 .policy-modal-panel h2 { font-size:20px; }
}


/* V18 — Chuẩn hóa cỡ chữ nội dung chính sách */
.policy-modal-panel .eyebrow {
  font-size: 12px;
  font-weight: 600;
}
.policy-modal-panel h2 {
  font-size: 14px !important;
  line-height: 1.4;
  font-weight: 700;
}
.policy-modal-body {
  font-size: 12px;
  line-height: 1.6;
}
.policy-modal-body p,
.policy-modal-body li {
  font-size: 12px;
}

/* V19 — In đậm tiêu đề các mục được đánh số */
.policy-modal-body .policy-numbered-heading { font-weight:700; margin-top:16px; margin-bottom:10px; }
.policy-modal-body .policy-numbered-heading strong { font-weight:700; }

/* V20 — Chỉ hiện trình chỉnh sửa sau khi chọn một mục */
#policyEditorFields.hidden { display:none !important; }
.policy-selector-row { grid-template-columns:minmax(260px, 560px); }
#policyEditorFields { margin-top:12px; }


/* V21 — Gọn và cân đối giao diện quản trị; chỉ áp dụng bên trong admin */
.admin-content {
  width: min(1440px, calc(100% - 24px)) !important;
  margin: 10px auto 24px !important;
}
.admin-heading-compact {
  margin: 0 0 5px !important;
  min-height: 30px;
}
.admin-heading-title { display: none !important; }
.admin-stats { display: none !important; }
.admin-dashboard > .card-panel,
.admin-dashboard > .admin-layout,
.admin-layout > .card-panel {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}
.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) !important;
  gap: 5px !important;
  align-items: start;
}
.admin-view .card-panel {
  padding: 12px !important;
  border-radius: 8px !important;
}
.admin-view h2,
.admin-view .form-title h2,
.admin-view .manager-heading h2 {
  font-size: 14px !important;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
}
.admin-view h1 { font-size: 14px !important; }
.admin-view p,
.admin-view small,
.admin-view .muted,
.admin-view .field-hint,
.admin-view .eyebrow,
.admin-view label,
.admin-view .form-message,
.admin-view .stat-card,
.admin-view .admin-item small {
  font-size: 11px !important;
  line-height: 1.4;
}
.admin-view label { gap: 4px !important; }
.admin-view input:not([type="checkbox"]):not([type="file"]),
.admin-view select,
.admin-view button:not(.text-btn),
.admin-view .outline-btn,
.admin-view .primary-btn {
  min-height: 30px !important;
  height: 30px;
  box-sizing: border-box;
  padding: 4px 8px !important;
  font-size: 11px !important;
  border-radius: 5px;
}
.admin-view input[type="file"] {
  min-height: 30px;
  height: 30px;
  padding: 3px 6px !important;
  font-size: 11px !important;
}
.admin-view textarea {
  min-height: 60px;
  padding: 6px 8px !important;
  font-size: 11px !important;
  line-height: 1.45;
}
.admin-view .product-form {
  gap: 7px !important;
}
.admin-view .form-row { gap: 5px !important; }
.admin-view .manager-heading {
  gap: 8px;
  margin-bottom: 7px;
}
.admin-view .admin-item {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 5px 7px;
  min-height: 48px;
  border-radius: 6px;
}
.admin-view .admin-item img {
  width: 46px;
  height: 40px;
}
.admin-view .admin-item strong { font-size: 11px !important; }
.admin-view .admin-item-actions { gap: 4px; }
.admin-view .admin-item-actions button {
  min-height: 26px !important;
  height: 26px;
  padding: 2px 7px !important;
  font-size: 10px !important;
}
.admin-view .admin-product-list { gap: 5px !important; }
.admin-view .promo-admin-controls,
.admin-view .promo-admin-actions { gap: 5px !important; }
.admin-view .promo-admin-preview { gap: 5px !important; }
.admin-view .contact-links-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
  margin: 7px 0 !important;
}
.admin-view .policy-admin-grid {
  grid-template-columns: minmax(240px, 560px) !important;
  gap: 5px !important;
  margin: 7px 0 !important;
}
.admin-view .policy-content-manager textarea { min-height: 120px; }
.admin-view .admin-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0;
}
.admin-view .admin-pagination.hidden { display: none !important; }
.admin-view .admin-pagination button {
  min-width: 30px;
  width: 30px;
  height: 30px;
  min-height: 30px !important;
  padding: 0 !important;
  border: 1px solid var(--line, #dfe4ec);
  background: #fff;
  color: #26364d;
  cursor: pointer;
}
.admin-view .admin-pagination button.active {
  background: #174fe8;
  border-color: #174fe8;
  color: #fff;
  font-weight: 700;
}
@media (max-width: 760px) {
  .admin-content {
    width: calc(100% - 16px) !important;
    margin: 8px auto 18px !important;
  }
  .admin-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .admin-view .contact-links-grid { grid-template-columns: 1fr !important; }
  .admin-view .admin-item { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .admin-view .admin-item img { width: 40px; height: 38px; }
}


/* V22 — Cân đối hai khung quản lý sản phẩm trên desktop */
@media (min-width: 761px) {
  .admin-view .admin-layout {
    align-items: stretch !important;
  }
  .admin-view .product-manager {
    display: flex !important;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
  }
  .admin-view .product-manager .admin-pagination {
    margin-top: auto !important;
    padding-top: 8px;
  }
}


/* V24 — Hai khung Thêm sản phẩm / Danh sách sản phẩm cao bằng nhau, góc vuông */
@media (min-width: 761px) {
  .admin-view .admin-layout {
    align-items: stretch !important;
    grid-auto-rows: 1fr;
  }
  .admin-view .admin-layout > .product-form,
  .admin-view .admin-layout > .product-manager {
    align-self: stretch !important;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
  }
  .admin-view .product-manager {
    display: flex !important;
    flex-direction: column;
  }
  .admin-view .product-manager .admin-pagination {
    margin-top: auto !important;
  }
}

/* Góc vuông cho toàn bộ khung, ô nhập và nút trong trang quản trị */
.admin-view .card-panel,
.admin-view .pin-card,
.admin-view .admin-item,
.admin-view .admin-item img,
.admin-view input:not([type="checkbox"]),
.admin-view select,
.admin-view textarea,
.admin-view button,
.admin-view .outline-btn,
.admin-view .primary-btn,
.admin-view .image-preview img,
.admin-view .promo-admin-preview > *,
.admin-view .admin-pagination button {
  border-radius: 0 !important;
}


/* V25 — Giới hạn nền chân website theo đúng bề rộng khung tìm kiếm đầu trang */
.site-footer {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  overflow: hidden;
}
.site-footer > .footer-main.wrap,
.site-footer > .footer-bottom > .wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 760px) {
  .site-footer {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .site-footer > .footer-main.wrap,
  .site-footer > .footer-bottom > .wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* V26 — Hiệu ứng Noel nhẹ: tuyết rơi và cây thông mờ ở nền website */
body {
  position: relative;
  isolation: isolate;
  background-color: #fff;
}
body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: min(440px, 48vh);
  z-index: -1;
  pointer-events: none;
  background: url("assets/noel-trees-bg.svg") center bottom / 100% 100% no-repeat;
  opacity: .16;
}
body::before {
  content: "";
  position: fixed;
  inset: -12vh 0 0;
  z-index: 80;
  pointer-events: none;
  opacity: .38;
  background-image:
    radial-gradient(2px 2px at 24px 35px, rgba(255,255,255,.95) 98%, transparent),
    radial-gradient(2px 2px at 95px 115px, rgba(205,224,255,.9) 98%, transparent),
    radial-gradient(3px 3px at 165px 65px, rgba(255,255,255,.95) 98%, transparent),
    radial-gradient(1.5px 1.5px at 205px 155px, rgba(210,230,255,.9) 98%, transparent);
  background-size: 230px 210px, 270px 250px, 310px 280px, 190px 220px;
  animation: ninhall-snow-fall 18s linear infinite;
}
@keyframes ninhall-snow-fall {
  from { transform: translate3d(0, -8vh, 0); }
  to { transform: translate3d(24px, 105vh, 0); }
}
/* Không phủ hiệu ứng lên màn hình quản trị */
body:has(#adminView:not(.hidden))::before,
body:has(#adminView:not(.hidden))::after {
  display: none !important;
}
@media (max-width: 760px) {
  body::after {
    height: 260px;
    opacity: .12;
    background-size: auto 100%;
  }
  body::before {
    opacity: .25;
    background-size: 190px 190px, 230px 230px, 270px 250px, 160px 180px;
    animation-duration: 23s;
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}


/* V27 — Tạo khoảng đệm chân trang và chia đều ba cột */
.site-footer {
  box-sizing: border-box !important;
}
.site-footer > .footer-main.wrap {
  width: 100% !important;
  max-width: 100% !important;
  padding: 28px 40px 24px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 36px !important;
  align-items: start !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.site-footer > .footer-main.wrap > section {
  min-width: 0 !important;
  width: 100% !important;
  justify-self: stretch !important;
}
.site-footer .footer-useful-grid {
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.site-footer > .footer-bottom > .wrap {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 40px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
@media (max-width: 760px) {
  .site-footer > .footer-main.wrap {
    padding: 22px 16px 18px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
  }
  .site-footer > .footer-main.wrap > .footer-support {
    grid-column: 1 / -1 !important;
  }
  .site-footer > .footer-bottom > .wrap {
    padding: 0 16px !important;
  }
}


/* V28 — Tuyết bông tuyết Noel tinh tế, không cản nội dung website */
body::before {
  display: none !important; /* Thay lớp tuyết chấm cũ bằng bông tuyết chuyển động */
}
.noel-snow-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
}
.noel-snow-layer span {
  position: absolute;
  top: -12vh;
  left: var(--snow-left, 50%);
  color: rgba(154, 184, 220, .48);
  font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif;
  font-size: var(--snow-size, 15px);
  line-height: 1;
  text-shadow: 0 0 5px rgba(255,255,255,.9), 0 0 9px rgba(160,195,235,.28);
  opacity: var(--snow-opacity, .65);
  animation: ninhall-snowflake-fall var(--snow-duration, 17s) linear var(--snow-delay, 0s) infinite;
  will-change: transform;
}
.noel-snow-layer span:nth-child(1)  { --snow-left: 4%;  --snow-size: 15px; --snow-duration: 19s; --snow-delay: -13s; }
.noel-snow-layer span:nth-child(2)  { --snow-left: 9%;  --snow-size: 11px; --snow-duration: 24s; --snow-delay: -4s; }
.noel-snow-layer span:nth-child(3)  { --snow-left: 15%; --snow-size: 18px; --snow-duration: 21s; --snow-delay: -17s; }
.noel-snow-layer span:nth-child(4)  { --snow-left: 22%; --snow-size: 12px; --snow-duration: 17s; --snow-delay: -8s; }
.noel-snow-layer span:nth-child(5)  { --snow-left: 29%; --snow-size: 13px; --snow-duration: 25s; --snow-delay: -20s; }
.noel-snow-layer span:nth-child(6)  { --snow-left: 35%; --snow-size: 17px; --snow-duration: 20s; --snow-delay: -2s; }
.noel-snow-layer span:nth-child(7)  { --snow-left: 42%; --snow-size: 10px; --snow-duration: 23s; --snow-delay: -15s; }
.noel-snow-layer span:nth-child(8)  { --snow-left: 48%; --snow-size: 16px; --snow-duration: 18s; --snow-delay: -6s; }
.noel-snow-layer span:nth-child(9)  { --snow-left: 55%; --snow-size: 12px; --snow-duration: 26s; --snow-delay: -22s; }
.noel-snow-layer span:nth-child(10) { --snow-left: 61%; --snow-size: 15px; --snow-duration: 20s; --snow-delay: -10s; }
.noel-snow-layer span:nth-child(11) { --snow-left: 67%; --snow-size: 11px; --snow-duration: 22s; --snow-delay: -18s; }
.noel-snow-layer span:nth-child(12) { --snow-left: 73%; --snow-size: 18px; --snow-duration: 24s; --snow-delay: -5s; }
.noel-snow-layer span:nth-child(13) { --snow-left: 79%; --snow-size: 13px; --snow-duration: 19s; --snow-delay: -14s; }
.noel-snow-layer span:nth-child(14) { --snow-left: 84%; --snow-size: 16px; --snow-duration: 25s; --snow-delay: -9s; }
.noel-snow-layer span:nth-child(15) { --snow-left: 90%; --snow-size: 12px; --snow-duration: 21s; --snow-delay: -19s; }
.noel-snow-layer span:nth-child(16) { --snow-left: 96%; --snow-size: 17px; --snow-duration: 23s; --snow-delay: -3s; }
.noel-snow-layer span:nth-child(17) { --snow-left: 18%; --snow-size: 9px;  --snow-duration: 28s; --snow-delay: -24s; --snow-opacity: .42; }
.noel-snow-layer span:nth-child(18) { --snow-left: 58%; --snow-size: 9px;  --snow-duration: 27s; --snow-delay: -12s; --snow-opacity: .42; }
.noel-snow-layer span:nth-child(19) { --snow-left: 76%; --snow-size: 10px; --snow-duration: 29s; --snow-delay: -21s; --snow-opacity: .42; }
.noel-snow-layer span:nth-child(20) { --snow-left: 93%; --snow-size: 9px;  --snow-duration: 26s; --snow-delay: -7s; --snow-opacity: .42; }

@keyframes ninhall-snowflake-fall {
  0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  25%  { transform: translate3d(22px, 22vh, 0) rotate(80deg); }
  50%  { transform: translate3d(-12px, 48vh, 0) rotate(180deg); }
  75%  { transform: translate3d(20px, 74vh, 0) rotate(260deg); }
  100% { transform: translate3d(-8px, 112vh, 0) rotate(360deg); }
}

/* Cây thông watermark chỉ nằm sát nền dưới, độ tương phản thấp để không che sản phẩm */
body::after {
  height: min(390px, 42vh) !important;
  opacity: .105 !important;
  background-position: center bottom !important;
  background-size: 100% 100% !important;
}

/* Lớp trang trí không xuất hiện trong khu vực quản trị */
body:has(#adminView:not(.hidden)) .noel-snow-layer {
  display: none !important;
}
@media (max-width: 760px) {
  .noel-snow-layer span {
    font-size: calc(var(--snow-size, 15px) * .78);
    opacity: calc(var(--snow-opacity, .65) * .72);
  }
  body::after {
    height: 230px !important;
    opacity: .085 !important;
    background-size: auto 100% !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .noel-snow-layer span { animation: none !important; }
}


/* V29 — Christmas background refresh: visible trees, festive edge accents, clear product surfaces */
body {
  isolation: isolate !important;
  background-color: #f7f9fc !important;
  background-image:
    radial-gradient(ellipse at 0% 8%, rgba(190, 34, 48, .075), transparent 31%),
    radial-gradient(ellipse at 100% 10%, rgba(25, 112, 75, .085), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f8fbff 52%, #f4f8f5 100%) !important;
  background-attachment: fixed !important;
}
body::after {
  content: "";
  display: block !important;
  position: fixed !important;
  inset: auto 0 0 !important;
  height: min(560px, 62vh) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image: url("assets/noel-trees-bg.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center bottom !important;
  background-size: min(100%, 1700px) 100% !important;
  opacity: .34 !important;
}
body > *:not(.noel-snow-layer) {
  position: relative;
  z-index: 1;
}
.noel-snow-layer {
  z-index: 50 !important;
}
body:has(#adminView:not(.hidden)) {
  background: #f4f6fb !important;
}
body:has(#adminView:not(.hidden))::after {
  display: none !important;
}
body:has(#adminView:not(.hidden)) .noel-snow-layer {
  display: none !important;
}
/* Keep product tiles, controls and information panels crisp above the themed page background */
.product-card, .product-item, .product-card-inner,
.category-sidebar, .benefit-grid, .benefit-card,
.site-footer, .site-header, .hero-category-layout {
  position: relative;
}
@media (max-width: 760px) {
  body::after {
    height: 300px !important;
    background-size: auto 100% !important;
    opacity: .22 !important;
  }
  body {
    background-image:
      radial-gradient(ellipse at 0% 5%, rgba(190, 34, 48, .055), transparent 38%),
      radial-gradient(ellipse at 100% 5%, rgba(25, 112, 75, .06), transparent 38%),
      linear-gradient(180deg, #fff 0%, #f8fbff 60%, #f5f9f6 100%) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .noel-snow-layer span { animation: none !important; }
}


/* V30 — Christmas scenery layer: visible trees on page margins, never over content */
html { background: #f5f8fc !important; }
body {
  position: relative !important;
  isolation: isolate !important;
  background-color: #f7f9fc !important;
  background-image:
    radial-gradient(ellipse at 3% 12%, rgba(190, 34, 48, .10), transparent 28%),
    radial-gradient(ellipse at 97% 12%, rgba(25, 112, 75, .12), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fbff 55%, #f1f7f3 100%) !important;
}
/* Disable the old pseudo-element tree layer; V30 uses a dedicated DOM layer. */
body::after { display: none !important; }
.noel-tree-background {
  position: fixed !important;
  inset: auto 0 0 0 !important;
  height: min(680px, 76vh) !important;
  z-index: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  background-image: url("assets/noel-trees-bg.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center bottom !important;
  background-size: min(100%, 1800px) 100% !important;
  opacity: .62 !important;
}
/* All real page content stays above the decorative scenery. */
body > *:not(.noel-tree-background):not(.admin-view) {
  position: relative;
  z-index: 1;
}
/* V31 FIX: keep the admin screen fixed to the viewport; never let theme layering push it into document flow. */
.admin-view {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  height: 100dvh !important;
  overflow: auto !important;
  background: #f4f6fb !important;
}
.admin-view.hidden { display: none !important; }
body > .noel-snow-layer { z-index: 50 !important; }
body:has(#adminView:not(.hidden)) {
  background: #f4f6fb !important;
}
body:has(#adminView:not(.hidden)) .noel-tree-background,
body:has(#adminView:not(.hidden)) .noel-snow-layer {
  display: none !important;
}
@media (max-width: 760px) {
  .noel-tree-background {
    height: 430px !important;
    background-size: 100% 100% !important;
    opacity: .42 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .noel-tree-background { opacity: .52 !important; }
}


/* V31 — Restore original admin overlay placement above the storefront */
body > #adminView { position: fixed !important; inset: 0 !important; z-index: 1000 !important; }
body:has(#adminView:not(.hidden)) > #adminView { display: block !important; }
body:has(#adminView:not(.hidden)) > #adminView.hidden { display: none !important; }


/* V32 — Snowflakes enlarged to match the user's Christmas reference image. */
.noel-snow-layer {
  z-index: 2 !important;
}
body > *:not(.noel-tree-background):not(.noel-snow-layer):not(.admin-view) {
  position: relative;
  z-index: 1;
}
.noel-snow-layer span {
  font-size: var(--snow-size, 48px) !important;
  color: rgba(226, 239, 255, .78) !important;
  opacity: var(--snow-opacity, .58) !important;
  text-shadow: 0 0 7px rgba(255,255,255,.95), 0 0 16px rgba(177,211,255,.58) !important;
}
.noel-snow-layer span:nth-child(1)  { --snow-left: 3%;  --snow-size: 58px; --snow-duration: 25s; --snow-delay: -13s; --snow-opacity: .60; }
.noel-snow-layer span:nth-child(2)  { --snow-left: 9%;  --snow-size: 42px; --snow-duration: 29s; --snow-delay: -4s;  --snow-opacity: .48; }
.noel-snow-layer span:nth-child(3)  { --snow-left: 15%; --snow-size: 52px; --snow-duration: 27s; --snow-delay: -17s; --snow-opacity: .55; }
.noel-snow-layer span:nth-child(4)  { --snow-left: 22%; --snow-size: 38px; --snow-duration: 24s; --snow-delay: -8s;  --snow-opacity: .48; }
.noel-snow-layer span:nth-child(5)  { --snow-left: 29%; --snow-size: 46px; --snow-duration: 30s; --snow-delay: -20s; --snow-opacity: .52; }
.noel-snow-layer span:nth-child(6)  { --snow-left: 35%; --snow-size: 60px; --snow-duration: 26s; --snow-delay: -2s;  --snow-opacity: .58; }
.noel-snow-layer span:nth-child(7)  { --snow-left: 42%; --snow-size: 36px; --snow-duration: 31s; --snow-delay: -15s; --snow-opacity: .45; }
.noel-snow-layer span:nth-child(8)  { --snow-left: 48%; --snow-size: 50px; --snow-duration: 25s; --snow-delay: -6s;  --snow-opacity: .55; }
.noel-snow-layer span:nth-child(9)  { --snow-left: 55%; --snow-size: 40px; --snow-duration: 32s; --snow-delay: -22s; --snow-opacity: .48; }
.noel-snow-layer span:nth-child(10) { --snow-left: 61%; --snow-size: 56px; --snow-duration: 27s; --snow-delay: -10s; --snow-opacity: .58; }
.noel-snow-layer span:nth-child(11) { --snow-left: 67%; --snow-size: 38px; --snow-duration: 29s; --snow-delay: -18s; --snow-opacity: .46; }
.noel-snow-layer span:nth-child(12) { --snow-left: 73%; --snow-size: 62px; --snow-duration: 30s; --snow-delay: -5s;  --snow-opacity: .58; }
.noel-snow-layer span:nth-child(13) { --snow-left: 79%; --snow-size: 44px; --snow-duration: 25s; --snow-delay: -14s; --snow-opacity: .52; }
.noel-snow-layer span:nth-child(14) { --snow-left: 84%; --snow-size: 54px; --snow-duration: 31s; --snow-delay: -9s;  --snow-opacity: .56; }
.noel-snow-layer span:nth-child(15) { --snow-left: 90%; --snow-size: 40px; --snow-duration: 26s; --snow-delay: -19s; --snow-opacity: .50; }
.noel-snow-layer span:nth-child(16) { --snow-left: 96%; --snow-size: 58px; --snow-duration: 29s; --snow-delay: -3s;  --snow-opacity: .58; }
.noel-snow-layer span:nth-child(17) { --snow-left: 18%; --snow-size: 34px; --snow-duration: 33s; --snow-delay: -24s; --snow-opacity: .40; }
.noel-snow-layer span:nth-child(18) { --snow-left: 58%; --snow-size: 36px; --snow-duration: 32s; --snow-delay: -12s; --snow-opacity: .42; }
.noel-snow-layer span:nth-child(19) { --snow-left: 76%; --snow-size: 34px; --snow-duration: 34s; --snow-delay: -21s; --snow-opacity: .40; }
.noel-snow-layer span:nth-child(20) { --snow-left: 93%; --snow-size: 38px; --snow-duration: 30s; --snow-delay: -7s;  --snow-opacity: .44; }
@media (max-width: 760px) {
  .noel-snow-layer span {
    font-size: calc(var(--snow-size, 48px) * .72) !important;
    opacity: calc(var(--snow-opacity, .58) * .86) !important;
  }
}
body:has(#adminView:not(.hidden)) .noel-snow-layer { display: none !important; }

/* V33 — Mobile footer: stack sections, keep policy links in two columns, store info below */
@media (max-width: 650px) {
  .site-footer > .footer-main.wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 14px 20px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .site-footer > .footer-main.wrap > .footer-support,
  .site-footer > .footer-main.wrap > .footer-useful,
  .site-footer > .footer-main.wrap > .footer-store {
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }
  .site-footer > .footer-main.wrap > .footer-useful {
    order: 2 !important;
  }
  .site-footer > .footer-main.wrap > .footer-store {
    order: 3 !important;
  }
  .site-footer .footer-useful-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .site-footer .footer-useful-grid > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    min-height: 52px !important;
    height: auto !important;
    padding: 7px 8px !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .site-footer .footer-useful-grid .footer-card-icon {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
  }
  .site-footer .footer-useful-grid .footer-card-icon svg {
    width: 19px !important;
    height: 19px !important;
  }
  .site-footer > .footer-main.wrap > .footer-store .footer-store-plain,
  .site-footer > .footer-main.wrap > .footer-store .footer-store-contacts,
  .site-footer > .footer-main.wrap > .footer-store .footer-support-hours {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .site-footer .footer-store-plain,
  .site-footer .footer-store-plain p,
  .site-footer .footer-store-plain a,
  .site-footer .footer-store-contact-line {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
  .site-footer .footer-store-contact-line {
    display: block !important;
    max-width: 100% !important;
    line-height: 1.55 !important;
  }
  .site-footer > .footer-bottom > .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }
}


/* V43 — Khôi phục giao diện mặc định, bỏ toàn bộ trang trí Noel */
html, body {
  background: #fff !important;
  background-image: none !important;
}
body::before, body::after,
.noel-snow-layer, .noel-tree-background {
  display: none !important;
  content: none !important;
  background-image: none !important;
  animation: none !important;
}

/* Footer: cùng bề ngang khu vực nội dung, có khoảng đệm và ba cột bằng nhau */
.site-footer {
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  background: #f5f6fc !important;
  color: #17243a !important;
}
.site-footer > .footer-main.wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 28px 28px 24px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: start !important;
  justify-content: stretch !important;
  box-sizing: border-box !important;
}
.site-footer > .footer-main.wrap > section {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  justify-self: stretch !important;
  box-sizing: border-box !important;
}
.site-footer .footer-useful-grid {
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.site-footer > .footer-bottom > .wrap {
  width: 100% !important;
  max-width: none !important;
  padding: 0 28px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 650px) {
  .site-footer {
    width: calc(100% - 24px) !important;
  }
  .site-footer > .footer-main.wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    padding: 22px 16px 18px !important;
  }
  .site-footer > .footer-main.wrap > .footer-support,
  .site-footer > .footer-main.wrap > .footer-useful,
  .site-footer > .footer-main.wrap > .footer-store {
    grid-column: 1 !important;
    width: 100% !important;
  }
  .site-footer .footer-useful-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .site-footer > .footer-bottom > .wrap {
    padding: 0 16px !important;
  }
}


/* V44 — Keep product detail modal centered in the viewport on desktop and mobile. */
#productModal.modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 20px !important;
  display: grid;
  place-items: center !important;
  box-sizing: border-box !important;
}
#productModal.modal.hidden { display: none !important; }
#productModal .modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
#productModal .modal-panel {
  position: relative !important;
  z-index: 1 !important;
  margin: auto !important;
  width: min(760px, 100%) !important;
  max-height: min(90vh, 90dvh) !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}
@media (max-width: 640px) {
  #productModal.modal { padding: 12px !important; }
  #productModal .modal-panel { width: 100% !important; max-height: 88vh !important; max-height: 88dvh !important; padding: 16px !important; }
}

/* V45 — Can le thanh tieu de quan tri theo dung mep khung Banner */
.admin-top {
  padding-left: max(12px, calc((100% - 1440px) / 2)) !important;
  padding-right: max(12px, calc((100% - 1440px) / 2)) !important;
}
@media (max-width: 760px) {
  .admin-top {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* V46 — Thu gọn chiều cao chân trang: đệm trên/dưới tối đa 5px */
.site-footer > .footer-main.wrap {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}
.site-footer > .footer-bottom > .wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* V47 — Policy popups use the same viewport-centering behavior as product details. */
#policyModal.policy-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 20px !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
}
#policyModal.policy-modal.hidden { display: none !important; }
#policyModal .policy-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
#policyModal .policy-modal-panel {
  position: relative !important;
  z-index: 1 !important;
  margin: auto !important;
  width: min(760px, 100%) !important;
  max-height: min(90vh, 90dvh) !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  padding: 25px !important;
  border-radius: 12px !important;
}
@media (max-width: 640px) {
  #policyModal.policy-modal { padding: 12px !important; }
  #policyModal .policy-modal-panel {
    width: 100% !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    padding: 16px !important;
  }
}


/* V48 — Mobile search input white + fixed bottom navigation + safe page scrolling */
@media (max-width: 650px) {
  .site-header .header-main .header-search {
    background: #e51f2b !important;
    border-color: #e51f2b !important;
  }
  .site-header .header-main .header-search input,
  .site-header .header-main .header-search input[type="search"] {
    background: #fff !important;
    background-color: #fff !important;
    color: #263247 !important;
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    box-shadow: none !important;
  }
  .site-header .header-main .header-search input::placeholder {
    color: #9aa3b2 !important;
    opacity: 1;
  }
  .mobile-bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: calc(59px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(59px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    background: #fff !important;
    z-index: 10000 !important;
    transform: none !important;
    box-shadow: 0 -3px 12px rgba(24,36,58,.08) !important;
  }
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html {
    scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}


/* V49 — iPhone Safari: force true viewport-fixed bottom navigation and white search field */
@media (max-width: 760px) {
  #headerSearchForm { background: #e51f2b !important; }
  #headerSearchForm #searchInput,
  #headerSearchForm input[type="search"] {
    background: #fff !important;
    background-color: #fff !important;
    color: #263247 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
  body > .mobile-bottom-nav {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    display: flex !important;
    width: 100vw !important;
    height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    z-index: 2147483000 !important;
    transform: translate3d(0,0,0) !important;
    -webkit-transform: translate3d(0,0,0) !important;
    will-change: transform;
  }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; }
}
.zalo-contact-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 16px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
}
.zalo-contact-card {
  margin: auto !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}
@media (max-width: 700px) {
  .zalo-contact-overlay { align-items: center !important; padding: 10px !important; }
  .zalo-contact-card { width: 100% !important; max-height: calc(100dvh - 20px) !important; }
}

/* V50 — iPhone Safari: truly fixed bottom bar + stable modal scroll position */
@media screen and (max-width: 760px) {
  html, body {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
  }
  body > .mobile-bottom-nav,
  .mobile-bottom-nav {
    position: fixed !important;
    display: flex !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-around !important;
    background: #fff !important;
    border-top: 1px solid #e5e9f1 !important;
    box-shadow: 0 -3px 14px rgba(20,35,65,.10) !important;
    z-index: 2147483000 !important;
    transform: none !important;
    -webkit-transform: none !important;
    contain: none !important;
  }
  .mobile-bottom-nav a {
    flex: 1 1 20% !important;
    min-width: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 0 !important;
  }
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
  #headerSearchForm {
    background: #e51f2b !important;
    border: 1px solid #e51f2b !important;
  }
  #headerSearchForm #searchInput,
  #headerSearchForm input[type="search"] {
    background: #fff !important;
    background-color: #fff !important;
    color: #263247 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
  #headerSearchForm #searchInput::placeholder { color: #9aa3b2 !important; opacity: 1 !important; }
  #productModal.modal, #policyModal.policy-modal, .zalo-contact-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
  }
  #productModal .modal-panel, #policyModal .policy-modal-panel, .zalo-contact-card {
    margin: auto !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


/* V51: Logo là liên kết về trang chủ; điều hướng di động chỉ giữ các mục chức năng. */
.top-strip-logo-link { display:inline-flex; align-items:center; flex:0 0 auto; text-decoration:none; }
.top-strip-logo-link:focus-visible { outline:2px solid var(--blue); outline-offset:3px; border-radius:3px; }
.catalog-brand-section { scroll-margin-top: 110px; }
@media (max-width:650px) {
  .mobile-bottom-nav { justify-content:space-around; }
  .mobile-bottom-nav a { flex:1 1 0; }
  .catalog-brand-section { scroll-margin-top: 76px; }
}

/* V60: product prices become a direct phone contact link */
.contact-price-link{color:inherit;text-decoration:none;cursor:pointer}
.contact-price-link:hover{text-decoration:underline}


/* V62 — Tăng khoảng cách phía trên các cột tiêu đề chân trang thêm 9px. */
.site-footer > .footer-main.wrap {
  padding-top: 14px !important;
}


/* V63 — Header contact: 14px typography, bottom-aligned with logo, refreshed icons. */
@media (min-width: 761px) {
  .top-strip-inner { align-items: center !important; }
  .top-strip-inner .top-contact {
    align-self: stretch !important;
    display: flex !important;
    align-items: flex-end !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }
  .top-strip-inner .top-contact .top-address,
  .top-strip-inner .top-contact .top-hotline {
    display: inline-flex !important;
    align-items: flex-end !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
  .top-strip-inner .top-contact .top-address svg,
  .top-strip-inner .top-contact .top-hotline svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin-right: 6px !important;
    margin-bottom: 0 !important;
    opacity: 1 !important;
  }
}


/* HEADER ADMIN ICON — slightly larger and bottom-aligned with hotline text */
@media (min-width: 761px) {
  .top-strip-inner .top-contact .catalog-admin-link {
    display: inline-flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.15 !important;
    padding: 0 2px 0 !important;
    transform: translateY(1px) !important;
  }
  .top-strip-inner .top-contact .catalog-admin-link svg {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    margin: 0 !important;
    vertical-align: bottom !important;
  }
}


/* SEO semantic headings retain the existing product-detail visual design. */
.seo-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.detail-copy h1#modalTitle{font-size:14px!important;font-weight:800!important;line-height:1.4!important;margin:0 0 5px!important;color:#111827!important}
.detail-info-section h2.detail-seo-subheading{display:block;font-size:12px!important;font-weight:700!important;line-height:1.4!important;margin:0 0 3px!important;color:#ed2638!important}


/* SEO homepage introduction: concise, visible content without changing the store layout */
.home-intro{margin-top:14px;margin-bottom:8px;padding:0 2px;color:var(--text,#202938)}
.home-intro h2{margin:0 0 5px;font-size:14px;line-height:1.45;font-weight:800;letter-spacing:.1px;color:var(--text,#202938)}
.home-intro p{margin:0;font-size:12px;line-height:1.65;color:var(--muted,#667085)}
.home-intro a{color:var(--primary,#d71920);font-weight:700;text-decoration:none;white-space:nowrap}
@media(max-width:650px){.home-intro{margin-top:10px;margin-bottom:6px;padding:0 1px}.home-intro h2{font-size:12px;line-height:1.45}.home-intro p{font-size:11px;line-height:1.55}}


/* Refined centered homepage introduction - Laptop Ninh All */
.home-intro{
  margin:16px auto 12px;
  padding:18px 20px 15px;
  text-align:center;
  color:var(--text,#202938);
  box-sizing:border-box;
}
.home-intro-accent{
  display:block;
  width:72px;
  height:4px;
  margin:0 auto 10px;
  border-radius:99px;
  background:#d71920;
}
.home-intro h2{
  margin:0 0 10px;
  color:#d71920;
  font-size:20px;
  line-height:1.4;
  font-weight:800;
  letter-spacing:.15px;
  text-align:center;
}
.home-intro p{margin:0;text-align:center}
.home-intro .home-intro-description{
  color:#5f6978;
  font-size:15px;
  line-height:1.65;
}
.home-intro .home-intro-highlights{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 10px;
  margin-top:7px;
  color:#667085;
  font-size:14px;
  line-height:1.6;
}
.home-intro-highlights strong{color:#263244;font-weight:750}
.home-intro-highlights .home-intro-installment{color:#238447}
.home-intro a{color:#d71920;font-weight:800;text-decoration:none;white-space:nowrap}
@media(max-width:650px){
  .home-intro{margin:11px auto 8px;padding:13px 12px 11px}
  .home-intro-accent{width:54px;height:3px;margin-bottom:8px}
  .home-intro h2{font-size:15px;line-height:1.45;margin-bottom:7px}
  .home-intro .home-intro-description{font-size:12px;line-height:1.55}
  .home-intro .home-intro-highlights{gap:4px 7px;margin-top:6px;font-size:11px;line-height:1.5}
}


/* V53 — Đồng bộ nền popup sản phẩm trên tất cả danh mục.
   Giảm độ tối để nội dung trang phía sau vẫn nhìn thấy rõ khi mở chi tiết. */
#productModal.modal {
  background: transparent !important;
}
#productModal .modal-backdrop {
  background: rgba(12, 20, 36, 0.36) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}


/* V56 — Stable product backdrop: preserve homepage paint behind the dialog. */
#productModal.modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
}
#productModal.modal.hidden { display: none !important; }
#productModal .modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: rgba(16, 23, 37, .36) !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  pointer-events: auto !important;
}
#productModal .modal-panel {
  position: relative !important;
  z-index: 1 !important;
  margin: auto !important;
  background: #fff !important;
}
@media (max-width: 650px) {
  #productModal.modal { padding: 12px !important; }
}

/* V71: product image links to its own detail page in a new browser tab. */
.product-image { position: relative; }
.product-detail-tab-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.product-image .card-gallery-arrow,
.product-image .card-gallery-count,
.product-image .tag-featured { z-index: 2; }
