/* Product-only rules: preserve existing header, articles and their image layouts. */
#san-pham .home-product-inner{min-width:0;max-width:1180px}
#san-pham .product-grid{min-width:0;max-width:100%}
#san-pham .product-grid.is-paged{display:flex;gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--shop-line,#647084) transparent;-webkit-overflow-scrolling:touch;align-items:stretch;padding-bottom:8px}
#san-pham .product-grid.is-paged{align-items:flex-start;box-sizing:content-box}
#san-pham .home-products-page{display:grid;grid-template-columns:repeat(var(--product-page-columns,4),minmax(0,1fr));gap:18px;align-items:stretch;align-content:start;align-self:flex-start;flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always}
#san-pham .product-card{box-sizing:border-box;min-width:0;height:100%;border-radius:14px;background:var(--shop-card,#181e29)}
#san-pham .product-card-media{display:block!important;flex:none;position:relative;isolation:isolate;width:100%;height:auto!important;aspect-ratio:1!important;overflow:hidden;background:#f1f3f5;border-radius:13px 13px 0 0}
#san-pham .product-card-media>img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:1;object-fit:cover!important;object-position:center;transform:none!important;margin:0!important;border:0;padding:0!important}
#san-pham .product-card-media>img[data-nd-watermark-cover],#san-pham .product-card-media>img[data-nd-watermark-overlay]{object-fit:cover!important}
#san-pham .product-badge{position:absolute;top:10px;left:10px;z-index:5;max-width:calc(100% - 20px);padding:5px 9px;box-sizing:border-box;white-space:nowrap;border:1px solid rgba(255,255,255,.65);border-radius:999px;background:#a60015;color:#fff!important;font-size:11px;line-height:1.4;font-weight:700;text-shadow:none;pointer-events:none;box-shadow:0 2px 6px rgba(0,0,0,.18)}
#san-pham .product-card-body{padding:15px;gap:10px;min-width:0}
#san-pham .product-card h3{font-size:17px;line-height:1.45;margin:0;min-height:4.35em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-shadow:none}
#san-pham .product-card h3 a{color:var(--shop-text,#f5f7fb)!important;opacity:1}
#san-pham .product-card-desc{color:var(--shop-muted,#bbc5d3);opacity:1}
#san-pham .product-card-rating{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;color:var(--shop-muted,#bbc5d3);font-size:11px;line-height:1.4;min-width:0}
#san-pham .product-rating-stars{font-family:Arial,sans-serif;font-size:18px;letter-spacing:1px;line-height:1;color:var(--shop-muted,#bbc5d3);white-space:nowrap}
#san-pham .product-sale-label{display:block;padding:0;border:0;border-radius:0;background:transparent;font-size:11px;font-weight:500;line-height:1.4;color:var(--shop-muted,#bbc5d3)}
#san-pham .product-card-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:8px;min-width:0}
#san-pham .product-card-actions a{display:flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;min-width:0;min-height:44px;padding:10px 6px;border-radius:8px;font-size:13px;font-weight:700;line-height:1.3;text-decoration:none;white-space:nowrap;transition:background-color .15s,border-color .15s}
#san-pham .product-card-actions .product-detail-btn{background:transparent;color:var(--shop-text,#f5f7fb);border:1px solid var(--shop-line,#46505e)}
#san-pham .product-card-actions .product-detail-btn:hover{border-color:var(--shop-accent,#ff2539);color:var(--shop-accent,#ff2539)}
#san-pham .product-card-actions a:focus-visible{outline:3px solid var(--shop-accent,#ff2539);outline-offset:3px}
@media(max-width:760px){#san-pham .product-card-actions{grid-template-columns:minmax(0,1fr);gap:6px}#san-pham .product-card-actions a{min-height:44px;font-size:12px}#san-pham .product-card-rating{gap:4px;font-size:10px}#san-pham .product-rating-stars{font-size:17px}#san-pham .product-card-actions .product-detail-btn{min-height:36px;padding:7px 5px}#san-pham .product-card-actions .product-detail-btn i{font-size:10px}}
#san-pham .product-card-bottom{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:auto;border-top:1px solid var(--shop-line,#46505e);padding-top:12px}
#san-pham .product-price{font-size:17px;color:var(--shop-accent,#ff3949);font-weight:800;line-height:1.4}
#san-pham .product-view-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.3;white-space:normal;color:var(--shop-accent-text,#fff)!important;text-shadow:none}
#san-pham .home-product-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:18px}
#san-pham .home-product-pagination[hidden]{display:none}
#san-pham .home-product-pagination button{min-width:42px;min-height:42px;border:1px solid var(--shop-line,#46505e);border-radius:8px;padding:8px 12px;background:var(--shop-card,#181e29);color:var(--shop-text,#f5f7fb);font:inherit;font-size:13px;cursor:pointer}
#san-pham .home-product-pagination button:disabled{opacity:.4;cursor:default}
#san-pham .home-product-page-buttons{display:flex;gap:6px;max-width:60%;overflow:auto}
#san-pham .home-product-page-buttons button[aria-current=page]{background:var(--shop-accent,#ff2539);color:var(--shop-accent-text,#fff);border-color:var(--shop-accent,#ff2539)}
#san-pham .home-product-page-status{font-size:12px;color:var(--shop-muted,#bbc5d3);order:1}
#san-pham button:focus-visible,#homeProductsTrack:focus-visible{outline:3px solid var(--shop-accent,#ff2539);outline-offset:3px}
@media(max-width:760px){#san-pham .home-products-page{gap:12px}#san-pham .product-card-body{padding:12px;gap:9px}#san-pham .product-card h3{font-size:15px;line-height:1.45}#san-pham .product-price{font-size:15px}#san-pham .product-view-btn{font-size:12px;min-height:42px;padding:9px 6px}#san-pham .product-badge{top:7px;left:7px;font-size:10px;padding:4px 7px}#san-pham .home-product-page-buttons{max-width:50%}#san-pham .home-product-page-status{flex-basis:100%;text-align:center}.home-page .floating-contact-box{flex-direction:row!important;gap:7px!important;right:10px!important;bottom:10px!important}.home-page .floating-contact-box .contact-icon-btn{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;font-size:20px!important;animation:none!important;box-shadow:0 2px 8px rgba(0,0,0,.2)!important}.home-page .floating-contact-box .contact-icon-btn::before,.home-page .floating-contact-box .contact-icon-btn::after{display:none!important}#san-pham{padding-bottom:64px}}
@media(prefers-reduced-motion:reduce){#san-pham .product-grid.is-paged{scroll-behavior:auto}}
@media(max-width:760px){
  #san-pham .home-product-pagination{display:none}
  #san-pham .product-grid.is-paged{scrollbar-width:none;padding-bottom:0}
  #san-pham .product-grid.is-paged::-webkit-scrollbar{display:none}
}


/* Align home products with the shared article/content frame. 2026-10-26 */
#san-pham.home-product-section { padding-left: 0; padding-right: 0; }
#san-pham .home-product-inner {
      width: calc(100% - var(--site-side-space, 5%) - var(--site-side-space, 5%));
        max-width: var(--site-content-max, 1400px);
          margin-left: auto;
            margin-right: auto;
}

