/*
 * Sale Details pattern — heading, product-driven price grid, disclaimer, shop CTA.
 * Design: design.md → "sale-details". Class prefix: bsm- (system.md §6).
 * The price cards are rendered from the mattress-sale products (patterns/sale-details.php).
 */

.bsm-sale-details {
	padding: 72px 20px;
	background-color: var(--wp--preset--color--white, #fff);
}

.bsm-sale-details__inner {
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
}

.bsm-sale-details__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif) !important;
	font-size: 14px !important;
	letter-spacing: 2px !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--brookstreet-red, #a43143) !important;
}

.bsm-sale-details__title {
	margin: 12px 0 0 !important;
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif) !important;
	font-weight: 400 !important;
	font-size: 32px !important;
	color: var(--wp--preset--color--ink, #231f20) !important;
}

/* 35×2px accent rule */
.bsm-sale-details__rule {
	width: 35px;
	height: 2px;
	margin: 20px auto 0;
	background-color: var(--wp--preset--color--brookstreet-red, #a43143);
}

/* Price grid — one card per mattress-sale product */
.bsm-sale-details__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 48px;
}

.bsm-sale-details__card {
	display: block;
	padding: 40px 24px;
	background-color: var(--wp--preset--color--pale-grey, #f0efef);
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bsm-sale-details__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(39, 39, 39, 0.12);
}

.bsm-sale-details__price {
	display: block;
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif) !important;
	font-size: 40px !important;
	line-height: 1.1;
	color: var(--wp--preset--color--brookstreet-red, #a43143) !important;
}

.bsm-sale-details__size {
	display: block;
	margin-top: 12px;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	color: var(--wp--preset--color--ink, #231f20) !important;
}

.bsm-sale-details__was {
	display: block;
	margin-top: 8px;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif) !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: var(--wp--preset--color--ink, #231f20) !important;
	opacity: 0.75;
}

/* wc_price() wraps the figure in its own markup — let it inherit the card styling */
.bsm-sale-details__price .woocommerce-Price-amount,
.bsm-sale-details__was .woocommerce-Price-amount {
	font-family: inherit !important;
	font-size: inherit !important;
	color: inherit !important;
}

.bsm-sale-details__empty {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--wp--preset--color--slate, #636466);
}

.bsm-sale-details__disclaimer {
	max-width: 700px;
	margin: 40px auto 0 !important;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif) !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: var(--wp--preset--color--ink, #231f20) !important;
	opacity: 0.85;
}

.bsm-sale-details__actions {
	margin-top: 32px;
	justify-content: center;
}

/* "Shop Online Now" — solid red / white label; hover inverts to white / red.
   (The design names this "ButtonLgRedBlack", but a black label on the red fails
   contrast (~3.1:1) and clashes with the site's other red CTAs, so the label is
   white to match the hero's ButtonLgRedWhite — see design.md.) */
.bsm-sale-details__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	min-height: 44px;
	padding: 0 25px !important;
	border: 1px solid var(--wp--preset--color--brookstreet-red, #a43143) !important;
	border-radius: 0 !important;
	background-color: var(--wp--preset--color--brookstreet-red, #a43143) !important;
	color: var(--wp--preset--color--white, #fff) !important;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	transition: background-color 0.2s ease, color 0.2s ease !important;
}

.bsm-sale-details__cta .wp-block-button__link:hover,
.bsm-sale-details__cta .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--white, #fff) !important;
	color: var(--wp--preset--color--brookstreet-red, #a43143) !important;
}

/* Mobile — design has no mobile artboard (design.md); sensible desktop-first defaults. */
@media (max-width: 767px) {
	.bsm-sale-details {
		padding: 56px 20px;
	}

	.bsm-sale-details__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.bsm-sale-details__cta .wp-block-button__link {
		width: 100%;
	}
}


/* Ed Edits */
.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 44px;
    padding: 0 25px !important;
    border: 1px solid var(--wp--preset--color--brookstreet-red, #a43143) !important;
    border-radius: 0 !important;
    background-color: var(--wp--preset--color--brookstreet-red, #a43143) !important;
    color: var(--wp--preset--color--white, #fff) !important;
    font-family: var(--wp--preset--font-family--jost) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}
.wp-block-post-title :where(a) { color:Black; font-size:30px; }
.wc-block-components-product-image a { display:flex; }
.woocommerce a.added_to_cart { font-size:20px !important; }
.woocommerce-shop main,
.woocommerce-cart main { margin: 0 20px; }
html,
html body,
html body .wp-site-blocks { height:100%; }
html body .wp-site-blocks { display:flex; flex-direction:column; }
html body .wp-site-blocks footer { margin-top:auto; }
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { text-decoration: none !important; font-size:22px !important; font-weight:400 !important; }
.wc-block-components-product-price .wc-block-components-product-price__value { font-size:20px !important; }
