/*
 * MADONA skin for legacy WooCommerce product pages (body.madona-chrome only).
 * Loaded by madona-home.php after the Yobazar / WooCommerce styles.
 * Visual only: no template, form or checkout logic is touched.
 * Palette and fonts = the homepage (src/styles/tokens.css).
 */

/* ---------- Swap the theme header/footer for the React ones ---------- */
body.madona-chrome #page > header.ts-header,
body.madona-chrome #page > .ts-header,
body.madona-chrome #colophon,
body.madona-chrome #ts-mobile-button-bottom,
body.madona-chrome .trx_addons_scroll_to_top {
	display: none !important;
}

/* ---------- Header & footer identical to the homepage ----------
 * The theme sets `html, body { font-size: 15px }`; the homepage header/footer
 * are sized in rem from 16px. Restore the 16px root (the theme sizes its own
 * text in px, and body keeps its 15px) so they render pixel for pixel. */
html:has(body.madona-chrome) {
	font-size: 16px;
}

/* Theme element rules (fonts on a / button / h*, Jost, link colours…) must not
 * reach the React header/footer. ID-level, but below the components' own rules. */
:where(body.madona-chrome) :is(#madona-chrome-header, #madona-chrome-footer) :where(a, button, input, label, p, span, li, ul, nav, h1, h2, h3, h4, h5, h6, small, strong, em) {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	line-height: inherit;
	color: inherit;
	background: none;
	text-decoration: none;
	box-shadow: none;
}

/* The theme's clearfix (`.container::after { content: '' }`) would become an
 * extra flex item inside the React header/footer rows and push the footer's
 * link columns to the middle. Remove it inside our header/footer only. */
:where(body.madona-chrome) :is(#madona-chrome-header, #madona-chrome-footer) .container::before,
:where(body.madona-chrome) :is(#madona-chrome-header, #madona-chrome-footer) .container::after {
	content: none !important;
	display: none !important;
}

/* Space for the fixed header: exactly its height (96px / 72px on mobile),
 * plus the WordPress admin bar for logged-in admins. */
/* Room for the fixed React header. It is reserved on #page (present in the
   HTML from the first paint), not on #madona-chrome-header, which JavaScript
   adds later — reserving it there made the whole page jump down once the
   header appeared (PageSpeed layout shift on /shop). */
body.madona-chrome #madona-chrome-header {
	height: 0;
}
body.madona-chrome #page {
	padding-top: 96px;
}
body.madona-chrome.admin-bar #page {
	padding-top: 128px;
}
@media (max-width: 959px) {
	body.madona-chrome #page {
		padding-top: 72px;
	}
	body.madona-chrome.admin-bar #page {
		padding-top: 104px;
	}
}

/* No divider under the header on these pages (it sits on the same parchment). */
body.madona-chrome #madona-chrome-header .site-header.is-solid {
	box-shadow: none;
	background: rgb(248 237 232 / 0.97); /* same blush as the page */
}

/* Even spacing between the header and the breadcrumbs. */
body.madona-chrome .breadcrumb-title-wrapper {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	border: 0 !important;
}

/* ---------- Page ground & type ---------- */
body.madona-chrome,
body.madona-chrome #page,
body.madona-chrome #main,
body.madona-chrome .breadcrumb-title-wrapper,
body.madona-chrome .page-container {
	background: #f8ede8 !important;
}

body.madona-chrome #main,
body.madona-chrome #main p,
body.madona-chrome #main li,
body.madona-chrome #main td,
body.madona-chrome #main th,
body.madona-chrome #main label,
body.madona-chrome #main .stock {
	font-family: "Instrument Sans", system-ui, sans-serif;
	color: #29231f;
}

body.madona-chrome #main a {
	color: #29231f;
	font-family: "Instrument Sans", system-ui, sans-serif;
	transition: color .2s;
}
body.madona-chrome #main a:hover {
	color: #a8784f;
}

/* Headings in the brand serif */
body.madona-chrome .product_title,
body.madona-chrome #main h1,
body.madona-chrome #main h2,
body.madona-chrome #main h3,
body.madona-chrome .related .product-name,
body.madona-chrome .related .product-name a,
body.madona-chrome .woocommerce-tabs ul.tabs li a {
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 400 !important;
	color: #29231f !important;
	letter-spacing: 0;
}
body.madona-chrome .product_title {
	font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem) !important;
	line-height: 1.1;
	margin-bottom: .5rem;
}
body.madona-chrome .related.products > h2,
body.madona-chrome .up-sells > h2 {
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem) !important;
}

/* Breadcrumbs */
body.madona-chrome .breadcrumbs,
body.madona-chrome .breadcrumbs a {
	color: #6f6258 !important;
	font-family: "Instrument Sans", system-ui, sans-serif;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ---------- Prices ---------- */
body.madona-chrome .price,
body.madona-chrome .price .amount,
body.madona-chrome .price ins,
body.madona-chrome .price ins .amount {
	color: #29231f !important;
	font-family: "Instrument Sans", system-ui, sans-serif;
	text-decoration: none;
}
body.madona-chrome .summary .price ins,
body.madona-chrome .summary .price ins .amount {
	color: #a96248 !important; /* terracotta: sale price */
}
body.madona-chrome .price del,
body.madona-chrome .price del .amount {
	color: #8a7d72 !important;
}

/* Sale / product labels */
body.madona-chrome .product-label > span,
body.madona-chrome .product-label .onsale {
	background: #a96248 !important;
	color: #f8ede8 !important;
	border-radius: 0 !important;
}

/* ---------- Buttons ---------- */
body.madona-chrome #main .single_add_to_cart_button,
body.madona-chrome #main .button,
body.madona-chrome #main button[type="submit"],
body.madona-chrome #main input[type="submit"] {
	background: #191613 !important;
	border-color: #191613 !important;
	color: #f8ede8 !important;
	border-radius: 0 !important;
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: .22em !important;
	text-transform: uppercase !important;
	transition: background .25s, border-color .25s;
}
body.madona-chrome #main .single_add_to_cart_button:hover,
body.madona-chrome #main .button:hover,
body.madona-chrome #main button[type="submit"]:hover,
body.madona-chrome #main input[type="submit"]:hover {
	background: #51352a !important;
	border-color: #51352a !important;
	color: #f8ede8 !important;
}

/* Quantity, selects and inputs */
body.madona-chrome #main .quantity input.qty,
body.madona-chrome #main select,
body.madona-chrome #main input[type="text"],
body.madona-chrome #main input[type="email"],
body.madona-chrome #main textarea {
	background: transparent !important;
	border: 1px solid rgba(41, 35, 31, .3) !important;
	border-radius: 0 !important;
	color: #29231f !important;
}
body.madona-chrome #main .quantity .minus,
body.madona-chrome #main .quantity .plus {
	color: #29231f !important;
}

/* ---------- Tabs (Description / Reviews) ---------- */
body.madona-chrome .woocommerce-tabs ul.tabs {
	border-color: rgba(41, 35, 31, .15) !important;
}
body.madona-chrome .woocommerce-tabs ul.tabs li a {
	font-size: 1.5rem !important;
	opacity: .55;
}
body.madona-chrome .woocommerce-tabs ul.tabs li.active a {
	opacity: 1;
	border-bottom: 1px solid #a8784f !important;
}

/* Rules / borders softened to the homepage tone */
body.madona-chrome #main hr,
body.madona-chrome #main .product_meta,
body.madona-chrome #main table,
body.madona-chrome #main th,
body.madona-chrome #main td {
	border-color: rgba(41, 35, 31, .15) !important;
}

/* Star ratings in caramel */
body.madona-chrome .star-rating span::before,
body.madona-chrome .star-rating::before {
	color: #a8784f !important;
}

/* ==========================================================================
   Shop page + product category / tag pages (product grid)
   ========================================================================== */

/* Page / archive titles */
body.madona-chrome #main .page-title,
body.madona-chrome #main .woocommerce-products-header__title,
body.madona-chrome #main .breadcrumb-title h1 {
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 400 !important;
	color: #29231f !important;
}

/* Product cards */
body.madona-chrome #main .products .product .product-name,
body.madona-chrome #main .products .product .product-name a,
body.madona-chrome #main .products .product h3.heading-title {
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 400 !important;
	font-size: 1.25rem !important;
	line-height: 1.25 !important;
	color: #29231f !important;
}
body.madona-chrome #main .products .product .price,
body.madona-chrome #main .products .product .price .amount {
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	font-size: 14px !important;
	color: #29231f !important;
}
body.madona-chrome #main .products .product .price ins,
body.madona-chrome #main .products .product .price ins .amount {
	color: #a96248 !important;
}
body.madona-chrome #main .products .product .price del,
body.madona-chrome #main .products .product .price del .amount {
	color: #8a7d72 !important;
}
body.madona-chrome #main .products .product .thumbnail-wrapper,
body.madona-chrome #main .products .product img {
	border-radius: 0 !important;
}

/* Sale badges on cards */
body.madona-chrome #main .products .product-label > span {
	background: #a96248 !important;
	color: #f8ede8 !important;
	border-radius: 0 !important;
}

/* Result count, sorting, filter toggle, per-page */
body.madona-chrome #main .ts-shop-result-count,
body.madona-chrome #main .woocommerce-result-count,
body.madona-chrome #main .woocommerce-ordering,
body.madona-chrome #main .woocommerce-ordering *,
body.madona-chrome #main .product-per-page-form,
body.madona-chrome #main .product-per-page-form *,
body.madona-chrome #main .ts-filter-widget-area-button a,
body.madona-chrome #main .filter-widget-area-button a {
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	color: #29231f !important;
	background: transparent !important;
	border-color: rgba(41, 35, 31, .3) !important;
	border-radius: 0 !important;
}

/* Sidebar / filter widgets */
body.madona-chrome #main .widget-title,
body.madona-chrome #main .widgettitle {
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	font-size: 11px !important;
	letter-spacing: .22em !important;
	text-transform: uppercase !important;
	color: #6f6258 !important;
}

/* Pagination */
body.madona-chrome #main .woocommerce-pagination ul,
body.madona-chrome #main .woocommerce-pagination ul li {
	border-color: rgba(41, 35, 31, .15) !important;
}
body.madona-chrome #main .woocommerce-pagination .page-numbers {
	background: transparent !important;
	color: #29231f !important;
	border-radius: 0 !important;
	font-family: "Instrument Sans", system-ui, sans-serif !important;
}
body.madona-chrome #main .woocommerce-pagination .page-numbers.current,
body.madona-chrome #main .woocommerce-pagination .page-numbers:hover {
	background: #191613 !important;
	color: #f8ede8 !important;
}

/* Product cards: no white box — name and price sit on the parchment, with air */
body.madona-chrome #main .products .product .product-wrapper {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}
body.madona-chrome #main .products .product .meta-wrapper {
	background: transparent !important;
	padding: 18px 2px 8px !important;
	text-align: left;
}
body.madona-chrome #main .products .product .meta-wrapper .product-name {
	margin: 0 0 6px !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
body.madona-chrome #main .products .product .meta-wrapper .price {
	display: flex !important;
	gap: 10px;
	align-items: baseline;
	letter-spacing: .02em;
}
body.madona-chrome #main .products .product {
	margin-bottom: 40px !important;
}

/* Quick-view / wishlist round buttons on the image: parchment, not white */
body.madona-chrome #main .products .product .product-group-button .button-in:not(.loop-add-to-cart) {
	background: #f8ede8 !important;
	border-radius: 0 !important;
}
body.madona-chrome #main .products .product .product-group-button .button-in a {
	color: #29231f !important;
}
/* "Add to cart" bar on the image */
body.madona-chrome #main .products .product .loop-add-to-cart,
body.madona-chrome #main .products .product .loop-add-to-cart a {
	background: #191613 !important;
	color: #f8ede8 !important;
	border-radius: 0 !important;
}

/* Cart icon (icon font, drawn in ::before) must be light on the dark button */
body.madona-chrome #main .products .product .loop-add-to-cart a,
body.madona-chrome #main .products .product .loop-add-to-cart a::before,
body.madona-chrome #main .products .product .loop-add-to-cart a::after,
body.madona-chrome #main .products .product .add_to_cart_button::before,
body.madona-chrome #main .products .product .product_type_variable::before {
	color: #f8ede8 !important;
}
body.madona-chrome #main .products .product .loop-add-to-cart a:hover,
body.madona-chrome #main .products .product .loop-add-to-cart a:hover::before {
	background: #51352a !important;
	color: #f8ede8 !important;
}

/* Wishlist box next to it: parchment outline instead of light grey */
body.madona-chrome #main .products .product .meta-wrapper-2 .button-in.wishlist,
body.madona-chrome #main .products .product .meta-wrapper-2 .button-in.wishlist a {
	background: transparent !important;
	border-radius: 0 !important;
}
body.madona-chrome #main .products .product .meta-wrapper-2 .button-in.wishlist {
	border: 1px solid rgba(41, 35, 31, .25) !important;
}
body.madona-chrome #main .products .product .button-in.wishlist a::before,
body.madona-chrome #main .products .product .button-in.quickshop a::before {
	color: #29231f !important;
}

/* ==========================================================================
   SHOP / CATEGORY — editorial look (body.madona-shop-archive)
   Homepage rhythm: forest band → parchment grid → forest promise band → footer
   ========================================================================== */

/* Header band */
body.madona-chrome .madona-shop-hero {
	background: #252a24;
	color: #f8ede8;
	padding: clamp(56px, 4vw + 32px, 104px) 0 clamp(40px, 3vw + 24px, 72px);
	margin: 0 0 clamp(32px, 2vw + 20px, 56px);
	position: relative;
	overflow: hidden;
}
body.madona-chrome .madona-shop-hero::after {
	/* faint wordmark in the corner, like the footer */
	content: "MADONA";
	position: absolute;
	right: -0.04em;
	bottom: -0.22em;
	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
	font-weight: 300;
	font-size: clamp(80px, 14vw, 240px);
	letter-spacing: .17em;
	line-height: 1;
	color: rgba(241, 232, 218, .045);
	pointer-events: none;
	white-space: nowrap;
}
body.madona-chrome .madona-shop-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 64px);
}
body.madona-chrome .madona-shop-hero__eyebrow,
body.madona-chrome #main .madona-shop-hero .madona-shop-hero__eyebrow {
	margin: 0 0 18px !important;
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	font-size: 11px !important;
	letter-spacing: .28em !important;
	text-transform: uppercase;
	color: #b08a52 !important;
}
body.madona-chrome .madona-shop-hero__title,
body.madona-chrome #main .madona-shop-hero .madona-shop-hero__title {
	margin: 0 0 18px !important;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-weight: 300 !important;
	font-size: clamp(44px, 3.6vw + 24px, 88px) !important;
	line-height: 1 !important;
	letter-spacing: -0.01em !important;
	color: #f8ede8 !important;
}
body.madona-chrome .madona-shop-hero__line,
body.madona-chrome #main .madona-shop-hero .madona-shop-hero__line {
	margin: 0 0 6px !important;
	max-width: 34em;
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-style: italic;
	font-size: clamp(18px, .6vw + 14px, 22px) !important;
	line-height: 1.4 !important;
	color: rgba(241, 232, 218, .82) !important;
}
body.madona-chrome .madona-shop-hero__count,
body.madona-chrome #main .madona-shop-hero .madona-shop-hero__count {
	margin: 0 !important;
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	font-size: 11px !important;
	letter-spacing: .22em !important;
	text-transform: uppercase;
	color: rgba(241, 232, 218, .55) !important;
}
body.madona-chrome .madona-shop-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: clamp(28px, 2vw + 16px, 44px);
}
body.madona-chrome .madona-shop-hero__chips .madona-chip,
body.madona-chrome #main .madona-shop-hero .madona-chip {
	display: inline-block;
	padding: 11px 18px !important;
	border: 1px solid rgba(241, 232, 218, .3) !important;
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	font-size: 11px !important;
	letter-spacing: .2em !important;
	text-transform: uppercase;
	line-height: 1 !important;
	color: #f8ede8 !important;
	background: transparent !important;
	text-decoration: none !important;
	transition: background .3s, color .3s, border-color .3s;
}
body.madona-chrome .madona-shop-hero__chips .madona-chip:hover,
body.madona-chrome #main .madona-shop-hero .madona-chip:hover {
	border-color: #f8ede8 !important;
}
body.madona-chrome .madona-shop-hero__chips .madona-chip.is-active,
body.madona-chrome #main .madona-shop-hero .madona-chip.is-active {
	background: #f8ede8 !important;
	border-color: #f8ede8 !important;
	color: #252a24 !important;
}

/* Toolbar: filter · result count · sort, between hairlines */
body.madona-shop-archive #main .before-loop-wrapper {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	padding: 16px 0 !important;
	margin: 0 0 clamp(28px, 2vw + 16px, 44px) !important;
	border-top: 1px solid rgba(41, 35, 31, .15);
	border-bottom: 1px solid rgba(41, 35, 31, .15);
}
body.madona-shop-archive #main .before-loop-wrapper,
body.madona-shop-archive #main .before-loop-wrapper a,
body.madona-shop-archive #main .before-loop-wrapper label,
body.madona-shop-archive #main .before-loop-wrapper span,
body.madona-shop-archive #main .before-loop-wrapper li {
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	font-size: 11px !important;
	letter-spacing: .2em !important;
	text-transform: uppercase !important;
	color: #29231f !important;
}
body.madona-shop-archive #main .before-loop-wrapper ul.orderby,
body.madona-shop-archive #main .before-loop-wrapper ul.orderby ul {
	background: #f8ede8 !important;
	border-color: rgba(41, 35, 31, .2) !important;
}

/* Filter drawer (theme sidebar) in homepage colours */
body.madona-shop-archive #ts-filter-widget-area .ts-sidebar-content {
	background: #f8ede8 !important;
}
body.madona-shop-archive #ts-filter-widget-area a {
	color: #29231f !important;
	font-family: "Instrument Sans", system-ui, sans-serif !important;
}

/* Demo leftovers: brand filter with 0-product brands, bottom banner → 404 */
body.madona-shop-archive .product-filter-by-brand,
body.madona-shop-archive .shop-bottom-content {
	display: none !important;
}

/* Cards: slow image zoom on hover */
body.madona-shop-archive #main .products .product .thumbnail-wrapper {
	overflow: hidden;
}
body.madona-shop-archive #main .products .product .thumbnail-wrapper img {
	transition: transform 1.1s cubic-bezier(.22, 1, .36, 1), opacity .6s !important;
}
body.madona-shop-archive #main .products .product:hover .thumbnail-wrapper img {
	transform: scale(1.045);
}

/* Promise band above the footer */
body.madona-chrome .madona-shop-promise {
	background: #252a24;
	color: #f8ede8;
	margin-top: clamp(48px, 3vw + 24px, 88px);
	padding: clamp(36px, 2vw + 24px, 56px) clamp(20px, 4vw, 64px);
}
body.madona-chrome .madona-shop-promise__list {
	list-style: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
	max-width: 1440px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
body.madona-chrome .madona-shop-promise__list li {
	margin: 0 !important;
	padding: 0 0 0 20px !important;
	border-left: 1px solid rgba(241, 232, 218, .18);
	font-family: "Cormorant Garamond", Georgia, serif !important;
	font-size: clamp(20px, .8vw + 14px, 26px) !important;
	font-weight: 300 !important;
	line-height: 1.2 !important;
	color: #f8ede8 !important;
	list-style: none !important;
}
body.madona-chrome .madona-shop-promise__num {
	display: block;
	margin-bottom: 10px;
	font-family: "Instrument Sans", system-ui, sans-serif;
	font-size: 10px;
	letter-spacing: .25em;
	color: #b08a52;
}
@media (max-width: 767px) {
	body.madona-chrome .madona-shop-promise__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}
}
/* The promise band sits right above the React footer — no gap between them */
body.madona-chrome .madona-shop-promise + #madona-chrome-footer,
body.madona-chrome #page + #madona-chrome-footer {
	margin-top: 0;
}

/* Toolbar: full width, one line (theme limits it to calc(100% - 315px)) */
body.madona-shop-archive #main .before-loop-wrapper {
	max-width: none !important;
	width: 100% !important;
	justify-content: flex-start;
}
body.madona-shop-archive #main .before-loop-wrapper > .woocommerce-notices-wrapper:empty {
	display: none !important;
}
body.madona-shop-archive #main .before-loop-wrapper > .woocommerce-notices-wrapper {
	flex: 1 0 100%;
}
body.madona-shop-archive #main .before-loop-wrapper > * {
	float: none !important;
	margin: 0 !important;
}
body.madona-shop-archive #main .before-loop-wrapper > .woocommerce-ordering {
	margin-left: auto !important;
}

/* ==========================================================================
   SHOP / CATEGORY — bigger product images (Marni / Hidesign / Farfetch style)
   Near edge-to-edge grid, 4 per row on desktop, tight gaps, every photo
   framed at 4:5 so all cards line up (no square → portrait jump on load).
   Images come from the uncropped upload, see madona_shop_grid_image_src().
   ========================================================================== */
body.madona-shop-archive #main .page-container {
	max-width: none !important;
	margin: 0 !important;
}
body.madona-shop-archive #main #main-content {
	padding-left: clamp(16px, 1.7vw, 32px) !important;
	padding-right: clamp(16px, 1.7vw, 32px) !important;
}
body.madona-shop-archive #main .products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(36px, 2vw + 16px, 56px) clamp(8px, .8vw, 14px);
	margin: 0 !important;
}
body.madona-shop-archive #main .products::before,
body.madona-shop-archive #main .products::after {
	content: none !important;
	display: none !important;
}
body.madona-shop-archive #main .products .product {
	width: auto !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.madona-shop-archive #main .products .product .thumbnail-wrapper figure {
	position: relative;
	aspect-ratio: 4 / 5;
	margin: 0 !important;
	overflow: hidden;
	background: #f3e2dc; /* while the photo loads */
}
body.madona-shop-archive #main .products .product .thumbnail-wrapper figure img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: 50% 50%;
}
body.madona-shop-archive #main .products .product .meta-wrapper {
	padding: 14px 0 0 !important;
}
/* Hero band and promise band line up with the wider grid */
body.madona-shop-archive .madona-shop-hero__inner,
body.madona-shop-archive .madona-shop-promise__list {
	max-width: none;
	padding-left: clamp(16px, 1.7vw, 32px);
	padding-right: clamp(16px, 1.7vw, 32px);
}
body.madona-shop-archive .madona-shop-promise {
	padding-left: 0;
	padding-right: 0;
}
@media (max-width: 1024px) {
	body.madona-shop-archive #main .products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	body.madona-shop-archive #main .products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 8px;
	}
	body.madona-shop-archive #main .products .product .product-name,
	body.madona-shop-archive #main .products .product .product-name a {
		font-size: 1.0625rem !important;
	}
}

/* No toolbar on shop / category pages: filter, grid-view switch, "on sale",
   sort and per-page are hidden. Only the add-to-cart notices stay. */
body.madona-shop-archive #main .before-loop-wrapper {
	display: block !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
}
body.madona-shop-archive #main .before-loop-wrapper > :not(.woocommerce-notices-wrapper),
body.madona-shop-archive .ts-filter-widget-area,
body.madona-shop-archive #ts-filter-widget-area {
	display: none !important;
}
body.madona-shop-archive #main .before-loop-wrapper > .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 24px !important;
}

/* Promise band: same space on the left and right, each point centred in its
   quarter, hairlines only between points (none before the first) */
body.madona-shop-archive .madona-shop-promise__list {
	padding: 0 clamp(16px, 1.7vw, 32px) !important;
}
body.madona-chrome .madona-shop-promise__list li {
	padding: 0 16px !important;
	text-align: center;
}
body.madona-chrome .madona-shop-promise__list li:first-child {
	border-left: 0;
}
@media (max-width: 767px) {
	/* 2 × 2: no line at the start of the second row either */
	body.madona-chrome .madona-shop-promise__list li:nth-child(odd) {
		border-left: 0;
	}
}

/* ---- Shop pagination: loading state (src/services/catalog/shopPaging.js) ----
   A click on a page number dims the grid and runs a thin progress bar along
   the top of the screen until the new products are in. */
body.madona-paging .main-products div.products {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.madona-paging {
  cursor: progress;
}

body.madona-paging::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  width: 100%;
  height: 3px;
  background: #a8784f;
  transform-origin: 0 50%;
  animation: madona-paging-bar 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes madona-paging-bar {
  from { transform: scaleX(0.05); }
  to { transform: scaleX(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  body.madona-paging::before {
    animation: none;
    transform: scaleX(0.6);
  }
}
