
/*
Theme Name: Kim Phát Astra Child
Theme URI: https://kimphatacquy.com/
Description: Giao diện catalog bán ắc quy Kim Phát, xây trên Astra, không cần WooCommerce.
Author: Kim Phát
Template: astra
Version: 3.8.0
*/

:root{
  --kp-yellow:#ffd21a;
  --kp-yellow-2:#ffb800;
  --kp-black:#080808;
  --kp-red:#d71920;
  --kp-text:#171717;
  --kp-gray:#f5f5f5;
  --kp-border:#e8e8e8;
}

body{background:#fff;color:var(--kp-text);}
.kp-home{font-family:Arial,Helvetica,sans-serif;overflow:hidden;}
.kp-topbar{background:#080808;color:#fff;font-size:14px;}
.kp-topbar .kp-inner{max-width:1280px;margin:auto;display:flex;justify-content:space-between;gap:20px;padding:9px 18px;}
.kp-topbar strong{color:var(--kp-yellow);}

.kp-header{background:#111;color:#fff;border-bottom:1px solid #222;}
.kp-header-inner{max-width:1280px;margin:auto;display:grid;grid-template-columns:290px 1fr 250px;gap:18px;align-items:center;padding:13px 18px;}
.kp-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;}
.kp-brand img{width:92px;height:92px;object-fit:contain;border-radius:50%;}
.kp-brand b{font-size:28px;line-height:1;color:var(--kp-yellow);font-style:italic;}
.kp-brand span{display:block;font-size:12px;letter-spacing:1px;font-weight:700;color:#fff;margin-top:4px;}

.kp-search{display:flex;height:48px;}
.kp-search input{flex:1;border:0;border-radius:7px 0 0 7px;padding:0 18px;font-size:15px;}
.kp-search button{width:58px;border:0;border-radius:0 7px 7px 0;background:var(--kp-yellow);font-size:20px;cursor:pointer;}
.kp-hotline{text-align:right;}
.kp-hotline small{display:block;color:#ddd;}
.kp-hotline strong{font-size:22px;color:var(--kp-yellow);}
.kp-cart{text-align:center;font-weight:700;}
.kp-cart a{color:#fff;text-decoration:none;}

.kp-nav{background:#fff;border-bottom:1px solid #ddd;box-shadow:0 2px 8px rgba(0,0,0,.08);}
.kp-nav-inner{max-width:1280px;margin:auto;display:flex;align-items:center;gap:4px;padding:0 18px;}
.kp-nav a{display:block;color:#111;text-decoration:none;font-weight:700;padding:15px 16px;}
.kp-nav a:hover,.kp-nav .active{background:var(--kp-yellow);border-radius:5px;}
.kp-nav .kp-book{margin-left:auto;background:var(--kp-red);color:#fff;border-radius:5px;}
.kp-nav .kp-book:hover{background:#b80f15;}

.kp-hero{max-width:1600px;margin:auto;background:#050505;}
.kp-hero img{width:100%;display:block;height:auto;}

.kp-section{max-width:1280px;margin:0 auto;padding:34px 18px;}
.kp-section-title{display:flex;align-items:center;gap:14px;margin-bottom:20px;}
.kp-section-title h2{margin:0;font-size:28px;font-weight:900;text-transform:uppercase;}
.kp-section-title i{width:55px;height:5px;background:var(--kp-yellow);border-radius:4px;}

.kp-vehicles{background:var(--kp-yellow);padding:12px;}
.kp-vehicles-grid{max-width:1280px;margin:auto;display:grid;grid-template-columns:repeat(5,1fr);gap:10px;}
.kp-vehicle{background:#fff;border-radius:8px;padding:13px;text-align:center;font-weight:800;text-decoration:none;color:#111;border:1px solid rgba(0,0,0,.08);transition:.2s;}
.kp-vehicle:hover{transform:translateY(-3px);box-shadow:0 8px 18px rgba(0,0,0,.14);}
.kp-vehicle .icon{font-size:34px;margin-bottom:4px;}

.kp-services{background:#fff;border-bottom:1px solid #ddd;}
.kp-services-grid{max-width:1280px;margin:auto;display:grid;grid-template-columns:repeat(5,1fr);}
.kp-service{padding:18px 12px;border-right:1px solid #ddd;text-align:center;}
.kp-service:last-child{border:0;}
.kp-service .circle{width:48px;height:48px;border-radius:50%;background:#111;color:var(--kp-yellow);display:grid;place-items:center;margin:0 auto 9px;font-size:23px;}
.kp-service strong{font-size:14px;line-height:1.35;display:block;}

.kp-shop-layout{display:block;}
.kp-products{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.kp-product{border:1px solid var(--kp-border);border-radius:9px;background:#fff;padding:12px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.04);}
.kp-product img{width:100%;height:170px;object-fit:contain;}
.kp-product h3{font-size:16px;margin:8px 0 4px;}
.kp-price{color:var(--kp-red);font-size:18px;font-weight:900;margin-bottom:10px;}
.kp-btn{display:inline-block;background:var(--kp-yellow);color:#111!important;font-weight:800;text-decoration:none;padding:10px 18px;border-radius:5px;}
.kp-btn:hover{background:#111;color:#fff!important;}


.kp-brands{background:#f7f7f7;}
.kp-brand-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;}
.kp-brand-box{background:#fff;border:1px solid #e5e5e5;border-radius:7px;min-height:70px;display:grid;place-items:center;font-size:18px;font-weight:900;color:#333;}

.kp-cta{background:linear-gradient(100deg,#111,#242424);color:#fff;text-align:center;padding:42px 18px;}
.kp-cta h2{color:var(--kp-yellow);margin:0 0 8px;font-size:32px;}
.kp-cta p{margin:0 0 18px;font-size:17px;}

.kp-footer{background:#070707;color:#ddd;padding:35px 18px;}
.kp-footer-inner{max-width:1280px;margin:auto;display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:30px;}
.kp-footer h3{color:var(--kp-yellow);margin-top:0;}
.kp-footer a{color:#ddd;text-decoration:none;}
.kp-footer strong{color:#fff;}

@media(max-width:1000px){
 .kp-header-inner{grid-template-columns:1fr 1fr;}
 .kp-brand{grid-column:1/-1;}
 .kp-hotline{text-align:left;}
 .kp-nav-inner{overflow:auto;white-space:nowrap;}
 .kp-products{grid-template-columns:repeat(2,1fr);}
 .kp-brand-grid{grid-template-columns:repeat(4,1fr);}
}
@media(max-width:650px){
 .kp-topbar .kp-inner{display:block;text-align:center;}
 .kp-topbar .kp-inner span{display:block;margin:3px 0;}
 .kp-header-inner{display:block;}
 .kp-brand{margin-bottom:12px;}
 .kp-brand b{font-size:24px;}
 .kp-search{margin-bottom:12px;}
 .kp-hotline{text-align:center;margin-bottom:10px;}
 .kp-nav a{padding:12px 10px;font-size:13px;}
 .kp-nav .kp-book{display:none;}
 .kp-vehicles-grid{grid-template-columns:repeat(2,1fr);}
 .kp-vehicles-grid .kp-vehicle:last-child{grid-column:1/-1;}
 .kp-services-grid{grid-template-columns:1fr 1fr;}
 .kp-service{border-bottom:1px solid #ddd;}
 .kp-products{grid-template-columns:1fr;}
 .kp-brand-grid{grid-template-columns:repeat(2,1fr);}
 .kp-footer-inner{grid-template-columns:1fr;}
}


/* v2.2 - catalog only: show price + phone call, no online checkout/cart */
.kp-call-top{display:inline-flex;align-items:center;justify-content:center;background:#ffd21c;color:#111!important;font-weight:800;padding:10px 16px;border-radius:4px;text-decoration:none;white-space:nowrap}
.kp-call-top:hover{background:#ffbd00;color:#111!important}
.kp-product{display:flex;flex-direction:column}
.kp-product-image{display:flex;align-items:center;justify-content:center;height:170px;text-decoration:none;background:#fff;overflow:hidden}
.kp-product-img{width:100%;height:100%;object-fit:contain}
.kp-product-placeholder{height:170px;display:flex;align-items:center;justify-content:center;font-size:76px;background:#fff;width:100%}
.kp-product h3{margin:14px 0 5px!important}
.kp-product-meta{font-size:12px;color:#777;margin-bottom:8px}
.kp-price{font-weight:800!important;font-size:18px!important;color:#d71920!important;margin:5px 0 12px!important}
.kp-price .amount{color:#d71920!important}
.kp-contact-price{color:#d71920;font-weight:800}
.kp-call-product{width:100%;box-sizing:border-box;text-align:center;margin-top:auto}
.kp-cart{display:none!important}
@media(max-width:900px){.kp-call-top{font-size:12px;padding:8px 10px}.kp-product-image,.kp-product-placeholder{height:140px}}

/* v3 lightweight catalog */
.kp-single-wrap{max-width:1100px;margin:35px auto;padding:0 20px;display:grid;grid-template-columns:1fr 1fr;gap:40px}
.kp-single-image{background:#fff;border:1px solid var(--kp-border);border-radius:10px;min-height:420px;display:flex;align-items:center;justify-content:center;padding:25px}
.kp-single-image img{max-width:100%;max-height:480px;object-fit:contain}
.kp-single-info h1{font-size:34px;margin-top:10px}.kp-single-price{font-size:30px;font-weight:900;color:#d71920;margin:22px 0}.kp-single-call{font-size:18px}.kp-single-content{margin-top:25px;line-height:1.7}
.kp-empty{padding:40px;background:#fff;border:1px dashed #ccc;text-align:center}
.kp-call-product{width:100%;box-sizing:border-box}
@media(max-width:800px){.kp-single-wrap{grid-template-columns:1fr}.kp-single-image{min-height:280px}.kp-single-info h1{font-size:26px}}

/* v3.3 - visual polish */
.kp-hero{max-width:1600px;margin:auto;background:#050505;overflow:hidden;line-height:0}
.kp-hero img{width:100%;display:block;height:auto;max-height:none;object-fit:contain;object-position:center}
.kp-vehicles{background:var(--kp-yellow);padding:10px 12px}
.kp-vehicles-grid{max-width:1280px;margin:auto;display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.kp-vehicle{appearance:none;background:#fff;border-radius:8px;padding:10px 8px;text-align:center;font-weight:900;text-decoration:none;color:#111;border:1px solid rgba(0,0,0,.08);transition:transform .18s,box-shadow .18s,background .18s;cursor:pointer;font-family:inherit;font-size:14px}
.kp-vehicle:hover,.kp-vehicle.is-active{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.13);background:#fffdf0}
.kp-vehicle.is-active{border:2px solid #111;padding:9px 7px}
.kp-vehicle .icon{font-size:27px;margin-bottom:2px;line-height:1.15}
.kp-services-grid{max-width:1280px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr)}
.kp-service{padding:15px 14px;border-right:1px solid #ddd;text-align:center}
.kp-service .circle{width:44px;height:44px;border-radius:50%;background:#111;color:var(--kp-yellow);display:grid;place-items:center;margin:0 auto 7px;font-size:19px;font-weight:900}
.kp-service strong{font-size:13px;line-height:1.3;display:block}
.kp-service span{display:block;color:#777;font-size:11px;margin-top:4px;line-height:1.35}
.kp-section{max-width:1280px;margin:0 auto;padding:30px 18px}
.kp-section-title{margin-bottom:17px}
.kp-section-title h2{font-size:25px}
.kp-products{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.kp-product{border:1px solid var(--kp-border);border-radius:10px;background:#fff;padding:12px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.045);transition:transform .18s,box-shadow .18s;min-width:0}
.kp-product:hover{transform:translateY(-3px);box-shadow:0 9px 24px rgba(0,0,0,.10)}
.kp-product-image{height:175px;border-radius:7px}
.kp-product-img{width:100%;height:100%;object-fit:contain}
.kp-product h3{font-size:15px;line-height:1.35;min-height:40px;margin:10px 0 4px!important}
.kp-product-brand{font-size:10px;font-weight:900;color:#777;text-transform:uppercase;letter-spacing:.5px}
.kp-product-meta{font-size:12px;color:#777;min-height:18px;margin-bottom:4px}
.kp-price{font-weight:900!important;font-size:20px!important;color:var(--kp-red)!important;margin:5px 0 12px!important}
.kp-call-product{font-size:13px;padding:11px 10px}
.kp-filter-empty{display:none;padding:25px;text-align:center;background:#fff;border:1px dashed #ccc;border-radius:8px;color:#666;margin-top:10px}
.kp-brands{background:#f7f7f7}
.kp-brand-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:9px}
.kp-brand-box{appearance:none;background:#fff;border:1px solid #e5e5e5;border-radius:7px;min-height:58px;display:grid;place-items:center;font-size:15px;font-weight:900;color:#333;cursor:pointer;font-family:inherit;transition:.18s}
.kp-brand-box:hover,.kp-brand-box.is-active{border-color:#111;background:#fffdf0;box-shadow:0 5px 12px rgba(0,0,0,.08);transform:translateY(-2px)}
.kp-brand-box.is-active{border:2px solid #111}
.kp-cta{padding:36px 18px}
.kp-cta h2{font-size:29px}

@media(max-width:1100px){
 .kp-products{grid-template-columns:repeat(3,1fr)}
 .kp-brand-grid{grid-template-columns:repeat(5,1fr)}
 .kp-header-inner{grid-template-columns:210px 1fr 210px 120px;gap:10px}
}
@media(max-width:900px){
 .kp-header-inner{grid-template-columns:1fr 1fr}
 .kp-brand{grid-column:1/-1}
 .kp-hotline{text-align:left}
 .kp-products{grid-template-columns:repeat(2,1fr)}
 .kp-brand-grid{grid-template-columns:repeat(4,1fr)}
 .kp-vehicles-grid{grid-template-columns:repeat(3,1fr)}
 .kp-services-grid{grid-template-columns:repeat(2,1fr)}
 .kp-service:nth-child(2){border-right:0}
}
@media(max-width:650px){
 .kp-hero img{max-height:none;object-fit:contain}
 .kp-header-inner{display:block}
 .kp-brand{margin-bottom:10px}
 .kp-search{margin-bottom:10px}
 .kp-hotline{text-align:center;margin-bottom:8px}
 .kp-call-top{width:100%;box-sizing:border-box}
 .kp-nav a{padding:12px 10px;font-size:13px}
 .kp-vehicles-grid{grid-template-columns:repeat(2,1fr)}
 .kp-vehicles-grid .kp-vehicle:first-child{grid-column:1/-1}
 .kp-services-grid{grid-template-columns:1fr 1fr}
 .kp-service{border-bottom:1px solid #ddd!important;border-right:1px solid #ddd!important}
 .kp-service:nth-child(2n){border-right:0!important}
 .kp-products{grid-template-columns:1fr}
 .kp-brand-grid{grid-template-columns:repeat(2,1fr)}
 .kp-section{padding:26px 14px}
 .kp-section-title h2{font-size:21px}
 .kp-product-image{height:190px}
 .kp-product h3{min-height:0}
 .kp-footer-inner{grid-template-columns:1fr}
}

/* v3.4 */
.kp-call-top{display:none!important}
.kp-single-content h2{font-size:22px;margin:0 0 12px}
.kp-single-content p{margin:0 0 12px}
.kp-form-card .description{color:#646970;margin-top:6px}
@media(max-width:1000px){.kp-brand img{width:84px;height:84px}.kp-header-inner{grid-template-columns:1fr 1fr}.kp-brand{grid-column:1/-1}}
@media(max-width:650px){.kp-brand img{width:78px;height:78px}}

/* v3.5 - product detail uses the same Kim Phát site shell as homepage */
.kp-product-page{background:#f7f7f7;}
.kp-single-page{max-width:1280px;margin:0 auto;padding:28px 18px 48px;}
.kp-single-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:#777;margin:0 0 20px;}
.kp-single-breadcrumb a{color:#555;text-decoration:none;font-weight:700;}
.kp-single-breadcrumb a:hover{color:#111;}
.kp-single-breadcrumb strong{color:#111;}
.kp-single-wrap{max-width:none;margin:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:46px;background:#fff;border:1px solid #e7e7e7;border-radius:12px;padding:28px;box-shadow:0 3px 14px rgba(0,0,0,.04);}
.kp-single-image{min-height:520px;border:1px solid #ececec;border-radius:10px;background:#fff;padding:25px;}
.kp-single-image img{width:100%;height:500px;max-width:100%;object-fit:contain;}
.kp-single-info{padding:8px 8px 8px 0;}
.kp-single-brand{display:inline-block;background:#111;color:var(--kp-yellow);font-size:12px;font-weight:900;padding:6px 10px;border-radius:4px;margin-bottom:12px;text-transform:uppercase;}
.kp-single-info h1{font-size:34px;line-height:1.2;margin:0 0 16px;color:#111;}
.kp-single-meta{font-size:16px;margin:0 0 9px;color:#444;}
.kp-single-price{font-size:32px!important;line-height:1.2;font-weight:900;color:var(--kp-red);margin:22px 0!important;}
.kp-single-call{font-size:17px;padding:13px 20px;}
.kp-single-content{border-top:1px solid #eee;margin-top:28px;padding-top:24px;line-height:1.75;}
.kp-single-content h2{font-size:22px!important;margin:0 0 12px!important;text-transform:none;}
.kp-single-content p{margin:0 0 12px;}
.kp-back-products{display:inline-block;margin-top:22px;color:#222;font-weight:800;text-decoration:none;}
.kp-back-products:hover{color:#d71920;}
@media(max-width:800px){
 .kp-single-page{padding:20px 14px 35px;}
 .kp-single-wrap{grid-template-columns:1fr;gap:25px;padding:16px;}
 .kp-single-image{min-height:300px;padding:12px;}
 .kp-single-image img{height:320px;}
 .kp-single-info{padding:0;}
 .kp-single-info h1{font-size:27px;}
 .kp-single-price{font-size:28px!important;}
}


/* v3.7 - mobile header polish: center brand, keep topbar clean */
@media(max-width:650px){
  .kp-topbar .kp-inner{padding:9px 10px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;}
  .kp-topbar .kp-inner span{font-size:13px!important;}
  .kp-topbar .kp-inner span:first-child{font-weight:700;}

  /* Center the entire logo + brand text as one vertical block on mobile only. */
  .kp-header-inner{padding:16px 12px 18px;display:flex;flex-direction:column;align-items:center;}
  .kp-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;margin:0 auto 16px;width:100%;} 
  .kp-brand img{width:100px;height:100px;display:block;margin:0 auto;}
  .kp-brand div{display:flex;flex-direction:column;align-items:center;text-align:center;}
  .kp-brand b{font-size:30px;line-height:1.05;}
  .kp-brand span{font-size:14px;letter-spacing:1.2px;margin-top:7px;line-height:1.2;}
  .kp-search{width:100%;}
  .kp-hotline{text-align:center;width:100%;margin-top:2px;}
}


/* v3.8 mobile polish + template isolation */
@media (max-width:650px){
  .kp-body .kp-topbar .kp-inner{
    justify-content:center!important;
    text-align:center!important;
  }
  .kp-body .kp-topbar .kp-inner span:first-child{
    width:100%!important;
  }
  .kp-body .kp-header-inner{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .kp-body .kp-brand{
    width:100%!important;
    margin:0 auto 16px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .kp-body .kp-brand img{margin:0 auto!important;}
  .kp-body .kp-brand div{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
}

/* The product detail page must always use the Kim Phat shell, not Astra's header/footer. */
.kp-product-page #masthead,
.kp-product-page .site-header,
.kp-product-page .ast-mobile-header-wrap,
.kp-product-page .ast-builder-menu-mobile,
.kp-product-page #colophon,
.kp-product-page .site-footer{display:none!important;}
