/* EuroBoutique Rx product page. Theme palette: dark #160c06, gold #be9667, text #757575. */
:root {
	--ebrx-dark: #160c06;
	--ebrx-gold: #be9667;
	--ebrx-text: #757575;
	--ebrx-ink: #2b2723;
	--ebrx-line: #e6e1da;
	--ebrx-sand: #f6f2ec;
	--ebrx-white: #ffffff;
	--ebrx-serif: "Butler", Georgia, serif;
	--ebrx-sans: "Raleway", sans-serif;
}

/* ---------- Title band (product pages only) ----------
   The theme prints the product title in a band under the menu and hides the summary title.
   We drop the band and show the title next to the price. Header sizing is site-wide in style.css. */
.single-product .top_panel .sc_layouts_title,
.single-product .top_panel .sc_layouts_row:has(.sc_layouts_title) { display: none; }
.single-product .page_content_wrap { padding-top: 35px; }

/* ---------- Summary column ---------- */
.woocommerce div.product div.summary { padding-left: 4em; }
.woocommerce div.product .summary > * { margin-bottom: 1.4em; }
.woocommerce div.product .summary .product_title { display: block; }

.ebrx-eyebrow {
	margin: 0 0 .6em;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ebrx-gold);
}
.woocommerce div.product .summary h1.product_title {
	margin: 0 0 .4em;
	font-size: 34px;
	line-height: 1.15;
	letter-spacing: .06em;
}
.woocommerce div.product .summary p.price { margin-bottom: .2em; }
.ebrx-savings {
	display: inline-block;
	margin: 0 0 1.4em;
	padding: .35em .8em;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ebrx-white);
	background: var(--ebrx-dark);
}
.woocommerce div.product .ebrx-savings .woocommerce-Price-amount,
.woocommerce div.product .ebrx-savings .woocommerce-Price-currencySymbol { color: var(--ebrx-white); font-size: inherit; font-weight: inherit; }

/* ---------- Variations: size buttons ---------- */
.woocommerce div.product form.cart { position: relative; }
.woocommerce div.product form.cart .variations td.label,
.woocommerce div.product form.cart .variations th.label { padding-top: 0; }
.woocommerce div.product form.cart .variations label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	color: var(--ebrx-ink);
}
.ebrx-size-selected { margin-left: .6em; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ebrx-text); }
.woocommerce div.product form.cart .reset_variations { display: none !important; }
.ebrx-sizes-ready .variations select,
.ebrx-sizes-ready .variations .select_container { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }

/* The theme caps the value cell at 261px, which squeezed the buttons to two per row. */
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .variations td.value { width: 100%; max-width: none; }

.ebrx-sizes {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin: .4em 0 .8em;
}
.woocommerce div.product .ebrx-size {
	min-height: 46px;
	padding: 0 .3em;
	white-space: nowrap;
	font-family: var(--ebrx-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: none;
	color: var(--ebrx-ink);
	background: var(--ebrx-white);
	border: 1px solid #c9c2b4;
	border-radius: 0;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}
.woocommerce div.product .ebrx-size:hover,
.woocommerce div.product .ebrx-size:focus-visible { border-color: var(--ebrx-dark); background: var(--ebrx-white); color: var(--ebrx-ink); outline: none; }
.woocommerce div.product .ebrx-size.is-selected { background: var(--ebrx-dark); border-color: var(--ebrx-dark); color: var(--ebrx-white); }
.woocommerce div.product .ebrx-size.is-unavailable { color: #b7b7b7; text-decoration: line-through; }
.ebrx-fit-note { display: flex; align-items: flex-start; gap: .5em; margin: 0 0 1.2em; font-size: 11px; line-height: 1.5; white-space: nowrap; color: var(--ebrx-text); }
.ebrx-fit-note::before { content: ""; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%; background: #2f6b4f; flex: none; }

.ebrx-size-chart-link {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	gap: .4em;
	min-height: 44px;
	padding: 0;
	font-family: var(--ebrx-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--ebrx-dark);
	background: transparent !important;
	border: 0;
	cursor: pointer;
}
.ebrx-size-chart-link .ebrx-icon { width: 20px; height: 20px; color: var(--ebrx-gold); }

/* ---------- Add to cart ---------- */
.woocommerce div.product form.cart div.quantity { display: none !important; }
.woocommerce div.product form.cart .single_variation_wrap { margin-top: .6em; }
.woocommerce div.product form.cart .woocommerce-variation.single_variation:empty { display: none; }
.woocommerce div.product form.cart .woocommerce-variation-price,
.woocommerce div.product form.cart .woocommerce-variation-availability { margin: 0 0 .8em; }
.woocommerce div.product form.cart .woocommerce-variation-price:empty,
.woocommerce div.product form.cart .woocommerce-variation-availability:empty,
.woocommerce div.product form.cart .woocommerce-variation-description:empty { display: none; }
/* Add to cart and Buy now side by side (variable products wrap them, simple products don't). */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) { display: flex; gap: 10px; }
.scheme_default .woocommerce div.product .summary form.cart .button,
.woocommerce div.product .summary form.cart .button {
	display: block;
	flex: 1 1 0;
	width: auto;
	height: auto;
	min-height: 56px;
	margin: 0;
	background: var(--ebrx-dark);
	color: var(--ebrx-white);
	border: 1px solid var(--ebrx-dark);
	letter-spacing: .2em;
}
.scheme_default .woocommerce div.product .summary form.cart .button:hover,
.woocommerce div.product .summary form.cart .button:hover { background: var(--ebrx-gold); border-color: var(--ebrx-gold); color: var(--ebrx-white); }
.scheme_default .woocommerce div.product .summary form.cart .button.ebrx-buy-now,
.woocommerce div.product .summary form.cart .button.ebrx-buy-now { background: var(--ebrx-white); color: var(--ebrx-dark); border-color: var(--ebrx-dark); }
.scheme_default .woocommerce div.product .summary form.cart .button.ebrx-buy-now:hover,
.woocommerce div.product .summary form.cart .button.ebrx-buy-now:hover { background: var(--ebrx-dark); color: var(--ebrx-white); }
.scheme_default .woocommerce div.product .summary form.cart .button.disabled,
.scheme_default .woocommerce div.product .summary form.cart .button.wc-variation-selection-needed,
.woocommerce div.product .summary form.cart .button:disabled { background: var(--ebrx-dark); color: var(--ebrx-white); opacity: .45; }
.scheme_default .woocommerce div.product .summary form.cart .button.ebrx-buy-now.disabled,
.scheme_default .woocommerce div.product .summary form.cart .button.ebrx-buy-now.wc-variation-selection-needed { background: var(--ebrx-white); color: var(--ebrx-dark); }
.woocommerce div.product .woocommerce-variation-availability p.stock { margin: 0 0 .8em; }

/* ---------- Trust badges ---------- */
.ebrx-badges {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--ebrx-line);
	border: 1px solid var(--ebrx-line);
}
.ebrx-badges--4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--ebrx-line);
	border: 1px solid var(--ebrx-line);
}
.woocommerce div.product .ebrx-badge,
.woocommerce div.product .ebrx-badge:hover {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .45em;
	padding: 1.3em .8em 1.2em;
	font-family: var(--ebrx-sans);
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ebrx-ink);
	background: var(--ebrx-white);
	border: 0;
	border-radius: 0;
	cursor: default;
}
.woocommerce div.product button.ebrx-badge,
.woocommerce div.product a.ebrx-badge { cursor: pointer; }
.woocommerce div.product button.ebrx-badge:hover,
.woocommerce div.product a.ebrx-badge:hover { background: var(--ebrx-sand); color: var(--ebrx-ink); }
.ebrx-badge .ebrx-icon { width: 30px; height: 30px; color: var(--ebrx-gold); }
.ebrx-badge-title { font-size: 11px; font-weight: 700; line-height: 1.3; }
.ebrx-badge-text { font-size: 10px; line-height: 1.4; color: var(--ebrx-text); }

/* ---------- Fit help ---------- */
.ebrx-fit-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
	padding: 1.1em 1.3em;
	background: var(--ebrx-sand);
}
.ebrx-fit-help > .ebrx-icon { width: 34px; height: 34px; flex: none; color: var(--ebrx-gold); }
.ebrx-fit-help-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: .15em; line-height: 1.4; }
.ebrx-fit-help-text strong { font-size: 13px; color: var(--ebrx-ink); }
.ebrx-fit-help-text span { font-size: 11px; color: var(--ebrx-text); }
.ebrx-fit-help-actions { display: flex; flex-wrap: wrap; gap: .6em; }

.woocommerce div.product .ebrx-button-outline,
.ebrx-modal .ebrx-button-outline {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1.1em;
	font-family: var(--ebrx-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ebrx-dark);
	background: transparent;
	border: 1px solid var(--ebrx-dark);
	border-radius: 0;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.woocommerce div.product .ebrx-button-outline:hover,
.ebrx-modal .ebrx-button-outline:hover { background: var(--ebrx-dark); color: var(--ebrx-white); }

/* ---------- Accordion ---------- */
.ebrx-accordion { border-top: 1px solid var(--ebrx-line); }
.ebrx-accordion-item { border-bottom: 1px solid var(--ebrx-line); }
.ebrx-accordion-item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 56px;
	padding: .4em 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--ebrx-ink);
	list-style: none;
	cursor: pointer;
}
.ebrx-accordion-item summary::-webkit-details-marker { display: none; }
.ebrx-accordion-marker { position: relative; width: 14px; height: 14px; flex: none; }
.ebrx-accordion-marker::before,
.ebrx-accordion-marker::after { content: ""; position: absolute; background: var(--ebrx-ink); }
.ebrx-accordion-marker::before { left: 0; top: 6px; width: 14px; height: 2px; }
.ebrx-accordion-marker::after { left: 6px; top: 0; width: 2px; height: 14px; transition: transform .2s; }
.ebrx-accordion-item[open] .ebrx-accordion-marker::after { transform: scaleY(0); }
.ebrx-accordion-body { padding: 0 0 1.4em; font-size: 13px; line-height: 1.75; }
.ebrx-accordion-body p:last-child,
.ebrx-accordion-body ul:last-child { margin-bottom: 0; }
.ebrx-accordion-body ul { padding-left: 1.2em; }
.ebrx-accordion-body li { margin-bottom: .5em; }

/* ---------- Related products: below the summary, not beside it ---------- */
.woocommerce div.product section.related { clear: both; padding-top: 4em; }
.woocommerce div.product section.related > h2 {
	margin: 0 0 1.2em;
	font-size: 25px;
	letter-spacing: .1em;
	text-align: left;
}

/* ---------- Size chart modal ---------- */
.ebrx-modal { position: fixed; inset: 0; z-index: 100000; }
.ebrx-modal[hidden] { display: none; }
.ebrx-modal-backdrop { position: absolute; inset: 0; background: rgba(22, 12, 6, .65); }
.ebrx-modal-panel {
	position: relative;
	width: min(1100px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	margin: 16px auto;
	overflow: auto;
	background: var(--ebrx-white);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	outline: none;
}
.ebrx-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ebrx-white);
	background: transparent !important;
	border: 0;
	cursor: pointer;
	z-index: 1;
}
.ebrx-modal-close .ebrx-icon { width: 24px; height: 24px; }
.ebrx-modal-header { padding: 2.2em 3.5em 1.6em 2.2em; color: var(--ebrx-white); background: var(--ebrx-dark); }
.ebrx-modal-header h2 { margin: 0 0 .3em; font-family: var(--ebrx-serif); font-size: 27px; letter-spacing: .06em; color: var(--ebrx-white); }
.ebrx-modal-header p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }

.ebrx-modal-columns { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.ebrx-measure { padding: 1.8em 1.6em; background: var(--ebrx-white); border-right: 1px solid var(--ebrx-line); }
.ebrx-measure h3, .ebrx-charts h3 {
	margin: 0 0 .9em;
	font-family: var(--ebrx-serif);
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ebrx-ink);
}
.ebrx-measure h3 { display: inline-block; padding: .55em .9em; color: var(--ebrx-white); background: var(--ebrx-gold); border-radius: 999px; }
.ebrx-measure-step { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 1.2em 0 1.8em; }
.ebrx-measure-step .ebrx-icon { width: 56px; height: 56px; padding: 12px; color: var(--ebrx-gold); border: 2px solid var(--ebrx-gold); border-radius: 50%; }
.ebrx-measure-step h4 { margin: .8em 0 .4em; font-family: var(--ebrx-serif); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ebrx-ink); }
.ebrx-measure-step p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ebrx-text); }

.ebrx-charts { padding: 1.8em 2em 2em; background: var(--ebrx-sand); }
.ebrx-chart-table { width: 100%; margin: 0 0 1.8em; border-collapse: collapse; font-size: 13px; background: var(--ebrx-white); }
.ebrx-chart-table th,
.ebrx-chart-table td { padding: .7em .8em; text-align: center; border: 1px solid var(--ebrx-line); }
.ebrx-chart-table th { font-family: var(--ebrx-serif); font-size: 13px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ebrx-white); background: var(--ebrx-dark); }
.ebrx-chart-table th.ebrx-chart-accent { background: var(--ebrx-gold); }
.ebrx-chart-table tr.is-current td { font-weight: 700; background: #f1e8dc; }
.ebrx-length-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2em; align-items: start; }
.ebrx-length-table { margin: 0; }
.ebrx-chart-note {
	margin: 0;
	padding: 1em 1.2em;
	font-size: 11px;
	line-height: 1.6;
	color: var(--ebrx-white);
	background: var(--ebrx-dark);
}
body.ebrx-modal-open { overflow: hidden; }

/* ---------- Sticky mobile bar ---------- */
.ebrx-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: var(--ebrx-white);
	border-top: 1px solid var(--ebrx-line);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
}
.ebrx-sticky-bar[hidden] { display: none; }
.ebrx-sticky-price { flex: none; font-size: 14px; font-weight: 600; color: var(--ebrx-ink); }
.ebrx-sticky-price del { font-size: .8em; color: var(--ebrx-text); margin-right: .4em; }
.ebrx-sticky-price ins { text-decoration: none; }
.ebrx-sticky-button {
	flex: 1;
	min-height: 50px;
	font-family: var(--ebrx-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ebrx-white);
	background: var(--ebrx-dark);
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
@media (min-width: 768px) { .ebrx-sticky-bar { display: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ebrx-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ebrx-modal-columns { grid-template-columns: 1fr; }
	.ebrx-measure { border-right: 0; border-bottom: 1px solid var(--ebrx-line); }
	.ebrx-length-row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.woocommerce div.product div.summary { padding-left: 0; }
	.woocommerce div.product .summary h1.product_title { font-size: 25px; }
	.single-product .page_content_wrap { padding-top: 21px; }
	/* Phones: larger type than desktop, buttons stacked full width. */
	.ebrx-eyebrow { font-size: 12px; }
	.woocommerce div.product form.cart .variations label { font-size: 13px; }
	.ebrx-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.woocommerce div.product .ebrx-size { font-size: 14px; min-height: 48px; }
	.ebrx-fit-note { font-size: 13px; white-space: normal; }
	.ebrx-size-chart-link { font-size: 13px; }
	.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
	.woocommerce div.product form.cart:not(.variations_form) { flex-direction: column; }
	.scheme_default .woocommerce div.product .summary form.cart .button,
	.woocommerce div.product .summary form.cart .button { font-size: 14px; min-height: 54px; }
	.ebrx-badge-title { font-size: 14px; }
	.ebrx-badge-text { font-size: 12px; }
	.ebrx-fit-help-text strong { font-size: 15px; }
	.ebrx-fit-help-text span { font-size: 13px; }
	.woocommerce div.product .ebrx-button-outline { font-size: 12px; }
	.ebrx-accordion-item summary { font-size: 15px; }
	.ebrx-accordion-body { font-size: 14px; }
	.ebrx-fit-help-actions { width: 100%; }
	.ebrx-fit-help-actions .ebrx-button-outline { flex: 1; justify-content: center; }
	.ebrx-modal-panel { width: 100%; max-height: 100%; margin: 0; }
	.ebrx-modal-header { padding: 1.6em 3.2em 1.2em 1.2em; }
	.ebrx-modal-header h2 { font-size: 20px; }
	.ebrx-measure, .ebrx-charts { padding: 1.4em 1.2em; }
	.ebrx-chart-table { font-size: 11px; }
	.ebrx-chart-table th, .ebrx-chart-table td { padding: .55em .4em; }
	body.ebrx-has-sticky-bar { padding-bottom: 80px; }
}
