/* ==========================================================================
   INERGIX – WooCommerce basics (shop, product, cart, checkout)
   ========================================================================== */

/* Store content shares the 1540px site container used by the header,
   homepage and inner pages, so every page starts on the same 15px gutter. */
.woocommerce-shop #main,
.single-product #main,
.woocommerce-page #main {
	width: 100%;
	max-width: var(--ix-container);
	margin-inline: auto;
	padding-inline: 15px;
}

/* The block cart/checkout keep WooCommerce's native 1296px column; the login
   form is capped at 760px so it stays readable inside the wide shell. */
.woocommerce-account .woocommerce {
	max-width: 760px;
	margin-inline: auto;
}

/* Page titles align with the column their content uses. */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header {
	width: 100%;
	max-width: 1296px;
	margin-inline: auto;
}

.woocommerce-account .entry-header {
	width: 100%;
	max-width: 760px;
	margin-inline: auto;
}

/* Wide-aligned blocks break out by 20px; keep them inside the gutter on
   tablet/mobile, where that break-out would clip the page. */
@media (max-width: 1024px) {
	.woocommerce-page .wp-block-woocommerce-cart,
	.woocommerce-page .wp-block-woocommerce-checkout,
	.woocommerce-page .wc-block-cart,
	.woocommerce-page .wc-block-checkout {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 5px 22px;
	border: 0;
	border-radius: 35px;
	background: var(--ix-primary);
	color: var(--ix-on-primary);
	font-size: 13px;
	font-weight: 600;
	line-height: 15.6px;
	text-transform: capitalize;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--ix-dark);
	color: #fff;
}

.woocommerce .button.secondary,
.woocommerce a.button.wc-backward {
	background: #f3f3f3;
	color: #3e3e3e;
}

/* Tables, forms, notices ------------------------------------------------ */
.woocommerce table.shop_table {
	border: 1px solid var(--ix-border);
	border-radius: var(--ix-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce table.shop_table th {
	background: var(--ix-bg);
	font-weight: 600;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	height: 46px;
	padding: 0 15px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 14px;
	background: #fff;
	font-size: 14px;
}

.woocommerce form .form-row textarea {
	height: auto;
	min-height: 120px;
	padding: 12px 15px;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	border: 1px solid var(--ix-border);
	border-top-width: 3px;
	border-radius: 14px;
	background: var(--ix-bg);
	color: var(--ix-text);
}

.woocommerce .woocommerce-message {
	border-top-color: var(--ix-primary-ink);
}

.woocommerce .woocommerce-info {
	border-top-color: #00aeef;
}

.woocommerce .woocommerce-error {
	border-top-color: #d63638;
}

/* Category archives: Astra only prints a term description on six categories,
   which made those headers taller than the rest. Keeping the archive header
   identical everywhere means hiding that block; the copy stays in the DOM for
   search engines. */
.woocommerce-products-header .term-description {
	display: none;
}

/* Empty product category ------------------------------------------------ */
.ix-empty-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 660px;
	margin: 12px auto 48px;
	padding: 56px 32px;
	border: 1px solid var(--ix-border);
	border-radius: var(--ix-radius);
	background: #fff;
	text-align: center;
}

.ix-empty-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--ix-bg);
	color: var(--ix-primary-ink);
}

.ix-empty-cat-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ix-dark);
}

.ix-empty-cat-text {
	max-width: 460px;
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ix-muted);
}

.ix-empty-cat-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 20px;
	margin-top: 26px;
}

.ix-empty-cat-actions .button {
	margin: 0;
}

.ix-empty-cat-link {
	font-size: 15px;
	font-weight: 600;
	color: var(--ix-primary-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ix-empty-cat-link:hover {
	color: var(--ix-dark);
}

/* Quote-only products ----------------------------------------------------- */
.ix-price-quote {
	display: inline-block;
	font-size: 0.9em;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ix-muted);
	text-decoration: underline;
	text-decoration-color: rgba(0, 0, 0, 0.18);
	text-underline-offset: 4px;
}

/* Cart / checkout blocks -------------------------------------------------
 * The block pages ship WooCommerce's default blue buttons and square fields;
 * brand them with the site's primary colour and pill radius.
 */
body.woocommerce-cart .wc-block-components-button:not(.is-link),
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	min-height: 44px;
	padding: 10px 24px;
	border: 0;
	border-radius: 35px;
	background: var(--ix-primary);
	color: var(--ix-on-primary);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-cart .wc-block-components-button:not(.is-link):hover,
body.woocommerce-checkout .wc-block-components-button:not(.is-link):hover {
	background: var(--ix-dark);
	color: #fff;
}

body.woocommerce-cart .wc-block-components-button.is-link,
body.woocommerce-checkout .wc-block-components-button.is-link {
	color: var(--ix-primary-ink);
}

body.woocommerce-cart .wc-block-components-quantity-selector__input,
body.woocommerce-checkout .wc-block-components-quantity-selector__input,
body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-select,
body.woocommerce-checkout .wc-block-components-select {
	border-radius: 12px;
}

body.woocommerce-cart .wc-block-components-text-input.is-active label,
body.woocommerce-checkout .wc-block-components-text-input.is-active label {
	color: var(--ix-primary-ink);
}

body.woocommerce-cart .wc-block-components-checkbox .wc-block-components-checkbox__mark,
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	border-radius: 4px;
}

@media (max-width: 640px) {
	.ix-empty-cat {
		padding: 40px 22px;
		margin-bottom: 36px;
	}

	.ix-empty-cat-title {
		font-size: 20px;
	}
}

/* ==========================================================================
   Store page titles – one type scale across shop, product and account
   ========================================================================== */
.woocommerce-page .entry-title {
	font-size: 36px !important;
	font-weight: 700;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
	color: var(--ix-dark);
}

@media (max-width: 768px) {
	.woocommerce-page .entry-title {
		font-size: 30px !important;
	}
}

@media (max-width: 480px) {
	.woocommerce-page .entry-title {
		font-size: 28px !important;
	}
}

/* ==========================================================================
   All-categories index (page-toutes-les-categories.php)
   ========================================================================== */

body.ix-categories-page {
	background: #fff;
}

body.ix-categories-page #content {
	padding: 0;
}

body.ix-categories-page .ix-cat-index-main {
	padding: 0 0 90px;
}

.ix-cat-index-hero {
	padding: 64px 0 60px;
	background: linear-gradient(118deg, #edfafe 0%, #e8f8fe 52%, #f5fcff 100%);
}

.ix-cat-index-eyebrow {
	display: inline-block;
	margin: 0;
	padding: 7px 15px;
	border-radius: 999px;
	background: #e9f9fe;
	color: var(--ix-primary-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ix-cat-index-title {
	margin: 18px 0 0;
	font-size: clamp(30px, 3.8vw, 54px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ix-dark);
}

.ix-cat-index-lead {
	max-width: 780px;
	margin: 16px 0 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--ix-muted);
}

.ix-cat-index-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.ix-cat-index-ghost {
	background: #fff;
	color: var(--ix-primary-ink);
	box-shadow: inset 0 0 0 1px rgba(0, 174, 239, 0.25);
}

.ix-cat-index-ghost:hover {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
	box-shadow: none;
}

.ix-cat-index {
	padding-top: 44px;
}

.ix-cat-index-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 44px;
}

.ix-cat-index-jump a {
	padding: 8px 15px;
	border: 1px solid var(--ix-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ix-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ix-cat-index-jump a:hover {
	border-color: var(--ix-primary-ink);
	color: var(--ix-primary-ink);
}

.ix-cat-group {
	scroll-margin-top: 24px;
}

.ix-cat-group + .ix-cat-group {
	margin-top: 52px;
}

.ix-cat-group-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ix-border);
}

.ix-cat-group-head h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ix-dark);
}

.ix-cat-group-head h2 a:hover {
	color: var(--ix-primary-ink);
}

.ix-cat-group-count {
	font-size: 14px;
	color: var(--ix-muted);
	white-space: nowrap;
}

.ix-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ix-cat-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.ix-cat-card {
	display: flex;
	flex-direction: column;
	padding: 22px;
	border: 1px solid var(--ix-border);
	border-radius: var(--ix-radius);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ix-cat-card:hover {
	border-color: rgba(0, 0, 0, 0.2);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.ix-cat-card.is-empty {
	background: #fafafa;
}

.ix-cat-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ix-cat-card-head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ix-text);
}

.ix-cat-card-head h3 a:hover {
	color: var(--ix-primary-ink);
}

.ix-cat-card-count {
	flex: none;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ix-bg);
	color: var(--ix-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.ix-cat-card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.ix-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--ix-bg);
	color: var(--ix-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ix-cat-chip:hover {
	background: var(--ix-primary);
	color: var(--ix-on-primary);
}

.ix-cat-chip.is-sub {
	font-size: 12px;
}

.ix-cat-chip-count {
	color: var(--ix-light);
	font-size: 11px;
	font-weight: 600;
}

.ix-cat-chip:hover .ix-cat-chip-count {
	color: rgba(255, 255, 255, 0.75);
}

.ix-cat-index-empty {
	padding: 40px 0;
	color: var(--ix-muted);
}

.ix-cat-index-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 64px;
	padding: 40px;
	border-radius: var(--ix-radius);
	background: var(--ix-dark);
	color: #fff;
}

.ix-cat-index-cta h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.ix-cat-index-cta p {
	max-width: 620px;
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}

.ix-cat-index-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.ix-cat-index-cta-link {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 1024px) {
	.ix-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ix-cat-index-hero {
		padding: 44px 0 40px;
	}

	.ix-cat-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ix-cat-index-cta {
		padding: 28px 22px;
	}
}
