/* Asia Battery Tab: rebuilt from the old Divi site. Black hero band with blurbs, light featured grid,
   red #ec2f2f / photo / near-black call-to-action boxes, Open Sans, light patterned product pages. */

body { font-family: "Open Sans", Arial, sans-serif; color: #666; }
h1, h2, h3 { color: #333; }
.ab-wrap { width: min(1080px, 80%); margin-inline: auto; }
.ab-center { text-align: center; }
.ab-band { padding: clamp(40px, 5vw, 70px) 0; }
.ab-pattern { background: #f4f4f4 linear-gradient(#f4f4f4, #fff); }
.ab-h1 { font: 600 clamp(30px, 3.4vw, 42px)/1.2 "Open Sans", sans-serif; color: #222; margin: 0 0 30px; }
.ab-h2 { font: 500 26px/1.3 "Open Sans", sans-serif; color: #666; margin: 0 0 30px; }
.ab-lead { font-size: 18px; line-height: 1.7; }
.ab-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; align-items: center; margin-bottom: 40px; }
.ab-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5.5%; margin-top: 40px; }

/* header: Divi default white */
.site-header.header-light { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 rgba(0,0,0,.1); backdrop-filter: none; }
.brand img { height: 40px; }
.site-nav a { font: 600 14px/1.4 "Open Sans", sans-serif; }
.header-light .site-nav > ul > li > a { color: rgba(0,0,0,.6); border-bottom: 0; }
.header-light .site-nav a[aria-current="page"] { color: #2ea3f2; }
.sub { border-top: 3px solid #2ea3f2; border-radius: 0; }

/* hero: black band, slider, three blurbs */
.ab-hero { background: #000; color: #fff; padding: clamp(40px, 5vw, 70px) 0; }
.ab-slider { position: relative; aspect-ratio: 1080 / 380; overflow: hidden; background: #111; }
.ab-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.ab-slide.is-active { opacity: 1; }
.ab-slide img { width: 100%; height: 100%; object-fit: cover; }
.ab-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.ab-dots button { width: 8px; height: 8px; border: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.ab-dots button[aria-current="true"] { background: #fff; }
.ab-blurb img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; margin-bottom: 18px; }
.ab-blurb h2 { color: #fff; font: 700 18px/1.3 "Open Sans", sans-serif; margin: 0 0 10px; }
.ab-blurb p, .ab-blurb li { color: #fff; font-size: 14px; }
.ab-blurb ul, .ab-box ul { list-style: disc; padding-left: 1.2em; }

/* product grids */
.ab-featured { background: #fff; }
.ab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 3%; }
.ab-prod a { display: block; text-decoration: none; color: #333; }
.ab-prod-img { display: block; background: #fff; border: 1px solid #eee; aspect-ratio: 1; overflow: hidden; }
.ab-prod-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.ab-prod a:hover img { transform: scale(1.04); }
.ab-prod h3 { font: 500 14px/1.4 "Open Sans", sans-serif; color: #333; margin: 10px 0 0; }
.ab-noimg { display: block; aspect-ratio: 1; background: #f0f0f0; }
.ab-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 4%; }
.ab-cat a { display: block; text-decoration: none; text-align: center; color: #333; background: #fff; padding: 20px; transition: box-shadow .2s; }
.ab-cat a:hover { box-shadow: 0 10px 30px -12px rgba(0,0,0,.3); }
.ab-cat img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ab-cat h2 { font: 600 20px/1.3 "Open Sans", sans-serif; margin: 12px 0 2px; }
.ab-cat p { margin: 0; font-size: 13px; color: #999; }
.ab-crumbs { font-size: 13px; color: #999; margin: 0 0 8px; }
.ab-crumbs a { color: #ec2f2f; }

/* product page */
.ab-product { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; align-items: start; }
.ab-gallery { display: grid; gap: 10px; }
.ab-gallery a { display: block; border: 1px solid #eee; background: #fff; cursor: zoom-in; }
.ab-gallery img { width: 100%; }
.ab-desc { font-size: 15px; line-height: 1.8; }
.ab-desc ul { list-style: disc; padding-left: 1.2em; }
.ab-desc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.ab-desc td, .ab-desc th { border: 1px solid #ddd; padding: 6px 10px; }
.ab-enquire { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn.ab-wa { background: #25d366; color: #fff; border: 0; border-radius: 5px; text-transform: none; letter-spacing: 0; font: 700 15px/1.3 "Open Sans", sans-serif; min-height: 0; padding: 12px 20px; }
.btn.ab-wa:hover { background: #1fb457; color: #fff; }
.btn.ab-mail { background: #222; color: #fff; border: 0; border-radius: 5px; text-transform: none; letter-spacing: 0; font: 700 15px/1.3 "Open Sans", sans-serif; min-height: 0; padding: 12px 20px; }
.btn.ab-mail:hover { background: #ec2f2f; color: #fff; }
.ab-wa svg, .ab-mail svg { width: 18px; height: 18px; }

/* call-to-action band and boxes */
.ab-cta { background: #000; padding: clamp(40px, 5vw, 70px) 0; }
.ab-cta-in { width: min(1400px, 90%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-box { position: relative; overflow: hidden; padding: 80px 40px; color: #fff; }
.ab-box > * { position: relative; }
.ab-box h2 { color: #fff; font: 600 24px/1.3 "Open Sans", sans-serif; margin: 0 0 14px; }
.ab-box h3 { color: #fff; font: 600 17px/1.3 "Open Sans", sans-serif; margin: 16px 0 4px; }
.ab-box p, .ab-box li { color: #fff; font-size: 14px; }
.ab-box a { color: #fff; }
.ab-box.is-red { background: #ec2f2f; }
.ab-box.is-dark { background: #1d1d1d; }
.ab-box.is-photo { background: #222; }
.ab-box-bg { position: absolute !important; inset: 0; }
.ab-box-bg img { width: 100%; height: 100%; object-fit: cover; }
.ab-box-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(236, 47, 47, .85), rgba(0, 0, 0, .55)); }
.ab-about-boxes { align-items: stretch; }
.ab-about-boxes .ab-box { padding: 60px 40px; }
.ab-ico svg { width: 48px; height: 48px; color: #fff; margin-bottom: 14px; }
.ab-ico.is-red svg { color: #ec2f2f; }
.ab-brands li { margin-bottom: 4px; font-size: 18px; }

/* contact */
.ab-contact { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2%; align-items: stretch; margin-bottom: 30px; }
.ab-panel { background: #fff; padding: 40px; }
.ab-form { background: none; border: 0; padding: 0; }
.ab-form .field input, .ab-form .field textarea { background: #eee; border: 0; border-radius: 0; }
.ab-info { padding: 40px 30px; }
.ab-info img { max-width: 200px; margin-top: 16px; background: #fff; }
.ab-map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* footer + whatsapp */
.site-footer.ab-footer { background: #000; color: #ccc; padding: 50px 0 20px; }
.ab-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; }
.ab-footer h2 { color: #fff; font: 600 18px/1.3 "Open Sans", sans-serif; margin: 0 0 14px; }
.ab-footer li { margin-bottom: 8px; }
.site-footer.ab-footer a { color: #fff; display: inline; }
.ab-copy { text-align: center; font-size: 13px; margin: 30px 0 0; color: #999; }
.ab-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 6px rgba(0,0,0,.3); }
.ab-wa-float svg { width: 30px; height: 30px; }

@media (max-width: 980px) {
  .ab-3, .ab-2, .ab-cta-in, .ab-product, .ab-contact, .ab-footer-grid { grid-template-columns: 1fr; }
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-box { padding: 50px 28px; }
}
@media (max-width: 640px) {
  .ab-wrap { width: calc(100% - 40px); }
  .ab-cats { grid-template-columns: 1fr; }
  .ab-panel { padding: 24px; }
  .ab-footer .ab-wrap { padding-right: 60px; }
}
@media (prefers-reduced-motion: reduce) { .ab-slide { transition: none; } }
