/*
Theme Name: Repair Bar Storefront
Theme URI: https://sunboxdev.com/
Author: Sunboxdev
Author URI: https://sunboxdev.com/
Description: Custom block-first WooCommerce storefront for Repair Bar.
Version: 0.9.2
Requires at least: 6.9
Requires PHP: 8.3
Text Domain: sunboxdev-storefront
License: GNU General Public License v2 or later
*/

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

html { scroll-behavior: smooth; }
body { text-wrap: pretty; }
img { height: auto; }

.wp-site-blocks { min-height: 100vh; }
.wp-block-navigation__responsive-container.is-menu-open { padding: var(--wp--preset--spacing--40); }

/* Launch-ready 404 */
.rb-404 {
	min-height: clamp(34rem, 72vh, 48rem);
	display: grid;
	place-items: center;
	padding: clamp(4rem, 10vw, 8rem) 1.25rem;
	background:
		radial-gradient(circle at 85% 20%, rgba(138, 7, 216, 0.2), transparent 30%),
		linear-gradient(145deg, #121214, #19191d);
	color: #fff;
}

.rb-404__inner { width: min(100%, 58rem); }
.rb-404__eyebrow {
	margin: 0 0 1.25rem;
	color: #46b5da;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.rb-404__code {
	margin: 0;
	font-size: clamp(5.5rem, 18vw, 12rem);
	font-weight: 900;
	letter-spacing: -.07em;
	line-height: .75;
	background: linear-gradient(100deg, #e600d7, #8a07d8 52%, #46b5da);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.rb-404 h1 {
	max-width: 13ch;
	margin: 2rem 0 1rem;
	color: #fff;
	font-size: clamp(2.25rem, 6vw, 5.25rem);
	line-height: .98;
	letter-spacing: -.045em;
}
.rb-404__copy {
	max-width: 38rem;
	margin: 0;
	color: #b7b7bf;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.65;
}
.rb-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: 2rem;
}
.rb-404__actions .wp-block-button__link {
	border: 1px solid #fff;
	border-radius: .35rem;
	padding: .9rem 1.3rem;
	font-weight: 800;
}
.rb-404__actions .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
}
.rb-404__actions .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	border-color: #8a07d8;
	background: linear-gradient(110deg, #e600d7, #8a07d8);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Starter commerce presentation */
:root {
	--sbx-ink: #18211f;
	--sbx-paper: #f7f3ed;
	--sbx-white: #fffdf9;
	--sbx-terra: #ba5337;
	--sbx-line: #d9d2c8;
}

body { background: var(--sbx-white); color: var(--sbx-ink); }
a { text-decoration: none; }
.sbx-site-header { height: 78px; background: var(--sbx-white); border-bottom: 1px solid rgba(0,0,0,.05); position: relative; z-index: 30; }
.sbx-header-inner { height: 78px; display: grid !important; grid-template-columns: 1fr auto 42px 42px; gap: 6px; align-items: center; padding: 0 !important; }
.sbx-brand { display: flex; align-items: center; gap: 10px; width: max-content; color: var(--sbx-ink); font-size: 14px; font-weight: 800; letter-spacing: .18em; text-decoration: none; }
.sbx-brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid currentColor; border-radius: 50%; font: 400 17px Georgia,serif; letter-spacing: 0; }
.sbx-primary-nav { font-size: 13px; }
.sbx-primary-nav .wp-block-navigation-item__content { color: var(--sbx-ink); padding-bottom: 4px; border-bottom: 1px solid transparent; text-decoration: none; }
.sbx-primary-nav .wp-block-navigation-item__content:hover { border-color: currentColor; }
.sbx-header-inner .wp-block-woocommerce-customer-account { width: 42px; height: 42px; display: grid; place-items: center; }
.sbx-header-inner .wp-block-woocommerce-customer-account .wc-block-customer-account__link {
	display: grid;
	place-items: center;
	width: 42px !important;
	height: 42px !important;
	padding: 0 !important;
	color: var(--sbx-ink);
}
.sbx-header-inner .wc-block-customer-account__account-icon { width: 23px; height: 23px; }
.sbx-header-inner .wc-block-mini-cart { margin: 0 !important; }
.sbx-header-inner .wc-block-mini-cart__button { padding: 0 !important; width: 42px; height: 42px; }
.sbx-header-inner .wc-block-mini-cart__icon { width: 23px; height: 23px; }

.sbx-announcement {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sbx-hero {
	min-height: min(720px, calc(100vh - 110px));
}

.sbx-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(21, 23, 20, 0.78), rgba(21, 23, 20, 0.2) 60%, transparent) !important;
}

.sbx-eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.sbx-display {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(3rem, 6vw, 5.6rem);
	font-weight: 400;
	letter-spacing: -0.05em;
	line-height: 0.98;
}

.sbx-hero .wp-block-cover__inner-container { padding-left: clamp(24px, 8vw, 120px); }
.sbx-hero .wp-block-button__link { border-radius: 0; padding: 16px 20px; font-size: 12px; }
.wp-block-woocommerce-product-collection { margin-top: 45px; }
.wc-block-product-template { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: clamp(12px,2vw,26px) !important; }
.wc-block-product-template .wc-block-product { position: relative; }
.wc-block-components-product-image { aspect-ratio: .78; overflow: hidden; background: var(--sbx-paper); }
.wc-block-components-product-image img { width: 100%; height: 100% !important; object-fit: cover; transform: scale(1.55); transition: transform .5s; }
.wc-block-product:nth-child(1) .wc-block-components-product-image img { object-position: 88% 75%; }
.wc-block-product:nth-child(2) .wc-block-components-product-image img { object-position: 53% 66%; }
.wc-block-product:nth-child(3) .wc-block-components-product-image img { object-position: 78% 48%; }
.wc-block-product:nth-child(4) .wc-block-components-product-image img { object-position: 62% 50%; }
.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.62); }
.wc-block-product .wp-block-post-terms { margin-top: 15px; font-size: 9px !important; letter-spacing: .12em; text-transform: uppercase; }
.wc-block-product .wp-block-post-title { margin: 5px 0; font: 400 18px Georgia,serif; }
.wc-block-product .wp-block-post-title a { color: var(--sbx-ink); text-decoration: none; }
.wc-block-product .wp-block-woocommerce-product-price { font-size: 13px !important; }
.wc-block-product .wp-block-woocommerce-product-button { margin-top: 10px; }
.wc-block-product .wp-block-button__link { width: 100%; border-radius: 0; background: var(--sbx-ink); font-size: 11px; }

.sbx-benefit {
	border-right: 1px solid var(--sbx-line);
}

.sbx-card-image {
	min-height: clamp(260px, 34vw, 500px);
	overflow: hidden;
}

.sbx-card-image img {
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.sbx-product-card:hover .sbx-card-image img {
	transform: scale(1.04);
}

.sbx-story-image img {
	min-height: 620px;
	object-fit: cover;
	object-position: 70% center;
}

.sbx-footer { margin-top: 0; padding: 30px 0; background: var(--sbx-white); color: #6f736f; font-size: 10px; }
.sbx-footer .alignwide { gap: 20px; }
.sbx-footer a { color: inherit; text-decoration: none; }
.sbx-footer strong { color: var(--sbx-ink); }

@media (max-width: 781px) {
	.sbx-header-inner { grid-template-columns: 1fr 42px 42px; }
	.sbx-primary-nav { order: 3; }
	.sbx-header-inner .wp-block-woocommerce-customer-account { display: none; }
	.sbx-benefit { border-right: 0; border-bottom: 1px solid var(--sbx-line); }
	.sbx-story-image img { min-height: 420px; }
	.sbx-footer .alignwide { flex-direction: column; text-align: center; }
	.wc-block-product-template { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}

@media (max-width: 480px) {
	.wc-block-product-template { gap: 10px !important; }
	.wc-block-product .wp-block-post-title { font-size: 15px; }
}

/* Repair Bar — Split Decision storefront */
:root {
	--rb-black: #171719;
	--rb-graphite: #25262a;
	--rb-white: #ffffff;
	--rb-soft: #f5f5f6;
	--rb-grey: #66676b;
	--rb-line: rgba(23, 23, 25, 0.13);
	--rb-magenta: #e600d7;
	--rb-purple: #8a07d8;
	--rb-cyan: #40a3c4;
}

body { padding-inline: 0 !important; background: var(--rb-white); color: var(--rb-black); overflow-x: clip; }
.rb-announcement { padding: 0.45rem 1rem; }
.rb-announcement p { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; }
.rb-site-header { min-height: 76px; background: var(--rb-white); border-bottom: 1px solid var(--rb-line); position: relative; z-index: 30; }
.rb-header-inner { min-height: 76px; display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding: 0 !important; }
.rb-brand { display: flex; align-items: center; gap: 0.65rem; width: max-content; color: var(--rb-black); }
.rb-brand img { width: 42px; height: 42px; object-fit: contain; }
.rb-brand-copy { display: grid; gap: 0.12rem; line-height: 1; }
.rb-brand-name { font-size: 1rem; letter-spacing: 0.08em; }
.rb-brand-tagline { color: var(--rb-grey); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.19em; }
.rb-primary-nav { font-size: 0.875rem; }
.rb-primary-nav .wp-block-navigation-item__content { color: var(--rb-black); opacity: 0.7; padding-block: 0.3rem; border-bottom: 1px solid transparent; }
.rb-primary-nav .wp-block-navigation-item__content:hover { opacity: 1; border-color: currentColor; }
.rb-header-actions { justify-self: end; gap: 0.1rem !important; }
.rb-header-actions .wp-block-woocommerce-customer-account,
.rb-header-actions .wc-block-mini-cart__button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0 !important; }
.rb-header-actions .wc-block-customer-account__link { width: 42px !important; height: 42px !important; padding: 0 !important; display: grid; place-items: center; color: var(--rb-black); }
.rb-header-actions .wc-block-customer-account__account-icon,
.rb-header-actions .wc-block-mini-cart__icon { width: 23px; height: 23px; }
.rb-checkout-header { padding-block: 1rem; background: var(--rb-white); border-bottom: 1px solid var(--rb-line); }

.rb-split-hero { display: grid; grid-template-columns: 1.04fr 0.96fr; min-height: min(750px, calc(100vh - 106px)); }
.rb-journey { min-width: 0; position: relative; overflow: hidden; display: flex; align-items: center; padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 7vw, 6.5rem); }
.rb-journey--repair { background: var(--rb-black); color: var(--rb-white); }
.rb-journey--shop { background: var(--rb-soft); color: var(--rb-black); }
.rb-journey__content { position: relative; z-index: 2; width: min(100%, 39rem); }
.rb-eyebrow { margin: 0 0 1.25rem; color: var(--rb-cyan); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.21em; text-transform: uppercase; }
.rb-journey h1,
.rb-journey h2 { margin: 0; font-size: clamp(3rem, 5.2vw, 5.3rem); font-weight: 780; line-height: 0.98; letter-spacing: -0.055em; }
.rb-journey h1 span,
.rb-journey h2 span { background: linear-gradient(100deg, var(--rb-magenta), var(--rb-purple), var(--rb-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rb-lead { max-width: 31rem; margin: 1.75rem 0 0; color: #aaaab0; font-size: 1.0625rem; line-height: 1.7; }
.rb-journey--shop .rb-lead { color: var(--rb-grey); }
.rb-journey-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: space-between; gap: 3rem; min-width: 13.75rem; margin-top: 1.5rem; padding: 0.95rem 1.1rem; border: 1px solid; border-radius: 0.35rem; font-weight: 750; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rb-journey-button:hover { transform: translateY(-2px); }
.rb-journey-button--light { background: var(--rb-white); border-color: var(--rb-white); color: var(--rb-black); }
.rb-journey-button--dark { background: var(--rb-black); border-color: var(--rb-black); color: var(--rb-white); }
.rb-journey-button > span { font-size: 1.25rem; }
.rb-trust-list { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: clamp(2.5rem, 5vw, 4.2rem) 0 0; padding: 0; list-style: none; color: #929299; font-size: 0.75rem; }
.rb-trust-list li::before { content: "✓"; margin-right: 0.4rem; color: var(--rb-cyan); }
.rb-shop-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: clamp(2.5rem, 5vw, 4.2rem); }
.rb-shop-tags span { padding: 0.55rem 0.75rem; background: var(--rb-white); border: 1px solid #dedee1; border-radius: 0.3rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; }
.rb-circuit-grid { position: absolute; inset: 0; opacity: 0.3; background-image: linear-gradient(90deg, transparent 49.6%, rgba(64, 163, 196, 0.11) 50%, transparent 50.4%), linear-gradient(0deg, transparent 49.6%, rgba(230, 0, 215, 0.08) 50%, transparent 50.4%); background-size: 5rem 5rem; }
.rb-device-motif { position: absolute; right: -5rem; bottom: -4.5rem; width: 19rem; height: 29rem; transform: rotate(9deg); opacity: 0.32; }
.rb-device-motif__screen { width: 12rem; height: 24rem; border: 0.75rem solid #515159; border-radius: 2rem; background: var(--rb-graphite); box-shadow: 0 0 4rem rgba(230, 0, 215, 0.2); }
.rb-device-motif__screen::before { content: ""; display: block; width: 4rem; height: 0.45rem; margin: 0.75rem auto; border-radius: 1rem; background: #515159; }
.rb-device-motif__plus { position: absolute; right: 0; bottom: 5rem; width: 7rem; height: 7rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--rb-magenta), var(--rb-purple)); color: var(--rb-white); font-size: 3rem; }

.rb-section { width: min(100% - 2rem, 1280px); margin-inline: auto; padding-block: clamp(4rem, 8vw, 7rem); }
.rb-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.rb-section-heading .rb-eyebrow { margin-bottom: 0.8rem; }
.rb-section-heading h2,
.rb-why h2 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 4.5rem); letter-spacing: -0.05em; }
.rb-section-heading > a,
.rb-section-heading > p a { padding-bottom: 0.25rem; border-bottom: 1px solid currentColor; font-weight: 700; }
.rb-device-categories { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 3rem; border-block: 1px solid var(--rb-line); }
.rb-device-categories a { min-width: 0; min-height: 13.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; padding: 1.4rem; border-right: 1px solid var(--rb-line); transition: background 0.2s ease, color 0.2s ease; }
.rb-device-categories a:last-child { border-right: 0; }
.rb-device-categories a:hover { background: var(--rb-black); color: var(--rb-white); }
.rb-category-icon { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; margin-bottom: auto; color: var(--rb-magenta); font-size: 2.4rem; }
.rb-category-icon svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rb-category-icon .rb-icon-accent { stroke: var(--rb-cyan); }

/* Privacy-first cookie consent. */
.rb-cookie-consent[hidden], .rb-cookie-settings[hidden] { display: none !important; }
.rb-cookie-consent { position: fixed; z-index: 100000; right: 1rem; bottom: 1rem; width: min(32rem, calc(100vw - 2rem)); padding: 1.4rem; color: #fff; background: #17171a; border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; box-shadow: 0 1.25rem 4rem rgba(0,0,0,.32); }
.rb-cookie-consent h2 { margin: 0 0 .55rem; font-size: 1.2rem; }
.rb-cookie-consent p { margin: 0; color: #c9c9cf; font-size: .92rem; line-height: 1.55; }
.rb-cookie-consent a { color: #55c9ef; }
.rb-cookie-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.rb-cookie-actions button { min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid #8a23df; border-radius: .55rem; font: inherit; font-weight: 700; cursor: pointer; }
.rb-cookie-actions [data-rb-consent="accept"] { color: #fff; background: linear-gradient(135deg,#d900c8,#6f24dd); }
.rb-cookie-actions [data-rb-consent="reject"], .rb-cookie-actions [data-rb-consent="save"] { color: #fff; background: transparent; }
.rb-cookie-actions [data-rb-consent="settings"] { color: #17171a; background: #fff; border-color: #fff; }
.rb-cookie-settings { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.rb-cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; color: #fff; }
.rb-cookie-option input { width: 1.25rem; height: 1.25rem; accent-color: #a51fe0; }
.rb-cookie-preferences { border: 0; padding: 0; color: inherit; background: transparent; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) { .rb-cookie-consent { right: .65rem; bottom: .65rem; width: calc(100vw - 1.3rem); padding: 1.1rem; } .rb-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; } .rb-cookie-actions button { padding-inline: .55rem; } }
.rb-device-categories strong { font-size: 1.1rem; }
.rb-device-categories small { color: var(--rb-grey); font-size: 0.75rem; line-height: 1.5; }
.rb-device-categories a:hover small { color: #aaaab0; }

.rb-products-section { padding-block: clamp(4rem, 8vw, 7rem); }
.rb-products-section > .rb-section-heading { margin-bottom: 2.5rem; }
.rb-products-section .rb-section-heading h2 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); letter-spacing: -0.05em; }
.rb-products-section .wp-block-woocommerce-product-collection { margin-top: 0; }
.rb-products-section .wc-block-components-product-image { aspect-ratio: 1; background: var(--rb-white); }
.rb-products-section .wc-block-components-product-image img { transform: none; object-fit: contain; }
.rb-products-section .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.03); }
.rb-products-section .wc-block-product { box-sizing: border-box; padding: .8rem; border: 1px solid transparent; border-radius: .65rem; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.rb-products-section .wc-block-product:hover,
.rb-products-section .wc-block-product:focus-within { border-color: var(--rb-purple); box-shadow: 0 .75rem 2rem rgba(111,36,221,.14); transform: translateY(-3px); }
.rb-products-section .wc-block-product .wp-block-post-title { font-family: inherit; font-weight: 700; }
.rb-products-section .wc-block-product .wp-block-button__link { border-radius: 0.35rem; background: var(--rb-black); transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.rb-products-section .wc-block-product .wp-block-button__link:hover,
.rb-products-section .wc-block-product .wp-block-button__link:focus-visible { background: linear-gradient(110deg,var(--rb-magenta),var(--rb-purple)); box-shadow: 0 .55rem 1.3rem rgba(138,7,216,.25); transform: translateY(-1px); }

.rb-why { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.rb-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rb-line); }
.rb-why-grid article { padding: 1.4rem 1.2rem 1.4rem 0; }
.rb-why-grid article + article { padding-left: 1.2rem; border-left: 1px solid var(--rb-line); }
.rb-why-grid span { color: var(--rb-magenta); font-size: 0.75rem; font-weight: 800; }
.rb-why-grid h3 { margin: 3.5rem 0 0.8rem; font-size: 1.2rem; }
.rb-why-grid p { margin: 0; color: var(--rb-grey); font-size: 0.9rem; line-height: 1.65; }
.rb-reviews { box-sizing: border-box; width: min(100% - 2rem, 1280px); margin: 0 auto clamp(4rem, 8vw, 7rem); padding: clamp(2rem, 5vw, 3.5rem); color: var(--rb-white); background: var(--rb-black); border-radius: 0.7rem; }
.rb-reviews__header { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.rb-reviews__header h2 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 4.5rem); letter-spacing: -0.05em; }
.rb-reviews__score { display: grid; gap: 0.35rem; text-align: right; }
.rb-reviews__score strong { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1; }
.rb-reviews__score span { color: #f4c542; letter-spacing: 0.08em; }
.rb-reviews__score small { color: #b0b0b7; }
.rb-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.15); }
.rb-review { min-width: 0; padding: 1.6rem 1.4rem 0 0; }
.rb-review + .rb-review { padding-left: 1.4rem; border-left: 1px solid rgba(255,255,255,0.15); }
.rb-review__stars { color: #f4c542; letter-spacing: 0.08em; }
.rb-review blockquote { margin: 1rem 0 1.5rem; color: #d5d5d9; line-height: 1.7; }
.rb-review cite { color: var(--rb-white); font-style: normal; font-weight: 750; }
.rb-reviews__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.rb-reviews__actions .rb-journey-button { min-width: 0; margin: 0; }
.rb-reviews__actions .rb-journey-button--dark { border-color: var(--rb-purple); background: linear-gradient(110deg, var(--rb-magenta), var(--rb-purple)); color: var(--rb-white); box-shadow: 0 0.7rem 2rem rgba(138, 7, 216, 0.22); }
.rb-reviews__actions .rb-journey-button--dark:hover { box-shadow: 0 0.9rem 2.4rem rgba(138, 7, 216, 0.34); }
.rb-repair-cta { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) max(1rem, calc((100vw - 1280px) / 2)); background: var(--rb-black); color: var(--rb-white); }
.rb-repair-cta img { width: 6rem; height: 6rem; object-fit: contain; }
.rb-repair-cta .rb-eyebrow { margin-bottom: 0.55rem; }
.rb-repair-cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.04em; }
.rb-repair-cta p:last-child { margin: 0.5rem 0 0; color: #aaaab0; }
.rb-repair-cta .rb-journey-button { margin-top: 0; }
.rb-footer { margin-top: 0; padding-block: 2rem 1rem; background: var(--rb-white); color: var(--rb-grey); border-top: 1px solid var(--rb-line); }
.rb-footer-inner { gap: 1.5rem; }
.rb-footer p { margin: 0; }
.rb-footer a { color: inherit; }
.rb-footer-brand { color: var(--rb-black) !important; }
.rb-footer-credit { width: min(100% - 2rem, 1280px); margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid var(--rb-line); text-align: center; font-size: 0.72rem; letter-spacing: 0.04em; }
.rb-footer-credit a { color: var(--rb-purple); font-weight: 800; }
.rb-footer-credit a:hover { text-decoration: underline; }

/* Production commerce polish */
.rb-commerce-page main,
.woocommerce-shop main,
.single-product main,
.woocommerce-account main {
	width: min(100% - 2rem, 1280px);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 5rem);
}
.rb-commerce-page main > h1,
.woocommerce-shop main h1,
.woocommerce-account main h1 {
	font-size: clamp(2.35rem, 5vw, 4.5rem);
	letter-spacing: -0.05em;
}
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.wc-block-components-formatted-money-amount,
.wc-block-components-totals-item__label { color: var(--rb-grey); }
.woocommerce ul.products li.product .button,
.woocommerce button.button,
.woocommerce a.button,
.wc-block-components-button:not(.is-link) {
	min-height: 3rem;
	border: 1px solid var(--rb-black);
	border-radius: 0.4rem;
	background: var(--rb-black);
	color: var(--rb-white);
	font-weight: 750;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.wc-block-components-button:not(.is-link):hover {
	transform: translateY(-1px);
	box-shadow: 0 0.5rem 1.5rem rgba(23, 23, 25, 0.12);
}
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea {
	min-height: 3.2rem;
	border: 1px solid rgba(23, 23, 25, 0.35) !important;
	border-radius: 0.4rem !important;
	background: var(--rb-white) !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.woocommerce input.input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
	border-color: var(--rb-purple) !important;
	box-shadow: 0 0 0 2px rgba(138, 7, 216, 0.14) !important;
}
.wc-block-cart,
.wc-block-checkout,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation {
	min-width: 0;
}
.wc-block-components-sidebar-layout { gap: clamp(1.5rem, 4vw, 3.5rem); }
.wc-block-components-sidebar,
.wc-block-components-order-summary {
	border-radius: 0.6rem;
}
.wc-block-components-notice-banner { border-radius: 0.4rem; }
.woocommerce span.onsale {
	min-width: auto;
	min-height: auto;
	padding: 0.4rem 0.65rem;
	border-radius: 0.3rem;
	background: var(--rb-magenta);
	line-height: 1.2;
}

/* Repair Bar content pages */
.rb-content-page { margin: 0; }
.rb-content-page > .wp-block-post-content { margin: 0; }
main:has(> .wp-block-post-content > .rb-page-hero) > .wp-block-post-title { display: none; }
.rb-page-hero { min-height: clamp(34rem, 68vh, 46rem); display: flex; flex-direction: column; justify-content: center; padding: clamp(4.5rem, 9vw, 8rem) max(1rem, calc((100vw - 1280px) / 2)); }
.rb-page-hero--compact { min-height: clamp(25rem, 48vh, 32rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.rb-page-hero--dark { color: var(--rb-white); background: radial-gradient(circle at 82% 22%, rgba(64, 163, 196, 0.12), transparent 24%), radial-gradient(circle at 18% 80%, rgba(138, 7, 216, 0.12), transparent 26%), var(--rb-black); }
.rb-page-hero--light { color: var(--rb-black); background: var(--rb-soft); }
.rb-page-hero h1 { max-width: 58rem; margin: 0; font-size: clamp(3.4rem, 7vw, 7rem); line-height: 0.95; letter-spacing: -0.065em; }
.rb-page-hero h1 span { background: linear-gradient(100deg, var(--rb-magenta), var(--rb-purple), var(--rb-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rb-page-hero > p:last-child { max-width: 43rem; margin: 2rem 0 0; color: var(--rb-grey); font-size: 1.125rem; line-height: 1.75; }
.rb-page-hero--dark > p:last-child { color: #b0b0b7; }
.rb-page-section { width: min(100% - 2rem, 1280px); margin-inline: auto; padding-block: clamp(4rem, 8vw, 7rem); }
.rb-legal-copy { width: min(100% - 2rem, 880px); }
.rb-legal-copy h2 { margin: 2.75rem 0 0.9rem; font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.025em; }
.rb-legal-copy p,
.rb-legal-copy li { color: var(--rb-grey); font-size: 1rem; line-height: 1.8; }
.rb-legal-copy ul { padding-left: 1.25rem; }
.rb-legal-copy a { color: var(--rb-purple); text-decoration: underline; text-underline-offset: 0.18em; }
.rb-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rb-line); border-left: 1px solid var(--rb-line); }
.rb-service-grid a { min-height: 21rem; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.3rem); border-right: 1px solid var(--rb-line); border-bottom: 1px solid var(--rb-line); transition: background 0.2s ease, color 0.2s ease; }
.rb-service-grid a:hover { color: var(--rb-white); background: var(--rb-black); }
.rb-service-grid a > span { margin-bottom: auto; color: var(--rb-magenta); font-size: 2.6rem; }
.rb-service-grid h2 { margin: 2.2rem 0 0.8rem; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; }
.rb-service-grid p { margin: 0 0 1.6rem; color: var(--rb-grey); line-height: 1.65; }
.rb-service-grid a:hover p { color: #b0b0b7; }
.rb-service-grid b { margin-top: auto; font-size: 0.875rem; }
.rb-info-band { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - 1280px) / 2)); color: var(--rb-white); background: var(--rb-graphite); }
.rb-info-band h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); letter-spacing: -0.05em; }
.rb-info-band ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,0.15); }
.rb-info-band li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-block: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.rb-info-band li b { color: var(--rb-cyan); }
.rb-about-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 9vw, 9rem); }
.rb-about-layout h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5rem); letter-spacing: -0.055em; }
.rb-copy p { margin: 0 0 1.6rem; color: var(--rb-grey); font-size: 1.08rem; line-height: 1.8; }
.rb-values { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100% - 2rem, 1280px); margin: 0 auto clamp(4rem, 8vw, 7rem); border-block: 1px solid var(--rb-line); }
.rb-values article { min-height: 20rem; padding: 2rem; }
.rb-values article + article { border-left: 1px solid var(--rb-line); }
.rb-values b, .rb-contact-card > span { color: var(--rb-magenta); font-size: 0.75rem; }
.rb-values h2 { margin: 5rem 0 1rem; font-size: 1.8rem; }
.rb-values p { color: var(--rb-grey); line-height: 1.7; }
.rb-faq { width: min(100% - 2rem, 980px); }
.rb-faq__intro { margin-bottom: 2.5rem; }
.rb-faq__intro h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); letter-spacing: -0.05em; }
.rb-faq details { border-top: 1px solid var(--rb-line); }
.rb-faq details:last-child { border-bottom: 1px solid var(--rb-line); }
.rb-faq summary { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 750; list-style: none; }
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: "+"; color: var(--rb-purple); font-size: 1.5rem; }
.rb-faq details[open] summary::after { content: "−"; }
.rb-faq details p { max-width: 48rem; margin: 0 0 1.5rem; color: var(--rb-grey); line-height: 1.75; }
.rb-page-cta { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(3.5rem, 7vw, 6rem) max(1rem, calc((100vw - 1280px) / 2)); color: var(--rb-white); background: var(--rb-black); }
.rb-page-cta h2 { max-width: 48rem; margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: -0.05em; }
.rb-page-cta .rb-journey-button { margin: 0; }
.rb-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rb-contact-card { min-height: 20rem; display: flex; flex-direction: column; padding: 2rem; background: var(--rb-soft); border: 1px solid transparent; }
.rb-contact-card:hover { border-color: var(--rb-black); }
.rb-contact-card p { margin: auto 0 0.75rem; color: var(--rb-grey); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; }
.rb-contact-card a, .rb-contact-card strong { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.35; }
.rb-map-link { display: inline-flex; align-items: flex-end; gap: 0.7rem; margin-top: auto; width: fit-content; }
.rb-map-link strong { transition: color 0.2s ease; }
.rb-map-link > span { color: var(--rb-magenta); font-size: 1.35rem; line-height: 1.3; }
.rb-map-link:hover strong { color: var(--rb-purple); }
.rb-contact-card small { margin-top: 0.8rem; color: var(--rb-grey); line-height: 1.55; }
.rb-contact-details { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 7vw, 6rem); }
.rb-hours h2 { margin: 0 0 2rem; font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -0.045em; }
.rb-hours dl { margin: 0; border-top: 1px solid var(--rb-line); }
.rb-hours dl div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rb-line); }
.rb-hours dt { font-weight: 750; }
.rb-hours dd { margin: 0; color: var(--rb-grey); text-align: right; }
.rb-contact-links { padding: clamp(2rem, 4vw, 3rem); color: var(--rb-white); background: var(--rb-black); }
.rb-contact-links h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 3.5vw, 3.2rem); letter-spacing: -0.04em; }
.rb-contact-links a { display: flex; justify-content: space-between; gap: 1rem; margin-inline: -0.8rem; padding: 1rem 0.8rem; color: var(--rb-white); border-bottom: 1px solid rgba(255,255,255,0.15); font-weight: 700; transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease; }
.rb-contact-links a span { color: var(--rb-cyan); transition: color 0.2s ease, transform 0.2s ease; }
.rb-contact-links a:hover,
.rb-contact-links a:focus-visible { padding-left: 1.1rem; color: #edc9ff; background: rgba(138, 7, 216, 0.3); }
.rb-contact-links a:hover span,
.rb-contact-links a:focus-visible span { color: var(--rb-magenta); transform: translate(0.15rem, -0.1rem); }
.rb-contact-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - 1280px) / 2)); background: var(--rb-soft); }
.rb-contact-band h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5rem); letter-spacing: -0.055em; }
.rb-contact-band p:not(.rb-eyebrow) { color: var(--rb-grey); }
.rb-contact-band .rb-journey-button { margin: 0; }

@media (max-width: 900px) {
	.rb-service-grid { grid-template-columns: repeat(2, 1fr); }
	.rb-info-band, .rb-about-layout, .rb-contact-details { grid-template-columns: 1fr; }
	.rb-values, .rb-contact-grid { grid-template-columns: 1fr; }
	.rb-values article { min-height: 14rem; }
	.rb-values article + article { border-left: 0; border-top: 1px solid var(--rb-line); }
	.rb-values h2 { margin-top: 3rem; }
	.rb-reviews__grid { grid-template-columns: 1fr; }
	.rb-review { padding: 1.4rem 0; }
	.rb-review + .rb-review { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.15); }
}

@media (max-width: 600px) {
	.rb-page-hero { min-height: 32rem; padding-inline: 1.4rem; }
	.rb-page-hero--compact { min-height: 25rem; padding-block: 3.5rem; }
	.rb-page-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
	.rb-legal-page .rb-page-hero { min-height: 27rem; padding-block: 3.75rem; }
	.rb-legal-page .rb-page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.25rem); overflow-wrap: anywhere; }
	.rb-legal-copy { width: calc(100% - 2.8rem); }
	.rb-service-grid { grid-template-columns: 1fr; }
	.rb-service-grid a { min-height: 17rem; }
	.rb-info-band, .rb-page-cta, .rb-contact-band { grid-template-columns: 1fr; padding-inline: 1.4rem; }
	.rb-page-cta .rb-journey-button, .rb-contact-band .rb-journey-button { width: 100%; }
	.rb-reviews__header { align-items: start; flex-direction: column; }
	.rb-reviews__score { text-align: left; }
	.rb-reviews__actions .rb-journey-button { width: 100%; }
}

@media (max-width: 980px) {
	.rb-header-inner { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 1rem !important; }
	.rb-primary-nav { grid-column: 1 / -1; order: 3; width: 100%; padding-top: 0.2rem; border-top: 1px solid var(--rb-line); }
	.rb-primary-nav .wp-block-navigation__responsive-container-open { margin-inline: auto; }
	.rb-split-hero { grid-template-columns: 1fr; }
	.rb-journey { min-height: 39rem; }
	.rb-device-categories { grid-template-columns: repeat(2, 1fr); }
	.rb-device-categories a { border-bottom: 1px solid var(--rb-line); }
	.rb-device-categories a:nth-child(2n) { border-right: 0; }
	.rb-device-categories a:last-child { grid-column: 1 / -1; }
	.rb-why { grid-template-columns: 1fr; }
	.rb-repair-cta { grid-template-columns: auto 1fr; }
	.rb-repair-cta .rb-journey-button { grid-column: 1 / -1; width: max-content; }
}

@media (max-width: 600px) {
	.rb-announcement p { font-size: 0.62rem; }
	.rb-site-header { min-height: 0; }
	.rb-header-inner { min-height: 72px; row-gap: 0; padding-inline: 0.85rem !important; }
	.rb-brand { font-size: 0.875rem; }
	.rb-brand-name { font-size: 0.875rem; }
	.rb-brand-tagline { font-size: 0.48rem; }
	.rb-brand img { width: 36px; height: 36px; }
	.rb-header-actions .wp-block-woocommerce-customer-account { display: grid; }
	.rb-header-actions { gap: 0 !important; }
	.rb-header-actions .wp-block-woocommerce-customer-account,
	.rb-header-actions .wc-block-mini-cart__button,
	.rb-header-actions .wc-block-customer-account__link { width: 38px !important; height: 38px !important; }
	.rb-primary-nav { margin-top: 0.35rem; padding-block: 0.55rem; }
	.rb-journey { min-height: 36rem; padding: 4rem 1.4rem; }
	.rb-journey h1, .rb-journey h2 { font-size: clamp(2.8rem, 14vw, 4rem); }
	.rb-device-motif { opacity: 0.16; }
	.rb-section-heading { align-items: start; flex-direction: column; }
	.rb-device-categories { grid-template-columns: 1fr; }
	.rb-device-categories a,
	.rb-device-categories a:nth-child(2n) { min-height: 10.5rem; border-right: 0; }
	.rb-device-categories a:last-child { grid-column: auto; }
	.rb-why-grid { grid-template-columns: 1fr; }
	.rb-why-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--rb-line); }
	.rb-why-grid h3 { margin-top: 2rem; }
	.rb-reviews { width: calc(100% - 1.5rem); padding: 1.5rem; border-radius: 0.55rem; }
	.rb-reviews__header h2 { font-size: clamp(2.2rem, 12vw, 3rem); overflow-wrap: anywhere; }
	.rb-review blockquote { overflow-wrap: anywhere; }
	.rb-footer-inner { flex-direction: column; align-items: center; padding-inline: 1rem !important; text-align: center; }
	.rb-footer-inner > p:first-of-type { display: none; }
	.rb-footer-credit { width: calc(100% - 2rem); margin-top: 1rem; }
	.rb-repair-cta { grid-template-columns: 1fr; padding-inline: 1.4rem; }
	.rb-repair-cta img { width: 4.5rem; height: 4.5rem; }
	.rb-repair-cta .rb-journey-button { grid-column: auto; min-width: 0; width: 100%; }
	.rb-commerce-page main,
	.woocommerce-shop main,
	.single-product main,
	.woocommerce-account main { width: min(100% - 1.5rem, 1280px); padding-block: 2.5rem; }
	.wc-block-components-sidebar-layout { display: block !important; }
	.wc-block-components-main,
	.wc-block-components-sidebar { width: 100% !important; padding: 0 !important; }
	.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 72px 1fr; }
	.wc-block-cart-item__prices,
	.wc-block-cart-item__quantity { margin-top: 0.65rem; }
	.woocommerce table.shop_table_responsive tr td,
	.woocommerce-page table.shop_table_responsive tr td { padding: 0.8rem; }
	.wp-block-woocommerce-product-results-count,
	.wp-block-woocommerce-catalog-sorting,
	.woocommerce-ordering,
	.woocommerce-ordering select { width: 100% !important; max-width: 100% !important; }
	.wp-block-woocommerce-product-results-count { margin-bottom: 0.75rem; }
}
