/* LD Embroidery — shop & category archives (WooCommerce).
 *
 * WooCommerce's own stylesheet floats every product (width 22.05%, 48% on small screens, clear:none !important on
 * every 2nd item) and adds ::before/::after clearfix boxes to ul.products. Inside a CSS grid those boxes become
 * grid cells and the floats/widths fight the grid, so the product list is reset here under a more specific selector.
 */

.container--wide { max-width: 1520px; }

.shop-layout {
	display: grid; grid-template-columns: clamp(230px, 18vw, 270px) minmax(0, 1fr); gap: 28px; align-items: start;
	padding-top: 32px; padding-bottom: 80px;
}

/* ---------- Category sidebar ---------- */
.shop-sidebar { position: sticky; top: 104px; }
.admin-bar .shop-sidebar { top: 136px; }
.shop-cats {
	max-height: calc(100vh - 128px); overflow-y: auto; overscroll-behavior: contain;
	background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.shop-cats__title {
	position: sticky; top: 0; z-index: 1;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 0; padding: 16px 20px; list-style: none; cursor: default;
	background: var(--blue); color: var(--white);
	font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.shop-cats__title::-webkit-details-marker { display: none; }
.shop-cats__title::after {
	content: ""; display: none; width: 10px; height: 10px; margin-right: 4px;
	border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s;
}
.shop-cats[open] .shop-cats__title::after { transform: rotate(-135deg) translateY(-2px); }

.shop-cats__list, .shop-cats__sub { margin: 0; padding: 0; list-style: none; }
.shop-cats__item > a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 11px 20px; border-bottom: 1px solid #f0f0f2;
	color: var(--navy); font-size: 14.5px; font-weight: 600; line-height: 1.35; text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.shop-cats__item > a:hover { background: var(--blue-tint); color: var(--blue); }
.shop-cats__item.is-active > a { background: var(--blue-tint); color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.shop-cats__count {
	flex: none; padding: 2px 9px; border-radius: 999px; background: #f2f3f5;
	color: var(--muted); font-size: 12px; font-weight: 700;
}
.shop-cats__item.is-active > a .shop-cats__count { background: var(--blue); color: var(--white); }
.shop-cats__sub { background: #fafafa; }
.shop-cats__sub .shop-cats__item > a { padding-left: 36px; font-size: 14px; font-weight: 500; }

/* ---------- Heading & toolbar ---------- */
.shop-head { margin-bottom: 20px; }
.shop-head__title { margin: 0 0 6px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.shop-head .term-description { color: var(--muted); max-width: 760px; }
.shop-head .term-description > :last-child { margin-bottom: 0; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
/* WooCommerce prints its (usually empty) notices wrapper first inside the toolbar: keep it out of the flex row. */
.shop-toolbar .woocommerce-notices-wrapper { order: -1; width: 100%; }
.shop-toolbar .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce .shop-toolbar .woocommerce-result-count { float: none; margin: 0; color: var(--muted); font-size: 14.5px; }
.woocommerce .shop-toolbar .woocommerce-ordering { float: none; margin: 0 0 0 auto; }
.woocommerce .shop-toolbar .woocommerce-ordering select {
	min-height: 42px; padding: 8px 36px 8px 14px; border: 1.5px solid #d4d7de; border-radius: 10px;
	background-color: var(--white); color: var(--navy); font: 500 14.5px var(--font); cursor: pointer;
}

/* ---------- Product grid: 4 per row ---------- */
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
	width: auto; margin: 0; padding: 0; list-style: none; float: none; clear: none;
}
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products::before,
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products::after { content: none !important; display: none !important; }

:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product {
	float: none !important; clear: none !important; width: auto !important; margin: 0 !important; padding: 0;
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
	box-shadow: var(--shadow-sm); text-align: left;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product:hover,
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product:focus-within { transform: translateY(-5px); border-color: #bcd7ee; box-shadow: 0 16px 36px rgba(16, 23, 41, 0.12); }

:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none;
}
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product a img {
	display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; padding: 14px; object-fit: contain;
	margin: 0; border-radius: 0; box-shadow: none; background: var(--white); border-bottom: 1px solid #f0f0f2;
	transition: transform 0.4s var(--ease);
}
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product:hover a img { transform: scale(1.03); }
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .woocommerce-loop-product__title {
	margin: 0; padding: 14px 16px 0; color: var(--navy);
	font-size: 15.5px; font-weight: 700; line-height: 1.35; min-height: calc(2.7em + 14px);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product:hover .woocommerce-loop-product__title { color: var(--blue); }
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .star-rating { margin: 8px 16px 0; font-size: 0.9em; }
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .price {
	display: block; margin: 0; padding: 8px 16px 0; color: var(--blue); font-size: 20px; font-weight: 800; line-height: 1.2;
}
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .price del { color: var(--muted); font-size: 14px; font-weight: 500; opacity: 1; }
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .price ins { background: none; text-decoration: none; }

:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .button {
	display: flex; align-items: center; justify-content: center;
	margin: 14px 16px 16px; padding: 10px 16px; min-height: 42px; border: 0; border-radius: 999px;
	background: var(--blue); color: var(--white); font: 700 14px/1.2 var(--font); text-align: center; text-decoration: none;
	transition: background-color 0.2s, box-shadow 0.2s;
}
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .button:hover { background: var(--blue-dark); color: var(--white); box-shadow: 0 8px 18px rgba(11, 115, 189, 0.3); }
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .button.loading { opacity: 0.7; }
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product a.added_to_cart { margin: -6px 16px 14px; color: var(--blue-dark); font-size: 14px; font-weight: 600; text-align: center; }

/* WooCommerce positions the badge with .woocommerce ul.products li.product .onsale (top:0; margin:-.5em -.5em 0 0). */
:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product span.onsale {
	position: absolute; top: 12px; right: 12px; left: auto; z-index: 2; margin: 0 !important; min-width: 0; min-height: 0; padding: 5px 12px;
	border-radius: 999px; background: var(--accent); color: var(--white);
	font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- Pagination ---------- */
.woocommerce .shop-main nav.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce .shop-main nav.woocommerce-pagination ul {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; white-space: normal;
}
.woocommerce .shop-main nav.woocommerce-pagination ul li { float: none; display: block; margin: 0; padding: 0; border: 0; overflow: visible; }
.woocommerce .shop-main nav.woocommerce-pagination ul li a,
.woocommerce .shop-main nav.woocommerce-pagination ul li span {
	display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 0;
	border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--navy); font-weight: 600; text-decoration: none; line-height: 1;
}
.woocommerce .shop-main nav.woocommerce-pagination ul li a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.woocommerce .shop-main nav.woocommerce-pagination ul li span.current { background: var(--blue); border-color: var(--blue); color: var(--white); }

.woocommerce .shop-main .woocommerce-info { margin: 0; border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.shop-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 899px) {
	.shop-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 56px; }
	.shop-sidebar, .admin-bar .shop-sidebar { position: static; }
	.shop-cats { max-height: none; overflow: visible; }
	.shop-cats[open] > .shop-cats__list, .shop-cats[open] > .shop-cats__sub { max-height: none; }
	.shop-cats__title { cursor: pointer; border-radius: 13px; position: static; }
	.shop-cats[open] .shop-cats__title { border-radius: 13px 13px 0 0; }
	.shop-cats__title::after { display: block; }
	.shop-cats[open] { overflow: hidden; }
	.shop-cats .shop-cats__list { max-height: 55vh; overflow-y: auto; }
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product { border-radius: 12px; }
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .woocommerce-loop-product__title { padding: 10px 12px 0; font-size: 14px; min-height: calc(2.7em + 10px); }
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .price { padding: 6px 12px 0; font-size: 18px; }
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product .button { margin: 10px 12px 12px; min-height: 40px; font-size: 13.5px; }
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product span.onsale { top: 8px; right: 8px; padding: 3px 9px; font-size: 11px; }
	.shop-toolbar { flex-direction: column; align-items: stretch; }
	.woocommerce .shop-toolbar .woocommerce-ordering { margin: 0; width: 100%; }
	.woocommerce .shop-toolbar .woocommerce-ordering select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	:is(.woocommerce .shop-main, .woocommerce .related, .woocommerce .upsells, .woocommerce .up-sells, .woocommerce .cross-sells) ul.products li.product:hover { transform: none; }
}

/* ---------- WooCommerce defaults restyled to the theme (product, cart, checkout, account) ---------- */
body.woocommerce a.button, body.woocommerce button.button, body.woocommerce input.button, body.woocommerce #respond input#submit,
body.woocommerce-page a.button, body.woocommerce-page button.button, body.woocommerce-page input.button, body.woocommerce-page #respond input#submit,
body.woocommerce a.button.alt, body.woocommerce button.button.alt, body.woocommerce input.button.alt,
body.woocommerce-page a.button.alt, body.woocommerce-page button.button.alt, body.woocommerce-page input.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 26px; border: 0; border-radius: 999px;
	background: var(--blue); color: var(--white); font: 700 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
body.woocommerce a.button:hover, body.woocommerce button.button:hover, body.woocommerce input.button:hover, body.woocommerce #respond input#submit:hover,
body.woocommerce-page a.button:hover, body.woocommerce-page button.button:hover, body.woocommerce-page input.button:hover, body.woocommerce-page #respond input#submit:hover,
body.woocommerce a.button.alt:hover, body.woocommerce button.button.alt:hover, body.woocommerce-page a.button.alt:hover, body.woocommerce-page button.button.alt:hover {
	background: var(--blue-dark); color: var(--white); box-shadow: 0 8px 18px rgba(11, 115, 189, 0.3); transform: translateY(-1px);
}
body.woocommerce button.button:disabled, body.woocommerce button.button.disabled, body.woocommerce-page button.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

body.woocommerce div.product .product_title { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
body.woocommerce div.product p.price, body.woocommerce div.product span.price { color: var(--blue); font-size: 30px; font-weight: 800; }
body.woocommerce div.product p.price del, body.woocommerce div.product span.price del { color: var(--muted); font-size: 18px; font-weight: 500; opacity: 1; }
body.woocommerce div.product p.price ins, body.woocommerce div.product span.price ins { background: none; text-decoration: none; }
body.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); margin-bottom: 20px; }
body.woocommerce div.product form.cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
body.woocommerce .quantity .qty {
	width: 76px; min-height: 46px; padding: 8px 10px; border: 1.5px solid #d4d7de; border-radius: 10px; background: var(--white);
	color: var(--navy); font: 600 16px var(--font); text-align: center;
}
body.woocommerce span.onsale { background: var(--accent); color: var(--white); }
body.woocommerce div.product .product_meta { color: var(--muted); font-size: 14.5px; }
body.woocommerce div.product .product_meta a { color: var(--blue-dark); }
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--white); }
body.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--navy); font-weight: 700; }
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--blue); }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: 10px; font-weight: 500;
}
.woocommerce-message { border-top-color: var(--success); }
.woocommerce-message::before { color: var(--success); }
.woocommerce-info { border-top-color: var(--blue); }
.woocommerce-info::before { color: var(--blue); }
.woocommerce-message .button, .woocommerce-info .button { float: right; }

/* Cart / checkout / account pages inherit the same look */
.woocommerce-cart-form .shop_table, .woocommerce-checkout .shop_table { border-radius: 12px; overflow: hidden; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	min-height: 46px; padding: 10px 14px; border: 1.5px solid #d4d7de; border-radius: 10px; font: 400 16px var(--font);
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 115, 189, 0.12); }

/* =====================================================================
 * Single product, cart, checkout and order-received pages (mobile first)
 * ===================================================================== */

/* ---------- Single product ---------- */
body.woocommerce div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
body.woocommerce div.product div.images,
body.woocommerce div.product div.summary { float: none; width: auto; margin: 0; clear: none; min-width: 0; }
body.woocommerce div.product .woocommerce-tabs,
body.woocommerce div.product section.related,
body.woocommerce div.product section.upsells,
body.woocommerce div.product section.up-sells { grid-column: 1 / -1; clear: none; }

body.woocommerce div.product span.onsale {
	position: absolute; top: 14px; left: 14px; right: auto; z-index: 5; margin: 0; min-width: 0; min-height: 0; padding: 5px 13px;
	border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Gallery: whole design visible in a square slot (designs are logos, never crop them). */
body.woocommerce div.product div.images .woocommerce-product-gallery__image img {
	display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: var(--white);
}
body.woocommerce div.product div.images .flex-viewport,
body.woocommerce div.product div.images .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child {
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white);
}
body.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	top: 14px; right: 14px; z-index: 6; width: 42px; height: 42px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm);
}
body.woocommerce div.product div.images .flex-control-thumbs {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none;
}
body.woocommerce div.product div.images .flex-control-thumbs li { float: none; width: auto; margin: 0; }
body.woocommerce div.product div.images .flex-control-thumbs li img {
	display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 4px; background: var(--white);
	border: 1.5px solid var(--border); border-radius: 10px; opacity: 0.65; cursor: pointer; transition: opacity 0.2s, border-color 0.2s;
}
body.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; }
body.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; border-color: var(--blue); }

body.woocommerce div.product div.summary .product_title { font-size: clamp(24px, 6vw, 34px); line-height: 1.2; overflow-wrap: anywhere; }
body.woocommerce div.product div.summary .woocommerce-product-details__short-description { overflow-wrap: anywhere; line-height: 1.7; }
body.woocommerce div.product form.cart { margin: 20px 0; }
body.woocommerce div.product form.cart .quantity.hidden { display: none; } /* sold individually: no empty flex item */
body.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; font-size: 16px; }
body.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }

/* Tabs: a scrollable pill row instead of WooCommerce's bordered tab strip. */
body.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; gap: 6px; margin: 0 0 20px; padding: 0; overflow-x: auto; overflow-y: hidden; list-style: none; border-bottom: 1px solid var(--border);
	scrollbar-width: none;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
body.woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; content: none; }
body.woocommerce div.product .woocommerce-tabs ul.tabs li { flex: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
body.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 18px; border-bottom: 3px solid transparent; color: var(--navy); font-weight: 700; white-space: nowrap; text-decoration: none;
}
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--blue); border-bottom-color: var(--blue); }
body.woocommerce div.product .woocommerce-tabs .panel { margin: 0 0 24px; overflow-wrap: anywhere; }
body.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 22px; }

body.woocommerce div.product section.related > h2,
body.woocommerce div.product section.upsells > h2,
body.woocommerce div.product section.up-sells > h2 { margin: 8px 0 20px; font-size: clamp(22px, 5vw, 28px); font-weight: 800; letter-spacing: -0.02em; }

@media (min-width: 769px) {
	body.woocommerce div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
	body.woocommerce div.product div.images { grid-column: 1; }
	body.woocommerce div.product div.summary { grid-column: 2; position: sticky; top: 112px; }
}

/* ---------- Cart ---------- */
body.woocommerce-cart table.cart td.product-thumbnail img { width: 76px; height: 76px; object-fit: contain; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
body.woocommerce-cart table.shop_table { border: 1px solid var(--border); border-radius: 12px; border-collapse: separate; overflow: hidden; }
body.woocommerce-cart table.cart td.actions .coupon .input-text { min-height: 46px; width: 200px; padding: 8px 14px; border: 1.5px solid #d4d7de; border-radius: 10px; }
body.woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 22px; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; min-height: 54px; margin: 0; padding: 14px 20px; font-size: 17px; }

@media (max-width: 768px) {
	body.woocommerce-cart table.shop_table_responsive,
	body.woocommerce-cart table.shop_table_responsive tbody { display: block; width: 100%; border: 0; }
	body.woocommerce-cart table.shop_table_responsive thead { display: none; }
	body.woocommerce-cart table.shop_table_responsive tr.cart_item {
		display: block; margin: 0 0 14px; padding: 6px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm);
	}
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td {
		display: flex; align-items: center; justify-content: space-between; gap: 14px; width: auto; padding: 10px 16px; border: 0; text-align: right;
	}
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td::before { float: none; flex: none; margin: 0; content: attr(data-title); color: var(--navy); font-weight: 700; text-align: left; }
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove { justify-content: flex-end; padding-bottom: 0; }
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove::before,
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail::before { display: none; }
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail { justify-content: center; padding-top: 0; }
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail img { width: 140px; height: 140px; }
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name a { color: var(--blue); font-weight: 600; text-decoration: none; }
	body.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity:not(:has(input[type="number"])) { display: none; } /* sold individually: only a hidden input, no visible quantity */
	body.woocommerce-cart table.shop_table_responsive tr:not(.cart_item) { display: block; }
	body.woocommerce-cart table.cart td.actions { display: block; padding: 14px 0 0; border: 0; text-align: left; }
	body.woocommerce-cart table.cart td.actions .coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; float: none; width: 100%; margin: 0 0 12px; }
	body.woocommerce-cart table.cart td.actions .coupon::before,
	body.woocommerce-cart table.cart td.actions .coupon::after { display: none; content: none; } /* clear-fix boxes would become grid cells */
	body.woocommerce-cart table.cart td.actions .coupon { grid-template-columns: minmax(0, 1fr); }
	body.woocommerce-cart table.cart td.actions .coupon .button { width: 100%; margin: 0; }
	body.woocommerce-cart table.cart td.actions .coupon .input-text { width: 100%; }
	body.woocommerce-cart table.cart td.actions > .button { width: 100%; }
	body.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }
}

/* ---------- Checkout ---------- */
body.woocommerce-checkout .woocommerce { max-width: 720px; margin-inline: auto; }
body.woocommerce-checkout.ldemb-checkout-nofields #customer_details { display: none; }
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; max-width: none; }
body.woocommerce-checkout #order_review_heading { margin: 8px 0 14px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
body.woocommerce-checkout .woocommerce-billing-fields > h3 { font-size: 22px; font-weight: 800; }
body.woocommerce-checkout .woocommerce-info { margin: 0 0 20px; border-radius: 10px; }

body.woocommerce-checkout table.shop_table { width: 100%; border: 1px solid var(--border); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--white); }
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
body.woocommerce-checkout table.shop_table td.product-name { overflow-wrap: anywhere; }
body.woocommerce-checkout table.shop_table th:last-child,
body.woocommerce-checkout table.shop_table td:last-child { text-align: right; white-space: nowrap; }
.woocommerce-Price-amount { white-space: nowrap; }
body.woocommerce-checkout table.shop_table thead th { border-top: 0; background: var(--blue-soft); }
body.woocommerce-checkout table.shop_table tfoot tr:last-child th,
body.woocommerce-checkout table.shop_table tfoot tr:last-child td { font-size: 18px; font-weight: 800; color: var(--blue); }

body.woocommerce-checkout #payment { background: var(--blue-soft); border: 1px solid var(--border); border-radius: 14px; }
body.woocommerce-checkout #payment ul.payment_methods { margin: 0; padding: 18px; border-bottom: 1px solid var(--border); list-style: none; text-align: left; }
body.woocommerce-checkout #payment ul.payment_methods li { margin: 0 0 12px; padding: 0; line-height: 1.5; }
body.woocommerce-checkout #payment ul.payment_methods li:last-child { margin-bottom: 0; }
body.woocommerce-checkout #payment ul.payment_methods li label { display: inline; font-weight: 700; color: var(--navy); cursor: pointer; }
body.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--blue); }
body.woocommerce-checkout #payment div.payment_box { margin: 10px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--muted); font-size: 15px; }
body.woocommerce-checkout #payment div.payment_box::before { display: none; }
body.woocommerce-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }
body.woocommerce-checkout #payment div.form-row { padding: 18px; }
body.woocommerce-checkout #payment .woocommerce-privacy-policy-text { margin-bottom: 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
body.woocommerce-checkout #payment #place_order { float: none; display: flex; width: 100%; min-height: 56px; margin: 0; padding: 14px 24px; font-size: 18px; }

/* ---------- Order received ---------- */
body.woocommerce-order-received .woocommerce-notice--success { margin: 0 0 20px; padding: 16px 18px; border: 1px solid #bfe3cb; border-radius: 12px; background: var(--success-tint); color: var(--success); font-weight: 700; }
body.woocommerce-order-received ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
body.woocommerce-order-received ul.woocommerce-order-overview li { float: none; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
body.woocommerce-order-received ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; color: var(--navy); font-size: 16px; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
body.woocommerce-order-received table.shop_table { width: 100%; border: 1px solid var(--border); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
body.woocommerce-order-received table.shop_table th,
body.woocommerce-order-received table.shop_table td { padding: 12px 16px; border-top: 1px solid var(--border); }
body.woocommerce-order-received .woocommerce-order-downloads__title,
body.woocommerce-order-received .woocommerce-order-details__title { font-size: 22px; font-weight: 800; }

@media (max-width: 480px) {
	body.woocommerce-checkout table.shop_table th,
	body.woocommerce-checkout table.shop_table td { padding: 10px 12px; }
	body.woocommerce-checkout #payment ul.payment_methods,
	body.woocommerce-checkout #payment div.form-row { padding: 14px; }
}

/* No customer details were collected: hide the empty billing-address block on the confirmation page. */
body.ldemb-checkout-nofields .woocommerce-customer-details { display: none; }
body.woocommerce-order-received .ldemb-save-notice { margin: 0 0 20px; border-radius: 10px; }
