/*
 Theme Name:   Insole B2B Theme
 Theme URI:    https://www.jijiashoes.com/
 Description:  B2B child theme for functional insole manufacturers — quote-first workflow, no retail checkout.
 Author:       Guangzhou Jijia
 Author URI:   https://www.jijiashoes.com/
 Template:     astra
 Version:      2.3.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  insole-b2b-theme
 Tags:         b2b, woocommerce, insoles, wholesale
*/

/* Design tokens & unified CTAs: assets/design-tokens.css (enqueued globally) */

/* ==========================================================================
   Shared section rhythm & typography hierarchy
   ========================================================================== */

.insole-b2b-container {
	max-width: var(--b2b-container);
	margin: 0 auto;
	padding: 0 var(--b2b-section-x);
}

.insole-b2b-section-title,
.insole-home__section-header h2,
.insole-page__section-header h2,
.insole-about__section-header h2,
.insole-tech__section-header h2 {
	font-size: var(--b2b-h2-size);
	font-weight: 800;
	line-height: 1.2;
	color: var(--b2b-primary);
}

.insole-b2b-section-desc,
.insole-home__section-header p,
.insole-page__section-header p,
.insole-about__section-header p,
.insole-tech__section-header p {
	font-size: var(--b2b-desc-size);
	line-height: 1.6;
	color: var(--b2b-body-muted);
}

.insole-home__eyebrow {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--b2b-accent);
	margin-bottom: 0.65rem;
}

.insole-b2b-metric-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
}

.insole-b2b-metric {
	text-align: center;
	padding: 2rem 1rem;
	background: var(--b2b-white);
	border-radius: var(--b2b-radius);
	box-shadow: var(--b2b-shadow);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.insole-b2b-metric:hover {
	transform: translateY(-3px);
	box-shadow: var(--b2b-shadow-hover);
}

.insole-b2b-metric__value {
	display: block;
	font-size: var(--b2b-metric-size);
	font-weight: 800;
	line-height: 1.1;
	color: var(--b2b-accent);
	letter-spacing: -0.02em;
}

.insole-b2b-metric__label {
	display: block;
	margin-top: 0.65rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--b2b-body-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

/* ==========================================================================
   Astra header — clean white bar (normal document flow)
   ========================================================================== */

#masthead,
#ast-desktop-header,
#ast-mobile-header,
.site-header {
	position: relative;
	width: 100%;
}

#ast-desktop-header .main-header-bar,
#ast-mobile-header .main-header-bar,
.ast-primary-header-bar,
.site-primary-header-wrap {
	background: #ffffff !important;
	border-bottom: none;
	box-shadow: none;
	padding: 15px 0;
	transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#ast-desktop-header .site-primary-header-wrap,
#ast-mobile-header .site-primary-header-wrap {
	align-items: center;
}

#ast-desktop-header.insole-b2b-header--scrolled .main-header-bar,
#ast-mobile-header.insole-b2b-header--scrolled .main-header-bar,
.site-header.insole-b2b-header--scrolled .main-header-bar {
	background: #ffffff !important;
	box-shadow: var(--b2b-shadow);
}

/* Logo — flush with white header, no extra panel */
#ast-desktop-header .custom-logo-link,
#ast-mobile-header .custom-logo-link,
.site-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	background: transparent !important;
	padding: 0;
	line-height: 0;
}

#ast-desktop-header .custom-logo-link img,
#ast-mobile-header .custom-logo-link img,
.site-header .custom-logo-link img {
	max-height: 48px;
	width: auto;
	height: auto;
	background: transparent;
	display: block;
}

/* Primary menu */
#ast-desktop-header .main-header-menu,
#ast-mobile-header .main-header-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.25rem;
}

#ast-desktop-header .main-header-menu .menu-link,
#ast-mobile-header .main-header-menu > .menu-item > .menu-link {
	color: #111827;
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	transition: color 0.2s ease;
}

#ast-desktop-header .main-header-menu .menu-link:hover,
#ast-desktop-header .main-header-menu .menu-link:focus,
#ast-mobile-header .main-header-menu > .menu-item > .menu-link:hover {
	color: var(--b2b-accent);
}

/* Mobile menu trigger on white header */
#ast-mobile-header .ast-mobile-menu-trigger-minimal,
#ast-mobile-header .menu-toggle,
#ast-mobile-header .ast-mobile-svg {
	color: #111827;
	fill: #111827;
}

/* Nav quote CTA — compact pill, vertically centered */
.main-header-menu .menu-item.insole-b2b-menu-cta,
.main-header-menu .insole-b2b-menu-cta {
	display: flex;
	align-items: center;
	align-self: center;
	margin-left: 0.75rem;
	height: auto;
	padding: 0;
}

.main-header-menu .insole-b2b-nav-quote-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 10px 20px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	border-radius: 4px;
	height: auto !important;
	min-height: 0;
	line-height: 1 !important;
	white-space: nowrap;
	background: var(--b2b-accent) !important;
	color: #ffffff !important;
	border: none !important;
	box-shadow: none;
	transform: none;
	letter-spacing: 0.01em;
}

.main-header-menu .insole-b2b-nav-quote-btn:hover,
.main-header-menu .insole-b2b-nav-quote-btn:focus {
	background: var(--b2b-accent-hover) !important;
	color: #ffffff !important;
	transform: none;
	box-shadow: 0 4px 14px rgba(30, 58, 95, 0.25);
}

/* Products nav — vertical dropdown with accordion categories */
#ast-desktop-header .main-header-menu > .insole-nav-products {
	position: relative;
}

/* Astra already renders a dropdown arrow — hide duplicate link pseudo-elements. */
#ast-desktop-header .main-header-menu > .insole-nav-products.menu-item-has-children > .menu-link::after,
#ast-desktop-header .main-header-menu .insole-nav-product-cat.menu-item-has-children > .menu-link::after,
#ast-mobile-header .main-header-menu > .insole-nav-products.menu-item-has-children > .menu-link::after,
#ast-mobile-header .main-header-menu .insole-nav-product-cat.menu-item-has-children > .menu-link::after {
	content: none !important;
	display: none !important;
}

#ast-desktop-header .main-header-menu > .insole-nav-products > .sub-menu,
#ast-mobile-header .main-header-menu > .insole-nav-products > .sub-menu {
	min-width: 240px;
	padding: 0;
	margin: 0;
	list-style: none;
	background: var(--b2b-white, #fff);
	border: 1px solid var(--b2b-border, #dde3ea);
	box-shadow: var(--b2b-shadow-hover, 0 8px 32px rgba(15, 39, 68, 0.12));
}

#ast-desktop-header .main-header-menu > .insole-nav-products > .sub-menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#ast-desktop-header .main-header-menu > .insole-nav-products:hover > .sub-menu,
#ast-desktop-header .main-header-menu > .insole-nav-products:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#ast-desktop-header .main-header-menu .insole-nav-product-cat > .menu-link,
#ast-mobile-header .main-header-menu .insole-nav-product-cat > .menu-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--b2b-border, #dde3ea);
	font-size: 0.9rem;
	font-weight: 500;
}

#ast-desktop-header .main-header-menu .insole-nav-product-cat.menu-item-has-children > .menu-link .ast-header-navigation-arrow,
#ast-mobile-header .main-header-menu .insole-nav-product-cat.menu-item-has-children > .menu-link .ast-header-navigation-arrow {
	display: inline-flex;
	transition: transform 0.2s ease;
}

#ast-desktop-header .main-header-menu .insole-nav-product-cat.is-expanded > .menu-link .ast-header-navigation-arrow,
#ast-mobile-header .main-header-menu .insole-nav-product-cat.is-expanded > .menu-link .ast-header-navigation-arrow {
	transform: rotate(180deg);
}

#ast-desktop-header .main-header-menu .insole-nav-product-cat > .sub-menu,
#ast-mobile-header .main-header-menu .insole-nav-product-cat > .sub-menu {
	position: static;
	display: none;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: none;
	background: var(--b2b-bg-light, #f4f7fa);
	padding: 0;
}

#ast-desktop-header .main-header-menu .insole-nav-product-cat.is-expanded > .sub-menu,
#ast-mobile-header .main-header-menu .insole-nav-product-cat.is-expanded > .sub-menu {
	display: block;
}

#ast-desktop-header .main-header-menu .insole-nav-product-model > .menu-link,
#ast-mobile-header .main-header-menu .insole-nav-product-model > .menu-link {
	display: block;
	padding: 0.6rem 1rem 0.6rem 1.75rem;
	border-top: 1px solid rgba(15, 39, 68, 0.06);
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--b2b-body-muted, #5a6572);
}

#ast-desktop-header .main-header-menu .insole-nav-product-model > .menu-link:hover,
#ast-mobile-header .main-header-menu .insole-nav-product-model > .menu-link:hover {
	background: var(--b2b-white, #fff);
	color: var(--b2b-primary, #0f2744);
}

#ast-mobile-header .main-header-menu .insole-b2b-menu-cta {
	margin: 0.75rem 0 0;
	margin-left: 0;
}

#ast-mobile-header .insole-b2b-nav-quote-btn {
	width: auto;
	max-width: 100%;
}

/* ==========================================================================
   B2B Property Grid — trade specs as micro-cards (replaces HTML table)
   ========================================================================== */

.insole-b2b-trade-grid-wrap {
	width: 100%;
}

.insole-b2b-trade-grid__caption {
	margin: 0 0 1.25rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--b2b-primary);
}

.insole-b2b-trade-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.insole-b2b-trade-grid__item {
	background: var(--b2b-white);
	border: none;
	border-radius: var(--b2b-radius);
	padding: 1.5rem;
	box-shadow: var(--b2b-shadow);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.insole-b2b-trade-grid__item:hover {
	transform: translateY(-3px);
	box-shadow: var(--b2b-shadow-hover);
}

.insole-b2b-trade-grid__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--b2b-body-muted);
	line-height: 1.3;
}

.insole-b2b-trade-grid__value {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--b2b-primary);
}

.insole-b2b-trade-grid--compact {
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.insole-b2b-trade-grid--compact .insole-b2b-trade-grid__item {
	padding: 0.85rem 1rem;
}

.insole-b2b-trade-grid--compact .insole-b2b-trade-grid__item:hover {
	transform: translateY(-2px);
}

.insole-b2b-trade-grid--compact .insole-b2b-trade-grid__label {
	font-size: 0.65rem;
	margin-bottom: 0.3rem;
}

.insole-b2b-trade-grid--compact .insole-b2b-trade-grid__value {
	font-size: 0.85rem;
}

.insole-page__trust-sidebar .insole-b2b-trade-grid__item:hover {
	box-shadow: none;
}

/* ==========================================================================
   Product catalog cards — shared across home & products page
   ========================================================================== */

.insole-b2b-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2.5rem;
}

.insole-b2b-product-card {
	display: flex;
	flex-direction: column;
	background: var(--b2b-white);
	border: none;
	border-radius: var(--b2b-radius);
	overflow: hidden;
	box-shadow: var(--b2b-shadow);
	transition: opacity 0.4s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.insole-b2b-product-card.is-filtered-out {
	opacity: 0;
	transform: scale(0.97);
	pointer-events: none;
}

.insole-b2b-product-card.is-filtered-hidden {
	display: none;
}

.insole-b2b-product-card:hover {
	box-shadow: var(--b2b-shadow-hover);
	transform: translateY(-4px);
}

.insole-b2b-product-card__media {
	display: block;
	margin: 0;
	height: 300px;
	overflow: hidden;
	background: var(--b2b-bg-light);
	text-decoration: none;
}

.insole-b2b-product-card__media .insole-b2b-media-slot,
.insole-b2b-product-card__media .insole-b2b-media-slot__frame {
	height: 100%;
	margin: 0;
	border-radius: 0;
}

.insole-b2b-product-card__media .insole-b2b-media-slot__frame {
	aspect-ratio: auto;
}

.insole-b2b-product-card__media img,
.insole-b2b-product-card__media .insole-b2b-media-slot__placeholder {
	width: 100%;
	height: 300px;
	object-fit: cover;
	min-height: 300px;
}

.insole-b2b-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 2rem;
}

.insole-b2b-product-card__model {
	display: inline-block;
	margin-bottom: 0.35rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--b2b-bg-light);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--b2b-primary);
}

.insole-b2b-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.insole-b2b-product-card__title a:hover {
	opacity: 0.85;
}

.insole-b2b-product-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: auto;
}

.insole-b2b-product-card__link--quote {
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--b2b-border);
	border-radius: var(--b2b-radius);
}

.insole-b2b-product-card__link--quote::after {
	content: none;
}

.insole-b2b-product-card__title {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--b2b-primary);
}

.insole-b2b-product-card__advantages {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	flex: 1;
}

.insole-b2b-product-card__advantages li {
	position: relative;
	padding: 0.35rem 0 0.35rem 1rem;
	font-size: 0.925rem;
	line-height: 1.5;
	color: var(--b2b-body-muted);
}

.insole-b2b-product-card__advantages li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--b2b-primary);
	font-weight: 700;
}

.insole-b2b-product-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: auto;
	padding: 0;
	background: none;
	border: none;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--b2b-primary);
	text-decoration: none;
	cursor: pointer;
	transition: gap 0.25s ease, opacity 0.2s ease;
}

.insole-b2b-product-card__link:hover {
	gap: 0.55rem;
	opacity: 0.75;
}

.insole-b2b-product-card__link.insole-b2b-quote-btn {
	background: none !important;
	color: var(--b2b-primary) !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	transform: none !important;
}

.insole-b2b-product-card__link.insole-b2b-quote-btn:hover {
	background: none !important;
	opacity: 0.75;
	transform: none !important;
	box-shadow: none !important;
}

.insole-b2b-product-card__link::after {
	content: "→";
	font-size: 1rem;
	line-height: 1;
}

/* Catalog page — simple product cards */
.insole-b2b-product-card--catalog {
	box-shadow: none;
	border: 1px solid var(--b2b-border);
}

.insole-b2b-product-card--catalog:hover {
	transform: none;
	box-shadow: var(--b2b-shadow);
}

.insole-b2b-product-card--catalog .insole-b2b-product-card__body {
	padding: 1.25rem 1rem 1.5rem;
	text-align: center;
}

.insole-b2b-product-card--catalog .insole-b2b-product-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.insole-b2b-product-card__model-line {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	color: var(--b2b-body-muted);
}

.insole-b2b-product-card__detail-btn {
	display: block;
	width: 100%;
	padding: 0.65rem 1rem;
	border: 1px solid var(--b2b-text);
	border-radius: 0;
	background: transparent;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--b2b-text);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.insole-b2b-product-card__detail-btn:hover {
	background: var(--b2b-primary);
	border-color: var(--b2b-primary);
	color: var(--b2b-white);
}

/* Product filter — pill tabs + mobile select */
.insole-b2b-product-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: 3rem;
}

.insole-b2b-product-filter__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.insole-b2b-product-filter__tab {
	padding: 0.55rem 1.15rem;
	background: var(--b2b-white);
	border: none;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--b2b-body-muted);
	cursor: pointer;
	box-shadow: var(--b2b-shadow);
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.insole-b2b-product-filter__tab:hover {
	color: var(--b2b-primary);
}

.insole-b2b-product-filter__tab.is-active {
	background: var(--b2b-primary);
	color: var(--b2b-white);
	box-shadow: none;
}

.insole-b2b-product-filter__select {
	display: none;
	min-width: 200px;
	padding: 0.65rem 1rem;
	background: var(--b2b-white);
	border: none;
	border-radius: var(--b2b-radius);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--b2b-primary);
	box-shadow: var(--b2b-shadow);
	cursor: pointer;
}

.insole-b2b-product-filter__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	width: 100%;
}

.insole-b2b-product-filter__dropdowns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.insole-b2b-product-filter__select--model {
	display: block;
	min-width: 240px;
}

.insole-b2b-product-grid-wrap {
	position: relative;
	min-height: 200px;
}

/* OEM step flow */
.insole-b2b-step-flow {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	position: relative;
}

.insole-b2b-step-flow::before {
	content: "";
	position: absolute;
	top: 1.75rem;
	left: 12%;
	right: 12%;
	height: 1px;
	background: var(--b2b-border);
	z-index: 0;
}

.insole-b2b-step {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 0.5rem;
}

.insole-b2b-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 1.25rem;
	background: var(--b2b-white);
	border-radius: 50%;
	box-shadow: var(--b2b-shadow);
	font-size: 1rem;
	font-weight: 800;
	color: var(--b2b-primary);
}

.insole-b2b-step__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--b2b-primary);
	line-height: 1.3;
}

.insole-b2b-step__desc {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--b2b-body-muted);
}

/* About value icon cards */
.insole-b2b-value-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
}

.insole-b2b-value-card {
	text-align: center;
	padding: 2.5rem 2rem;
	background: var(--b2b-white);
	border-radius: var(--b2b-radius);
	box-shadow: var(--b2b-shadow);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.insole-b2b-value-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--b2b-shadow-hover);
}

.insole-b2b-value-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--b2b-bg-light);
	font-size: 1.25rem;
	line-height: 1;
}

.insole-b2b-value-card__icon--quality::before { content: "◆"; color: var(--b2b-primary); }
.insole-b2b-value-card__icon--partnership::before { content: "◈"; color: var(--b2b-primary); }
.insole-b2b-value-card__icon--innovation::before { content: "◇"; color: var(--b2b-primary); }

.insole-b2b-value-card__title {
	margin: 0 0 0.65rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--b2b-primary);
}

.insole-b2b-value-card__desc {
	margin: 0;
	font-size: 0.925rem;
	line-height: 1.55;
	color: var(--b2b-body-muted);
}

/* Minimal page hero */
.insole-b2b-page-head {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.insole-b2b-page-head h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--b2b-primary);
}

.insole-b2b-page-head p {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--b2b-body-muted);
}

.insole-b2b-page-head--compact {
	margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
	.insole-b2b-step-flow {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}

	.insole-b2b-step-flow::before {
		display: none;
	}

	.insole-b2b-value-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 640px) {
	.insole-b2b-product-filter__tabs {
		display: none;
	}

	.insole-b2b-product-filter__dropdowns,
	.insole-b2b-product-filter__select {
		display: block;
		width: 100%;
	}

	.insole-b2b-product-filter__select--model {
		min-width: 0;
	}

	.insole-b2b-step-flow {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Media slot — photography placeholders
   ========================================================================== */

.insole-b2b-media-slot {
	margin: 0;
}

.insole-b2b-media-slot__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--b2b-radius);
	background: linear-gradient(145deg, var(--b2b-bg-light), #e2e8f0);
	aspect-ratio: 4 / 3;
}

.insole-b2b-media-slot__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.insole-b2b-media-slot:hover .insole-b2b-media-slot__frame img {
	transform: scale(1.05);
}

.insole-b2b-media-slot__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 22, 38, 0.35), transparent 45%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.insole-b2b-media-slot:hover .insole-b2b-media-slot__frame::after {
	opacity: 1;
}

.insole-b2b-media-slot__placeholder {
	width: 100%;
	height: 100%;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--b2b-gradient-hero);
}

.insole-b2b-media-slot__hint {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.insole-b2b-media-slot--etpu .insole-b2b-media-slot__placeholder {
	background: linear-gradient(160deg, var(--b2b-primary-light), var(--b2b-primary));
}

.insole-b2b-media-slot--pebax .insole-b2b-media-slot__placeholder {
	background: linear-gradient(135deg, var(--b2b-primary-light), var(--b2b-primary));
}

.insole-b2b-media-slot--gel .insole-b2b-media-slot__placeholder {
	background: linear-gradient(135deg, var(--b2b-primary), rgba(30, 58, 95, 0.22));
}

/* Office photo gallery */
.insole-b2b-office-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.insole-b2b-office-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: var(--b2b-radius);
	background: var(--b2b-bg-light);
	box-shadow: var(--b2b-shadow);
}

.insole-b2b-office-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.insole-b2b-office-gallery--featured {
	display: block;
}

.insole-b2b-office-gallery--featured .insole-b2b-office-gallery__item {
	box-shadow: var(--b2b-shadow);
}

.insole-b2b-office-gallery--wide {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 900px) {
	.insole-b2b-office-gallery--wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.insole-b2b-office-gallery--wide {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   B2B footer — contact + navigation
   ========================================================================== */

.insole-b2b-footer {
	background: var(--b2b-primary);
	color: rgba(255, 255, 255, 0.88);
	padding: clamp(3rem, 5vw, 4rem) 0 0;
	margin-top: 0;
}

.insole-b2b-footer__grid {
	max-width: var(--b2b-container);
	margin: 0 auto;
	padding: 0 var(--b2b-section-x);
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 3rem;
}

.insole-b2b-footer__title {
	color: var(--b2b-white);
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 1rem;
}

.insole-b2b-footer__text {
	font-size: 0.875rem;
	line-height: 1.65;
	margin: 0 0 0.75rem;
	color: rgba(255, 255, 255, 0.78);
}

.insole-b2b-footer__text a {
	color: var(--b2b-accent-on-dark);
	text-decoration: none;
}

.insole-b2b-footer__text a:hover {
	text-decoration: underline;
}

.insole-b2b-footer__meta,
.insole-b2b-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
}

.insole-b2b-footer__meta li,
.insole-b2b-footer__links li {
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insole-b2b-footer__meta a,
.insole-b2b-footer__links a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.2s ease;
}

.insole-b2b-footer__meta a:hover,
.insole-b2b-footer__links a:hover {
	color: var(--b2b-accent-on-dark-hover);
}

.insole-b2b-footer__bar {
	max-width: var(--b2b-container);
	margin: 2rem auto 0;
	padding: 1.25rem var(--b2b-section-x);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	font-size: 0.8rem;
}

.insole-b2b-footer__bar-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.insole-b2b-footer__bar-nav a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.insole-b2b-footer__bar-nav a:hover {
	color: var(--b2b-accent-on-dark-hover);
}

/* Tone down default Astra footer when B2B footer is present */
.insole-b2b-footer + .site-footer,
.insole-b2b-footer ~ .site-below-footer-wrap {
	background: var(--b2b-primary-dark) !important;
}

@media (max-width: 640px) {
	.insole-b2b-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.insole-b2b-footer__bar {
		justify-content: center;
	}
}
