/* Shared visual treatment for the existing catalog, article and checkout views. */
.subpage{background:#fffdf9;color:#2c2c2c;font-family:var(--font-body);font-size:14px;line-height:1.7}
.subpage .site-header,.subpage .site-footer{font-family:var(--font-body)}
.subpage-main{min-height:50vh;padding:30px var(--gutter) 80px}
.subpage-main .subpage-container{width:100%;max-width:none;padding:0;margin:0}
.subpage-main .subpage-container>.row{margin:0}
.subpage-main .subpage-container>.row>div{padding:0;min-width:0}
.subpage-main h1,.subpage-main h2,.subpage-main .title_center,.subpage-main .title_box_h h1,.subpage-main .title_tbh{font-family:var(--font-display);font-weight:400;line-height:1.35;letter-spacing:-.4px;color:#2c2c2c}
.subpage-main h1,.subpage-main .title_box_h h1{font-size:clamp(28px,3vw,44px)}
.subpage-main h2,.subpage-main .title_center{font-size:clamp(23px,2.2vw,34px)}
.subpage-main .breadcrumb,.subpage-main .link_top{background:transparent;border:0;padding:8px 0 20px;font-size:12px;color:#73665e}
.subpage-main .breadcrumb a,.subpage-main .link_top a{color:#73665e}
.subpage-main a:hover{color:#b44100}
.subpage-main .title_box_h,.subpage-main .top_box,.subpage-main .title_tbh{height:auto;background:none;border:0;border-bottom:1px solid #e7dfd7;padding:10px 0 20px;margin:0 0 25px}
.subpage-main .title_box_h h1,.subpage-main .title_center{margin:0}
.subpage-main .item_pro_h{margin:0 0 28px;padding:0 0 18px;background:#fcf8f4;border:1px solid #eee4dc;overflow:hidden}
.subpage-main .img_pro_b{height:auto;aspect-ratio:4/3;margin:0 0 16px;background:#f1eae4;overflow:hidden}
.subpage-main .img_pro_b img{width:100%;height:100%;object-fit:contain}
.subpage-main .item_pro_h .name_p,.subpage-main .item_pro_h .dm_p,.subpage-main .item_pro_h .gia,.subpage-main .item_pro_h .giagoc{padding-inline:15px}
.subpage-main .name_p,.subpage-main .name_p h3{font-family:var(--font-body);font-size:14px;line-height:1.6;font-weight:500;color:#2c2c2c}
.subpage-main .gia,.subpage-main .giakhuyenmai{color:#b44100;font-weight:600}
.subpage-main .box_nh1,.subpage-main .box_nh2,.subpage-main .box_nh4{background:#faf1e8;border:1px solid #eee4dc}
.subpage-main .box_nh1 img,.subpage-main .box_nh2 img,.subpage-main .box_nh4 img{max-width:100%;object-fit:cover}
.subpage-main input:not([type=checkbox]):not([type=radio]),.subpage-main select,.subpage-main textarea{max-width:100%;min-height:44px;border:1px solid #d5c9bf;border-radius:0;background:#fffdf9;color:#2c2c2c;padding:9px 12px;font-family:var(--font-body)}
.subpage-main input[type=submit],.subpage-main button,.subpage-main .button,.subpage-main .but_gh,.subpage-main .muangay{min-height:44px;background:#2c2c2c;color:#fff;border:1px solid #2c2c2c;padding:10px 18px;font-family:var(--font-body)}
.subpage-main input[type=submit]:hover,.subpage-main button:hover,.subpage-main .button:hover,.subpage-main .but_gh:hover,.subpage-main .muangay:hover{background:#b44100;border-color:#b44100;color:#fff}
.subpage-main table{max-width:100%}.subpage-main img{max-width:100%;height:auto}
.subpage-main .pagination>li>a,.subpage-main .pagination>li>span{color:#2c2c2c;border-color:#e7dfd7;min-width:44px;min-height:44px}
.subpage-main .pagination>.active>a,.subpage-main .pagination>.active>span{background:#b44100;border-color:#b44100;color:white}
.subpage .site-header .site-search input{min-height:40px}
.subpage .site-footer h2{font-family:var(--font-body);font-size:12px;font-weight:600}
@media(max-width:767px){.subpage-main{padding:20px var(--gutter) 50px}.subpage-main .row{margin-left:-8px;margin-right:-8px}.subpage-main [class*=col-]{padding-left:8px;padding-right:8px}.subpage-main .subpage-container>.row{margin:0}.subpage-main .subpage-container>.row>div{padding:0}.subpage-main .item_pro_h{margin-bottom:18px}.subpage-main .name_p,.subpage-main .name_p h3{font-size:13px}.subpage-main table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.subpage-main .title_box_h,.subpage-main .top_box{margin-bottom:18px}}

/* Product rows use a real grid: card heights never trap later floated columns. */
.subpage-main #the_h.category-intro{margin:0 0 20px;padding:0;color:#514942;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.subpage-main .category-intro p{margin:0 0 8px}
.subpage-main .category-intro p:last-child{margin-bottom:0}
.subpage-main .category-intro strong{font-weight:600}
.subpage-main .category-intro .category-intro-contact{font-size:12px;line-height:1.8;color:#73665e}
.subpage-main .category-intro-contact a{color:#a33b00;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.subpage-main .product-list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px;margin:0}
.subpage-main .product-list-grid::before,.subpage-main .product-list-grid::after{display:none}
.subpage-main .product-list-grid>div[class*="col-"]{float:none;width:auto;min-width:0;padding:0;display:flex}
.subpage-main .product-list-grid .item_pro_h{width:100%;height:100%;margin:0;display:flex;flex-direction:column}
.subpage-main .product-list-grid .img_pro_b{flex:none}
.subpage-main .product-list-grid .img_pro_b>a:not(.but_gh){display:block;width:100%;height:100%}
.subpage-main .product-list-grid .name_p{height:auto;min-height:3.2em;overflow:visible;overflow-wrap:anywhere;text-transform:none}
.subpage-main .product-list-grid .name_p h3{margin:0}
.subpage-main .product-list-grid .dm_p{overflow-wrap:anywhere}
.subpage-main .product-list-grid .gia{margin-top:auto}
@media(max-width:991px){.subpage-main .product-list-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}}
@media(max-width:479px){.subpage-main .product-list-grid{grid-template-columns:minmax(0,1fr);gap:18px}}

/* Shared database-backed category navigation for catalog and product detail pages. */
.product-page-layout{display:grid;grid-template-columns:clamp(230px,19vw,290px) minmax(0,1fr);gap:clamp(24px,3vw,48px);align-items:start}
.product-page-content{min-width:0}
.product-sidebar{min-width:0;position:sticky;top:130px;align-self:start}
.product-sidebar-panel{background:#fcf8f4;border:1px solid #e7dfd7}
.product-sidebar summary{list-style:none;cursor:pointer}
.product-sidebar summary::-webkit-details-marker{display:none}
.product-sidebar .product-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px;font-size:15px;font-weight:600;color:#2c2c2c}
.product-sidebar-heading>span{display:flex;align-items:center;gap:10px}
.product-sidebar-heading>span>.icon{color:#b44100;width:21px;height:21px;flex:none}
.product-sidebar .product-sidebar-chevron{width:16px;height:16px;flex:none;transition:transform .2s}
.product-sidebar-panel[open]>.product-sidebar-heading .product-sidebar-chevron{transform:rotate(180deg)}
.product-sidebar .product-sidebar-current{margin:0;padding:0 16px 16px;font-size:12px;line-height:1.7;color:#73665e;overflow-wrap:anywhere}
.product-sidebar-current strong{color:#b44100;font-weight:500}
.product-sidebar .product-category-tree,.product-sidebar .product-category-tree ul{list-style:none;padding:0;margin:0}
.product-sidebar .product-category-tree{border-top:1px solid #e7dfd7;padding:8px}
.product-category-tree>li+li{border-top:1px solid #eee4dc}
.product-sidebar .product-category-branch>summary{display:flex;align-items:stretch;gap:0;padding:0}
.product-sidebar .product-category-node a{display:flex;align-items:center;min-height:44px;padding:10px 12px;color:#45403b;font-size:13px;line-height:1.6;text-decoration:none;overflow-wrap:anywhere}
.product-category-branch>summary>a{flex:1;min-width:0}
.product-sidebar .product-category-toggle{flex:none;display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;color:#73665e}
.product-category-toggle .icon{width:14px;height:14px;transition:transform .2s}
.product-category-branch[open]>summary .product-category-toggle .icon{transform:rotate(180deg)}
.product-sidebar .product-category-branch>ul{margin:0 0 8px 13px;padding-left:8px;border-left:1px solid #e7dfd7}
.product-sidebar .is-ancestor>.product-category-branch>summary>a{color:#b44100;font-weight:600}
.product-sidebar .is-active>.product-category-leaf,.product-sidebar .is-active>.product-category-branch>summary{background:#f9e9dc;box-shadow:inset 3px 0 #ff6000}
.product-sidebar .is-active>a,.product-sidebar .is-active>.product-category-branch>summary>a{color:#a33b00;font-weight:600}
.product-sidebar .product-category-node a:hover,.product-sidebar .product-category-toggle:hover{color:#a33b00;background:#f6eee6}
.product-sidebar a:focus-visible,.product-sidebar summary:focus-visible{outline:2px solid #b44100;outline-offset:-2px}
@media(min-width:1100px){.product-sidebar-panel>nav{max-height:calc(100dvh - 270px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}}
@media(min-width:1100px) and (max-width:1399px){.product-page-content .product-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1099px){.product-page-layout{grid-template-columns:minmax(0,1fr);gap:24px}.product-sidebar{position:static}.product-sidebar .product-sidebar-heading{padding:14px 16px}}
@media(prefers-reduced-motion:reduce){.product-sidebar .icon{transition:none}}

/* Product trade pricing remains separate from the cart's retail price. */
.product-wholesale { display:grid; gap:5px; margin:18px 0; padding:15px 18px; border:1px solid var(--border-color, #eadfd5); border-radius:8px; background:#fbf6ef; line-height:1.6; }
.product-wholesale strong { color:var(--brand-orange, #c75009); }
.product-wholesale small { color:#6d6259; font-size:12px; }
.product-source-note { color:#61564e; line-height:1.7; overflow-wrap:anywhere; }
