:root{
  --brand-red:#e8393b;
  --brand-orange:#ff6a00;
  --price-color:#ff5e00;
  --footer-bg:#f5f5f5;
  --footer-bottom:#1a1a1a;
  --text:#222;
  --muted:#666;
  --border:#e5e5e5;
  --radius:6px;
}
*{box-sizing:border-box;}
body{margin:0;font-family:'Prompt',sans-serif;color:var(--text);background:#fff;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.container{max-width:1280px;margin:0 auto;padding:0 16px;}
ul{list-style:none;margin:0;padding:0;}

/* Header */
.site-header{width:100%;}
.header-top{background:linear-gradient(90deg,var(--brand-red),var(--brand-orange));padding:14px 0;}
.header-top-inner{display:flex;align-items:center;gap:24px;flex-wrap:wrap;}
.logo img{height:56px;width:auto;background:#fff;border-radius:4px;padding:2px;}
.search-form{flex:1;display:flex;min-width:220px;max-width:560px;}
.search-form input{flex:1;border:none;border-radius:4px 0 0 4px;padding:10px 14px;font-family:inherit;font-size:14px;}
.search-form button{border:none;background:#1a1a1a;color:#fff;padding:0 18px;border-radius:0 4px 4px 0;cursor:pointer;}
.header-icons{display:flex;gap:18px;color:#fff;font-size:20px;align-items:center;margin-left:auto;}
.header-icons a{position:relative;}
.cart-count{position:absolute;top:-8px;right:-10px;background:#1a1a1a;color:#fff;border-radius:50%;font-size:11px;padding:1px 5px;}

.header-nav{background:#fff;border-bottom:2px solid var(--brand-orange);}
.header-nav-inner{display:flex;align-items:center;gap:24px;}
.cat-menu{position:relative;}
.cat-menu-btn{background:var(--brand-orange);color:#fff;border:none;padding:12px 20px;font-family:inherit;font-weight:600;cursor:pointer;font-size:14px;}
.cat-menu-list{position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--border);width:260px;display:none;z-index:50;box-shadow:0 8px 20px rgba(0,0,0,.12);}
.cat-menu:hover .cat-menu-list, .cat-menu:focus-within .cat-menu-list{display:block;}
.cat-menu-list li a{display:block;padding:9px 16px;font-size:13.5px;border-bottom:1px solid #f0f0f0;}
.cat-menu-list li a:hover{background:#fff4ea;color:var(--brand-orange);}
.cat-menu-list li.active a{color:var(--brand-orange);font-weight:600;}

/* Two-level grouped category menu */
.cat-icon{display:inline-block;width:20px;margin-right:8px;text-align:center;}
.cat-group{position:relative;border-bottom:1px solid #f0f0f0;}
.cat-group-label{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;font-size:13.5px;cursor:pointer;color:#333;}
.cat-group-label:hover{background:#fff4ea;color:var(--brand-orange);}
a.cat-group-label{text-decoration:none;}
.cat-arrow{color:#bbb;font-size:16px;margin-left:8px;}
.cat-group.has-sub:hover .cat-group-label{background:#fff4ea;color:var(--brand-orange);}
.cat-sub-list{display:none;position:absolute;top:0;left:100%;background:#fff;border:1px solid var(--border);width:240px;max-height:70vh;overflow-y:auto;box-shadow:0 8px 20px rgba(0,0,0,.12);margin:0;padding:0;}
.cat-group.has-sub:hover .cat-sub-list, .cat-group.has-sub.open .cat-sub-list{display:block;}
.cat-sub-list li a{display:block;padding:9px 16px;font-size:13px;border-bottom:1px solid #f0f0f0;}
.cat-sub-list li a:hover{background:#fff4ea;color:var(--brand-orange);}
.cat-sub-list li.active a{color:var(--brand-orange);font-weight:600;}
@media (max-width:720px){
  .cat-sub-list{position:static;width:100%;box-shadow:none;border:none;border-top:1px solid #f0f0f0;}
  .cat-arrow{transform:rotate(90deg);transition:transform .15s;}
  .cat-group.has-sub.open .cat-arrow{transform:rotate(-90deg);}
}
.main-nav{display:flex;gap:22px;padding:14px 0;flex-wrap:wrap;}
.main-nav a{font-size:14.5px;font-weight:500;color:#333;}
.main-nav a:hover{color:var(--brand-orange);}

/* Hero */
.hero{padding:20px 0;}
.hero-banner{width:100%;border-radius:var(--radius);}

/* Category sections */
.cat-section{padding:22px 0;}
.cat-section-head{display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid var(--border);margin-bottom:16px;padding-bottom:10px;}
.cat-section-head h2{background:var(--brand-orange);color:#fff;display:inline-block;padding:8px 20px;margin:0;font-size:16px;border-radius:3px 3px 0 0;}
.view-all{font-size:13px;color:var(--muted);white-space:nowrap;}
.view-all:hover{color:var(--brand-orange);}

/* Product grid + cards */
.p-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;}
.p-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:box-shadow .15s;}
.p-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.10);}
.p-card-imgwrap{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:#fafafa;overflow:hidden;}
.p-card-imgwrap img{width:100%;height:100%;object-fit:contain;}
.p-card-body{padding:10px 12px 14px;display:flex;flex-direction:column;gap:6px;flex:1;}
.p-card-name{font-size:13px;line-height:1.4;color:#222;min-height:36px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.p-card-name:hover{color:var(--brand-orange);}
.p-card-price{margin-top:auto;font-size:14px;}
.price-new{color:var(--price-color);font-weight:700;}
.price-old{color:#999;text-decoration:line-through;font-size:12px;margin-left:6px;}
.price-ask{color:var(--muted);font-size:13px;}

/* Category / product pages */
.breadcrumb{font-size:13px;color:var(--muted);margin:18px 0;}
.breadcrumb a{color:var(--muted);}
.breadcrumb a:hover{color:var(--brand-orange);}
.category-page h1{font-size:22px;margin:0 0 18px;}
.empty-msg{color:var(--muted);padding:40px 0;text-align:center;}

.product-detail{display:flex;gap:36px;flex-wrap:wrap;margin-bottom:36px;}
.product-image{flex:0 0 340px;max-width:340px;border:1px solid var(--border);border-radius:var(--radius);padding:20px;background:#fafafa;}
.product-gallery{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding:0 20px;}
.gallery-thumb{width:52px;height:52px;object-fit:contain;border:1px solid var(--border);border-radius:4px;background:#fff;cursor:pointer;}
.gallery-thumb:hover{border-color:var(--brand-orange);}
.product-info{flex:1;min-width:280px;}
.product-info h1{font-size:20px;margin:0 0 10px;}
.product-cats{margin-bottom:12px;}
.product-cats a{display:inline-block;background:#fff4ea;color:var(--brand-orange);font-size:12px;padding:4px 10px;border-radius:12px;margin:0 6px 6px 0;}
.product-price{font-size:24px;margin:14px 0 22px;}
.btn-buy{background:#ccc;color:#555;border:none;padding:12px 24px;border-radius:4px;font-family:inherit;font-size:14px;cursor:not-allowed;}
.btn-quote{background:var(--brand-orange);color:#fff;border:none;padding:12px 24px;border-radius:4px;font-family:inherit;font-size:14px;cursor:pointer;margin-left:10px;font-weight:600;}
.btn-quote:hover{background:#e85f00;}
.product-video{margin-top:14px;padding:0 20px;}
.product-video video{width:100%;max-width:340px;border-radius:6px;border:1px solid var(--border);background:#000;}

/* Request-a-quote modal (shared with admin's modal look) */
.qt-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;padding:30px 16px;overflow-y:auto;z-index:300;}
.qt-modal-backdrop[hidden]{display:none;}
.qt-modal{background:#fff;border-radius:10px;width:100%;max-width:420px;padding:24px 26px 26px;position:relative;font-family:'Prompt',sans-serif;}
.qt-modal h3{margin:0 0 4px;font-size:16.5px;}
.qt-product-name{color:var(--muted);font-size:13px;margin:0 0 14px;}
.qt-modal-close{position:absolute;top:14px;right:16px;background:none;border:none;font-size:22px;line-height:1;color:#999;cursor:pointer;}
.qt-modal-close:hover{color:#333;}
.qt-error{color:#dc3545;font-size:13px;margin-bottom:8px;min-height:16px;}
.qt-success{color:#1b8a4c;font-size:14px;line-height:1.6;padding:10px 0;}
.qt-field{margin-bottom:12px;}
.qt-field label{display:block;font-size:12.5px;color:var(--muted);margin-bottom:5px;font-weight:600;}
.qt-field input,.qt-field textarea{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:6px;padding:9px 10px;font-family:inherit;font-size:13.5px;}
.qt-row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.qt-submit{width:100%;margin-top:6px;padding:11px;}
.related h2{font-size:16px;border-left:4px solid var(--brand-orange);padding-left:10px;margin-bottom:16px;}

/* Product detail extras: SKU / description / features / specs / links */
.product-sku{font-size:12.5px;color:var(--muted);margin:-4px 0 10px;}
.product-description{font-size:14px;line-height:1.7;color:#333;margin:6px 0 16px;}
.product-features, .product-specs, .product-links{max-width:900px;margin:0 auto 24px;padding:0 20px;}
.product-features h3, .product-specs h3, .product-links h3{font-size:15px;border-left:4px solid var(--brand-orange);padding-left:10px;margin:0 0 12px;}
.product-features ul{padding-left:0;}
.product-features li{list-style:none;position:relative;padding:6px 0 6px 22px;font-size:13.5px;line-height:1.6;border-bottom:1px solid #f2f2f2;}
.product-features li:before{content:"✓";position:absolute;left:0;color:var(--brand-orange);font-weight:700;}
.specs-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.specs-table tr:nth-child(odd){background:#fafafa;}
.specs-table th{text-align:left;color:var(--muted);font-weight:600;padding:8px 14px;width:35%;border-bottom:1px solid var(--border);}
.specs-table td{padding:8px 14px;border-bottom:1px solid var(--border);}
.product-links ul{padding-left:0;}
.product-links li{list-style:none;padding:5px 0;}
.product-links li a{color:var(--brand-orange);font-size:13.5px;text-decoration:underline;}
.product-links li a:hover{color:#e85f00;}

/* Footer */
.site-footer{background:var(--footer-bg);margin-top:40px;}
.footer-cols{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:24px;padding:40px 16px;}
.footer-col h4{font-size:14px;border-bottom:2px solid var(--brand-orange);display:inline-block;padding-bottom:8px;margin:0 0 14px;}
.footer-col ul li{margin-bottom:8px;}
.footer-col ul li a{font-size:13.5px;color:#555;}
.footer-col ul li a:hover{color:var(--brand-orange);}
.footer-brand p{font-size:13px;color:var(--muted);line-height:1.6;}
.footer-bottom{background:var(--footer-bottom);color:#ccc;text-align:center;padding:14px 0;font-size:12.5px;}

/* ==================== Homepage redesign ==================== */

/* Hero slider + bestseller sidebar */
.home-top{padding:18px 0 6px;}
.home-top-inner{display:flex;gap:18px;align-items:stretch;}
.hero-slider{position:relative;flex:1 1 auto;min-width:0;border-radius:var(--radius);overflow:hidden;background:#f2f2f2;aspect-ratio:1140/400;}
.hero-slides{position:relative;width:100%;height:100%;}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .5s ease;display:block;}
.hero-slide.active{opacity:1;z-index:1;}
.hero-slide img{width:100%;height:100%;object-fit:cover;}
.hero-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;background:rgba(0,0,0,.35);color:#fff;border:none;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;}
.hero-nav:hover{background:rgba(0,0,0,.6);}
.hero-prev{left:10px;}
.hero-next{right:10px;}
.hero-dots{position:absolute;left:0;right:0;bottom:10px;z-index:2;display:flex;justify-content:center;gap:6px;}
.hero-dots .dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.6);cursor:pointer;border:1px solid rgba(0,0,0,.15);padding:0;}
.hero-dots .dot.active{background:var(--brand-orange);}

.home-sidebar{flex:0 0 280px;max-width:280px;}
.sidebar-widget{border:1px solid var(--border);border-radius:var(--radius);background:#fff;height:100%;display:flex;flex-direction:column;overflow:hidden;}
.sidebar-widget-title{margin:0;background:var(--brand-orange);color:#fff;font-size:14px;padding:10px 14px;}
.sidebar-products{padding:8px 12px;display:flex;flex-direction:column;flex:1;}
.sidebar-product{display:flex;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #f1f1f1;}
.sidebar-product:last-child{border-bottom:none;}
.sidebar-product-imgwrap{flex:0 0 56px;width:56px;height:56px;border:1px solid var(--border);border-radius:4px;background:#fafafa;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.sidebar-product-imgwrap img{width:100%;height:100%;object-fit:contain;}
.sidebar-product-info{min-width:0;flex:1;}
.sidebar-product-name{display:block;font-size:12.5px;line-height:1.4;color:#222;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.sidebar-product-name:hover{color:var(--brand-orange);}
.sidebar-product-price{font-size:13px;color:var(--price-color);font-weight:700;margin-top:2px;}

@media (max-width:820px){
  .home-top-inner{flex-direction:column;}
  .home-sidebar{flex:1 1 auto;max-width:none;}
  .hero-slider{aspect-ratio:16/9;}
}

/* Brand logo strip */
.brand-strip{padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-top:14px;}
.brand-strip-inner{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;}
.brand-strip-item{flex:1 1 100px;max-width:150px;height:64px;display:flex;align-items:center;justify-content:center;}
.brand-strip-item img{max-width:100%;max-height:100%;object-fit:contain;filter:grayscale(15%);opacity:.9;transition:opacity .15s;}
.brand-strip-item img:hover{opacity:1;filter:none;}

/* Trust badges (DBD verified / authorization letter) */
.trust-badges{padding:20px 0;}
.trust-badges-inner{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;align-items:center;}
.trust-badge-item{flex:0 1 220px;max-width:260px;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fafafa;display:flex;align-items:center;justify-content:center;height:140px;}
.trust-badge-item img{max-width:100%;max-height:100%;object-fit:contain;}

/* B2H Rewards promo */
.rewards-promo{padding:6px 0 20px;}
.rewards-promo-inner{display:flex;gap:14px;flex-wrap:wrap;}
.rewards-promo-item{flex:1 1 320px;min-width:260px;border-radius:var(--radius);overflow:hidden;}
.rewards-promo-item img{width:100%;height:auto;display:block;}

/* Category carousel sections */
.cat-carousel-wrap{position:relative;}
.cat-section .p-grid{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;gap:16px;scroll-behavior:smooth;padding-bottom:4px;-ms-overflow-style:none;scrollbar-width:none;}
.cat-section .p-grid::-webkit-scrollbar{display:none;}
.cat-section .p-grid .p-card{flex:0 0 180px;scroll-snap-align:start;}
.cat-nav-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:2;background:#fff;border:1px solid var(--border);color:var(--text);width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:15px;box-shadow:0 2px 8px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;}
.cat-nav-btn:hover{background:var(--brand-orange);color:#fff;border-color:var(--brand-orange);}
.cat-nav-prev{left:-6px;}
.cat-nav-next{right:-6px;}
@media (max-width:600px){
  .cat-nav-btn{display:none;}
}

/* Product-card extras: discount ribbon + rating row */
.p-card-imgwrap{position:relative;}
.p-card-ribbon{position:absolute;top:6px;left:6px;background:var(--brand-red);color:#fff;font-size:11px;font-weight:700;padding:3px 7px;border-radius:3px;z-index:1;}
.p-card-rating{display:flex;align-items:center;gap:5px;font-size:11px;color:#ccc;letter-spacing:1px;}
.p-card-rating .rating-count{color:var(--muted);letter-spacing:normal;}

@media (max-width:720px){
  .header-top-inner{gap:12px;}
  .logo img{height:42px;}
  .search-form{order:3;flex:1 1 100%;}
  .product-detail{flex-direction:column;}
  .product-image{max-width:100%;}
  .footer-cols{grid-template-columns:1fr 1fr;}
}

/* ==================== Flash-sale countdown ==================== */
.countdown-timer{margin-top:8px;}
.countdown-label{display:block;font-size:10.5px;color:var(--brand-red);font-weight:600;margin-bottom:4px;}
.countdown-boxes{display:flex;align-items:center;gap:4px;}
.cd-box{background:#222;color:#fff;border-radius:4px;padding:3px 6px;text-align:center;min-width:30px;}
.cd-val{display:block;font-size:12.5px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;}
.cd-unit{display:block;font-size:8.5px;color:#ccc;line-height:1.3;}
.cd-sep{color:#999;font-weight:700;}
.product-info .countdown-timer{margin:2px 0 14px;}
.product-info .countdown-boxes{gap:6px;}
.product-info .cd-box{min-width:40px;padding:5px 8px;}
.product-info .cd-val{font-size:16px;}

/* ==================== Cookie-consent banner ==================== */
.cookie-consent{position:fixed;left:0;right:0;bottom:0;z-index:400;background:#fff;border-top:1px solid var(--border);box-shadow:0 -4px 18px rgba(0,0,0,.12);}
.cookie-consent[hidden]{display:none;}
.cookie-consent-inner{max-width:1100px;margin:0 auto;padding:16px 20px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;}
.cookie-consent-text{flex:1 1 420px;font-size:13px;line-height:1.6;color:#444;margin:0;}
.cookie-consent-text a{color:var(--brand-orange);text-decoration:underline;}
.cookie-consent-actions{display:flex;gap:10px;flex:0 0 auto;}
.cookie-btn{padding:9px 18px;border-radius:var(--radius);font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap;}
.cookie-btn-outline{background:#fff;border:1px solid var(--border);color:var(--text);}
.cookie-btn-outline:hover{border-color:var(--brand-orange);color:var(--brand-orange);}
.cookie-btn-primary{background:var(--brand-orange);border:1px solid var(--brand-orange);color:#fff;}
.cookie-btn-primary:hover{background:#e85f00;}
@media (max-width:600px){
  .cookie-consent-inner{padding:14px 16px;}
  .cookie-consent-actions{width:100%;}
  .cookie-btn{flex:1 1 auto;}
}

/* ==================== Homepage popup (newsletter) ==================== */
.home-popup-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:20px;z-index:500;}
.home-popup-backdrop[hidden]{display:none;}
.home-popup{background:#fff;border-radius:10px;width:100%;max-width:420px;position:relative;overflow:hidden;font-family:'Prompt',sans-serif;max-height:90vh;overflow-y:auto;}
.home-popup-img{width:100%;height:auto;display:block;}
.home-popup-body{padding:20px 24px 24px;}
.home-popup-body h3{margin:0 0 6px;font-size:17px;}
.home-popup-body p{margin:0 0 14px;font-size:13px;color:var(--muted);line-height:1.6;}
.home-popup-close{position:absolute;top:10px;right:12px;background:rgba(0,0,0,.45);color:#fff;border:none;width:30px;height:30px;border-radius:50%;font-size:19px;line-height:1;cursor:pointer;z-index:1;}
.home-popup-close:hover{background:rgba(0,0,0,.7);}
.home-popup-error{color:#dc3545;font-size:13px;margin-bottom:6px;min-height:16px;}
.home-popup-success{color:#1b8a4c;font-size:14px;line-height:1.6;padding:6px 0;}
#home-popup-form{display:flex;gap:8px;flex-wrap:wrap;}
#home-popup-email{flex:1 1 200px;border:1px solid var(--border);border-radius:6px;padding:10px 12px;font-family:inherit;font-size:13.5px;}
#home-popup-submit{flex:0 0 auto;padding:10px 18px;white-space:nowrap;}
