/* === Unit 5: Shop (Inventory) + single product pages === */
/* Owned exclusively by Unit 5. Scoped to .woocommerce / .single-product /
   .shop-hero / .betogrow-* / .shop-cta-strip so it never touches header,
   footer or other inner pages. */

/* --- Shared tokens (fallbacks in case html_custom_css hasn't loaded) --- */
.woocommerce,
.single-product {
	--bg-primary: #0B4A6F;
	--bg-primary-dark: #072F47;
	--bg-secondary: #057F5C;
	--bg-secondary-hover: #046A4D;
	--bg-text: #1F2A37;
	--bg-text-muted: #5B6B7A;
	--bg-surface: #F3F6F9;
	--bg-border: #E3E8EE;
}

/* === Shop hero (html_shop_page) === */
/* The banner's overlay div is .overlay (ux_banner's bg_overlay attribute
   already sets a flat rgba(7,47,71,.82) inline; this layers a top-to-bottom
   gradient over it for a bit more depth behind the title). */
.shop-hero .overlay {
	background: linear-gradient(180deg, rgba(7, 47, 71, .55) 0%, rgba(7, 47, 71, .88) 100%) !important;
}
.shop-hero-eyebrow {
	color: #fff;
	opacity: .92;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: .8em;
}
.shop-hero-title {
	color: #fff;
	font-size: 40px;
	line-height: 1.2;
	margin-bottom: .5em;
}
.shop-hero-sub {
	color: #fff;
	opacity: .92;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 0;
}

/* Breadcrumb strip left by the plain category-title.php header under the
   hero: keep it slim, light and unobtrusive. */
.woocommerce .category-page-title:not(.featured-title) {
	background: #fff;
	border-bottom: 1px solid var(--bg-border);
	padding: 14px 0;
}
.woocommerce .category-page-title:not(.featured-title) .woocommerce-breadcrumb {
	margin: 0;
	color: var(--bg-text-muted);
	font-size: 13px;
}
.woocommerce .category-page-title:not(.featured-title) .woocommerce-breadcrumb a {
	color: var(--bg-text-muted);
}
.woocommerce .category-page-title:not(.featured-title) .woocommerce-breadcrumb a:hover {
	color: var(--bg-secondary);
}

/* === Shop grid / product cards === */
/* Shared by the main shop grid (.products, on the Inventory page and any
   category archive) AND the "Other Products & Services" grid on single
   product pages (.related-products-wrapper), which reuses the exact same
   product-box markup but without the "products"/"has-shadow" row classes,
   so every rule below targets both ancestors explicitly. */
.woocommerce .category-page-row {
	padding-top: 48px;
	padding-bottom: 8px;
}
.products .product-small.box,
.related-products-wrapper .product-small.box {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(11, 74, 111, .07);
	transition: box-shadow .25s ease, transform .25s ease;
}
.products .col:hover .product-small.box,
.related-products-wrapper .col:hover .product-small.box {
	transform: translateY(-4px);
}
.products .box-image,
.related-products-wrapper .box-image {
	border-radius: 8px 8px 0 0;
	overflow: hidden;
	background: var(--bg-surface);
}
.products .box-image img,
.related-products-wrapper .box-image img {
	transition: transform .5s ease;
}
.products p.category.product-cat,
.related-products-wrapper p.category.product-cat {
	color: var(--bg-secondary);
	font-weight: 600;
	letter-spacing: .04em;
	font-size: 12px;
	opacity: 1;
	margin-bottom: .3em;
}
.products p.name.product-title,
.related-products-wrapper p.name.product-title {
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 17px;
	color: var(--bg-primary-dark);
	margin-bottom: .4em;
}
.products p.name.product-title a,
.related-products-wrapper p.name.product-title a {
	color: inherit;
}
.products p.name.product-title a:hover,
.related-products-wrapper p.name.product-title a:hover {
	color: var(--bg-secondary);
}
.products p.box-excerpt,
.related-products-wrapper p.box-excerpt {
	color: var(--bg-text-muted);
	font-size: 14px;
	line-height: 1.55;
	margin-bottom: .9em;
}
.products .box-text,
.related-products-wrapper .box-text {
	padding: 20px 22px 22px;
}
.products .add-to-cart-button,
.related-products-wrapper .add-to-cart-button {
	margin-top: auto;
}
.products .add-to-cart-button .button,
.related-products-wrapper .add-to-cart-button .button {
	width: 100%;
	font-weight: 600;
	letter-spacing: .01em;
}
/* NOTE: .product-small.box (and its ancestor .col-inner) must stay normal
   block flow, NOT flex. Flatsome's own equal-image-height trick is
   .has-equal-box-heights .box-image{padding-top:100%} (a percentage padding
   hack) with the <img> absolutely positioned inside at 100%/100%. Percentage
   padding-top is resolved against the element's own width, and that
   calculation collapses to 0 when .box-image's direct parent is a flex
   container (confirmed by testing: turned .product-small.box into
   display:flex here previously and every card image rendered at 0 width in
   both the shop grid and the related grid). Only .box-text (a sibling of
   .box-image, not its ancestor) is safe to make a flex column, so the
   add-to-cart button can still be pushed to the bottom of its own box via
   margin-top:auto. */
.products.equalize-box .box-text,
.related-products-wrapper .equalize-box .box-text {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Hide the wishlist heart in every product grid: one clear CTA per card. */
.woocommerce .category-page-row .wishlist-icon,
.woocommerce .category-page-row .yith-wcwl-add-to-wishlist,
.related-products-wrapper .wishlist-icon,
.related-products-wrapper .yith-wcwl-add-to-wishlist {
	display: none !important;
}

/* === Closing "Request a Quote" CTA strip (below the grid) === */
/* This sits inside the shop loop's .col.large-12, so it's container-width
   rather than full browser-bleed; styled as a deliberate rounded card
   (with side margins and its own shadow) instead of a plain, edge-to-edge
   rectangle so the width looks intentional at every size. */
.shop-cta-strip {
	margin: 32px 0 8px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 14px 30px rgba(7, 47, 71, .18);
}
.shop-cta-eyebrow {
	color: #fff;
	opacity: .85;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 600;
	font-size: 12px;
	margin-bottom: .8em;
}
.shop-cta-title {
	color: #fff;
	font-size: 30px;
	margin-bottom: .5em;
}
.shop-cta-sub {
	color: #fff;
	opacity: .92;
	font-size: 16px;
	max-width: 620px;
	margin: 0 auto 1.6em;
}
/* Flatsome's own .button.is-outline{color:currentColor!important} ties with
   .white.is-outline{color:#fff!important} on specificity; this three-class
   selector wins the cascade so the secondary call button stays white. */
.shop-cta-strip .button.white.is-outline {
	color: #fff !important;
	border-color: hsla(0, 0%, 100%, .7);
}
.shop-cta-strip .button.white.is-outline:hover {
	color: var(--bg-primary-dark) !important;
}
.shop-cta-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

/* === Single product page === */
.single-product .product-container {
	padding-top: 40px;
}
.betogrow-product-eyebrow {
	display: inline-block;
	margin: 0 0 .6em;
	/* #057F5C on #E6F4EE is 4.42:1, just under the 4.5:1 AA threshold for
	   this font size; the darker hover shade clears it comfortably. */
	color: var(--bg-secondary-hover);
	background: #E6F4EE;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 600;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 20px;
}
.single-product h1.product_title {
	font-size: 34px;
	color: var(--bg-primary-dark);
	margin-bottom: .4em;
}
.single-product .product_meta,
.single-product .price:empty {
	display: none;
}
.single-product .woocommerce-product-details__short-description {
	color: var(--bg-text-muted);
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 1.4em;
}

.betogrow-quote-block {
	margin: 22px 0 6px;
	padding-top: 22px;
	border-top: 1px solid var(--bg-border);
}
.betogrow-quote-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	margin-bottom: 22px;
}
.betogrow-quote-btn.button {
	font-weight: 600;
	min-width: 200px;
	text-align: center;
}
.betogrow-call-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--bg-primary-dark);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.betogrow-call-btn:hover {
	color: var(--bg-secondary);
}
.betogrow-trust-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 20px;
}
.betogrow-trust-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--bg-text);
	font-size: 14px;
}
.betogrow-check {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #E6F4EE;
	color: var(--bg-secondary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Product image: consistent frame, subtle depth, no sidebar clutter. */
.single-product .product-gallery {
	border-radius: 8px;
	overflow: hidden;
}
.single-product .flex-viewport {
	border-radius: 8px;
	overflow: hidden;
}

/* Description section: readable width, well-spaced headings. */
.single-product .woocommerce-tabs,
.single-product .product-description-wrapper {
	max-width: 820px;
	margin-top: 48px;
}
.single-product .woocommerce-tabs h2,
.single-product .woocommerce-tabs h3,
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3 {
	color: var(--bg-primary-dark);
	margin-top: 1em;
}
.single-product .woocommerce-Tabs-panel p {
	color: var(--bg-text);
	font-size: 16px;
	line-height: 1.75;
}
.single-product .wc-tabs-wrapper,
.single-product .woocommerce-tabs.wc-tabs-wrapper {
	border-top: 1px solid var(--bg-border);
	padding-top: 40px;
}

/* "Other Products & Services" (related products override). Flatsome renders
   this with its own wrapper/heading markup, not WooCommerce's default
   .related.products / <h2>, so it needs its own selectors. */
.single-product .related-products-wrapper {
	margin-top: 56px;
	padding-top: 48px;
	border-top: 1px solid var(--bg-border);
}
.single-product .product-section-title-related {
	font-size: 26px;
	color: var(--bg-primary-dark);
	text-align: center;
	margin-bottom: 1.2em;
	text-transform: none;
	letter-spacing: normal;
}

/* Hide the "Add to wishlist" text link YITH prints natively after the add
   to cart area (we removed the cart form; the quote block replaces it). */
.single-product .entry-summary .yith-wcwl-add-button {
	display: none !important;
}

/* Sticky add to cart bar: irrelevant without a cart form, hide it. */
.single-product .sticky-add-to-cart {
	display: none !important;
}

/* === Tablet (<=849px) === */
@media (max-width: 849px) {
	.shop-hero-title { font-size: 32px; }
	.betogrow-trust-list { grid-template-columns: 1fr; }
}

/* === Mobile (<=549px) === */
@media (max-width: 549px) {
	.shop-hero-title { font-size: 26px; }
	.shop-hero-sub { font-size: 14px; }
	.shop-cta-title { font-size: 24px; }
	.shop-cta-sub { font-size: 15px; }
	.products .box-text { padding: 16px 16px 18px; }
	.betogrow-quote-actions { gap: 14px; }
	.betogrow-quote-btn.button { width: 100%; min-width: 0; }
	.betogrow-call-btn { width: 100%; justify-content: center; padding: 10px 0; }
	.single-product h1.product_title { font-size: 26px; }
}
