```html
<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="pingback" href="https://www.batteryworld.com/xmlrpc.php">

	<meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5QW8LH4');</script>
<!-- End Google Tag Manager -->
    <!-- Preconnect to CDN -->
    <link rel="preconnect" href="https://bwus.sfo3.cdn.digitaloceanspaces.com" crossorigin>
    <link rel="dns-prefetch" href="https://bwus.sfo3.cdn.digitaloceanspaces.com">
    <!-- Preload LCP Logo -->
    <link rel="preload" as="image" href="https://bwus.sfo3.cdn.digitaloceanspaces.com/wp-content/uploads/2020/06/14173433/cropped-logo2019-e1714549868335.png"
        fetchpriority="high">
        <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3E%3Ccircle%20cx='256'%20cy='256'%20r='244'%20fill='%2333764d'/%3E%3Ctext%20x='256'%20y='266'%20font-family='-apple-system,%20BlinkMacSystemFont,%20%27Avenir%20Next%27,%20%27Helvetica%20Neue%27,%20sans-serif'%20font-weight='900'%20font-size='240'%20fill='%23ffffff'%20text-anchor='middle'%20dominant-baseline='central'%3EBW%3C/text%3E%3C/svg%3E">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
    <link rel="manifest" href="/site.webmanifest">
        <link rel="preload" href="/wp-content/fonts/source-sans-pro/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlxdu.woff2" as="font"
        type="font/woff2" crossorigin>
    <link rel="preload" href="/wp-content/fonts/source-sans-pro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2" as="font"
        type="font/woff2" crossorigin>
    <script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied',
  'region': ['AT','BE','BG','HR','CY','CZ','DK','EE','FI','FR','DE','GR','HU','IE','IT','LV','LT','LU','MT','NL','PL','PT','RO','SK','SI','ES','SE','IS','LI','NO','GB','CH']
});
</script>
    	<link rel="preload" href="https://www.batteryworld.com/wp-content/themes/martfury/fonts/linearicons.woff2" as="font" type="font/woff2" crossorigin>
	<link rel="preload" href="https://www.batteryworld.com/wp-content/themes/martfury/fonts/eleganticons.woff2" as="font" type="font/woff2" crossorigin>
	<link rel="preload" href="https://www.batteryworld.com/wp-content/themes/martfury/fonts/ionicons.woff2" as="font" type="font/woff2" crossorigin>
	<script>window._wca = window._wca || [];</script>

	<!-- This site is optimized with the Yoast SEO plugin v28.8 - https://yoast.com/product/yoast-seo-wordpress/ -->
	<title>Decoding Ah: Understanding Battery Capacity</title>
	<link rel="canonical" href="https://www.batteryworld.com/decoding-ah-understanding-battery-capacity" />
	<meta property="og:locale" content="en_US" />
	<meta property="og:type" content="article" />
	<meta property="og:title" content="Decoding Ah: Understanding Battery Capacity" />
	<meta property="og:description" content="Uncover the mystery behind battery capacity with this informative blog post on Ah calculation. The Basics of Ah: Ampere-Hour Explanation Ah, or ampere-hour, is a unit of measurement used to describe the capacity of a battery. It represents the amount of electrical charge that a battery can deliver over a specific period of time. In&hellip;" />
	<meta property="og:url" content="https://www.batteryworld.com/decoding-ah-understanding-battery-capacity" />
	<meta property="og:site_name" content="Battery World" />
	<meta property="article:published_time" content="2024-05-03T03:49:56+00:00" />
	<meta property="article:modified_time" content="2024-05-03T03:49:58+00:00" />
	<meta name="author" content="Battery World" />
	<meta name="twitter:card" content="summary_large_image" />
	<!-- / Yoast SEO plugin. -->


<link rel='dns-prefetch' href='//stats.wp.com' />
<style id="wp-img-auto-sizes-contain-inline-css">
img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px}
/*# sourceURL=wp-img-auto-sizes-contain-inline-css */
</style>
<style id="wp-emoji-styles-inline-css">

	img.wp-smiley, img.emoji {
		display: inline !important;
		border: none !important;
		box-shadow: none !important;
		height: 1em !important;
		width: 1em !important;
		margin: 0 0.07em !important;
		vertical-align: -0.1em !important;
		background: none !important;
		padding: 0 !important;
	}
/*# sourceURL=wp-emoji-styles-inline-css */
</style>
<style id="wp-block-library-inline-css">
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-color]){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}

/*# sourceURL=/wp-includes/css/dist/block-library/common.min.css */
</style>
<style id="classic-theme-styles-inline-css">
/*! This file is auto-generated */
.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
/*# sourceURL=/wp-includes/css/classic-themes.min.css */
</style>

<link rel='stylesheet' id='wc-blocks-style-css' href='https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks.css?ver=wc-11.0.0' media='all' />

<link rel='stylesheet' id='wc-ppcp-mini-cart-buttons-css' href='https://www.batteryworld.com/wp-content/plugins/woocommerce-paypal-payments/assets/ppcp-blocks-css-mini-cart-buttons.css?ver=4.2.0' media='all' />
<style id="global-styles-inline-css">
:root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgb(6,147,227) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgb(252,185,0) 0%,rgb(255,105,0) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgb(255,105,0) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgb(255, 255, 255), 6px 6px rgb(0, 0, 0);--wp--preset--shadow--crisp: 6px 6px 0px rgb(0, 0, 0);}:where(body) { margin: 0; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}body{padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;}:root :where(.wp-element-button, .wp-block-button__link){background-color: #32373c;border-width: 0;color: #fff;font-family: inherit;font-size: inherit;font-style: inherit;font-weight: inherit;letter-spacing: inherit;line-height: inherit;padding-top: calc(0.667em + 2px);padding-right: calc(1.333em + 2px);padding-bottom: calc(0.667em + 2px);padding-left: calc(1.333em + 2px);text-decoration: none;text-transform: inherit;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}
/*# sourceURL=global-styles-inline-css */
</style>

<link rel='stylesheet' id='woocommerce-general-css' href='https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/css/woocommerce.css?ver=11.0.0' media='all' />
<style id="woocommerce-inline-inline-css">
.woocommerce form .form-row .required { visibility: visible; }
/*# sourceURL=woocommerce-inline-inline-css */
</style>
<link rel='stylesheet' id='solr_frontend-css' href='https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/core/css/style.css?ver=24.0' media='all' />
<link rel='stylesheet' id='linearicons-css' href='https://www.batteryworld.com/wp-content/themes/martfury/css/linearicons.min.css?ver=1.0.0' media='print' onload="this.media='all'" />
<noscript><link rel='stylesheet' href='https://www.batteryworld.com/wp-content/themes/martfury/css/linearicons.min.css?ver=1.0.0' media='all' /></noscript><link rel='stylesheet' id='ionicons-css' href='https://www.batteryworld.com/wp-content/themes/martfury/css/ionicons.min.css?ver=2.0.0' media='print' onload="this.media='all'" />
<noscript><link rel='stylesheet' href='https://www.batteryworld.com/wp-content/themes/martfury/css/ionicons.min.css?ver=2.0.0' media='all' /></noscript><link rel='stylesheet' id='eleganticons-css' href='https://www.batteryworld.com/wp-content/themes/martfury/css/eleganticons.min.css?ver=1.0.0' media='print' onload="this.media='all'" />
<noscript><link rel='stylesheet' href='https://www.batteryworld.com/wp-content/themes/martfury/css/eleganticons.min.css?ver=1.0.0' media='all' /></noscript><link rel='stylesheet' id='font-awesome-css' href='https://www.batteryworld.com/wp-content/themes/martfury/css/font-awesome.min.css?ver=4.7.0' media='print' onload="this.media='all'" />
<noscript><link rel='stylesheet' href='https://www.batteryworld.com/wp-content/themes/martfury/css/font-awesome.min.css?ver=4.7.0' media='all' /></noscript><link rel='stylesheet' id='bootstrap-css' href='https://www.batteryworld.com/wp-content/themes/martfury/css/bootstrap.min.css?ver=3.3.7' media='all' />
<link rel='stylesheet' id='martfury-css' href='https://www.batteryworld.com/wp-content/themes/martfury/style.css?ver=20221213' media='all' />
<style id="martfury-inline-css">
.site-header .logo img  {width:248px; }.site-header .logo img  {height:33px; }	/* Color Scheme */

	/* Color */

	body {
		--mf-primary-color: #33764d;
		--mf-background-primary-color: #33764d;
		--mf-border-primary-color: #33764d;
	}

	.widget_shopping_cart_content .woocommerce-mini-cart__buttons .checkout,
	 .header-layout-4 .topbar:not(.header-bar),
	 .header-layout-3 .topbar:not(.header-bar){
		background-color: #24673e;
	}

body{font-family: "Source Sans Pro";font-size: 16px;}h1{font-family: "Source Sans Pro";font-size: 32px;font-weight: 900;}.entry-content h2, .woocommerce div.product .woocommerce-tabs .panel h2{font-family: "Source Sans Pro";}h3{font-family: "Source Sans Pro";}.entry-content h4, .woocommerce div.product .woocommerce-tabs .panel h4{font-family: "Source Sans Pro";}.entry-content h5, .woocommerce div.product .woocommerce-tabs .panel h5{font-family: "Source Sans Pro";}.entry-content h6, .woocommerce div.product .woocommerce-tabs .panel h6{font-family: "Source Sans Pro";}.site-header .primary-nav > ul > li > a, .site-header .products-cats-menu .menu > li > a{font-family: "Source Sans Pro";}.site-header .menu .is-mega-menu .dropdown-submenu .menu-item-mega > a{font-family: "Source Sans Pro";font-size: 14px;}.site-header .menu li li a{font-family: "Source Sans Pro";font-size: 12px;}	h1{font-family:Source Sans Pro, Arial, sans-serif}h1.vc_custom_heading{font-weight:900}	h2{font-family:Source Sans Pro, Arial, sans-serif}	h3{font-family:Source Sans Pro, Arial, sans-serif}	h4{font-family:Source Sans Pro, Arial, sans-serif}	h5{font-family:Source Sans Pro, Arial, sans-serif}	h6{font-family:Source Sans Pro, Arial, sans-serif}
/*# sourceURL=martfury-inline-css */
</style>
<link rel='stylesheet' id='photoswipe-css' href='https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/css/photoswipe/photoswipe.min.css?ver=11.0.0' media='print' onload="this.media='all'" />
<noscript><link rel='stylesheet' href='https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/css/photoswipe/photoswipe.min.css?ver=11.0.0' media='all' /></noscript><link rel='stylesheet' id='photoswipe-default-skin-css' href='https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.min.css?ver=11.0.0' media='print' onload="this.media='all'" />
<noscript><link rel='stylesheet' href='https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.min.css?ver=11.0.0' media='all' /></noscript><link rel='stylesheet' id='wpsolr-facet-hierarchy-css-css' href='https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/theme/template/facet-hierarchy/wpsolr-facet-hierarchy.css?ver=24.0' media='all' />
<link rel='stylesheet' id='wpsolr-facet-range-css-css' href='https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/theme/template/facet-range/wpsolr-facet-range.css?ver=24.0' media='all' />
<link rel='stylesheet' id='wpsolr-facet-color-picker-css-css' href='https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/theme/template/facet-color-picker/wpsolr-facet-color-picker.css?ver=24.0' media='all' />
<link rel='stylesheet' id='dashicons-css' href='https://www.batteryworld.com/wp-includes/css/dashicons.min.css?ver=7.0.4' media='all' />
<link rel='stylesheet' id='a-z-listing-css' href='https://www.batteryworld.com/wp-content/plugins/a-z-listing/css/a-z-listing-default.css?ver=4.3.1' media='all' />
<link rel='stylesheet' id='martfury-child-style-css' href='https://www.batteryworld.com/wp-content/themes/martfury-child/style.css?ver=1793526854' media='all' />
<script type="text/template" id="tmpl-variation-template">
	<div class="woocommerce-variation-description">{{{ data.variation.variation_description }}}</div>
	<div class="woocommerce-variation-price">{{{ data.variation.price_html }}}</div>
	<div class="woocommerce-variation-availability">{{{ data.variation.availability_html }}}</div>
</script>
<script type="text/template" id="tmpl-unavailable-variation-template">
	<p role="alert">Sorry, this product is unavailable. Please choose a different combination.</p>
</script>
<script id="jquery-core-js" src="https://www.batteryworld.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1"></script>
<script id="jquery-migrate-js" src="https://www.batteryworld.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1"></script>
<script data-wp-strategy="defer" defer id="wc-jquery-blockui-js" src="https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.7.0-wc.11.0.0"></script>
<script data-wp-strategy="defer" defer id="wc-js-cookie-js" src="https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4-wc.11.0.0"></script>
<script id="woocommerce-js-extra">
var woocommerce_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_password_show":"Show password","i18n_password_hide":"Hide password"};
//# sourceURL=woocommerce-js-extra
</script>
<script data-wp-strategy="defer" defer id="woocommerce-js" src="https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=11.0.0"></script>
<script id="gtm-ecommerce-woo-pro-js" src="https://www.batteryworld.com/wp-content/plugins/gtm-ecommerce-woo-pro/assets/gtm-ecommerce-woo-pro.js?ver=1.18.0"></script>
<script id="WCPAY_ASSETS-js-extra">
var wcpayAssets = {"url":"https://www.batteryworld.com/wp-content/plugins/woocommerce-payments/dist/"};
//# sourceURL=WCPAY_ASSETS-js-extra
</script>
<script id="bw-currency-switcher-js-extra">
var BW_CURRENCY = {"ajaxUrl":"https://www.batteryworld.com/wp-admin/admin-ajax.php","nonce":"f9f4217fd2","action":"bw_set_currency"};
//# sourceURL=bw-currency-switcher-js-extra
</script>
<script id="bw-currency-switcher-js-after">
(function () {
	'use strict';

	var CONFIG = window.BW_CURRENCY || {};
	if (!CONFIG.ajaxUrl || !CONFIG.action) {
		return;
	}

	var NONCE = CONFIG.nonce || '';

	function cleanUrl() {
		// Reload without any ?currency= param so it never appears in the address bar.
		var url = new URL(window.location.href);
		url.searchParams.delete('currency');
		return url.toString();
	}

	function setCurrency(code) {
		var body = new URLSearchParams();
		body.set('action', CONFIG.action);
		body.set('nonce', NONCE);
		body.set('currency', code);

		fetch(CONFIG.ajaxUrl, {
			method: 'POST',
			credentials: 'same-origin',
			headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' },
			body: body.toString()
		})
			.then(function (r) { return r.json(); })
			.then(function (res) {
				// Success or failure: reload clean. Server re-renders with the
				// actual session currency either way, so the UI self-corrects.
				window.location.href = cleanUrl();
			})
			.catch(function () {
				window.location.href = cleanUrl();
			});
	}

	function isWooPaySelect(el) {
		if (!el || el.tagName !== 'SELECT') {
			return false;
		}
		if (el.classList && el.classList.contains('js-woopayments-currency-switcher')) {
			return true;
		}
		// Fallback: WCPay's select is named "currency" and lives in a bare form.
		return el.getAttribute('name') === 'currency' && !!el.form;
	}

	function hijackWooPay(el) {
		setCurrency(String(el.value).toUpperCase());
	}

	function init() {
		// WCPay's switcher: capture-phase listeners beat its inline
		// onchange="this.form.submit()" (which would GET-navigate to ?currency=).
		document.addEventListener('change', function (e) {
			if (!isWooPaySelect(e.target)) {
				return;
			}
			e.preventDefault();
			e.stopPropagation();
			hijackWooPay(e.target);
		}, true);

		document.addEventListener('submit', function (e) {
			var form = e.target;
			if (!form || form.tagName !== 'FORM') {
				return;
			}
			var sel = form.querySelector('select[name="currency"]');
			if (!isWooPaySelect(sel)) {
				return;
			}
			e.preventDefault();
			e.stopPropagation();
			hijackWooPay(sel);
		}, true);
	}

	if (document.readyState === 'loading') {
		document.addEventListener('DOMContentLoaded', init);
	} else {
		init();
	}
})();
//# sourceURL=bw-currency-switcher-js-after
</script>
<script data-wp-strategy="defer" defer id="underscore-js" src="https://www.batteryworld.com/wp-includes/js/underscore.min.js?ver=1.13.8"></script>
<script id="wp-util-js-extra">
var _wpUtilSettings = {"ajax":{"url":"/wp-admin/admin-ajax.php"}};
//# sourceURL=wp-util-js-extra
</script>
<script data-wp-strategy="defer" defer id="wp-util-js" src="https://www.batteryworld.com/wp-includes/js/wp-util.min.js?ver=7.0.4"></script>
<script id="wc-add-to-cart-variation-js-extra">
var wc_add_to_cart_variation_params = {"wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_no_matching_variations_text":"Sorry, no products matched your selection. Please choose a different combination.","i18n_make_a_selection_text":"Please select some product options before adding this product to your cart.","i18n_unavailable_text":"Sorry, this product is unavailable. Please choose a different combination.","i18n_reset_alert_text":"Your selection has been reset. Please select some product options before adding this product to your cart."};
//# sourceURL=wc-add-to-cart-variation-js-extra
</script>
<script data-wp-strategy="defer" defer id="wc-add-to-cart-variation-js" src="https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js?ver=11.0.0"></script>
<script data-wp-strategy="defer" defer id="woocommerce-analytics-js" src="https://stats.wp.com/s-202649.js"></script>
<script id="wc-cart-fragments-js-extra">
var wc_cart_fragments_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","cart_hash_key":"wc_cart_hash_76cb190249d6133203919510d2519b28","fragment_name":"wc_fragments_76cb190249d6133203919510d2519b28","request_timeout":"5000"};
//# sourceURL=wc-cart-fragments-js-extra
</script>
<script data-wp-strategy="defer" defer id="wc-cart-fragments-js" src="https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=11.0.0"></script>
        <script>
            wpsolr_globalError = [];
            window.onerror = function (msg, url, line, col, error) {
                wpsolr_globalError.push({msg: msg, url: url, line: line, error: error});
            };
        </script>
			<noscript><style>.woocommerce-product-gallery{ opacity: 1 !important; }</style></noscript>
	    <script data-no-minify="1" data-no-optimize="1" data-cfasync="false" data-rocket-delay-js="false">
        var initOpts = {
            projectKey: "TW1fuC2ImU9nJawb5InA",
            ingestPoint: "https://or.batteryworld.com/ingest",
            defaultInputMode: 0,
            obscureTextNumbers: false,
            obscureTextEmails: false,
        };
        
        // Ensure reliable cross-subdomain session grouping using a persistent cookie
        function getOrCreateUUID() {
            var name = "bw_unique_user_id=";
            var decodedCookie = decodeURIComponent(document.cookie);
            var ca = decodedCookie.split(';');
            for(var i = 0; i < ca.length; i++) {
                var c = ca[i];
                while (c.charAt(0) == ' ') { c = c.substring(1); }
                if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
            }
            var uuid = "bw-" + crypto.randomUUID();
            var d = new Date();
            d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000)); // 1 year expiration
            document.cookie = name + uuid + ";expires=" + d.toUTCString() + ";path=/";
            return uuid;
        }
        var startOpts = { userID: getOrCreateUUID() };
        
        (function (A, s, a, y, e, r) {
            r = window.OpenReplay = [e, r, y, [s - 1, e]];
            s = document.createElement('script'); s.src = A; s.async = !a;
            document.getElementsByTagName('head')[0].appendChild(s);
            r.start = function (v) { r.push([0]) };
            r.stop = function (v) { r.push([1]) };
            r.setUserID = function (id) { r.push([2, id]) };
            r.setUserAnonymousID = function (id) { r.push([3, id]) };
            r.setMetadata = function (k, v) { r.push([4, k, v]) };
            r.event = function (k, p, i) { r.push([5, k, p, i]) };
            r.issue = function (k, p) { r.push([6, k, p]) };
            r.isActive = function () { return false };
            r.getSessionToken = function () { };
        })("//static.openreplay.com/17.2.6/openreplay-assist.js", 1, 0, initOpts, startOpts);
        
        // Add IP as searchable metadata
        window.OpenReplay.setMetadata('IP', "152.163.114.150");
        window.OpenReplay.setMetadata('cond_tag', "is_single");
        
        window.OpenReplay.event('new_visitor_landed', { page: window.location.pathname });
    </script>
    <style id="wp-custom-css">
.woocommerce-Price-amount {
	color: green !important;
}

.search-results .breadcrumbs {
	display:none;
}


.page-breadcrumbs {
	padding: 10px
}

.az-listing {
	padding-top: 15px;
}

.page-breadcrumbs h1 {
	font-size: 18px;
	display: inline-block;
}

.mf-shop-content .product-category {
	background-color: lightgrey;
	margin: 5px;
}

.mf-shop-content .product-category h2 {
	margin: 0px !important;
	font-weight: bold !important;
}

.mf-shop-content .product-category img {
	display: none !important;
}

.search #wcpf_filters-3 {
	display: none !important;
}

.home .mf-toolbar-empty-space {
	height: 0px;
}

.mf-shop-content .product-category {
	margin: 0px;
	background-color: white;
}

.mf-shop-content .product-category:hover {
	background-color: #f2f2f2;
	cursor: pointer;
	border-radius: 5px;
	color: black !important;
}

.woocommerce ul.products li.product.product-category:hover .woocommerce-loop-category__title, .woocommerce ul.products li.product.product-category:hover .count {
	color: black !important;
}

.select_opt a, .wpsolr_facet_checkbox .select_opt, .wpsolr_facet_radiobox .select_opt {
	font-family: "Source Sans Pro" !important;
	color: #8d8d8d;
}
.widgets-area ul li {
	padding: 0px 0 !important;
}

#menu-extra-login span,
#menu-extra-register {
	display: none;
}
</style>
<style id="kirki-inline-styles">/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lqDY.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lqDY.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lqDY.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lqDY.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lqDY.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lqDY.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmhduz8A.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwkxduz8A.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmxduz8A.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlBduz8A.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmBduz8A.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmRduz8A.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://www.batteryworld.com/wp-content/fonts/source-sans-pro/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlxdu.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}</style>
</head>

<body class="wp-singular post-template-default single single-post postid-260319 single-format-standard wp-custom-logo wp-embed-responsive wp-theme-martfury wp-child-theme-martfury-child theme-martfury woocommerce-no-js is-us header-layout-3 single-post-layout-1 full-content mf-light-skin header-no-department mf-product-loop-hover-4 product_loop-no-hover">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5QW8LH4" height="0" width="0" style="display:none"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

<div id="page" class="hfeed site">
	    <header id="site-header" class="site-header header-department-bot header-dark">
		<div class="header-main-wapper">
	<div class="header-main">
		<div class="martfury-container">
			<div class="row header-row">
				<div class="header-logo col-md-3 col-sm-3">
					<div class="d-logo">
						<div class="logo">
							<a href="/">
								<img class="site-logo" alt="Battery World" src="https://bwus.sfo3.cdn.digitaloceanspaces.com/wp-content/uploads/2020/06/14173433/cropped-logo2019-e1714549868335.png" width="380" height="50" fetchpriority="high" decoding="sync" />
							</a>
						</div>
						<p class="site-title"><a href="/" rel="home">Battery World</a></p>
						<h2 class="site-description">Replacement Batteries for All Devices</h2>
					</div>
				</div>
				<div class="header-extras col-md-9 col-sm-9">
					<div class="product-extra-search">
						<form class="products-search" method="get" action="/">
							<div class="psearch-content">
								<div class="product-cat"><div class="product-cat-label no-cats">All</div> </div>
								<div class="search-wrapper">
									<input type="text" name="s" class="search-field" autocomplete="off" placeholder="Search products...">
									<div class="search-results woocommerce"></div>
								</div>
								<button type="submit" class="search-submit mf-background-primary">Search</button>
							</div>
						</form>
					</div>
					<ul class="extras-menu">
						<li class="extra-menu-item menu-item-cart mini-cart woocommerce">
							<a class="cart-contents" id="icon-cart-contents" href="/cart">
								<i class="icon-bag2 extra-icon"></i>
								<span class="mini-item-counter mf-background-primary">0</span>
							</a>
							<div class="mini-cart-content">
								<span class="tl-arrow-menu"></span>
								<div class="widget_shopping_cart_content">
									

    <p class="woocommerce-mini-cart__empty-message">No products in the cart.</p>


								</div>
							</div>
						</li>
													<li class="extra-menu-item menu-item-account">
								<a href="/my-account" id="menu-extra-login"><i class="extra-icon icon-user"></i><span class="login-text">Log in</span></a>
								<a href="/my-account" class="item-register" id="menu-extra-register">Register</a>
							</li>
											</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="main-menu hidden-xs hidden-sm">
	<div class="martfury-container">
		<div class="row header-row">
			<div class="col-md-12 col-sm-12 col-nav-menu mr-header-menu">
				<div class="recently-viewed"></div>
			</div>
		</div>
	</div>
</div>
<div class="mobile-menu hidden-lg hidden-md">
	<div class="container">
		<div class="mobile-menu-row">
			<a class="mf-toggle-menu" id="mf-toggle-menu" href="#">
				<i class="icon-menu"></i>
			</a>
			<div class="product-extra-search">
				<form class="products-search" method="get" action="/">
					<div class="psearch-content">
						<div class="product-cat"><div class="product-cat-label no-cats">All</div> </div>
						<div class="search-wrapper">
							<input type="text" name="s" class="search-field" autocomplete="off" placeholder="Search products...">
							<div class="search-results woocommerce"></div>
						</div>
						<button type="submit" class="search-submit mf-background-primary">Search</button>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
    </header>
	<div class="single-post-header text-center layout-1">
	<div class="container">
		<div class="page-content">
			<h1 class="entry-title">Decoding Ah: Understanding Battery Capacity</h1>			<div class="entry-metas">
				<a href="https://www.batteryworld.com/2024/05/02" class="entry-meta" rel="bookmark"><time class="entry-date published updated" datetime="2024-05-02T20:49:56-07:00">May 2, 2024</time></a><span class="sep"> /</span><span class="entry-author entry-meta"> by <a class="url fn n" href="https://www.batteryworld.com/author/infobatteryworld">Battery World</a></span><span class="sep"> /</span><span class="cat-links entry-meta"> in <a href="https://www.batteryworld.com/articles" rel="category tag">Articles</a></span>			</div>
		</div>
	</div>
	<div class="featured-image"></div>
</div>

    <div id="content" class="site-content">
				<div class="container"><div class="row">
    <div id="primary" class="content-area col-md-12">
        <main id="main" class="site-main">

			
				<article id="post-260319" class="single-post-wrapper post-260319 post type-post status-publish format-standard hentry category-articles">
    <header class="entry-header">
							    </header>
    <div class="entry-content">
		
<p>Uncover the mystery behind battery capacity with this informative blog post on Ah calculation.</p>
<span id="more-260319"></span>
<h2>The Basics of Ah: Ampere-Hour Explanation</h2>
<p>Ah, or ampere-hour, is a unit of measurement used to describe the capacity of a battery. It represents the amount of electrical charge that a battery can deliver over a specific period of time.</p>
<p>In simple terms, Ah indicates how long a battery can sustain a certain level of electrical current. For example, a battery with a higher Ah rating will be able to power a device for a longer duration compared to a battery with a lower Ah rating.</p>
<p>To calculate the total energy capacity of a battery in Ah, you need to multiply the current (in amperes) by the time (in hours) the battery can sustain that current. This calculation gives you an idea of how much energy the battery can store and deliver.</p>
<p>Understanding Ah is crucial when choosing the right battery for your application. It helps ensure that you select a battery with sufficient capacity to meet your power requirements.</p>
<p>In the next sections, we will explore the factors that affect battery capacity, how to calculate battery life using Ah, and compare different battery capacities to make informed decisions.</p>
<h2>Factors Affecting Battery Capacity</h2>
<p>Several factors can affect the capacity of a battery, impacting its Ah rating. These factors include:</p>
<p>1. Battery Chemistry: Different battery chemistries have varying energy densities, affecting their capacity. For example, lithium-ion batteries typically have higher energy densities compared to lead-acid batteries.</p>
<p>2. Temperature: Extreme temperatures can significantly impact a battery&#8217;s performance and capacity. Cold temperatures tend to reduce a battery&#8217;s capacity, while high temperatures can cause faster self-discharge.</p>
<p>3. Discharge Rate: The rate at which a battery is discharged can affect its capacity. Higher discharge rates may lead to a lower effective capacity, as some batteries struggle to sustain high currents.</p>
<p>4. Age and Usage: Over time, a battery&#8217;s capacity may degrade due to chemical reactions and wear. Regular usage and proper maintenance can help prolong a battery&#8217;s capacity.</p>
<p>By considering these factors, you can better understand and manage the capacity of your batteries.</p>
<h2>Calculating Battery Life Using Ah</h2>
<p>With the Ah rating of a battery, you can estimate its battery life in a specific application. To calculate the battery life, follow these steps:</p>
<p>1. Determine the current draw of the device in amperes.</p>
<p>2. Divide the battery&#8217;s Ah rating by the current draw to obtain the theoretical battery life in hours.</p>
<p>3. Keep in mind that this calculation provides an estimate and may vary due to factors such as battery efficiency and discharge characteristics.</p>
<p>By understanding how to calculate battery life using Ah, you can plan and optimize your power usage.</p>
<h2>Comparing Different Battery Capacities</h2>
<p>When comparing different battery capacities, it&#8217;s essential to consider both the Ah rating and the voltage of the batteries.</p>
<p>Higher Ah ratings indicate larger capacity batteries that can deliver more energy over a longer period. However, batteries with higher Ah ratings may also be physically larger and heavier.</p>
<p>On the other hand, the voltage of a battery determines its compatibility with specific devices. It&#8217;s important to ensure that the battery&#8217;s voltage matches the requirements of your device.</p>
<p>By comparing the Ah ratings and voltages of different batteries, you can make an informed decision based on your power needs and device compatibility.</p>
<h2>Maximizing Battery Performance with Ah Knowledge</h2>
<p>Having knowledge of Ah and battery capacity can help you maximize the performance and lifespan of your batteries.</p>
<p>Here are some tips to get the most out of your batteries:</p>
<p>&#8211; Avoid deep discharges: Deeply discharging a battery can reduce its overall capacity. Try to recharge the battery before it reaches a critically low level.</p>
<p>&#8211; Store batteries properly: Extreme temperatures can degrade battery capacity. Store batteries in a cool, dry place to maintain their performance.</p>
<p>&#8211; Choose the right battery for the application: Consider the power requirements and the intended usage of the battery. Select a battery with an appropriate Ah rating and chemistry.</p>
<p>&#8211; Follow proper charging practices: Use the recommended charger and charging method for your battery. Overcharging or undercharging can affect the battery&#8217;s capacity and lifespan.</p>
<p>By implementing these practices and utilizing your Ah knowledge, you can ensure optimal battery performance and longevity.</p>
		    </div>
    <!-- .entry-content -->

	<footer class="entry-footer">    <!-- .entry-footer -->
</article><!-- #post-## -->

				        <div class="post-author-box clearfix">
            <div class="post-author-avatar">
				            </div>
            <div class="post-author-desc">
                <div class="post-author-name">
                    <h3>Battery World</h3>

                    <p></p>
                </div>
            </div>
        </div>
						        <div class="mf-related-posts" id="mf-related-posts">
            <h2 class="related-title">Related Posts</h2>

            <div class="row">
                <div class="related-posts-list">
					
<article id="post-259505" class="blog-wapper col-md-4 col-sm-6 col-xs-6 post-item-grid post-259505 post type-post status-publish format-standard hentry category-articles">
	<header class="entry-header">
			</header>
	<!-- .entry-header -->

	<div class="entry-content">
		<div class="entry-content-top">
			<div class="categories-links">
				<a href="https://www.batteryworld.com/articles" rel="category tag">Articles</a>			</div>
			<h2 class="entry-title"><a href="https://www.batteryworld.com/nmc-vs-lifepo4-unpacking-energy-density-differences" rel="bookmark">NMC vs LiFePO4: Unpacking Energy Density Differences</a></h2>		</div>
		<div class="entry-content-bottom">
			<a href="https://www.batteryworld.com/2024/04/30" class="entry-meta" rel="bookmark"><time class="entry-date published updated" datetime="2024-04-30T10:26:14-07:00">April 30, 2024</time></a><span class="entry-author entry-meta"> by <a class="url fn n" href="https://www.batteryworld.com/author/infobatteryworld">Battery World</a></span>		</div>
	</div>
	<!-- .entry-content -->

</article><!-- #post-## -->

<article id="post-259490" class="blog-wapper col-md-4 col-sm-6 col-xs-6 post-item-grid post-259490 post type-post status-publish format-standard hentry category-articles">
	<header class="entry-header">
			</header>
	<!-- .entry-header -->

	<div class="entry-content">
		<div class="entry-content-top">
			<div class="categories-links">
				<a href="https://www.batteryworld.com/articles" rel="category tag">Articles</a>			</div>
			<h2 class="entry-title"><a href="https://www.batteryworld.com/effects-of-overcharging-golf-cart-batteries-explained" rel="bookmark">Effects of Overcharging Golf Cart Batteries Explained</a></h2>		</div>
		<div class="entry-content-bottom">
			<a href="https://www.batteryworld.com/2024/04/30" class="entry-meta" rel="bookmark"><time class="entry-date published updated" datetime="2024-04-30T10:12:16-07:00">April 30, 2024</time></a><span class="entry-author entry-meta"> by <a class="url fn n" href="https://www.batteryworld.com/author/infobatteryworld">Battery World</a></span>		</div>
	</div>
	<!-- .entry-content -->

</article><!-- #post-## -->

<article id="post-249424" class="blog-wapper col-md-4 col-sm-6 col-xs-6 post-item-grid post-249424 post type-post status-publish format-standard hentry category-articles">
	<header class="entry-header">
			</header>
	<!-- .entry-header -->

	<div class="entry-content">
		<div class="entry-content-top">
			<div class="categories-links">
				<a href="https://www.batteryworld.com/articles" rel="category tag">Articles</a>			</div>
			<h2 class="entry-title"><a href="https://www.batteryworld.com/ultimate-guide-to-buying-the-best-lithium-batteries-online" rel="bookmark">Ultimate Guide to Buying the Best Lithium Batteries Online</a></h2>		</div>
		<div class="entry-content-bottom">
			<a href="https://www.batteryworld.com/2024/04/26" class="entry-meta" rel="bookmark"><time class="entry-date published updated" datetime="2024-04-26T22:32:56-07:00">April 26, 2024</time></a><span class="entry-author entry-meta"> by <a class="url fn n" href="https://www.batteryworld.com/author/infobatteryworld">Battery World</a></span>		</div>
	</div>
	<!-- .entry-content -->

</article><!-- #post-## -->
                </div>
            </div>
        </div>
						
	<nav class="navigation post-navigation" aria-label="Posts">
		<h2 class="screen-reader-text">Post navigation</h2>
		<div class="nav-links"><div class="nav-previous"><a href="https://www.batteryworld.com/nmc-vs-lifepo4-unpacking-energy-density-differences" rel="prev"><span class="screen-reader-text">Previous Post</span><span class="icon-arrow-left"></span><span aria-hidden="true" class="nav-subtitle">Previous</span><br> <span class="nav-title">NMC vs LiFePO4: Unpacking Energy Density Differences</span></a></div></div>
	</nav>
				
			
        </main>
        <!-- #main -->
    </div><!-- #primary -->

	
</div></div></div><!-- #content -->
    <footer id="colophon" class="site-footer">
		<nav class="footer-layout footer-layout-1 footer-light">
		<div class="container">
		<div class="footer-content">
						<div class="footer-widgets columns-4" id="footer-widgets">
				<div class="footer-sidebar footer-1">
					<section id="nav_menu-4" class="widget widget_nav_menu">
						<div class="menu-customer-service-container">
							<ul id="menu-customer-service" class="menu">
								<li class="menu-item"><a href="/my-account">My Account</a></li>
								<li class="menu-item"><a href="/order-tracking">Order Tracking</a></li>
								<li class="menu-item"><a href="/about-us">About Us</a></li>
								<li class="menu-item"><a href="/contact-us">Contact Us</a></li>
							</ul>
						</div>
					</section>
				</div>
				<div class="footer-sidebar footer-2">
					<section id="nav_menu-8" class="widget widget_nav_menu">
						<div class="menu-policies-container">
							<ul id="menu-policies" class="menu">
								<li class="menu-item"><a href="/shipping-policy">Shipping Policy</a></li>
								<li class="menu-item"><a href="/return-policy">Return Policy</a></li>
								<li class="menu-item"><a href="/terms-conditions">Terms &#038; Conditions</a></li>
								<li class="menu-item"><a href="/privacy-policy">Privacy Policy</a></li>
							</ul>
						</div>
					</section>
				</div>
				<div class="footer-sidebar footer-3">
					<section id="custom_html-6" class="widget_text widget widget_custom_html">
						<div class="textwidget custom-html-widget">
							<div class="menu-footer-menu-container">
								<ul id="menu-footer-menu" class="menu">
									<li class="menu-item"><a href="/battery-cross-reference-chart">Cross Reference Chart</a></li>
									<li class="menu-item"><a href="/voltage">By Voltage</a></li>
									<li class="menu-item"><a href="/brand">Brands</a></li>
									<li class="menu-item"><a href="/sale">Sale</a></li>
								</ul>
							</div>
						</div>
					</section>
				</div>
				<div class="footer-sidebar footer-4">
						<section class="widget widget_bw_shipping_country bw-shipping-country-widget">
		<select id="bw-shipping-country" class="bw-shipping-country-select" aria-label="Billing and shipping country">
							<option value="AD">Andorra</option>
							<option value="AU">Australia</option>
							<option value="AT">Austria</option>
							<option value="BE">Belgium</option>
							<option value="BR">Brazil</option>
							<option value="BG">Bulgaria</option>
							<option value="CA">Canada</option>
							<option value="HR">Croatia</option>
							<option value="DK">Denmark</option>
							<option value="EE">Estonia</option>
							<option value="FI">Finland</option>
							<option value="FR">France</option>
							<option value="DE">Germany</option>
							<option value="GR">Greece</option>
							<option value="GL">Greenland</option>
							<option value="HU">Hungary</option>
							<option value="IE">Ireland</option>
							<option value="IL">Israel</option>
							<option value="IT">Italy</option>
							<option value="KZ">Kazakhstan</option>
							<option value="LV">Latvia</option>
							<option value="LI">Liechtenstein</option>
							<option value="LT">Lithuania</option>
							<option value="LU">Luxembourg</option>
							<option value="MT">Malta</option>
							<option value="MX">Mexico</option>
							<option value="MC">Monaco</option>
							<option value="NL">Netherlands</option>
							<option value="NZ">New Zealand</option>
							<option value="NO">Norway</option>
							<option value="PL">Poland</option>
							<option value="PT">Portugal</option>
							<option value="RO">Romania</option>
							<option value="RU">Russia</option>
							<option value="SA">Saudi Arabia</option>
							<option value="SK">Slovakia</option>
							<option value="SI">Slovenia</option>
							<option value="KR">South Korea</option>
							<option value="ES">Spain</option>
							<option value="SE">Sweden</option>
							<option value="CH">Switzerland</option>
							<option value="AE">United Arab Emirates</option>
							<option value="GB">United Kingdom (UK)</option>
							<option value="US" selected='selected'>United States (US)</option>
					</select>
	</section>
						<section id="currency_switcher_widget-2" class="widget widget_currency_switcher_widget">
						<div class="bw-currency-switcher bw-footer-currency-switcher"><form class="bw-currency-switcher-form">
				<select name="currency" class="js-woopayments-currency-switcher" aria-label="Currency">
			<option value="USD" selected>&#36; USD</option><option value="AUD">&#36; AUD</option><option value="CAD">&#36; CAD</option><option value="EUR">&euro; EUR</option><option value="MXN">&#36; MXN</option><option value="GBP">&pound; GBP</option><option value="SAR">&#x631;.&#x633; SAR</option><option value="AED">&#x62f;.&#x625; AED</option>		</select>
	</form></div>					</section>
				</div>
			</div>
					</div>
		<div class="footer-bottom">
			<div class="row footer-row">
				<div class="col-footer-copyright col-lg-6 col-md-12 col-sm-12 col-xs-12">
					<div class="footer-copyright">© 2026 Battery World - Battery Experts Since 1995</div>
				</div>
				<div class="col-footer-payments col-lg-6 col-md-12 col-sm-12 col-xs-12">
					<div class="footer-payments"><ul class="payments"> <li><img class="attachment-full size-full" src="" alt=""></li> </ul></div>				</div>
			</div>
		</div>
	</div>
</nav>
    </footer><!-- #colophon -->
	</div><!-- #page -->

<script type="text/javascript">window.bw_visit_log_id = 8998911;</script>
<script type="speculationrules">
{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/martfury-child/*","/wp-content/themes/martfury/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}
</script>

        <!-- wpsolr - ajax auto completion nonce -->
        <input type="hidden" id="wpsolr_autocomplete_nonce"
               value="ca14b3762f">

		    <script>
        window.BW_CHAT_API_URL = "https://support.batteryworld.com/api/chat";
        window.BW_CHAT_CONDITIONAL_TAG = "is_single";
        window.BW_CHAT_USER_COUNTRY = "US";
    </script>
    <!-- Battery World AI Chat Widget -->
<style>
  :root {
    --bw-primary: #33764d;
    /* Battery World Brand Green */
    --bw-dark: #24673e;
    /* Deep Forest Green */
    --bw-light: #f8fafc;
    --bw-online: #22c55e;
    /* Glowing Green Online Dot */
  }

  /* Floating Trigger Button with Barry P. Portrait & Online Badge */
  #bw-chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    z-index: 99999;
    background: url('https://support.batteryworld.com/barry-avatar.webp') center/cover no-repeat;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  #bw-chat-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(51, 118, 77, 0.4);
  }

  #bw-chat-button::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--bw-online);
    border: 2px solid #ffffff;
    border-radius: 50%;
  }

  #bw-chat-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    height: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    border: 1px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  /* Chat Header with Barry P. Profile & Status */
  #bw-chat-header {
    background: var(--bw-dark);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--bw-primary);
  }

  .bw-agent-profile {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .bw-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bw-primary);
    background: url('https://support.batteryworld.com/barry-avatar.webp') center/cover no-repeat;
  }

  .bw-agent-info {
    display: flex;
    flex-direction: column;
  }

  .bw-agent-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    color: #ffffff !important;
  }

  .bw-agent-status {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .bw-agent-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--bw-online);
    border-radius: 50%;
  }

  #bw-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--bw-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Message Rows with Mini Avatars */
  .bw-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }

  .bw-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: url('https://support.batteryworld.com/barry-avatar.webp') center/cover no-repeat;
    flex-shrink: 0;
  }

  .bw-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
  }

  .bw-msg-user {
    background: var(--bw-primary);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    margin-left: auto;
  }

  .bw-msg-bot {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px;
  }

  .bw-typing {
    font-style: italic;
    color: #64748b;
    font-size: 12px;
  }

  #bw-chat-input-area {
    display: flex;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
  }

  #bw-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
  }

  #bw-chat-input:focus {
    border-color: var(--bw-primary);
  }

  #bw-chat-send {
    background: var(--bw-dark);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 0 18px;
    margin-left: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
  }

  #bw-chat-send:hover {
    background: var(--bw-primary);
  }

  /* Inline rating card (one per session, first submission wins) */
  .bw-rating-card {
    margin-left: 36px;
    max-width: 300px;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }

  .bw-rating-title {
    font-size: 14px;
    font-weight: 600;
    color: #24673e;
    margin-bottom: 10px;
  }

  .bw-rating-faces {
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }

  .bw-rating-face {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    color: #475569;
    transition: all 0.15s ease;
  }

  .bw-rating-face .bw-face {
    font-size: 24px;
    line-height: 1.1;
  }

  .bw-rating-face:hover {
    border-color: var(--bw-primary);
    background: #eef7f1;
  }

  .bw-rating-face.bw-selected {
    border-color: var(--bw-primary);
    background: #e3f1e8;
    color: var(--bw-dark);
    font-weight: 600;
  }

  .bw-rating-comment {
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 54px;
    outline: none;
  }

  .bw-rating-comment:focus {
    border-color: var(--bw-primary);
  }

  .bw-rating-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
  }

  .bw-rating-actions button {
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
  }

  .bw-rating-send {
    background: var(--bw-dark);
    color: #ffffff;
    border: none;
    font-weight: 600;
  }

  .bw-rating-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .bw-rating-dismiss {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #cbd5e1;
  }

  .bw-rating-error {
    margin-top: 8px;
    color: #b91c1c;
    font-size: 12px;
  }

  .bw-rating-thanks {
    margin-left: 36px;
    max-width: 300px;
    background: #eef7f1;
    border: 1px solid #c6e3d2;
    border-radius: 12px;
    padding: 14px;
    color: #24673e;
    font-size: 13px;
  }

  .bw-rating-thanks .bw-start-new {
    margin-top: 10px;
    background: var(--bw-dark);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
</style>

<!-- Floating Chat Button with Barry P. Portrait -->
<div id="bw-chat-button" onclick="toggleChat()" title="Chat with Barry P."></div>

<div id="bw-chat-window">
  <div id="bw-chat-header">
    <div class="bw-agent-profile">
      <div class="bw-agent-avatar"></div>
      <div class="bw-agent-info">
        <span class="bw-agent-name">Barry P.</span>
        <span class="bw-agent-status">Battery Specialist • Online</span>
      </div>
    </div>
    <span style="cursor:pointer; font-size:18px; padding:4px;" onclick="toggleChat()">✕</span>
  </div>
  <div id="bw-chat-messages">
    <div class="bw-msg-row">
      <div class="bw-mini-avatar"></div>
      <div class="bw-msg bw-msg-bot">
        Hi! How can I help you?
      </div>
    </div>
  </div>
  <div id="bw-chat-input-area">
    <input type="text" id="bw-chat-input" placeholder="Ask Barry about batteries..."
      onkeypress="handleKeyPress(event)" />
    <button id="bw-chat-send" onclick="sendMessage()">Send</button>
  </div>
</div>

<script>
  // 1. Configure Backend API endpoint (Set this to your Linux Server IP or domain in production)
  const BW_API_ENDPOINT = window.BW_CHAT_API_URL || 'http://localhost:5001/api/chat';

  // 2. Persistent Session Tracking
  function makeSessionId() {
    return 'bw_' + Math.random().toString(36).substring(2, 15);
  }
  function ratingKey(session) { return 'bw_chat_rating_' + session; }
  function dismissedKey(session) { return 'bw_chat_rating_dismissed_' + session; }

  let sessionId = localStorage.getItem('bw_chat_session') || makeSessionId();
  localStorage.setItem('bw_chat_session', sessionId);

  // Browser identity minted by the page-view beacon (BAT-263). Sent on chat turns so the transcript
  // can be joined to visitors/page_events; it is absent when statistics consent was refused.
  function bwGetVid() {
    try {
      const m = document.cookie.match(/(?:^|;\s*)vid=([0-9a-f]{32})(?:;|$)/);
      if (m) return m[1];
      const ls = localStorage.getItem('bw_vid');
      return /^[0-9a-f]{32}$/.test(ls || '') ? ls : null;
    } catch (e) { return null; }
  }

  let historyLoaded = false;
  let newSessionReady = false;
  let ratingCardSession = null;
  const initialGreetingHTML = document.getElementById('bw-chat-messages').innerHTML;

  function beginNewSession() {
    sessionId = makeSessionId();
    localStorage.setItem('bw_chat_session', sessionId);
    newSessionReady = true;
  }
  async function toggleChat() {
    const win = document.getElementById('bw-chat-window');
    const isOpening = win.style.display !== 'flex';
    win.style.display = isOpening ? 'flex' : 'none';
    if (isOpening && newSessionReady) {
      startNewChat();
      return;
    }
    if (isOpening && !historyLoaded) {
      historyLoaded = true;
      await loadChatHistory();
    }
  }

  async function loadChatHistory() {
    try {
      const res = await fetch(BW_API_ENDPOINT.replace('/chat', '/chat/history') + '?session_id=' + sessionId);
      const data = await res.json();
      if (res.ok && data.history && data.history.length > 0) {
        const container = document.getElementById('bw-chat-messages');
        container.innerHTML = ''; // Clear default welcome message to load past conversation
        data.history.forEach(msg => {
          if (msg.user_message) appendMessage(msg.user_message, 'user');
          if (msg.bot_response) appendMessage(msg.bot_response, 'bot');
        });
        if (data.rating) {
          if (data.rating.source === 'closed') showThanks('closed');
          return;
        }
        if (localStorage.getItem(ratingKey(sessionId)) || localStorage.getItem(dismissedKey(sessionId))) return;
        const last = data.history[data.history.length - 1];
        if (last && last.model === 'closed') showRatingCard('closed');
      }
    } catch (err) {
      console.log('Starting fresh chat session');
    }
  }

  function handleKeyPress(e) {
    if (e.key === 'Enter') sendMessage();
  }

  function appendMessage(text, sender) {
    const container = document.getElementById('bw-chat-messages');

    if (sender === 'bot') {
      const rowDiv = document.createElement('div');
      rowDiv.className = 'bw-msg-row';
      rowDiv.innerHTML = `<div class="bw-mini-avatar"></div><div class="bw-msg bw-msg-bot">${text}</div>`;
      container.appendChild(rowDiv);
      container.scrollTop = container.scrollHeight;
      return rowDiv.querySelector('.bw-msg');
    } else {
      const msgDiv = document.createElement('div');
      msgDiv.className = `bw-msg bw-msg-${sender}`;
      msgDiv.innerText = text;
      container.appendChild(msgDiv);
      container.scrollTop = container.scrollHeight;
      return msgDiv;
    }
  }

  function showRatingCard(source) {
    if (!sessionId || ratingCardSession === sessionId) return;
    if (localStorage.getItem(ratingKey(sessionId)) || localStorage.getItem(dismissedKey(sessionId))) return;
    const container = document.getElementById('bw-chat-messages');
    if (container.querySelector('.bw-rating-card')) return;

    ratingCardSession = sessionId;
    const cardSession = sessionId;
    const row = document.createElement('div');
    row.className = 'bw-msg-row';
    row.innerHTML = `
      <div class="bw-mini-avatar"></div>
      <div class="bw-rating-card">
        <div class="bw-rating-title">How was your chat with Barry?</div>
        <div class="bw-rating-faces">
          <button type="button" class="bw-rating-face" data-rating="5" aria-label="Happy" title="Happy"><span class="bw-face">&#128512;</span><span>Happy</span></button>
          <button type="button" class="bw-rating-face" data-rating="3" aria-label="Neutral" title="Neutral"><span class="bw-face">&#128528;</span><span>Neutral</span></button>
          <button type="button" class="bw-rating-face" data-rating="1" aria-label="Unhappy" title="Unhappy"><span class="bw-face">&#128542;</span><span>Unhappy</span></button>
        </div>
        <textarea class="bw-rating-comment" maxlength="1000" placeholder="Add a comment (optional)"></textarea>
        <div class="bw-rating-actions">
          <button type="button" class="bw-rating-send" disabled>Send</button>
          <button type="button" class="bw-rating-dismiss">No thanks</button>
        </div>
        <div class="bw-rating-error" hidden>Could not send your rating. Please try again.</div>
      </div>`;
    container.appendChild(row);
    container.scrollTop = container.scrollHeight;

    const faces = row.querySelectorAll('.bw-rating-face');
    const sendBtn = row.querySelector('.bw-rating-send');
    const dismissBtn = row.querySelector('.bw-rating-dismiss');
    const errorDiv = row.querySelector('.bw-rating-error');
    let selected = null;

    faces.forEach(btn => {
      btn.addEventListener('click', () => {
        faces.forEach(b => b.classList.remove('bw-selected'));
        btn.classList.add('bw-selected');
        selected = parseInt(btn.dataset.rating, 10);
        sendBtn.disabled = false;
      });
    });

    dismissBtn.addEventListener('click', () => {
      localStorage.setItem(dismissedKey(cardSession), '1');
      row.remove();
      if (ratingCardSession === cardSession) ratingCardSession = null;
    });

    sendBtn.addEventListener('click', async () => {
      if (!selected) return;
      const feedback = row.querySelector('.bw-rating-comment').value.trim();
      sendBtn.disabled = true;
      dismissBtn.disabled = true;
      faces.forEach(b => { b.disabled = true; });
      errorDiv.hidden = true;
      try {
        const res = await fetch(BW_API_ENDPOINT.replace('/chat', '/chat/rating'), {
          method: 'POST',
          headers: { 'Content-Type': 'application/json' },
          body: JSON.stringify({ session_id: cardSession, rating: selected, feedback: feedback, source: source })
        });
        const data = await res.json().catch(() => ({}));
        if (!res.ok) throw new Error(data.error || 'Rating failed');
        const finalSource = data.source || source;
        localStorage.setItem(ratingKey(cardSession), '1');
        row.remove();
        if (ratingCardSession === cardSession) ratingCardSession = null;
        showThanks(finalSource);
        if (finalSource === 'closed') beginNewSession();
      } catch (err) {
        errorDiv.hidden = false;
        sendBtn.disabled = false;
        dismissBtn.disabled = false;
        faces.forEach(b => { b.disabled = false; });
      }
    });
  }

  function showThanks(source) {
    const container = document.getElementById('bw-chat-messages');
    const oldCard = container.querySelector('.bw-rating-card');
    if (oldCard) oldCard.closest('.bw-msg-row').remove();
    if (container.querySelector('.bw-rating-thanks')) return;

    const thanks = document.createElement('div');
    thanks.className = 'bw-rating-thanks';
    thanks.innerHTML = '<div class="bw-rating-title">Thanks for your feedback!</div><div>Your rating helps us improve Barry.</div>';
    if (source === 'closed') {
      const startBtn = document.createElement('button');
      startBtn.type = 'button';
      startBtn.className = 'bw-start-new';
      startBtn.textContent = 'Start new chat';
      startBtn.addEventListener('click', startNewChat);
      thanks.appendChild(startBtn);
    }
    container.appendChild(thanks);
    container.scrollTop = container.scrollHeight;
  }

  function startNewChat() {
    if (!newSessionReady) beginNewSession();
    const container = document.getElementById('bw-chat-messages');
    container.innerHTML = initialGreetingHTML;
    container.scrollTop = 0;
    ratingCardSession = null;
    newSessionReady = false;
    document.getElementById('bw-chat-input').focus();
  }

  async function sendMessage() {
    const input = document.getElementById('bw-chat-input');
    const text = input.value.trim();
    if (!text) return;

    input.value = '';
    appendMessage(text, 'user');

    const typingDiv = appendMessage("Assistant is thinking...", 'bot');
    typingDiv.classList.add('bw-typing');

    const rawCountry = typeof window.BW_CHAT_USER_COUNTRY === 'string'
      ? window.BW_CHAT_USER_COUNTRY.trim().toUpperCase()
      : '';
    const country = /^[A-Z]{2}$/.test(rawCountry) ? rawCountry : null;

    try {
      const response = await fetch(BW_API_ENDPOINT, {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({
          message: text,
          session_id: sessionId,
          page_url: window.location.href, // Sends the current page URL where customer is chatting
          vid: bwGetVid(),                // Storefront identity for page-view linkage (null if absent)
          country: country
        })
      });

      const data = await response.json();
      typingDiv.remove();

      if (response.ok) {
        if (data.response) appendMessage(data.response, 'bot');
        if (data.rating_prompt &&
          !localStorage.getItem(ratingKey(sessionId)) &&
          !localStorage.getItem(dismissedKey(sessionId))) {
          showRatingCard(data.rating_source || 'closed');
        }
      } else {
        appendMessage(data.error || "Sorry, an error occurred.", 'bot');
      }
    } catch (err) {
      typingDiv.remove();
      appendMessage("Unable to reach support server. Please try again later.", 'bot');
    }
  }
</script>    <div id="pswp" class="pswp" tabindex="-1" aria-hidden="true">

        <div class="pswp__bg"></div>

        <div class="pswp__scroll-wrap">

            <div class="pswp__container">
                <div class="pswp__item"></div>
                <div class="pswp__item"></div>
                <div class="pswp__item"></div>
            </div>

            <div class="pswp__ui pswp__ui--hidden">

                <div class="pswp__top-bar">


                    <div class="pswp__counter"></div>

                    <button class="pswp__button pswp__button--close"
                            title="Close (Esc)"></button>

                    <button class="pswp__button pswp__button--share"
                            title="Share"></button>

                    <button class="pswp__button pswp__button--fs"
                            title="Toggle fullscreen"></button>

                    <button class="pswp__button pswp__button--zoom"
                            title="Zoom in/out"></button>

                    <div class="pswp__preloader">
                        <div class="pswp__preloader__icn">
                            <div class="pswp__preloader__cut">
                                <div class="pswp__preloader__donut"></div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                    <div class="pswp__share-tooltip"></div>
                </div>

                <button class="pswp__button pswp__button--arrow--left"
                        title="Previous (arrow left)">
                </button>

                <button class="pswp__button pswp__button--arrow--right"
                        title="Next (arrow right)">
                </button>

                <div class="pswp__caption">
                    <div class="pswp__caption__center"></div>
                </div>

            </div>

        </div>

    </div>
	
        <div id="mf-quick-view-modal" class="mf-quick-view-modal martfury-modal woocommerce" tabindex="-1">
            <div class="mf-modal-overlay"></div>
            <div class="modal-content">
                <a href="#" class="close-modal">
                    <i class="icon-cross"></i>
                </a>
                <div class="product-modal-content loading"></div>
            </div>
            <div class="mf-loading"></div>
        </div>

				        <div class="primary-mobile-nav mf-els-item" id="primary-mobile-nav">
            <div class="mobile-nav-content">
                <div class="mobile-nav-overlay"></div>
                <div class="mobile-nav-header">
					                    <h2 class="mobile-nav-header__title">Main Menu</h2>
                    <a class="close-mobile-nav"><i class="icon-cross"></i></a>
                </div>

				<ul id="menu-top-navigation" class="menu"><li class="menu-item menu-item-home"><a href="https://www.batteryworld.com/"><i class="icon-home"></i> Home</a></li><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-100335"><a href="https://www.batteryworld.com/my-account">My Account</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-100336"><a href="https://www.batteryworld.com/order-tracking">Order Tracking</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-215471"><a href="/about-us">About Us</a></li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-215476"><a href="/contact-us">Contact Us</a></li>
</ul>
            </div>
        </div>
		        <div id="mf-off-canvas-layer" class="martfury-off-canvas-layer"></div>
			<script type='text/javascript'>
		(function () {
			var c = document.body.className;
			c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
			document.body.className = c;
		})();
	</script>
	<script id="wf-sa-ui-js-js" src="https://www.batteryworld.com/wp-content/plugins/5sec-search-autocomplete/js/jquery-ui.min.js?ver=1.8.9"></script>
<script id="solr_auto_js1-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/core/js/devbridge/jquery.autocomplete.js?ver=24.0"></script>
<script id="urljs-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/core/bower_components/jsurl/url.js?ver=24.0"></script>
<script id="autocomplete-js-extra">
var wp_localize_script_autocomplete = {"data":{"wpsolr_v":"","ajax_url":"https://www.batteryworld.com/wp-admin/admin-ajax.php","lang":"","is_show_url_parameters":true,"is_ajax":true,"SEARCH_PARAMETER_VIEW_ID":"wpsolr_v","SEARCH_PARAMETER_S":"s","SEARCH_PARAMETER_SEARCH":"search","SEARCH_PARAMETER_Q":"wpsolr_q","SEARCH_PARAMETER_FQ":"wpsolr_fq","SEARCH_PARAMETER_SORT":"wpsolr_sort","SEARCH_PARAMETER_PAGE":"wpsolr_page","SORT_CODE_BY_RELEVANCY_DESC":"sort_by_relevancy_desc","css_ajax_container_page_title":".page-title","css_ajax_container_page_sort":".woocommerce-ordering select,.select_field","css_ajax_container_results":".products,.results-by-facets","css_ajax_container_overlay":".products,.results-by-facets","css_ajax_container_pagination":"nav.woocommerce-pagination,.paginate_div","css_ajax_container_pagination_page":"a.page-numbers,a.paginate","css_ajax_container_results_count":".products-found strong","ajax_delay_ms":500,"redirect_search_home":"","suggestions_icon":"https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/core/images/wpsolr-ajax-loader.gif","is_event_tracking_cached":false,"wpsolr_autocomplete_is_active":true,"wpsolr_autocomplete_selector":[],"wpsolr_autocomplete_action":"wdm_return_solr_rows","wpsolr_autocomplete_nonce_selector":"#wpsolr_autocomplete_nonce","wpsolr_is_search_admin":false,"wpsolr_recommendation_selector":[],"wpsolr_recommendation_action":"wpsolr_recommendations","wpsolr_recommendation_nonce_selector":"#wpsolr_recommendations_nonce"}};
//# sourceURL=autocomplete-js-extra
</script>
<script id="autocomplete-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/core/js/autocomplete_solr.js?ver=24.0"></script>
<script id="loadingoverlay-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/core/js/loadingoverlay/loadingoverlay.min.js?ver=24.0"></script>
<script id="bw-shipping-country-js-extra">
var BW_SHIPPING_COUNTRY = {"cookie":"bw_shipping_country","syncCookie":"bw_country_sync_uid","bypassCookie":"woocommerce_items_in_cart","maxAge":"31536000","syncMaxAge":"2592000","userId":"0"};
//# sourceURL=bw-shipping-country-js-extra
</script>
<script id="bw-shipping-country-js-after">
(function () {
	'use strict';

	var CONFIG = window.BW_SHIPPING_COUNTRY || {};
	var select = document.getElementById('bw-shipping-country');
	if (!CONFIG.cookie || !select) {
		return;
	}

	function readCookie(name) {
		var prefix = name + '=';
		var parts = document.cookie ? document.cookie.split('; ') : [];
		for (var i = 0; i < parts.length; i++) {
			if (parts[i].indexOf(prefix) === 0) {
				try {
					return decodeURIComponent(parts[i].slice(prefix.length));
				} catch (e) {
					return '';
				}
			}
		}
		return '';
	}

	function writeCookie(name, value, maxAge) {
		var cookie = name + '=' + encodeURIComponent(value);
		if (typeof maxAge === 'number') {
			cookie += '; Max-Age=' + maxAge;
		}
		cookie += '; Path=/; SameSite=Lax';
		if (window.location.protocol === 'https:') {
			cookie += '; Secure';
		}
		document.cookie = cookie;
	}

	function clearCookie(name) {
		writeCookie(name, '', 0);
	}

	var saved = readCookie(CONFIG.cookie);
	if (saved) {
		for (var i = 0; i < select.options.length; i++) {
			if (select.options[i].value === saved) {
				select.value = saved;
				break;
			}
		}
	}

	select.addEventListener('change', function () {
		if (!select.value) {
			return;
		}

		writeCookie(CONFIG.cookie, select.value, CONFIG.maxAge);

		if (CONFIG.userId > 0 && CONFIG.syncCookie) {
			writeCookie(CONFIG.syncCookie, String(CONFIG.userId), CONFIG.syncMaxAge);
		} else if (CONFIG.syncCookie) {
			clearCookie(CONFIG.syncCookie);
		}

		if (CONFIG.userId <= 0 && CONFIG.bypassCookie) {
			writeCookie(CONFIG.bypassCookie, '1');
		}

		window.location.reload();
	});
})();
//# sourceURL=bw-shipping-country-js-after
</script>
<script data-wp-strategy="defer" id="wc-photoswipe-js" src="https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.min.js?ver=4.1.1-wc.11.0.0"></script>
<script id="photoswipe-ui-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/photoswipe-ui.min.js?ver=4.1.1"></script>
<script id="jquery-ui-core-js" src="https://www.batteryworld.com/wp-includes/js/jquery/ui/core.min.js?ver=1.13.3"></script>
<script id="jquery-ui-tooltip-js" src="https://www.batteryworld.com/wp-includes/js/jquery/ui/tooltip.min.js?ver=1.13.3"></script>
<script id="imagesloaded-js" src="https://www.batteryworld.com/wp-includes/js/imagesloaded.min.js?ver=5.0.0"></script>
<script id="fitvids-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/jquery.fitvids.js?ver=1.1.0"></script>
<script id="waypoints-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/waypoints.min.js?ver=2.0.2"></script>
<script id="isinviewport-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/isInViewport.min.js?ver=1.0.0"></script>
<script id="mf-countdown-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/jquery.coundown.js?ver=1.0.0"></script>
<script id="counterup-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/jquery.counterup.min.js?ver=1.0.0"></script>
<script id="martfury-tabs-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/jquery.tabs.js?ver=1.0.0"></script>
<script id="nprogress-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/nprogress.js?ver=1.0.0"></script>
<script id="slick-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/slick.min.js?ver=1.6.0"></script>
<script id="notify-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/plugins/notify.min.js?ver=1.0.0"></script>
<script id="martfury-js-extra">
var martfuryData = {"direction":"false","ajax_url":"https://www.batteryworld.com/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","nonce":"8dbe42c349","days":"days","hours":"hours","minutes":"minutes","seconds":"seconds","add_to_cart_ajax":"1","search_content_type":"all","nl_days":"1","nl_seconds":"0","ajax_search":"0","quantity_ajax":"","product_gallery":"1"};
//# sourceURL=martfury-js-extra
</script>
<script data-wp-strategy="defer" defer id="martfury-js" src="https://www.batteryworld.com/wp-content/themes/martfury/js/scripts.js?ver=20221213"></script>
<script data-wp-strategy="defer" defer id="woocommerce-analytics-client-js" src="https://www.batteryworld.com/wp-content/plugins/jetpack/jetpack_vendor/automattic/woocommerce-analytics/build/woocommerce-analytics-client.js?minify=false&#038;ver=c708bfc0e2c15b42ff39"></script>
<script id="jquery-collapse-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/theme/js/jquery-collapse/jquery.collapse.js?ver=24.0"></script>
<script id="jquery-collapse-storage-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/theme/js/jquery-collapse/jquery.collapse_storage.js?ver=24.0"></script>
<script id="wpsolr-facet-hierarchy-js-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/theme/template/facet-hierarchy/wpsolr-facet-hierarchy.js?ver=24.0"></script>
<script id="wpsolr-facet-range-js-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/theme/template/facet-range/wpsolr-facet-range.js?ver=24.0"></script>
<script id="wpsolr-facet-color-picker-js-js" src="https://www.batteryworld.com/wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/theme/template/facet-color-picker/wpsolr-facet-color-picker.js?ver=24.0"></script>
<script id="sourcebuster-js-js" src="https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.min.js?ver=11.0.0"></script>
<script id="wc-order-attribution-js-extra">
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"base64":false,"ajaxurl":"https://www.batteryworld.com/wp-admin/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","utm_source_platform":"current.plt","utm_creative_format":"current.fmt","utm_marketing_tactic":"current.tct","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
//# sourceURL=wc-order-attribution-js-extra
</script>
<script id="wc-order-attribution-js" src="https://www.batteryworld.com/wp-content/plugins/woocommerce/assets/js/frontend/order-attribution.min.js?ver=11.0.0"></script>
<script id="wp-emoji-settings" type="application/json">
{"baseUrl":"https://s.w.org/images/core/emoji/17.0.2/72x72/","ext":".png","svgUrl":"https://s.w.org/images/core/emoji/17.0.2/svg/","svgExt":".svg","source":{"concatemoji":"https://www.batteryworld.com/wp-includes/js/wp-emoji-release.min.js?ver=7.0.4"}}
</script>
<script type="module">
/*! This file is auto-generated */
var e="script#wp-emoji-settings",t=document.querySelector(e);if(!(t instanceof HTMLScriptElement))throw new Error("Element missing: "+e);const r=JSON.parse(t.text),s=(window._wpemojiSettings=r,"wpEmojiSettingsSupports"),o=["flag","emoji"];function i(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(s,JSON.stringify(t))}catch(e){}}function c(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0);const r=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);return t.every((e,t)=>e===r[t])}function p(e,t){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var n=e.getImageData(16,16,1,1);for(let e=0;e<n.data.length;e++)if(0!==n.data[e])return!1;return!0}function u(e,t,n,r){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\udde8\ud83c\uddf6","\ud83c\udde8\u200b\ud83c\uddf6")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!r(e,"\ud83e\u1fac8")}return!1}function f(e,t,n,r){let a;const s=(a="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):document.createElement("canvas")).getContext("2d",{willReadFrequently:!0}),o=(s.textBaseline="top",s.font="600 32px Arial",{});return e.forEach(e=>{o[e]=t(s,e,n,r)}),o}function a(e){var t=document.createElement("script");t.src=e,t.defer=!0,document.head.appendChild(t)}r.supports={everything:!0,everythingExceptFlag:!0},new Promise(t=>{let n=function(){try{var e=JSON.parse(sessionStorage.getItem(s));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(o),u.toString(),c.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"});const a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=e=>{i(n=e.data),a.terminate(),t(n)})}catch(e){}i(n=f(o,u,c,p))}t(n)}).then(e=>{for(const n in e)r.supports[n]=e[n],r.supports.everything=r.supports.everything&&r.supports[n],"flag"!==n&&(r.supports.everythingExceptFlag=r.supports.everythingExceptFlag&&r.supports[n]);var t;r.supports.everythingExceptFlag=r.supports.everythingExceptFlag&&!r.supports.flag,r.supports.everything||((t=r.source||{}).concatemoji?a(t.concatemoji):t.wpemoji&&t.twemoji&&(a(t.twemoji),a(t.wpemoji)))});
//# sourceURL=https://www.batteryworld.com/wp-includes/js/wp-emoji-loader.min.js
</script>
<script type="text/javascript" data-gtm-ecommerce-woo-scripts>
window.dataLayer = window.dataLayer || [];
(function(dataLayer, jQuery) {
		window.gtm_ecommerce_pro.items.byProductId = {
			...window.gtm_ecommerce_pro.items.byProductId,
			...[]
		};
if (typeof wp !== 'undefined' && wp.hooks && wp.hooks.addAction) {
	wp.hooks.addAction('experimental__woocommerce_blocks-cart-remove-item', 'gtm-ecommerce-woo', function(details) {
		if (details.product && details.product.id) {
			let item = gtm_ecommerce_pro.getItemByProductId(details.product.id);

			if (0 === Object.keys(item).length) {
				return;
			}
			item.quantity = 1;

			let event = {"event":"remove_from_cart","ecommerce":{"currency":"USD","items":null,"value":0}};

			dataLayer.push({
				...event,
			  'ecommerce': {
				...event.ecommerce,
				'value': item.price,
				'items': [item]
			  }
			});
		}

	});
}
jQuery(document).on('click', '.remove', function(ev) {
    let product_id = jQuery(ev.currentTarget).attr('data-product_id');
    let variation_id = jQuery(ev.currentTarget).attr('data-variation_id');
    if (undefined === product_id && undefined === variation_id) {
    	return;
	}

	let item = null;
	if (variation_id) {
		item = gtm_ecommerce_pro.getItemByProductId(variation_id);
	} else {
    	item = gtm_ecommerce_pro.getItemByProductId(product_id);
    }

	if (0 === Object.keys(item).length) {
		return;
	}

    item.quantity = 1;

	let event = {"event":"remove_from_cart","ecommerce":{"currency":"USD","items":null,"value":0}};

	dataLayer.push({
		...event,
	  'ecommerce': {
		...event.ecommerce,
		'value': item.price,
		'items': [item]
	  }
	});
});

jQuery(document).on('submit', '.woocommerce-cart-form', function(ev) {
	jQuery('input[name$="[qty]"]', ev.currentTarget).each(function(i, el) {
		var previousValue = el.defaultValue || 0;
		var currentValue = el.value || 0;
		var diff = currentValue - previousValue;

		if (diff < 0) {
			var quantity = Math.abs(diff);
			var element = jQuery(el).parents('.cart_item').find('[data-product_id]');
			var productId = element.attr('data-variation_id') ?? element.attr('data-product_id');
			var item = gtm_ecommerce_pro.getItemByProductId(productId);
			item.quantity = quantity;

			let event = {"event":"remove_from_cart","ecommerce":{"currency":"USD","items":null,"value":0}};

			dataLayer.push({
				...event,
			  'ecommerce': {
				...event.ecommerce,
				'value': (item.price * quantity),
				'items': [item]
			  }
			});
		}
	});
});
})(dataLayer, jQuery);</script>
    <script type="text/javascript">
        (function ($) {
            $(document).ready(function () {
                if (!window.bw_visit_log_id) {
                    return;
                }

                // Confirm JS execution immediately
                $.ajax({
                    url: '/wp-admin/admin-ajax.php',
                    type: 'POST',
                    data: {
                        action: 'bw_confirm_visit_js_execution',
                        log_id: window.bw_visit_log_id
                    },
                    success: function () { }
                });

                var startTime = Date.now();
                var lastUpdatedDuration = 0;
                var inFlight = false;

                function sendDuration(isBeacon) {
                    var elapsed = Math.round((Date.now() - startTime) / 1000);
                    if (elapsed <= lastUpdatedDuration || elapsed <= 0) {
                        return;
                    }
                    lastUpdatedDuration = elapsed;

                    if (isBeacon && navigator.sendBeacon) {
                        var formData = new FormData();
                        formData.append('action', 'bw_update_visit_duration');
                        formData.append('log_id', window.bw_visit_log_id);
                        formData.append('duration', elapsed);
                        navigator.sendBeacon('/wp-admin/admin-ajax.php', formData);
                        return;
                    }

                    if (inFlight) {
                        return;
                    }
                    inFlight = true;

                    $.ajax({
                        url: '/wp-admin/admin-ajax.php',
                        type: 'POST',
                        data: {
                            action: 'bw_update_visit_duration',
                            log_id: window.bw_visit_log_id,
                            duration: elapsed
                        },
                        success: function () { },
                        complete: function () { inFlight = false; }
                    });
                }

                // Send heartbeat every 30 seconds (reduced from 3s to avoid request pile-up)
                setInterval(function () {
                    if (document.visibilityState === 'visible') {
                        sendDuration(false);
                    }
                }, 30000);

                // Tab visibility change
                document.addEventListener('visibilitychange', function () {
                    if (document.visibilityState === 'hidden') {
                        sendDuration(true);
                    }
                });

                // Page unload
                window.addEventListener('beforeunload', function () {
                    sendDuration(true);
                });
            });
        })(jQuery);
    </script>
    <script>
(function () {
  'use strict';
  var CTX = {"endpoint":"https:\/\/support.batteryworld.com\/api\/track","page_tag":"is_singular","wp_page_id":260319,"country":"US","lang":"en_US","wp_user_id":0};
  var VID_KEY = 'bw_vid';
  var VID_COOKIE = 'vid';
  var VID_MAX_AGE = 31536000;
  var THEME_COOKIE = 'bw_unique_user_id';
  var sent = false;

  if (navigator.globalPrivacyControl === true) {
    return;
  }


  function hex32() {
    var out = '';
    var cryptoObj = window.crypto || window.msCrypto;
    if (cryptoObj && cryptoObj.getRandomValues) {
      var bytes = new Uint8Array(16);
      cryptoObj.getRandomValues(bytes);
      for (var i = 0; i < bytes.length; i++) {
        out += ('0' + bytes[i].toString(16)).slice(-2);
      }
      return out;
    }
    for (var j = 0; j < 32; j++) {
      out += '0123456789abcdef'.charAt(Math.floor(Math.random() * 16));
    }
    return out;
  }

  function readCookie(name) {
    var m = document.cookie.match(new RegExp('(?:^|;\\s*)' + name + '=([^;]*)'));
    return m ? m[1] : '';
  }

  function writeCookie(name, value, maxAge) {
    document.cookie = name + '=' + value + '; Max-Age=' + maxAge +
      '; Path=/; Domain=.batteryworld.com; SameSite=Lax';
  }

  function validId(value) {
    return /^[0-9a-f]{32}$/.test(value);
  }

  function getVid() {
    var vid = '';
    try {
      vid = (readCookie(VID_COOKIE) || '').toLowerCase();
    } catch (e) {}
    if (!validId(vid)) {
      try {
        vid = (localStorage.getItem(VID_KEY) || '').toLowerCase();
      } catch (e) {
        vid = '';
      }
    }
    if (!validId(vid)) {
      vid = hex32();
    }
    try {
      localStorage.setItem(VID_KEY, vid);
    } catch (e) {}
    try {
      writeCookie(VID_COOKIE, vid, VID_MAX_AGE);
    } catch (e) {}
    return vid;
  }

  // Optional join key to the existing storefront history: log_visits.uuid and the OpenReplay
  // userID are the theme's bw_unique_user_id cookie. Hashing keeps raw ids out of our tables
  // and lets a 32-hex theme_uid be matched offline. Absent cookie or no WebCrypto => omitted.
  function themeUid() {
    var raw = '';
    try {
      raw = readCookie(THEME_COOKIE);
    } catch (e) {}
    if (!raw || !window.crypto || !window.crypto.subtle || !window.TextEncoder ||
        typeof Promise === 'undefined') {
      return '';
    }
    try {
      return window.crypto.subtle.digest('SHA-256', new TextEncoder().encode(raw))
        .then(function (buf) {
          var bytes = new Uint8Array(buf);
          var out = '';
          for (var i = 0; i < 16; i++) {
            out += ('0' + bytes[i].toString(16)).slice(-2);
          }
          return out;
        })
        .catch(function () {
          return '';
        });
    } catch (e) {
      return '';
    }
  }

  function utms() {
    var keys = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'gclid', 'fbclid', 'msclkid'];
    var out = {};
    var any = false;
    try {
      var q = new URLSearchParams(window.location.search);
      for (var i = 0; i < keys.length; i++) {
        var v = q.get(keys[i]);
        if (v) {
          out[keys[i]] = v;
          any = true;
        }
      }
    } catch (e) {}
    return any ? out : null;
  }

  // The browser would trim a cross-origin Referer header itself, but the JSON body bypasses
  // that policy; send origin + path only, and keep `url` within the 512-char column.
  function referrerUrl() {
    if (!document.referrer) {
      return '';
    }
    try {
      var ref = new URL(document.referrer);
      if (ref.protocol !== 'http:' && ref.protocol !== 'https:') {
        return '';
      }
      return ref.origin + ref.pathname;
    } catch (e) {
      return '';
    }
  }

  function pageUrl() {
    var u = window.location.href.split('#')[0];
    return u.length > 512 ? u.slice(0, 512) : u;
  }

  function payload() {
    var p = {
      vid: getVid(),
      event_id: hex32(),
      url: pageUrl(),
      ts: Date.now()
    };
    if (CTX.page_tag) {
      p.page_tag = CTX.page_tag;
    }
    if (CTX.wp_page_id > 0) {
      p.wp_page_id = CTX.wp_page_id;
    }
    if (CTX.country) {
      p.country = CTX.country;
    }
    if (CTX.lang) {
      p.lang = CTX.lang;
    }
    if (CTX.wp_user_id > 0) {
      p.wp_user_id = CTX.wp_user_id;
    }
    var ref = referrerUrl();
    if (ref) {
      p.referrer = ref;
    }
    try {
      p.tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
    } catch (e) {}
    var u = utms();
    if (u) {
      p.utm = u;
    }
    return p;
  }

  // Retries re-post the SAME payload, so `event_id` stays constant and the server's
  // INSERT IGNORE dedupes any attempt that actually landed. Permanent 4xx are not retried.
  var RETRY_DELAYS = [2000, 5000];

  function retry(p, attempt) {
    if (attempt >= 3) {
      return;
    }
    setTimeout(function () {
      deliver(p, attempt + 1);
    }, RETRY_DELAYS[attempt - 1]);
  }

  function deliver(p, attempt) {
    var controller = null;
    var timer = null;
    var options = {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify(p),
      keepalive: true,
      mode: 'cors',
      credentials: 'omit'
    };
    if (typeof AbortController !== 'undefined') {
      controller = new AbortController();
      options.signal = controller.signal;
      timer = setTimeout(function () {
        controller.abort();
      }, 8000);
    }
    function clear() {
      if (timer) {
        clearTimeout(timer);
        timer = null;
      }
    }
    try {
      fetch(CTX.endpoint, options).then(function (res) {
        clear();
        var status = res && res.status;
        if (status === 204 || status === 200) {
          return;
        }
        if (status === 429 || (status >= 500 && status <= 599)) {
          retry(p, attempt);
        }
      }).catch(function () {
        clear();
        retry(p, attempt);
      });
    } catch (e) {
      clear();
      retry(p, attempt);
    }
  }

	  function send() {
	    if (sent) {
	      return;
	    }
    sent = true;
    var p = payload();
    var theme = themeUid();
    if (theme && typeof theme.then === 'function') {
      theme.then(function (uid) {
        if (uid) {
          p.theme_uid = uid;
        }
        deliver(p, 1);
      });
    } else {
      deliver(p, 1);
    }
  }

	  if (document.prerendering) {
	    document.addEventListener('prerenderingchange', send, { once: true });
	  } else {
	    send();
	  }
})();
</script>
        <script type="text/javascript">
jQuery(document).ready(function() {jQuery('input[name=\'s\']').autocomplete({
              select: function(event, ui) { jQuery(this).val(ui.item.value).closest('form').submit(); },
              source: 'https://www.batteryworld.com/wp-content/plugins/5sec-search-autocomplete/wf-sa-ajax.php',
              minLength: 3,
              html: true,
              delay: 600});
});
jQuery.curCSS = function(element, prop, val) {
    return jQuery(element).css(prop, val);
};</script>
    <script type="text/javascript">
        jQuery(document).ready(function ($) {
            $('.products-search').each(function () {
                var $form = $(this);
                $form.on('submit', function (e) {
                    var keyword = $form.find('input.search-field').val();
                    if (keyword.trim().length < 3) {
                        e.preventDefault();
                        e.stopImmediatePropagation();
                        $form.removeClass('searching found-products found-no-product').addClass('invalid-length');
                        return false;
                    }
                });

                // Ensure our submit handler runs before the theme's default handler
                var events = $._data(this, 'events');
                if (events && events.submit && events.submit.length > 1) {
                    events.submit.unshift(events.submit.pop());
                }
            });

            // Prevent theme AJAX search from triggering before 3 characters
            $('.products-search .search-field').on('keyup input', function (e) {
                if ($(this).val().trim().length < 3) {
                    e.stopImmediatePropagation();
                }
            });
            $('.products-search .search-field').each(function () {
                var events = $._data(this, 'events');
                if (events && events.keyup && events.keyup.length > 1) {
                    events.keyup.unshift(events.keyup.pop());
                }
            });
        });
    </script>
    <style>
        .products-search.invalid-length {
            border: 1px solid red !important;
            border-radius: 3px;
        }
    </style>
        <script type="text/javascript">
        jQuery(document).ready(function($) {
            var isRedirecting = false;

            function triggerCheckoutRedirect() {
                if (isRedirecting) return;
                isRedirecting = true;
                // 500ms delay reserved for GA4 / GTM add_to_cart event tracking to complete
                setTimeout(function() {
                    window.location.href = 'https://www.batteryworld.com/checkout';
                }, 500);
            }

            // 1. Listen for native WooCommerce / Martfury event
            $(document.body).on('added_to_cart', triggerCheckoutRedirect);

            // 2. Fallback: Listen for AJAX request completion
            $(document).ajaxComplete(function(event, xhr, settings) {
                if ((settings.data && typeof settings.data === 'string' && settings.data.indexOf('add-to-cart=') !== -1) ||
                    (settings.url && settings.url.indexOf('wc-ajax=add_to_cart') !== -1)) {
                    triggerCheckoutRedirect();
                }
            });
        });
    </script>
    		<script type="text/javascript">
			(function() {
				// Always start from a fresh object: a `||` fallback would keep a same-named DOM element alive.
				window.wcAnalytics = {};
				const wcAnalytics = window.wcAnalytics;

				// Set the assets URL for webpack to find the split assets.
				wcAnalytics.assets_url = 'https://www.batteryworld.com/wp-content/plugins/jetpack/jetpack_vendor/automattic/woocommerce-analytics/src/../build/';

				// Set the REST API tracking endpoint URL.
								wcAnalytics.trackEndpoint = "https://www.batteryworld.com/wp-json/woocommerce-analytics/v1/track";

				// Set common properties for all events.
				wcAnalytics.commonProps = {"ui":0,"blog_id":209637449,"store_id":"98574f1a-7aa7-480b-8d2c-06768b5fb265","url":"https://www.batteryworld.com","woo_version":"11.0.0","wp_version":"7.0.4","store_admin":0,"device":"desktop","store_currency":"USD","timezone":"America/Los_Angeles","is_guest":1,"package_version":"0.18.0"};

				// Set the event queue.
				wcAnalytics.eventQueue = [];

				// Features.
				wcAnalytics.features = {
					ch: false,
					sessionTracking: false,
					proxy: false,
				};

				wcAnalytics.breadcrumbs = ["Articles","Decoding Ah: Understanding Battery Capacity"];

				// Page context flags.
				wcAnalytics.pages = {
					isAccountPage: false,
					isCart: false,
				};
			})();
		</script>
		

</body>
</html>
```