/* =====================================================================
   ISOW Bookstore — dark shop grid and product page
   Scope: body.isow-shop-page | body.isow-product-page
   Loads after divi-style and woocommerce-general (see class-isow-bookstore.php),
   so ordinary rules win on source order. !important appears only where Divi's
   own dynamic CSS is more specific (the float grid) or already !important.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   Mirrors plugins/isow-checkout/assets/css/isow-checkout.css:1-35, which is the
   source of truth for this palette. Duplicated rather than shared because
   WordPress has no cross-plugin style dependency and isow-bookstore must keep
   working if isow-checkout is deactivated. Keep the two in step.
   ------------------------------------------------------------------ */
body.isow-shop-page,
body.isow-product-page {
	--isow-bg: #000000;
	--isow-surface: #232323;
	--isow-surface-2: #2c2c2c;
	--isow-surface-3: #333333;
	--isow-glass: rgba(255, 255, 255, 0.05);
	--isow-border: rgba(255, 255, 255, 0.12);
	--isow-border-strong: rgba(255, 255, 255, 0.24);
	--isow-accent: #0090b9;
	--isow-accent-2: #318ec3;
	--isow-accent-soft: rgba(0, 144, 185, 0.16);
	--isow-text: #ffffff;
	--isow-muted: #cccccc;
	--isow-dim: #828282;
	--isow-error: #ff4d4d;
	--isow-success: #28a745;
	--isow-radius: 10px;
	--isow-radius-sm: 8px;
	--isow-font: 'Gotham Book', Helvetica, Arial, sans-serif;
	--isow-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
	--isow-focus: 0 0 0 3px rgba(0, 144, 185, 0.35);
}

/* ---------------------------------------------------------------------
   2. Divi resets inside our scope
   ------------------------------------------------------------------ */

/* Divi sets body line-height to 2.8em globally, which is unusable for cards. */
body.isow-shop-page .woocommerce,
body.isow-product-page .woocommerce,
body.isow-shop-page .et_pb_shop,
body.isow-product-page .et_pb_module_inner {
	font-family: var(--isow-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--isow-text);
}

body.isow-shop-page .woocommerce p,
body.isow-product-page .woocommerce p {
	line-height: 1.5;
}

/* Divi appends an arrow glyph on button hover; never on ours. */
body.isow-shop-page .woocommerce a.button:after,
body.isow-shop-page .woocommerce a.button:hover:after,
body.isow-product-page .woocommerce a.button:after,
body.isow-product-page .woocommerce button.button:after,
body.isow-product-page .woocommerce button.button:hover:after,
body.isow-product-page .single_add_to_cart_button:after {
	display: none !important;
	content: none !important;
	opacity: 0 !important;
}

/* Divi's image hover overlay fights the card treatment. */
body.isow-shop-page .et_overlay,
body.isow-product-page .et_overlay {
	display: none !important;
}

/* position: sticky needs an unclipped ancestor chain. */
body.isow-product-page .et_pb_section,
body.isow-product-page .et_pb_row,
body.isow-product-page .et_pb_column,
body.isow-shop-page .et_pb_section,
body.isow-shop-page .et_pb_row {
	overflow: visible;
}

/* ---------------------------------------------------------------------
   3. Primitives
   Re-declared in this scope: isow-checkout.css guards them behind
   body.isow-checkout-page selectors, so they do not carry over on their own.
   ------------------------------------------------------------------ */
body.isow-shop-page .isow-heading,
body.isow-product-page .isow-heading {
	font-family: var(--isow-font);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--isow-text);
	margin: 0 0 18px;
	padding: 0;
}

body.isow-shop-page .isow-btn,
body.isow-shop-page .woocommerce a.isow-btn,
body.isow-shop-page .woocommerce button.isow-btn,
body.isow-product-page .isow-btn,
body.isow-product-page .woocommerce a.isow-btn,
body.isow-product-page .woocommerce button.isow-btn {
	/* Divi styles Woo buttons as display:block with line-height:1.7em !important.
	   Both have to be forced here or the label sits on a short line box at the top
	   of the 44px button instead of centring in it. */
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	text-align: center;
	border: 1px solid transparent;
	border-radius: var(--isow-radius-sm);
	background: var(--isow-accent);
	color: #fff;
	font-family: var(--isow-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2 !important;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

body.isow-shop-page .isow-btn:hover,
body.isow-shop-page .woocommerce a.isow-btn:hover,
body.isow-shop-page .woocommerce button.isow-btn:hover,
body.isow-product-page .isow-btn:hover,
body.isow-product-page .woocommerce a.isow-btn:hover,
body.isow-product-page .woocommerce button.isow-btn:hover {
	background: var(--isow-accent-2);
	color: #fff;
	padding: 0 18px;
	border-color: transparent;
}

body.isow-shop-page .isow-btn:focus-visible,
body.isow-product-page .isow-btn:focus-visible {
	outline: none;
	box-shadow: var(--isow-focus);
}

body.isow-shop-page .isow-btn--secondary,
body.isow-shop-page .woocommerce button.isow-btn--secondary {
	background: var(--isow-surface-3);
	border-color: var(--isow-border);
}

body.isow-shop-page .isow-btn--secondary:hover,
body.isow-shop-page .woocommerce button.isow-btn--secondary:hover {
	background: #3d3d3d;
}

/* ---------------------------------------------------------------------
   4. Shop: hero
   The hero copy stays an editable Divi text module; we only style it.
   ------------------------------------------------------------------ */
body.isow-shop-page .isow-shop-hero .et_pb_text_inner h2 {
	font-family: var(--isow-font);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--isow-text);
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

body.isow-shop-page .isow-shop-hero .et_pb_text_inner p {
	font-size: 15px;
	line-height: 1.5;
	color: var(--isow-muted);
	margin: 0;
	padding: 0;
}

/* Free-shipping note reads as a pill rather than grey small print. */
body.isow-shop-page .isow-shop-hero .et_pb_text_inner p:last-child {
	display: inline-block;
	margin-top: 4px;
	padding: 7px 14px;
	border: 1px solid var(--isow-border);
	border-radius: 999px;
	background: var(--isow-glass);
	font-size: 13.5px;
	color: var(--isow-muted);
}

/* ---------------------------------------------------------------------
   5. Shop: filter bar
   ------------------------------------------------------------------ */
body.isow-shop-page .isow-shop-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 0 0 28px;
	padding: 0 0 20px;
	border-bottom: 1px solid var(--isow-border);
}

body.isow-shop-page .isow-shop-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.isow-shop-page .isow-shop-filters__chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--isow-border);
	border-radius: 999px;
	background: transparent;
	font-family: var(--isow-font);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--isow-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.isow-shop-page .isow-shop-filters__chip:hover {
	background: var(--isow-glass);
	border-color: var(--isow-border-strong);
	color: var(--isow-text);
}

/* Active state carries a fill *and* an outline, so it is not colour-only. */
body.isow-shop-page .isow-shop-filters__chip.is-active {
	background: var(--isow-accent-soft);
	border-color: var(--isow-accent);
	color: var(--isow-text);
	box-shadow: inset 0 -2px 0 0 var(--isow-accent);
}

body.isow-shop-page .isow-shop-filters__chip:focus-visible {
	outline: none;
	box-shadow: var(--isow-focus);
}

body.isow-shop-page .isow-shop-filters__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}

body.isow-shop-page .isow-shop-filters__search input[type="search"],
body.isow-shop-page .isow-shop-filters__sort select {
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius-sm);
	background: var(--isow-surface);
	font-family: var(--isow-font);
	font-size: 14.5px;
	line-height: 1.2;
	color: var(--isow-text);
	box-shadow: none;
}

body.isow-shop-page .isow-shop-filters__search input[type="search"] {
	width: 210px;
	max-width: 100%;
}

body.isow-shop-page .isow-shop-filters__search input[type="search"]::placeholder {
	color: var(--isow-dim);
}

body.isow-shop-page .isow-shop-filters__search input[type="search"]:focus,
body.isow-shop-page .isow-shop-filters__sort select:focus {
	outline: none;
	border-color: var(--isow-accent);
	box-shadow: var(--isow-focus);
}

body.isow-shop-page .isow-shop-filters__notice {
	flex: 1 0 100%;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius-sm);
	background: var(--isow-glass);
	font-size: 14px;
	color: var(--isow-muted);
}

/* Result count sits under the bar as quiet meta. */
body.isow-shop-page .woocommerce-result-count {
	margin: 0 0 18px;
	font-size: 13.5px;
	color: var(--isow-dim);
}

/* ---------------------------------------------------------------------
   6. Shop: product grid
   Divi lays the loop out with floats and percentage margins whose selectors are
   more specific than ours (.et_pb_gutters3 .et_pb_column_4_4 .et_pb_shop_grid
   .woocommerce ul.products li.product), hence !important on the resets.
   ------------------------------------------------------------------ */
body.isow-shop-page .et_pb_shop .woocommerce ul.products,
body.isow-shop-page .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

body.isow-shop-page .et_pb_shop .woocommerce ul.products:before,
body.isow-shop-page .et_pb_shop .woocommerce ul.products:after {
	display: none;
}

body.isow-shop-page .et_pb_shop .woocommerce ul.products li.product,
body.isow-shop-page .woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	display: flex;
	flex-direction: column;
	position: relative;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius);
	background: var(--isow-surface);
	overflow: hidden;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* A lift rather than the homepage carousel's scale(1.10): in a dense grid with a
   real button per card, scaling overlaps neighbours and disturbs pointer targets. */
body.isow-shop-page .woocommerce ul.products li.product:hover {
	transform: translateY(-2px);
	border-color: var(--isow-border-strong);
	box-shadow: var(--isow-shadow);
}

body.isow-shop-page .woocommerce ul.products li.product:focus-within {
	border-color: var(--isow-accent);
	box-shadow: var(--isow-focus);
}

/* The whole card above the CTA is one anchor (Woo's loop product link). */
body.isow-shop-page .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	text-decoration: none;
	color: var(--isow-text);
}

/* Covers are a mix of square and portrait; contain rather than crop them. */
body.isow-shop-page .woocommerce ul.products li.product .et_shop_image,
body.isow-shop-page .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0;
	background: #ffffff;
	overflow: hidden;
}

body.isow-shop-page .woocommerce ul.products li.product .et_shop_image img,
body.isow-shop-page .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
	box-shadow: none;
	transition: transform 0.3s ease;
}

body.isow-shop-page .woocommerce ul.products li.product:hover .et_shop_image img {
	transform: scale(1.04);
}

body.isow-shop-page .isow-shop-card__badge {
	display: inline-block;
	align-self: flex-start;
	margin: 14px 14px 0;
	padding: 4px 9px;
	border: 1px solid var(--isow-border);
	border-radius: 999px;
	background: var(--isow-glass);
	font-family: var(--isow-font);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--isow-muted);
}

body.isow-shop-page .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
body.isow-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 10px 14px 0;
	font-family: var(--isow-font);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--isow-text);
}

body.isow-shop-page .woocommerce ul.products li.product .price {
	display: block;
	margin: 0;
	padding: 8px 14px 14px;
	font-family: var(--isow-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--isow-text) !important;
}

/* Price Based on Country swaps these client-side; inherit, never restyle. */
body.isow-shop-page .woocommerce ul.products li.product .price .wcpbc-price,
body.isow-shop-page .woocommerce ul.products li.product .price bdi,
body.isow-shop-page .woocommerce ul.products li.product .price ins,
body.isow-shop-page .woocommerce ul.products li.product .price .amount {
	color: inherit !important;
	font-size: inherit;
	font-weight: inherit;
}

body.isow-shop-page .woocommerce ul.products li.product .price del,
body.isow-shop-page .woocommerce ul.products li.product .price del .amount,
body.isow-shop-page .woocommerce ul.products li.product .price del bdi {
	margin-right: 6px;
	font-weight: 400;
	color: var(--isow-dim) !important;
	opacity: 1;
}

body.isow-shop-page .woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

/* CTA sits outside the card anchor and pins to the bottom of the card. */
body.isow-shop-page .woocommerce ul.products li.product .isow-shop-card__cta {
	margin: auto 14px 14px;
	width: calc(100% - 28px);
}

/* Divi's static stylesheet locks span.onsale down with an !important wall
   (background, border-radius, left, top, padding, font-weight, line-height,
   min-width/height), so every conflicting property has to be forced here. */
body.isow-shop-page .woocommerce ul.products li.product .onsale,
body.isow-shop-page .woocommerce span.onsale,
body.isow-product-page .woocommerce span.onsale,
body.isow-product-page ul.products li.product .onsale {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 2;
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 5px 12px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--isow-accent) !important;
	font-family: var(--isow-font) !important;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-shadow: none !important;
	color: #fff !important;
}

body.isow-shop-page .woocommerce ul.products li.product .star-rating,
body.isow-shop-page .woocommerce ul.products li.product .woocommerce-product-rating {
	display: none;
}

/* ---------------------------------------------------------------------
   7. Shop: pagination
   ------------------------------------------------------------------ */
body.isow-shop-page .woocommerce nav.woocommerce-pagination {
	margin: 36px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--isow-border);
	text-align: center;
}

body.isow-shop-page .woocommerce nav.woocommerce-pagination ul,
body.isow-shop-page .woocommerce nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

body.isow-shop-page .woocommerce nav.woocommerce-pagination ul li {
	margin: 0;
	padding: 0;
	border: 0;
	overflow: visible;
}

body.isow-shop-page .woocommerce nav.woocommerce-pagination ul li a.page-numbers,
body.isow-shop-page .woocommerce nav.woocommerce-pagination ul li span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius-sm);
	background: transparent;
	font-family: var(--isow-font);
	font-size: 14.5px;
	line-height: 1;
	color: var(--isow-muted);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.isow-shop-page .woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover {
	background: var(--isow-glass);
	border-color: var(--isow-border-strong);
	color: var(--isow-text);
}

body.isow-shop-page .woocommerce nav.woocommerce-pagination ul li span.page-numbers.current {
	background: var(--isow-accent);
	border-color: var(--isow-accent);
	color: #fff;
	font-weight: 500;
}

body.isow-shop-page .woocommerce nav.woocommerce-pagination ul li span.page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--isow-dim);
}

body.isow-shop-page .woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus-visible {
	outline: none;
	box-shadow: var(--isow-focus);
}

/* Empty state */
body.isow-shop-page .woocommerce-info,
body.isow-shop-page .woocommerce-notices-wrapper .woocommerce-message {
	border-top-color: var(--isow-accent);
	background: var(--isow-surface);
	color: var(--isow-text);
}

/* ---------------------------------------------------------------------
   8. Product page
   ------------------------------------------------------------------ */
body.isow-product-page .isow-product__breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	line-height: 1.4;
}

body.isow-product-page .isow-product__breadcrumb li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.isow-product-page .isow-product__breadcrumb li + li:before {
	content: "/";
	color: var(--isow-dim);
}

body.isow-product-page .isow-product__breadcrumb a {
	color: var(--isow-muted);
	text-decoration: none;
}

body.isow-product-page .isow-product__breadcrumb a:hover {
	color: var(--isow-text);
	text-decoration: underline;
}

body.isow-product-page .isow-product__breadcrumb a:focus-visible {
	outline: none;
	box-shadow: var(--isow-focus);
	border-radius: 3px;
}

body.isow-product-page .isow-product__breadcrumb [aria-current="page"] {
	color: var(--isow-dim);
}

body.isow-product-page .isow-product__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

body.isow-product-page .isow-product__badge {
	display: inline-block;
	padding: 5px 11px;
	border: 1px solid var(--isow-accent);
	border-radius: 999px;
	background: var(--isow-accent-soft);
	font-family: var(--isow-font);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--isow-text);
}

body.isow-product-page .isow-product__cat {
	display: inline-block;
	padding: 5px 11px;
	border: 1px solid var(--isow-border);
	border-radius: 999px;
	background: var(--isow-glass);
	font-family: var(--isow-font);
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--isow-muted);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.isow-product-page .isow-product__cat:hover {
	background: var(--isow-surface-2);
	border-color: var(--isow-border-strong);
	color: var(--isow-text);
}

body.isow-product-page .isow-product__cat:focus-visible {
	outline: none;
	box-shadow: var(--isow-focus);
}

/* Buy panel: a Divi column carrying module_class="isow-product__buy". */
body.isow-product-page .isow-product__buy {
	padding: 22px;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius);
	background: var(--isow-surface);
}

@media (min-width: 981px) {
	body.isow-product-page .isow-product__buy {
		position: sticky;
		top: 120px;
	}
}

body.isow-product-page .isow-product__buy .et_pb_module {
	margin-bottom: 16px !important;
}

body.isow-product-page .isow-product__buy .et_pb_module:last-child {
	margin-bottom: 0 !important;
}

body.isow-product-page .et_pb_wc_price .price,
body.isow-product-page p.price,
body.isow-product-page p.price span,
body.isow-product-page p.price .amount,
body.isow-product-page p.price bdi,
body.isow-product-page p.price ins,
body.isow-product-page p.price .wcpbc-price {
	margin: 0;
	padding: 0;
	font-family: var(--isow-font);
	/* Divi ships .entry-summary p.price span{font-size:26px!important} */
	font-size: 30px !important;
	font-weight: 700;
	line-height: 1.2;
	color: var(--isow-text) !important;
}

body.isow-product-page p.price del,
body.isow-product-page p.price del .amount,
body.isow-product-page p.price del bdi {
	margin-right: 8px;
	font-size: 20px;
	font-weight: 400;
	color: var(--isow-dim) !important;
	opacity: 1;
}

body.isow-product-page p.price ins {
	text-decoration: none;
}

/* Add-to-cart form */
body.isow-product-page form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0;
}

body.isow-product-page form.cart .quantity {
	float: none !important;
	margin: 0 !important;
}

body.isow-product-page form.cart .quantity input.qty {
	width: 76px;
	height: 100%;
	min-height: 44px;
	padding: 0 10px;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius-sm);
	background: var(--isow-surface-2);
	font-family: var(--isow-font);
	font-size: 15px;
	color: var(--isow-text);
	text-align: center;
}

body.isow-product-page form.cart .quantity input.qty:focus {
	outline: none;
	border-color: var(--isow-accent);
	box-shadow: var(--isow-focus);
}

body.isow-product-page .woocommerce button.single_add_to_cart_button,
body.isow-product-page button.single_add_to_cart_button,
body.isow-product-page .woocommerce a.button.alt,
body.isow-product-page .woocommerce button.button.alt {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--isow-radius-sm);
	background: var(--isow-accent);
	font-family: var(--isow-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	transition: background-color 0.15s ease;
}

body.isow-product-page .woocommerce button.single_add_to_cart_button:hover,
body.isow-product-page button.single_add_to_cart_button:hover,
body.isow-product-page .woocommerce a.button.alt:hover,
body.isow-product-page .woocommerce button.button.alt:hover {
	background: var(--isow-accent-2);
	color: #fff;
	padding: 0 22px;
}

body.isow-product-page button.single_add_to_cart_button:focus-visible {
	outline: none;
	box-shadow: var(--isow-focus);
}

/* Variation selects (variable products) */
body.isow-product-page .woocommerce table.variations {
	width: 100%;
	margin: 0 0 14px;
	border: 0;
}

body.isow-product-page .woocommerce table.variations th,
body.isow-product-page .woocommerce table.variations td {
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: var(--isow-muted);
	font-size: 14px;
	text-align: left;
}

body.isow-product-page .woocommerce table.variations select {
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius-sm);
	background: var(--isow-surface-2);
	font-family: var(--isow-font);
	font-size: 15px;
	color: var(--isow-text);
}

/* Fulfillment panel */
body.isow-product-page .isow-product__fulfillment {
	padding: 14px 16px;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius-sm);
	background: var(--isow-glass);
}

body.isow-product-page .isow-product__fulfillment ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.isow-product-page .isow-product__fulfillment li {
	position: relative;
	margin: 0;
	padding: 3px 0 3px 22px;
	list-style: none;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--isow-muted);
}

body.isow-product-page .isow-product__fulfillment li:before {
	content: "";
	position: absolute;
	top: 10px;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--isow-accent);
}

/* Gallery */
body.isow-product-page .woocommerce-product-gallery {
	margin: 0;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius);
	background: var(--isow-surface);
	overflow: hidden;
}

body.isow-product-page .woocommerce-product-gallery img {
	border-radius: 0;
}

/* Description */
body.isow-product-page .et_pb_wc_description .et_pb_module_inner {
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--isow-muted);
}

body.isow-product-page .et_pb_wc_description .et_pb_module_inner p {
	line-height: 1.65;
	margin-bottom: 1em;
}

/* Attributes table */
body.isow-product-page table.shop_attributes {
	width: 100%;
	margin: 0;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius-sm);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	font-size: 14px;
}

body.isow-product-page table.shop_attributes tr {
	background: transparent !important;
}

body.isow-product-page table.shop_attributes th,
body.isow-product-page table.shop_attributes td {
	padding: 11px 16px;
	border: 0;
	border-bottom: 1px solid var(--isow-border);
	background: transparent;
	font-style: normal;
	line-height: 1.5;
	text-align: left;
}

body.isow-product-page table.shop_attributes th {
	width: 38%;
	font-weight: 500;
	color: var(--isow-dim);
}

body.isow-product-page table.shop_attributes td {
	color: var(--isow-text);
}

body.isow-product-page table.shop_attributes td p {
	margin: 0;
	padding: 0;
}

body.isow-product-page table.shop_attributes tr:last-child th,
body.isow-product-page table.shop_attributes tr:last-child td {
	border-bottom: 0;
}

/* Related products reuse the grid rules, keyed off ul.products */
body.isow-product-page ul.products,
body.isow-product-page .et_pb_wc_related_products ul.products,
body.isow-product-page .et_pb_wc_upsells ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

/* Divi forces the old float math on these inside @media (max-width:980px):
   .et_pb_wc_related_products ul.products.columns-N li.product
     { width:48%!important; margin-right:4%!important }
   That is (0,4,2) with !important, so the module class has to appear here too or
   grid items shrink to 48% of their track and leave huge gaps on mobile. */
body.isow-product-page ul.products li.product,
body.isow-product-page .et_pb_wc_related_products ul.products li.product,
body.isow-product-page .et_pb_wc_upsells ul.products li.product,
body.isow-product-page section.related ul.products li.product,
body.isow-product-page section.upsells ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	display: flex;
	flex-direction: column;
	position: relative;
	border: 1px solid var(--isow-border);
	border-radius: var(--isow-radius);
	background: var(--isow-surface);
	overflow: hidden;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.isow-product-page ul.products li.product:hover {
	transform: translateY(-2px);
	border-color: var(--isow-border-strong);
	box-shadow: var(--isow-shadow);
}

body.isow-product-page ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	text-decoration: none;
	color: var(--isow-text);
}

body.isow-product-page ul.products li.product .et_shop_image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0;
	background: #ffffff;
	overflow: hidden;
}

body.isow-product-page ul.products li.product .et_shop_image img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
}

/* Divi's related-products module styles these h2s much larger; match the shop grid. */
body.isow-product-page ul.products li.product h2.woocommerce-loop-product__title,
body.isow-product-page ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 14px 14px 0;
	font-family: var(--isow-font);
	font-size: 15px !important;
	font-weight: 500;
	line-height: 1.35 !important;
	color: var(--isow-text);
	text-transform: none;
	letter-spacing: 0;
}

body.isow-product-page ul.products li.product .price {
	display: block;
	margin: 0;
	padding: 8px 14px 16px;
	font-family: var(--isow-font);
	font-size: 15.5px;
	font-weight: 700;
	color: var(--isow-text);
}

body.isow-product-page ul.products li.product .price,
body.isow-product-page ul.products li.product .price bdi,
body.isow-product-page ul.products li.product .price ins,
body.isow-product-page ul.products li.product .price .amount,
body.isow-product-page ul.products li.product .price .wcpbc-price {
	color: var(--isow-text) !important;
	font-size: inherit;
	font-weight: inherit;
}

body.isow-product-page section.related > h2,
body.isow-product-page section.upsells > h2 {
	font-family: var(--isow-font);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--isow-text);
	margin: 0 0 20px;
	padding: 0;
}

/* Details column rhythm */
body.isow-product-page .isow-product__details .et_pb_module {
	margin-bottom: 26px !important;
}

body.isow-product-page .isow-product__details .et_pb_module:last-child {
	margin-bottom: 0 !important;
}

/* Short description reads as a lede, distinct from the long description below. */
body.isow-product-page .isow-product__lede .et_pb_module_inner {
	font-size: 17px;
	line-height: 1.55;
	color: var(--isow-text);
}

body.isow-product-page .isow-product__lede .et_pb_module_inner p {
	line-height: 1.55;
	margin-bottom: 0.6em;
}

body.isow-product-page .isow-product__lede .et_pb_module_inner p:last-child {
	margin-bottom: 0;
}

/* Banner keeps the token radius even though its source image is small. */
body.isow-shop-page .isow-shop-banner .et_pb_image_wrap,
body.isow-shop-page .isow-shop-banner img {
	display: block;
	width: 100%;
	border-radius: var(--isow-radius);
}

/* ---------------------------------------------------------------------
   9. Responsive
   Nested inside Divi's own 981 / 767 breakpoints.
   ------------------------------------------------------------------ */
@media (max-width: 1199px) {
	body.isow-shop-page .et_pb_shop .woocommerce ul.products,
	body.isow-shop-page .woocommerce ul.products,
	body.isow-product-page ul.products,
	body.isow-product-page .et_pb_wc_related_products ul.products,
	body.isow-product-page .et_pb_wc_upsells ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	/* The site's mobile header is position:fixed (~57px tall) while
	   #page-container keeps padding-top:0 site-wide, so page content starts
	   underneath it. Most pages open with a banner and get away with it; our
	   breadcrumb sits at the very top and disappears. Scoped to our two pages —
	   the site-wide condition is a separate call. */
	body.isow-shop-page #et-main-area,
	body.isow-product-page #et-main-area {
		padding-top: 30px;
	}

	body.isow-shop-page .et_pb_shop .woocommerce ul.products,
	body.isow-shop-page .woocommerce ul.products,
	body.isow-product-page ul.products,
	body.isow-product-page .et_pb_wc_related_products ul.products,
	body.isow-product-page .et_pb_wc_upsells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	body.isow-shop-page .isow-shop-filters {
		align-items: stretch;
	}

	body.isow-shop-page .isow-shop-filters__form {
		width: 100%;
	}

	body.isow-shop-page .isow-shop-filters__search input[type="search"] {
		flex: 1 1 auto;
		width: auto;
	}

	body.isow-shop-page .isow-shop-hero .et_pb_text_inner h2 {
		font-size: 26px;
	}

	body.isow-product-page .isow-product__buy {
		position: static;
		padding: 18px;
	}

	/* Stacked, the buy panel would otherwise sit below the full description and
	   attributes table. display:contents lifts the details column's children into
	   the row's flex flow so gallery -> buy -> copy can be ordered directly,
	   without moving anything in the Divi layout. */
	body.isow-product-page .isow-product-main {
		display: flex;
		flex-direction: column;
	}

	body.isow-product-page .isow-product-main .isow-product__details {
		display: contents;
	}

	body.isow-product-page .isow-product-main .et_pb_wc_images {
		order: 1;
	}

	body.isow-product-page .isow-product-main .isow-product__buy {
		order: 2;
		margin-bottom: 26px !important;
	}

	body.isow-product-page .isow-product-main .isow-product__lede {
		order: 3;
	}

	body.isow-product-page .isow-product-main .et_pb_wc_description {
		order: 4;
	}

	body.isow-product-page .isow-product-main .et_pb_wc_additional_info {
		order: 5;
		margin-bottom: 0 !important;
	}

	body.isow-product-page .et_pb_wc_price .price,
	body.isow-product-page p.price {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	body.isow-shop-page .et_pb_shop .woocommerce ul.products,
	body.isow-shop-page .woocommerce ul.products,
	body.isow-product-page ul.products,
	body.isow-product-page .et_pb_wc_related_products ul.products,
	body.isow-product-page .et_pb_wc_upsells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	body.isow-shop-page .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
	body.isow-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title {
		padding: 10px 10px 0;
		font-size: 14px;
	}

	body.isow-shop-page .woocommerce ul.products li.product .price {
		padding: 6px 10px 10px;
		font-size: 15px;
	}

	/* Related/upsell cards share the grid, so give them the shop card's
	   mobile metrics too rather than leaving them a size larger. */
	body.isow-product-page ul.products li.product h2.woocommerce-loop-product__title,
	body.isow-product-page ul.products li.product .woocommerce-loop-product__title {
		padding: 10px 10px 0;
		font-size: 14px !important;
	}

	body.isow-product-page ul.products li.product .price {
		padding: 6px 10px 10px;
		font-size: 15px !important;
	}

	body.isow-shop-page .isow-shop-card__badge {
		margin: 10px 10px 0;
	}

	body.isow-shop-page .woocommerce ul.products li.product .isow-shop-card__cta {
		margin: auto 10px 10px;
		width: calc(100% - 20px);
		font-size: 14px;
		padding: 0 12px;
	}

	body.isow-shop-page .isow-shop-filters__chips {
		gap: 6px;
	}

	body.isow-shop-page .isow-shop-filters__chip {
		min-height: 40px;
		padding: 0 13px;
		font-size: 13.5px;
	}

	body.isow-product-page .et_pb_wc_price .price,
	body.isow-product-page p.price {
		font-size: 24px;
	}

	body.isow-product-page form.cart .quantity input.qty {
		width: 68px;
	}
}

/* Stay 2-up even on the narrowest phones: one full-width card per screen makes
   a 95-product catalogue unscannable. */
@media (max-width: 419px) {
	body.isow-shop-page .et_pb_shop .woocommerce ul.products,
	body.isow-shop-page .woocommerce ul.products,
	body.isow-product-page ul.products,
	body.isow-product-page .et_pb_wc_related_products ul.products,
	body.isow-product-page .et_pb_wc_upsells ul.products {
		gap: 10px;
	}

	body.isow-shop-page .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
	body.isow-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
	body.isow-product-page ul.products li.product h2.woocommerce-loop-product__title,
	body.isow-product-page ul.products li.product .woocommerce-loop-product__title {
		font-size: 13px !important;
	}

	body.isow-shop-page .woocommerce ul.products li.product .isow-shop-card__cta {
		font-size: 13px;
		padding: 0 8px;
	}

	body.isow-shop-page .isow-shop-card__badge {
		font-size: 10px;
		padding: 3px 7px;
	}
}
