/* HBPS single product page */
.hbps-product {
	--hbps-green: #00a48c;
	--hbps-green-dark: #018773;
	--hbps-ink: #2f3337;
	--hbps-text: #4b4f58;
	--hbps-line: #e3e6e8;
	--hbps-soft: #f6f8f8;
	--hbps-head: "Maven Pro", "Lato", sans-serif;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px 60px;
	color: var(--hbps-text);
	box-sizing: border-box;
}
.hbps-product *, .hbps-product *::before, .hbps-product *::after { box-sizing: border-box; }
.hbps-ico { width: 1.25em; height: 1.25em; flex: none; }

/* breadcrumb */
.hbps-breadcrumb { font-size: 14px; color: #6b7078; padding: 22px 0 26px; margin: 0; }
.hbps-breadcrumb a { color: #4b4f58; text-decoration: none; }
.hbps-breadcrumb a:hover { color: var(--hbps-green); }
.hbps-crumb-sep { margin: 0 10px; color: #9aa0a6; }

/* layout */
.hbps-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* gallery */
.hbps-gallery { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
.hbps-gallery--single { grid-template-columns: minmax(0, 1fr); }
.hbps-thumbs { display: flex; flex-direction: column; gap: 14px; max-height: 620px; overflow-y: auto; scrollbar-width: thin; }
.hbps-thumb { position: relative; padding: 0; border: 2px solid var(--hbps-line); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; flex: none; width: 100%; transition: border-color .15s; }
.hbps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hbps-thumb:hover { border-color: #b9c4c2; }
.hbps-thumb.is-active { border-color: var(--hbps-green); }
.hbps-thumb.is-video { background: #eef0f1; }
.hbps-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hbps-play .hbps-ico { width: 46px; height: 46px; padding: 12px 10px 12px 14px; border-radius: 50%; background: #fff; color: #111; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hbps-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--hbps-soft); aspect-ratio: 1 / 1; }
.hbps-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hbps-slide[hidden] { display: none; }
.hbps-slide img.hbps-slide-img, .hbps-slide > img { width: 100%; height: 100%; object-fit: contain; }
.hbps-slide--video { background: #000; }
.hbps-video, .hbps-video iframe, .hbps-video-file { width: 100%; height: 100%; border: 0; display: block; }
.hbps-nav, .hbps-expand { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: #222; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 0; }
.hbps-nav .hbps-ico, .hbps-expand .hbps-ico { width: 24px; height: 24px; }
.hbps-nav:hover, .hbps-expand:hover { color: var(--hbps-green); }
.hbps-nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.hbps-nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.hbps-expand { right: 22px; bottom: 22px; width: 46px; height: 46px; }
.hbps-expand .hbps-ico { width: 20px; height: 20px; }
.hbps-stage.is-video .hbps-expand { display: none; }

/* summary (undo WooCommerce's 48% floated .summary and floated cart parts) */
.woocommerce .hbps-product .hbps-summary, .hbps-product .hbps-summary { padding-top: 4px; width: auto !important; float: none !important; margin: 0 !important; } /* Astra's inline rule uses #content */
.woocommerce .hbps-product .hbps-cart form.cart .button, .woocommerce .hbps-product .hbps-cart form.cart .quantity { float: none; }
.woocommerce .hbps-product .hbps-cart form.cart { display: flex; }
.hbps-brand { font-family: var(--hbps-head); font-weight: 700; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; color: var(--hbps-ink); margin-bottom: 10px; }
.hbps-product .hbps-title { font-family: var(--hbps-head); font-weight: 600; font-size: 40px; line-height: 1.2; color: var(--hbps-ink); margin: 0 0 18px; }
.hbps-rating { margin-bottom: 18px; min-height: 1px; }
.hbps-rating a { display: inline-flex; align-items: center; gap: 12px; color: var(--hbps-ink); text-decoration: none; font-size: 16px; }
.hbps-stars { position: relative; display: inline-block; line-height: 0; }
.hbps-stars svg { width: 22px; height: 22px; margin-right: 3px; }
.hbps-stars-bg svg { fill: #d8dedd; }
.hbps-stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.hbps-stars-fg svg { fill: var(--hbps-green); }
.hbps-first-review span { color: #6b7078; font-size: 14px; text-decoration: underline; }
.hbps-short { font-size: 17px; line-height: 1.6; color: var(--hbps-text); margin-bottom: 26px; }
.hbps-short p:last-child { margin-bottom: 0; }

.hbps-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.hbps-product .hbps-price { font-family: var(--hbps-head); font-size: 40px; font-weight: 700; color: var(--hbps-ink); margin: 0; line-height: 1.1; }
.hbps-product .hbps-price del { font-size: .55em; color: #8a9096; font-weight: 500; margin-right: 8px; }
.hbps-product .hbps-price ins { text-decoration: none; }
.hbps-vat { font-size: 16px; font-weight: 500; color: #555b62; margin-left: 6px; }
.hbps-stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; }
.hbps-stock--instock { color: var(--hbps-green); }
.hbps-stock--outofstock { color: #c0392b; }
.hbps-stock--onbackorder { color: #b26b00; }

/* add to basket */
.hbps-cart form.cart { display: flex; gap: 12px; margin: 0 0 14px !important; align-items: stretch; flex-wrap: wrap; }
.hbps-cart .quantity { margin: 0 !important; }
.hbps-cart .quantity .qty { height: 64px; width: 76px; border: 1px solid var(--hbps-line); border-radius: 8px; text-align: center; font-size: 18px; }
.hbps-cart .single_add_to_cart_button { flex: 1 1 200px; height: 64px; border-radius: 8px !important; background: var(--hbps-green) !important; color: #fff !important; font-family: var(--hbps-head); font-size: 22px !important; font-weight: 600 !important; text-transform: none; letter-spacing: 0; display: inline-flex !important; align-items: center; justify-content: center; gap: 14px; padding: 0 24px !important; border: 0 !important; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.hbps-cart .single_add_to_cart_button::before { content: ""; width: 30px; height: 30px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5h18l-2 10H5z'/%3E%3Cpath d='M8 9.5l3-6M16 9.5l-3-6M9 13v3.5M12 13v3.5M15 13v3.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5h18l-2 10H5z'/%3E%3Cpath d='M8 9.5l3-6M16 9.5l-3-6M9 13v3.5M12 13v3.5M15 13v3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.hbps-cart .single_add_to_cart_button:hover { background: var(--hbps-green-dark) !important; }
.hbps-cart .stock { display: none; } /* stock shown in the price row */
.hbps-cart .variations { width: 100%; margin-bottom: 12px; }

.hbps-call { display: flex; align-items: center; justify-content: center; gap: 12px; height: 64px; border: 2px solid var(--hbps-line); border-radius: 8px; color: var(--hbps-green) !important; font-family: var(--hbps-head); font-size: 21px; font-weight: 600; text-decoration: none; background: #fff; transition: border-color .15s; }
.hbps-call .hbps-ico { width: 28px; height: 28px; }
.hbps-call:hover { border-color: var(--hbps-green); }

.hbps-trust { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hbps-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; color: #555b62; margin: 0; }
.hbps-trust .hbps-ico { width: 34px; height: 34px; color: var(--hbps-green); stroke-width: 1.5; }

/* description + specifications */
.hbps-details { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 60px; margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--hbps-line); }
.hbps-details h2 { font-family: var(--hbps-head); font-size: 26px; font-weight: 600; color: var(--hbps-ink); margin: 0 0 18px; text-transform: none; }
.hbps-desc-body { font-size: 16px; line-height: 1.75; }
.hbps-specs dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 0 0 24px; font-size: 16px; }
.hbps-specs dt { color: #555b62; font-weight: 500; }
.hbps-specs dd { margin: 0; color: var(--hbps-ink); }
.hbps-specsheet { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px solid var(--hbps-green); border-radius: 8px; color: var(--hbps-green) !important; font-weight: 600; text-decoration: none; }
.hbps-specsheet:hover { background: var(--hbps-green); color: #fff !important; }

/* reviews + related */
.hbps-reviews { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hbps-line); }
.hbps-reviews .woocommerce-Reviews-title, .hbps-reviews #reply-title, .hbps-product .related > h2, .hbps-product .upsells > h2 { font-family: var(--hbps-head); font-size: 26px; font-weight: 600; color: var(--hbps-ink); }
.hbps-reviews .star-rating span::before, .hbps-reviews p.stars a { color: var(--hbps-green); }
.hbps-reviews #respond input#submit { background: var(--hbps-green); color: #fff; border-radius: 8px; }
.hbps-product .related, .hbps-product .upsells { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hbps-line); }

/* lightbox */
.hbps-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(15,18,20,.92); display: flex; align-items: center; justify-content: center; padding: 30px; }
.hbps-lightbox[hidden] { display: none; }
.hbps-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hbps-lightbox-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; }

/* tablet */
@media (max-width: 1024px) {
	.hbps-top { grid-template-columns: 1fr; gap: 32px; }
	.hbps-details { grid-template-columns: 1fr; gap: 40px; }
}
/* mobile: thumbnails go underneath as a scrolling strip */
@media (max-width: 680px) {
	.hbps-product { padding: 0 16px 40px; }
	.hbps-gallery { grid-template-columns: 1fr; }
	.hbps-thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; }
	.hbps-thumb { width: 72px; }
	.hbps-nav { width: 40px; height: 40px; }
	.hbps-nav--prev { left: 10px; } .hbps-nav--next { right: 10px; }
	.hbps-expand { right: 10px; bottom: 10px; width: 40px; height: 40px; }
	.hbps-product .hbps-title { font-size: 30px; }
	.hbps-product .hbps-price { font-size: 32px; }
	.hbps-trust { grid-template-columns: 1fr; gap: 10px; }
	.hbps-cart .single_add_to_cart_button { font-size: 19px !important; }
	.hbps-call { font-size: 18px; }
}
