/**
 * Book Talk — WooCommerce Shop + Product Detail (Figma-aligned).
 * Cart / Checkout / My Account: Woo defaults for v1 (light token polish only).
 */

.bt-section--products .wc-block-product-template.is-flex-container,
.bt-shop .wc-block-product-template.is-flex-container,
.bt-section--related .wc-block-product-template.is-flex-container {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	column-gap: 116px !important;
	row-gap: 4.25rem !important;
}

@media (max-width: 1439px) {
	.bt-section--products .wc-block-product-template.is-flex-container,
	.bt-shop .wc-block-product-template.is-flex-container,
	.bt-section--related .wc-block-product-template.is-flex-container {
		column-gap: 28px !important;
	}
}

.bt-section--products .wc-block-product-template.is-flex-container > li,
.bt-shop .wc-block-product-template.is-flex-container > li,
.bt-section--related .wc-block-product-template.is-flex-container > li {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	box-sizing: border-box;
}

.wc-block-components-product-image {
	border: 0 !important;
	box-shadow: none !important;
}

@media (max-width: 1023px) {
	.bt-section--products .wc-block-product-template.is-flex-container,
	.bt-shop .wc-block-product-template.is-flex-container,
	.bt-section--related .wc-block-product-template.is-flex-container {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.bt-section--products .wc-block-product-template.is-flex-container,
	.bt-shop .wc-block-product-template.is-flex-container,
	.bt-section--related .wc-block-product-template.is-flex-container {
		grid-template-columns: 1fr !important;
	}
}

/* Product cards */
.bt-product-card,
.woocommerce ul.products li.product,
.wp-block-woocommerce-product-template .wc-block-product,
.bt-section--products .wc-block-product,
.bt-shop .wc-block-product {
	position: relative;
	border: 1px solid #111;
	border-radius: 8px;
	padding: 0.7rem 0.7rem 0.85rem;
	margin-bottom: 3.25rem;
	background: #fff;
	text-align: center;
	overflow: visible;
}

.bt-section--products .wc-block-product .wp-block-button,
.bt-shop .wc-block-product .wp-block-button,
.woocommerce ul.products li.product .button {
	position: absolute;
	left: -1px;
	right: -1px;
	bottom: -48px;
	width: calc(100% + 2px);
	margin: 0;
}

.bt-section--products .wc-block-product .wp-block-button__link,
.bt-shop .wc-block-product .wp-block-button__link,
.woocommerce ul.products li.product .button {
	border: 1px solid #111 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #111 !important;
	height: 34px !important;
	min-height: 34px;
	padding: 0 12px !important;
	line-height: 32px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	width: 100%;
	box-sizing: border-box;
}

.bt-section--products .wc-block-components-product-image img {
	border-radius: 12px;
	aspect-ratio: 280 / 220;
	object-fit: contain;
	background: #fff;
	width: 100%;
}

.bt-section--products .wc-block-components-product-sale-badge {
	background: #ff7b34;
	color: transparent;
	border-radius: 8px;
	font-size: 0;
	line-height: 1;
	padding: 8px 14px;
}

.bt-section--products .wc-block-components-product-sale-badge::after {
	content: "SUPER SAVER";
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.bt-badge,
.bt-badge--sale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-block;
	padding: 0.3rem 0.55rem;
	background: var(--bt-primary, #ff7b34);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wp-block-post-title {
	text-transform: uppercase;
	font-weight: 700;
	font-size: 0.9rem;
	margin: 0.75rem 0 0.35rem;
}

/* Retail / Online price */
.bt-price {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0.35rem 0 0.75rem;
	line-height: 1.35;
}

.bt-price__row {
	display: block;
	font-size: 0.8rem;
}

.bt-price__label {
	color: var(--bt-muted, #8b8b8b);
	font-weight: 500;
}

.bt-price__retail {
	color: var(--bt-text, #262626);
}

.bt-price__online,
.bt-price__online .amount,
.woocommerce ul.products li.product .price ins,
.wc-block-components-product-price ins {
	color: var(--bt-sale, #ca0000) !important;
	font-weight: 700;
	font-size: 1.05rem;
}

.woocommerce ul.products li.product .button,
.wp-block-button.wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	border: 1px solid var(--bt-text, #262626) !important;
	background: #fff !important;
	color: var(--bt-text, #262626) !important;
	border-radius: 6px;
	text-transform: none;
	font-weight: 600;
}

.woocommerce ul.products li.product .button:hover,
.wp-block-button.wc-block-components-product-button .wp-block-button__link:hover {
	background: var(--bt-primary, #ff7b34) !important;
	border-color: var(--bt-primary, #ff7b34) !important;
	color: #fff !important;
}

/* Shop layout */
.bt-shop-hero {
	padding: 2rem 0 1rem;
}

.bt-shop-hero h1 {
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}

.bt-shop-sidebar {
	padding-right: 1rem;
	border-right: 1px solid var(--bt-border, #e5e5e5);
}

.bt-shop-sidebar h3 {
	margin-top: 1.25rem;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

/* Product detail */
.bt-pdp {
	gap: 2rem;
	margin: 1.5rem 0 2.5rem;
}

.bt-pdp__summary h1 {
	margin-top: 0;
	letter-spacing: 0.02em;
}

.bt-pdp__summary .price,
.bt-pdp__summary .bt-price__online {
	font-size: 1.35rem;
}

.single-product .single_add_to_cart_button,
.wp-block-add-to-cart-form .single_add_to_cart_button {
	background: var(--bt-primary, #ff7b34) !important;
	border: none !important;
	color: #fff !important;
	padding: 0.9rem 1.75rem;
	border-radius: 6px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	min-width: 160px;
}

.single-product .single_add_to_cart_button:hover {
	background: var(--bt-orange-mid, #ffa06d) !important;
}

.single-product .quantity .qty {
	border: 1px solid var(--bt-border, #e5e5e5);
	border-radius: 6px;
	padding: 0.55rem 0.5rem;
	min-width: 64px;
}

.bt-pdp__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--bt-border, #e5e5e5);
}

.bt-pdp__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8rem;
	color: var(--bt-muted, #8b8b8b);
}

.bt-pdp__trust-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	opacity: 0.75;
	background-color: currentColor;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

.bt-pdp__trust-item--truck .bt-pdp__trust-icon {
	-webkit-mask-image: url("../images/icons/truck-fast-solid-full.svg");
	mask-image: url("../images/icons/truck-fast-solid-full.svg");
}

.bt-pdp__trust-item--lock .bt-pdp__trust-icon {
	-webkit-mask-image: url("../images/icons/lock-solid-full.svg");
	mask-image: url("../images/icons/lock-solid-full.svg");
}

.bt-pdp__trust-item--headset .bt-pdp__trust-icon {
	-webkit-mask-image: url("../images/icons/headset-solid-full.svg");
	mask-image: url("../images/icons/headset-solid-full.svg");
}

.bt-pdp__details {
	margin: 2rem 0;
}

.bt-section--related {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bt-border, #e5e5e5);
}

/* Soft polish on Woo defaults (cart/checkout/account) — not custom Figma layouts */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
	max-width: 1400px;
	margin-inline: auto;
	padding: 1.5rem 1.25rem 3rem;
}

.woocommerce-cart .button,
.woocommerce-checkout .button,
.woocommerce-account .button {
	border-radius: 6px;
}

@media (max-width: 781px) {
	.bt-shop-layout {
		flex-direction: column;
	}

	.bt-shop-sidebar {
		border-right: 0;
		border-bottom: 1px solid var(--bt-border, #e5e5e5);
		padding-right: 0;
		padding-bottom: 1rem;
		margin-bottom: 1rem;
	}

	.bt-pdp {
		flex-direction: column;
	}
}
