/*
Theme Name: BHX V3
Theme URI: http://localhost/
Author: BHX Demo
Description: Catalog-style storefront for BHX Catalog V3.
Version: 3.0.0
Requires PHP: 7.4
*/
:root{--green:#087f3f;--green2:#0aa64f;--light:#f3f6f8;--border:#e1e5e8;--text:#263238;--muted:#707b82;--yellow:#fff200;--red:#e31c25;--card:#fff;--shadow:0 2px 9px rgba(20,45,30,.08)}
*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:var(--light)}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}
.bhx-top{background:var(--green);color:#fff}.bhx-top-inner{max-width:1260px;margin:auto;display:grid;grid-template-columns:215px 1fr 220px;gap:18px;align-items:center;padding:10px 0}.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px}.logo-mark{width:40px;height:40px;background:var(--yellow);color:#111;border-radius:50%;display:grid;place-items:center;font-weight:900}.search-box{position:relative}.search-form{display:flex;background:#fff;border-radius:24px;overflow:hidden;height:44px}.search-form input{border:0;outline:0;flex:1;padding:0 16px;font-size:15px}.search-form button{border:0;background:#fff;font-size:20px;padding:0 16px}.search-suggest{position:absolute;left:0;right:0;top:50px;background:#fff;color:#222;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.15);z-index:50;display:none;overflow:hidden}.suggest-item{display:flex;justify-content:space-between;gap:10px;padding:11px 14px;border-bottom:1px solid #eee}.suggest-item:hover{background:#f4faf6}.location-btn{background:#0b914b;border:1px solid rgba(255,255,255,.25);color:#fff;padding:12px 16px;border-radius:22px;font-weight:700}.bhx-nav{background:var(--green);border-top:1px solid rgba(255,255,255,.15)}.bhx-nav-inner{max-width:1260px;margin:auto;display:flex;align-items:center;gap:20px}.menu-title{background:#006d36;padding:12px 16px;font-weight:800}.nav-cart{margin-left:auto;padding:12px 16px;font-weight:800}
.page-wrap{max-width:1260px;margin:0 auto;padding:12px 0 40px}.layout{display:grid;grid-template-columns:220px 1fr;gap:10px}.sidebar{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:2px;overflow:hidden}.side-title{font-size:17px;font-weight:800;padding:15px;background:#007b3f;color:#fff}.cat-item{border-bottom:1px solid #eee}.cat-link{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;font-weight:700;font-size:14px}.cat-link:hover,.cat-link.active{background:#eef8f2;color:#087f3f}.subcat-list{padding:0 14px 12px 24px}.subcat-link{display:block;padding:6px 0;color:#555;font-size:13px}.subcat-link.active,.subcat-link:hover{color:#087f3f}.side-bottom{padding:14px;font-size:13px;border-top:5px solid #087f3f}.side-bottom a{display:block;margin-top:9px;color:#087f3f;font-weight:800}
.content{min-width:0}.hero-carousel{background:#fff;border-radius:5px;overflow:hidden;position:relative;box-shadow:var(--shadow);min-height:235px}.hero-track{display:flex;transition:transform .35s ease}.hero-slide{min-width:100%;height:235px;display:flex;align-items:center;justify-content:space-between;padding:28px 50px;position:relative;overflow:hidden}.slide-main{background:linear-gradient(100deg,#f01220 0 28%,#fff200 28%)}.slide-main img{height:220px;object-fit:contain;margin-right:30px}.slide-green{background:linear-gradient(100deg,#38b76a,#baf7c5);color:#fff}.slide-yellow{background:linear-gradient(100deg,#fff200,#f5b000);color:#2b2b2b}.slide-copy{max-width:650px}.slide-copy span{display:inline-block;background:#fff;color:#07833f;padding:5px 9px;border-radius:5px;font-size:13px;font-weight:900;margin-bottom:10px}.slide-copy strong{display:block;font-size:31px;line-height:1.1}.slide-copy small{display:block;margin-top:10px;font-size:15px}.slide-art{font-size:110px;font-weight:900;opacity:.8}.slide-art span{font-size:55px}.hero-prev,.hero-next{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:52px;border:0;background:rgba(0,0,0,.18);color:#fff;font-size:33px}.hero-prev{left:0}.hero-next{right:0}.hero-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:7px}.hero-dots button{width:9px;height:9px;border:0;border-radius:50%;background:#bbb;padding:0}.hero-dots button.active{background:#087f3f}
.category-strip{display:flex;gap:8px;overflow:auto;padding:10px 0}.category-tile{min-width:112px;background:#fff;border:1px solid var(--border);border-radius:7px;padding:9px;text-align:center;box-shadow:var(--shadow)}.category-tile.active{border:2px solid #087f3f}.category-tile img{width:55px;height:55px;object-fit:contain;display:block;margin:0 auto 6px}.tile-icon{display:grid;place-items:center;height:55px;font-size:26px;color:#087f3f}.category-tile span{font-size:12px;font-weight:700}
.promo{margin-top:8px;background:linear-gradient(#4fd06b,#c7ffd2);border-radius:8px;padding:14px}.promo-head,.section-head{display:flex;justify-content:space-between;align-items:center}.promo-head h2,.section-head h2{margin:0;font-size:20px;color:#fff}.promo-head a{color:#fff;font-weight:700}.promo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.promo-card{background:#fff;border-radius:8px;padding:8px;display:flex;gap:9px;min-height:117px}.promo-card img{width:90px;height:90px;object-fit:contain}.promo-card strong{color:var(--red);font-size:16px}.promo-card del{display:block;color:#999;font-size:12px}.promo-card span{display:block;font-size:12px;font-weight:700;margin:5px 0}.promo-card em{font-style:normal;color:#f08a00;font-size:12px;font-weight:800}
.products-panel{background:#fff;margin-top:10px;border-radius:7px;padding:14px;box-shadow:var(--shadow)}.section-head h2{color:#263238}.section-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.section-head a{color:#087f3f;font-weight:700}.filter-bar{background:#f7f9fa;border:1px solid var(--border);padding:10px;border-radius:6px;margin:10px 0}.filter-row{display:flex;flex-wrap:wrap;gap:8px}.filter-row select,.filter-row input{height:38px;border:1px solid #cdd4d9;border-radius:6px;background:#fff;padding:0 10px}.brand-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.chip{border:1px solid #d1d8dc;background:#fff;border-radius:18px;padding:6px 10px;font-size:12px}.chip.active{background:#087f3f;color:#fff;border-color:#087f3f}.products-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.product-card{background:#fff;border:1px solid var(--border);border-radius:7px;overflow:hidden;position:relative;transition:.15s}.product-card:hover{transform:translateY(-2px);box-shadow:0 5px 15px rgba(0,0,0,.09)}.badge{position:absolute;top:7px;left:7px;background:#ef3340;color:#fff;border-radius:4px;padding:4px 6px;font-size:10px;font-weight:800;z-index:2}.product-card img{width:100%;height:170px;object-fit:contain;padding:10px}.product-info{padding:9px 10px}.brand-name{color:#777;font-size:11px}.product-name{font-size:14px;font-weight:700;min-height:38px;margin-top:3px}.price{color:var(--red);font-size:17px;font-weight:900;margin-top:6px}.old-price{color:#999;font-size:11px;margin-left:5px}.stock{font-size:11px;color:#4d6b57;margin-top:4px}.card-actions{display:flex;gap:6px;margin-top:8px}.buy-btn,.detail-btn{flex:1;border-radius:6px;height:34px}.buy-btn{border:0;background:#eaf8ef;color:#087f3f;font-weight:800}.detail-btn{border:1px solid #087f3f;color:#087f3f;background:#fff}.buy-btn:disabled{opacity:.45;cursor:not-allowed}
.breadcrumbs{display:flex;gap:7px;font-size:13px;color:#667;margin-bottom:10px}.detail-layout{background:#fff;border-radius:8px;padding:18px;display:grid;grid-template-columns:410px 1fr;gap:28px;box-shadow:var(--shadow)}.detail-image{border:1px solid var(--border);border-radius:8px;height:420px;display:grid;place-items:center}.detail-image img{width:90%;height:90%;object-fit:contain}.detail-meta h1{font-size:28px;margin:0 0 10px}.detail-price{font-size:28px;color:var(--red);font-weight:900}.detail-old{color:#999;text-decoration:line-through;margin-left:10px}.detail-line{padding:10px 0;border-bottom:1px solid #eee}.qty-control{display:flex;width:150px;margin-top:8px}.qty-control button{width:42px;border:1px solid #ddd;background:#f7f7f7}.qty-control input{width:66px;border:1px solid #ddd;border-left:0;border-right:0;text-align:center}.primary-btn{margin-top:16px;background:#087f3f;color:#fff;border:0;border-radius:6px;padding:13px 18px;font-weight:900}
.cart-layout{display:grid;grid-template-columns:1fr 330px;gap:12px}.cart-box,.order-box{background:#fff;border-radius:8px;padding:15px;box-shadow:var(--shadow)}.cart-line{display:grid;grid-template-columns:70px 1fr 170px 120px 40px;gap:10px;align-items:center;border-bottom:1px solid #eee;padding:10px 0}.cart-line img{width:60px;height:60px;object-fit:contain}.cart-line-name{font-weight:800}.cart-line small{color:#777}.cart-qty{display:flex}.cart-qty button{width:30px;border:1px solid #ddd;background:#f6f6f6}.cart-qty input{width:55px;text-align:center;border:1px solid #ddd}.remove-btn{border:0;background:none;color:#c00}.cart-total{font-size:22px;color:#df1e2f;font-weight:900;text-align:right;margin-top:10px}.order-box h3{margin-top:0}.order-box input,.order-box textarea{width:100%;border:1px solid #cdd4d9;border-radius:6px;padding:10px;margin-bottom:10px}.order-box small{color:#667}.notice{padding:12px 14px;border-radius:6px;background:#eef8f2;margin-bottom:10px}.alert{background:#fff1f1;color:#a10d0d}.success-box{background:#fff;padding:22px;border-radius:8px;box-shadow:var(--shadow)}.success-box h1{color:#087f3f}
.pagination{display:flex;justify-content:center;gap:5px;margin-top:15px;flex-wrap:wrap}.pagination button{border:1px solid #ddd;background:#fff;min-width:34px;height:34px;border-radius:5px}.pagination button.active{background:#087f3f;color:#fff}.loading{opacity:.5;pointer-events:none}.empty{padding:40px;text-align:center;color:#777}.mobile-bar{display:none}
@media(max-width:1050px){.bhx-top-inner{grid-template-columns:180px 1fr 180px;padding:10px}.products-grid{grid-template-columns:repeat(4,1fr)}.promo-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.bhx-top-inner{grid-template-columns:1fr;gap:8px}.location-btn{display:none}.layout{grid-template-columns:1fr}.sidebar{display:none}.products-grid{grid-template-columns:repeat(2,1fr)}.detail-layout,.cart-layout{grid-template-columns:1fr}.detail-image{height:300px}.promo-grid{grid-template-columns:1fr}.hero-slide{height:195px;padding:22px}.hero-carousel{min-height:195px}.hero-slide img{display:none}.slide-copy strong{font-size:23px}.slide-art{font-size:70px}.cart-line{grid-template-columns:55px 1fr 105px 90px 25px;font-size:12px}.page-wrap{padding:8px}.menu-title{flex:1}.bhx-nav-inner{padding:0 8px}.nav-cart{padding:12px 6px}}
