/*
Theme Name: ShanLong Child
Theme URI: https://shanlongbags.com/
Description: Woodmart child theme for ShanLong Bags — total-cart MOQ validation, dual CTA (add to cart / get a quote) and an RFQ inquiry channel. Styles are additive only; the parent theme is never modified.
Author: ShanLong Bags
Author URI: https://shanlongbags.com/
Template: woodmart
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shanlong-child
Domain Path: /languages
Tags: child-theme, e-commerce, woocommerce
*/

/*
 * Incremental styles only. No parent selector is redefined, so the storefront
 * keeps the look configured in Woodmart's own theme options.
 *
 * Colour tokens follow the brand sheet (00-facts.md).
 */

:root {
	--sl-ink: #0b1522;
	--sl-ink-2: #122238;
	--sl-accent: #ff5a1f;
	--sl-gold: #e8a33d;
	--sl-soft: #f4f6f9;
	--sl-muted: #5b6b7f;
	--sl-line: #e2e8f0;
	--sl-radius-sm: 10px;
	--sl-radius-md: 14px;
	--sl-radius-pill: 999px;
	--sl-font: Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

/* -------------------------------------------------------------------------
 * MOQ hint above the add-to-cart area
 * ---------------------------------------------------------------------- */
.sl-moq-hint {
	display: block;
	margin: 0 0 16px;
	padding: 11px 16px;
	border: 1px solid var(--sl-line);
	border-left: 3px solid var(--sl-accent);
	border-radius: var(--sl-radius-sm);
	background: var(--sl-soft);
	color: var(--sl-ink);
	font-family: var(--sl-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.01em;
}

/* -------------------------------------------------------------------------
 * "Get a quote" secondary CTA below the add-to-cart form
 * ---------------------------------------------------------------------- */
.sl-quote-wrap {
	display: block;
	margin: 14px 0 0;
}

.sl-quote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 11px 24px;
	border: 2px solid var(--sl-ink);
	border-radius: var(--sl-radius-pill);
	background: #ffffff;
	color: var(--sl-ink);
	font-family: var(--sl-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sl-quote-btn:hover,
.sl-quote-btn:focus-visible {
	border-color: var(--sl-accent);
	background: var(--sl-accent);
	color: #ffffff;
	text-decoration: none;
}

.sl-quote-btn:focus-visible {
	outline: 2px solid var(--sl-accent);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Wholesale price tiers table
 * ---------------------------------------------------------------------- */
.sl-tier-prices {
	margin: 30px 0;
}

.sl-tier-prices__title {
	margin: 0 0 12px;
	color: var(--sl-ink);
	font-family: var(--sl-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.sl-tier-table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--sl-line);
	border-collapse: collapse;
	border-radius: var(--sl-radius-md);
	overflow: hidden;
	background: #ffffff;
	font-family: var(--sl-font);
	font-size: 15px;
}

.sl-tier-table th {
	padding: 11px 16px;
	background: var(--sl-ink);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
}

.sl-tier-table td {
	padding: 11px 16px;
	border-top: 1px solid var(--sl-line);
	color: var(--sl-ink-2);
	vertical-align: middle;
}

.sl-tier-table tbody tr:nth-child(even) td {
	background: var(--sl-soft);
}

.sl-tier-table .amount {
	color: var(--sl-accent);
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * RFQ form ([shanlong_rfq] shortcode)
 * ---------------------------------------------------------------------- */
.sl-rfq {
	max-width: 100%;
	margin: 0;
	font-family: var(--sl-font);
	color: var(--sl-ink);
}

.sl-rfq__title {
	margin: 0 0 18px;
	color: var(--sl-ink);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
}

.sl-rfq__notice {
	margin: 0 0 20px;
	padding: 13px 16px;
	border: 1px solid var(--sl-line);
	border-left: 4px solid var(--sl-accent);
	border-radius: var(--sl-radius-sm);
	background: var(--sl-soft);
	font-size: 15px;
	line-height: 1.5;
}

.sl-rfq__notice--success {
	border-left-color: #2e7d32;
	background: #f1f8f2;
}

.sl-rfq__notice--error {
	border-left-color: var(--sl-accent);
	background: #fff5f0;
}

.sl-rfq__form {
	margin: 0;
}

.sl-rfq__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.sl-rfq__field {
	margin: 0;
}

.sl-rfq__field--full {
	grid-column: 1 / -1;
}

.sl-rfq__field label {
	display: block;
	margin: 0 0 6px;
	color: var(--sl-ink-2);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.sl-rfq__required {
	color: var(--sl-accent);
}

.sl-rfq__field input[type="text"],
.sl-rfq__field input[type="email"],
.sl-rfq__field input[type="number"],
.sl-rfq__field input[type="tel"],
.sl-rfq__field textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--sl-line);
	border-radius: var(--sl-radius-sm);
	background: #ffffff;
	color: var(--sl-ink);
	font-family: var(--sl-font);
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sl-rfq__field textarea {
	min-height: 120px;
	resize: vertical;
}

.sl-rfq__field input:focus,
.sl-rfq__field textarea:focus {
	border-color: var(--sl-accent);
	box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
	outline: none;
}

.sl-rfq__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	margin-top: 22px;
	padding: 12px 34px;
	border: 0;
	border-radius: var(--sl-radius-pill);
	background: var(--sl-accent);
	color: #ffffff;
	font-family: var(--sl-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.sl-rfq__submit:hover,
.sl-rfq__submit:focus-visible {
	background: #e64d15;
	transform: translateY(-1px);
}

.sl-rfq__submit:focus-visible {
	outline: 2px solid var(--sl-ink);
	outline-offset: 3px;
}

/* Honeypot: off-screen, not display:none so bots still fill it. */
.sl-rfq__hidden {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 640px) {
	.sl-rfq__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sl-quote-btn,
	.sl-rfq__submit {
		width: 100%;
	}

	.sl-tier-table th,
	.sl-tier-table td {
		padding: 10px 12px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sl-quote-btn,
	.sl-rfq__field input,
	.sl-rfq__field textarea,
	.sl-rfq__submit {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * Specificity overrides: Woodmart styles bare `button` / `input` with
 * .wd-theme + element selectors, which beats a single class. Re-assert the
 * RFQ form's look with a scoped parent so the form matches the brand.
 * ---------------------------------------------------------------------- */
.sl-rfq .sl-rfq__submit {
	border: 0;
	border-radius: 999px;
	background: #ff5a1f;
	color: #fff;
	padding: 13px 34px;
	min-height: 48px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
	text-transform: none;
}
.sl-rfq .sl-rfq__submit:hover,
.sl-rfq .sl-rfq__submit:focus-visible {
	background: #e64d15;
	color: #fff;
}
.sl-rfq .sl-rfq__field input[type="text"],
.sl-rfq .sl-rfq__field input[type="email"],
.sl-rfq .sl-rfq__field input[type="number"],
.sl-rfq .sl-rfq__field input[type="tel"],
.sl-rfq .sl-rfq__field textarea {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fbfcfd;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.5;
	box-shadow: none;
}
.sl-rfq .sl-rfq__field input:focus,
.sl-rfq .sl-rfq__field textarea:focus {
	border-color: #ff5a1f;
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.14);
}
.sl-rfq .sl-rfq__field label {
	display: block;
	margin-bottom: 6px;
	color: #44586e;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}



/* MOQ badge on shop-loop cards */
.sl-loop-moq {
	display: inline-block;
	margin: 2px 0 6px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #0b1522;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.5;
}
.wd-product .sl-loop-moq,
li.product .sl-loop-moq {
	font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}


/* -------------------------------------------------------------------------
 * sl-product-polish: keep the product page readable for B2B buyers whose
 * titles are long and keyword-heavy.
 * ---------------------------------------------------------------------- */
.single-product .product_title {
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.28;
	letter-spacing: -0.01em;
	font-weight: 700;
	max-width: 46rem;
}
.single-product .summary .price {
	font-size: 26px;
	font-weight: 700;
	color: #0b1522;
}
.single-product .woocommerce-product-details__short-description p {
	font-size: 15px;
	line-height: 1.65;
	color: #5b6b7f;
}
.single-product .wd-single-add-cart .button,
.single-product button.single_add_to_cart_button {
	font-weight: 700;
}
/* the MOQ hint should read as a rule, not a warning banner */
.sl-moq-hint {
	margin-bottom: 14px;
	font-size: 13.5px;
}
/* additional information table reads better left-aligned and compact */
.single-product .woocommerce-product-attributes th,
.single-product .woocommerce-product-attributes td {
	padding: 9px 14px;
	font-size: 14px;
}


/* sl-title-final: Woodmart ships a large single-product heading; B2B titles are
   long and keyword-heavy, so cap them. Important is needed to beat the theme's
   own heading rule, which is more specific than a single class. */
.single-product .summary .product_title,
.single-product .product_title.entry-title {
	font-size: 28px !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em;
	font-weight: 700;
	max-width: 44rem;
}
@media (max-width: 767px) {
	.single-product .summary .product_title,
	.single-product .product_title.entry-title {
		font-size: 22px !important;
	}
}

/* -------------------------------------------------------------------------
 * Footer (child theme footer.php replaces the Woodmart footer builder)
 * ---------------------------------------------------------------------- */
.sl-footer {
	background: #0b1522;
	color: #93a6bb;
	font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
	font-size: 13.5px;
	line-height: 1.7;
}
.sl-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 24px 32px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 34px;
}
.sl-footer__inner--legal {
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 12px;
}
.sl-footer__brand img { max-height: 34px; width: auto; filter: brightness(0) invert(1); }
.sl-footer__brand-name { color: #fff; font-size: 17px; font-weight: 700; }
.sl-footer__blurb { margin: 14px 0 0; color: #8296ab; }
.sl-footer__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.sl-footer__list { list-style: none; margin: 0; padding: 0; }
.sl-footer__list li { margin: 0 0 8px; }
.sl-footer__list a { color: #93a6bb; text-decoration: none; }
.sl-footer__list a:hover { color: #fff; }
.sl-footer__label {
	display: block;
	color: #63788d;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.sl-footer__legal {
	border-top: 1px solid #152233;
	background: #08111b;
}
.sl-footer__meta a { color: #93a6bb; margin-left: 14px; text-decoration: none; }
.sl-footer__meta a:hover { color: #fff; }
@media (max-width: 1024px) {
	.sl-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.sl-footer__inner { grid-template-columns: 1fr; padding: 32px 20px 24px; }
}


/* -------------------------------------------------------------------------
 * Header (child theme header.php replaces the Woodmart Header Builder)
 * ---------------------------------------------------------------------- */
.sl-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}
.admin-bar .sl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sl-header { top: 46px; } }

.sl-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: 74px;
	display: flex;
	align-items: center;
	gap: 26px;
}
.sl-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.sl-header__logo img { max-height: 40px; width: auto; display: block; }
.sl-header__logo .custom-logo-link { display: block; }
.sl-header__logo .custom-logo { max-height: 40px; width: auto; }

.sl-nav { flex: 1 1 auto; }
.sl-nav__list {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #22364e;
	white-space: nowrap;
}
.sl-nav__list li { margin: 0; }
.sl-nav__list a { color: #22364e; text-decoration: none; padding: 6px 0; }
.sl-nav__list a:hover { color: #ff5a1f; }

.sl-header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.sl-header__cta {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 20px;
	border-radius: 999px;
	background: #ff5a1f;
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.sl-header__cta:hover { background: #e64d15; color: #fff; }
.sl-header__whatsapp,
.sl-header__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f4f6f9;
	color: #0b1522;
	text-decoration: none;
	position: relative;
}
.sl-header__whatsapp:hover,
.sl-header__cart:hover { background: #e9eef4; color: #0b1522; }
.sl-header__cart-count {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 17px;
	height: 17px;
	border-radius: 999px;
	background: #ff5a1f;
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	padding: 0 3px;
}
.sl-header__burger {
	display: none;
	width: 42px;
	height: 42px;
	border: 0;
	background: #f4f6f9;
	border-radius: 10px;
	cursor: pointer;
	padding: 0;
}
.sl-header__burger span {
	display: block;
	width: 18px;
	height: 2px;
	background: #0b1522;
	margin: 3.5px auto;
	border-radius: 2px;
}

.sl-header__drawer { display: none; }

@media (max-width: 1080px) {
	.sl-nav { display: none; }
	.sl-header__burger { display: block; }
	.sl-header__drawer {
		display: none;
		border-top: 1px solid #e2e8f0;
		background: #fff;
		padding: 8px 24px 22px;
	}
	body.sl-nav-open .sl-header__drawer { display: block; }
	.sl-drawer__list { list-style: none; margin: 0; padding: 0; }
	.sl-drawer__list li { border-bottom: 1px solid #eef1f4; }
	.sl-drawer__list a { display: block; padding: 13px 2px; color: #22364e; font-weight: 600; text-decoration: none; }
	.sl-drawer__cta {
		display: inline-flex;
		margin-top: 16px;
		padding: 12px 22px;
		border-radius: 999px;
		background: #ff5a1f;
		color: #fff;
		font-weight: 700;
		text-decoration: none;
	}
}
@media (max-width: 640px) {
	.sl-header__inner { height: 62px; gap: 12px; padding: 0 16px; }
	.sl-header__logo img, .sl-header__logo .custom-logo { max-height: 32px; }
	.sl-header__cta { display: none; }
	.sl-header__whatsapp { width: 36px; height: 36px; }
	.sl-header__cart { width: 36px; height: 36px; }
}

/* Header mobile toggle must stay hidden on desktop even if the parent theme
   styles bare `button` elements with a higher-priority rule. */
.sl-header .sl-header__burger { display: none !important; }
@media (max-width: 1080px) {
	.sl-header .sl-header__burger { display: inline-flex !important; }
}

/* burger internals: keep the three bars stacked and centred in the button */
.sl-header .sl-header__burger { flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.sl-header .sl-header__burger span { margin: 0; flex: 0 0 2px; }


/* -------------------------------------------------------------------------
 * sl-elementor-page-clean
 *
 * Woodmart renders its default page template (title bar + blog sidebar) around
 * Elementor pages unless the per-page layout meta is set. The meta is not
 * writable over REST on this host, so the chrome that the new templates do not
 * want is hidden here. Scoped to Elementor pages only - shop and product
 * archives keep their own layout.
 * ---------------------------------------------------------------------- */
body.page.elementor-page .wd-page-title,
body.page.elementor-page .sidebar-container,
body.page.elementor-page .wd-sidebar,
body.page.elementor-page .wd-sidebar-container {
	display: none !important;
}
/* Elementor pages: take the sidebar grid out of play so the template spans full width */
body.page.elementor-page .wd-content-layout {
	display: block !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.page.elementor-page .wd-content-area,
body.page.elementor-page .col-content {
	width: 100% !important;
	max-width: none !important;
	grid-column: 1 / -1 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* -------------------------------------------------------------------------
 * Product gallery: the Woodmart carousel keeps a fixed item width on phones and
 * pushes the page 44px wider than the viewport. Clip it instead of scrolling.
 * ---------------------------------------------------------------------- */
@media (max-width: 767px) {
	.single-product .woocommerce-product-gallery,
	.single-product .woocommerce-product-gallery__wrapper,
	.single-product .wd-carousel,
	.single-product .wd-carousel-container,
	.single-product .wd-carousel-wrap {
		max-width: 100% !important;
		overflow: hidden !important;
	}
	.single-product .woocommerce-product-gallery__image img,
	.single-product .wd-carousel-item img {
		max-width: 100% !important;
		height: auto !important;
	}
}


/* -------------------------------------------------------------------------
 * sl-visual-pass2
 * ---------------------------------------------------------------------- */
/* Elementor pages sit on a white canvas; the section backgrounds carry the rhythm */
body.page.elementor-page {
	background: #ffffff !important;
}
/* Product-card titles clamp to two lines so prices and buttons line up */
.sl-card-title .elementor-widget-container,
.sl-card-title .elementor-heading-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
}


/* sl-canvas-white: the Woodmart demo paints the page canvas beige; Elementor
   pages set their own section backgrounds, so the canvas must be neutral. */
body.page.elementor-page .wd-page-wrapper,
body.page.elementor-page .main-page-wrapper,
body.page.elementor-page .content-layout-wrapper {
	background: #ffffff !important;
}

/* -------------------------------------------------------------------------
 * sl-product-visual: bring the single-product page onto the brand palette.
 * Woodmart styles its own chrome (tan buttons, dark price, greenish breadcrumb
 * bar); these rules replace it without touching the parent theme.
 * ---------------------------------------------------------------------- */
body.single-product,
body.single-product .wd-page-wrapper,
body.single-product .main-page-wrapper,
body.single-product .content-layout-wrapper {
	background: #ffffff !important;
}

/* breadcrumb strip */
body.single-product .wd-page-title {
	background: #ffffff !important;
	border-bottom: 1px solid #e2e8f0;
	padding: 14px 0 !important;
	color: #5b6b7f !important;
}
body.single-product .wd-page-title,
body.single-product .wd-page-title a,
body.single-product .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb a {
	color: #5b6b7f !important;
	font-size: 13px !important;
}
body.single-product .woocommerce-breadcrumb a:hover { color: #ff5a1f !important; }

/* price */
body.single-product .summary .price,
body.single-product .summary .price ins,
body.single-product .summary .price > .amount,
body.single-product .summary .price bdi {
	color: #ff5a1f !important;
	font-weight: 800;
	font-size: 30px !important;
}
body.single-product .summary .price del { color: #9aa7b5 !important; font-size: 18px !important; }

/* add to cart: brand orange pill */
body.single-product .single_add_to_cart_button {
	background-color: #ff5a1f !important;
	border-color: #ff5a1f !important;
	color: #ffffff !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	padding: 0 26px !important;
	min-height: 48px !important;
	box-shadow: none !important;
}
body.single-product .single_add_to_cart_button:hover {
	background-color: #e64d15 !important;
	border-color: #e64d15 !important;
	color: #ffffff !important;
}

/* buy now: ink */
body.single-product .wd-buy-now-btn,
body.single-product .single_buy_now,
body.single-product .wd-add-btn .buy-now-btn {
	background-color: #0b1522 !important;
	border-color: #0b1522 !important;
	color: #ffffff !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	min-height: 48px !important;
}

/* quantity stepper */
body.single-product .quantity input[type="number"] {
	border-radius: 999px !important;
	border-color: #d9e1ea !important;
	height: 48px !important;
	font-weight: 600;
}

/* breadcrumb strip is an Elementor block on the product template (olive in the
   demo skin) - neutralise it */
body.single-product .elementor-element-ebb5b7d {
	background: #ffffff !important;
	background-image: none !important;
	border-bottom: 1px solid #e2e8f0 !important;
}
body.single-product .elementor-element-ebb5b7d .wd-breadcrumbs,
body.single-product .elementor-element-ebb5b7d .wd-breadcrumbs a {
	color: #5b6b7f !important;
	font-size: 13px !important;
}
body.single-product .elementor-element-ebb5b7d .wd-breadcrumbs a:hover { color: #ff5a1f !important; }

/* price: cover the wrappers Woodmart uses on the single-product summary */
body.single-product .wd-product-info .price,
body.single-product .wd-product-info .price bdi,
body.single-product .wd-product-info .price .amount,
body.single-product .product-info .price,
body.single-product .entry-summary .price,
body.single-product .entry-summary .price bdi {
	color: #ff5a1f !important;
	font-weight: 800;
}

/* price lives inside Woodmart's single-product Elementor widget, not .summary */
body.single-product .wd-single-price p.price,
body.single-product .wd-single-price .price,
body.single-product .wd-single-price .woocommerce-Price-amount,
body.single-product .wd-single-price .woocommerce-Price-amount bdi {
	color: #ff5a1f !important;
	font-weight: 800 !important;
	font-size: 32px !important;
}


/* -------------------------------------------------------------------------
 * sl-archive-visual: the shop archive should read like the homepage cards
 * ---------------------------------------------------------------------- */
body.post-type-archive-product .wd-page-title {
	background: #ffffff !important;
	background-image: none !important;
	border-bottom: 1px solid #e2e8f0 !important;
	padding: 26px 0 22px !important;
	color: #0b1522 !important;
}
body.post-type-archive-product .wd-page-title h1,
body.post-type-archive-product .wd-page-title .title {
	color: #0b1522 !important;
	font-size: 34px !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}
body.post-type-archive-product .wd-page-title .wd-breadcrumbs,
body.post-type-archive-product .wd-page-title .wd-breadcrumbs a,
body.post-type-archive-product .wd-page-title a {
	color: #5b6b7f !important;
	font-size: 13px !important;
}

/* category chips */
.sl-cat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
}
.sl-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #22364e;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
}
.sl-cat-chip span {
	color: #8a97a6;
	font-weight: 500;
	font-size: 11.5px;
}
.sl-cat-chip:hover { border-color: #ff5a1f; color: #ff5a1f; }
.sl-cat-chip.is-active { background: #0b1522; border-color: #0b1522; color: #fff; }
.sl-cat-chip.is-active span { color: #b9c4d0; }

/* product cards: border, image plate, left aligned text, MOQ pill */
body.post-type-archive-product ul.products li.product {
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	padding: 0 0 16px !important;
}
body.post-type-archive-product ul.products li.product .wd-product-thumb {
	background: #f6f7f9;
	padding: 14px;
	border-radius: 15px 15px 0 0;
}
body.post-type-archive-product ul.products li.product .wd-product-thumb img {
	object-fit: contain !important;
	height: 236px;
	width: 100%;
}
body.post-type-archive-product ul.products li.product .product-details,
body.post-type-archive-product ul.products li.product .wd-product-details {
	text-align: left !important;
	padding: 0 16px;
}
body.post-type-archive-product ul.products li.product h3,
body.post-type-archive-product ul.products li.product .wd-entities-title {
	text-align: left !important;
	font-size: 14.5px !important;
	line-height: 1.45 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
}
body.post-type-archive-product ul.products li.product .wd-product-cats,
body.post-type-archive-product ul.products li.product .wd-product-cats a {
	text-align: left !important;
	font-size: 11.5px !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a97a6 !important;
}
body.post-type-archive-product .sl-loop-moq {
	display: inline-block !important;
	width: auto !important;
	margin: 8px 0 6px !important;
	text-align: left;
}
body.post-type-archive-product ul.products li.product .price {
	display: block;
	text-align: left !important;
	color: #ff5a1f !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	margin: 4px 0 0 !important;
}

/* cart-notice banner on the archive: slim brand-tinted bar instead of a yellow block */
body.post-type-archive-product .woocommerce-notices-wrapper ul.woocommerce-error,
body.post-type-archive-product .woocommerce-notices-wrapper ul.woocommerce-info {
	background: #fff5f0 !important;
	border: 1px solid #ffd9c7 !important;
	border-left: 3px solid #ff5a1f !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	color: #5b3a2a !important;
	font-size: 13.5px !important;
}
body.post-type-archive-product .woocommerce-notices-wrapper ul.woocommerce-error li,
body.post-type-archive-product .woocommerce-notices-wrapper ul.woocommerce-info li {
	color: #5b3a2a !important;
}


/* -------------------------------------------------------------------------
 * sl-archive-fix: Woodmart renders the archive through Elementor widgets, so
 * the earlier `ul.products` selectors never matched. Correct targets below.
 * ---------------------------------------------------------------------- */
/* olive title band */
body.post-type-archive-product .elementor-element-ca40fb8,
body.tax-product_cat .elementor-element-ca40fb8 {
	background: #ffffff !important;
	background-image: none !important;
	border-bottom: 1px solid #e2e8f0 !important;
}
body.post-type-archive-product .wd-woo-page-title .entry-title,
body.post-type-archive-product .wd-woo-page-title .title {
	color: #0b1522 !important;
	font-size: 34px !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}
body.post-type-archive-product .wd-woo-page-title .wd-breadcrumbs,
body.post-type-archive-product .wd-woo-page-title .wd-breadcrumbs a {
	color: #5b6b7f !important;
	font-size: 13px !important;
}

/* cards */
body.post-type-archive-product .products.wd-products {
	gap: 18px;
}
body.post-type-archive-product .products.wd-products .wd-product {
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	padding-bottom: 16px;
}
body.post-type-archive-product .products.wd-products .wd-product .wd-product-thumb {
	background: #f6f7f9;
	padding: 14px;
	border-radius: 15px 15px 0 0;
}
body.post-type-archive-product .products.wd-products .wd-product .wd-product-thumb img {
	object-fit: contain !important;
	height: 236px !important;
	width: 100% !important;
}
body.post-type-archive-product .products.wd-products .wd-product .product-element-bottom,
body.post-type-archive-product .products.wd-products .wd-product .wd-product-info {
	padding: 0 16px;
	text-align: left !important;
}
body.post-type-archive-product .products.wd-products .wd-product .wd-entities-title,
body.post-type-archive-product .products.wd-products .wd-product .wd-entities-title a {
	text-align: left !important;
	font-size: 14.5px !important;
	line-height: 1.45 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
	color: #0b1522 !important;
}
body.post-type-archive-product .products.wd-products .wd-product .wd-product-cats,
body.post-type-archive-product .products.wd-products .wd-product .wd-product-cats a {
	text-align: left !important;
	font-size: 11.5px !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a97a6 !important;
}
body.post-type-archive-product .products.wd-products .sl-loop-moq {
	display: inline-block !important;
	width: auto !important;
	margin: 8px 0 6px !important;
}
body.post-type-archive-product .products.wd-products .wd-product .price {
	display: block;
	text-align: left !important;
	color: #ff5a1f !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	margin: 4px 0 0 !important;
}

/* archive: neutralise the whole olive header band and keep its text dark */
body.post-type-archive-product .elementor-element-095a1ca,
body.tax-product_cat .elementor-element-095a1ca {
	background: #ffffff !important;
	background-image: none !important;
	border-bottom: 1px solid #e2e8f0 !important;
}
body.post-type-archive-product .elementor-element-095a1ca *,
body.tax-product_cat .elementor-element-095a1ca * {
	color: #33475f !important;
}
body.post-type-archive-product .elementor-element-095a1ca .entry-title,
body.post-type-archive-product .elementor-element-095a1ca .title {
	color: #0b1522 !important;
}

/* MOQ badge is a flex item inside the card column: blockification stretches it,
   so opt out of the stretch explicitly */
body.post-type-archive-product .products.wd-products .sl-loop-moq,
body.tax-product_cat .products.wd-products .sl-loop-moq {
	align-self: flex-start !important;
	display: inline-block !important;
	width: auto !important;
}

/* archive canvas: the Woodmart demo paints it beige; keep the catalogue neutral */
body.post-type-archive-product .wd-page-content.main-page-wrapper,
body.tax-product_cat .wd-page-content.main-page-wrapper {
	background: #ffffff !important;
}
/* give the toolbar a quiet divider instead of a colour band */
body.post-type-archive-product .elementor-element-095a1ca { margin-bottom: 18px; }

/* mobile: category chips scroll in one row instead of stacking three deep */
@media (max-width: 767px) {
	.sl-cat-chips {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
		margin-right: -16px;
		padding-right: 16px;
		scrollbar-width: none;
	}
	.sl-cat-chips::-webkit-scrollbar { display: none; }
	.sl-cat-chip { flex: 0 0 auto; }
}

/* filter controls: give the two dropdowns a control look */
body.post-type-archive-product .woocommerce-ordering select,
body.post-type-archive-product select.orderby,
body.tax-product_cat .woocommerce-ordering select {
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	background: #fff !important;
	padding: 10px 36px 10px 14px !important;
	font-size: 13.5px !important;
	color: #22364e !important;
	min-height: 44px;
}

/* archive notice: the theme's warning icon sits on top of the first character */
body.post-type-archive-product .woocommerce-notices-wrapper ul.woocommerce-error,
body.post-type-archive-product .woocommerce-notices-wrapper ul.woocommerce-info {
	position: relative;
	padding-left: 46px !important;
}
body.post-type-archive-product .woocommerce-notices-wrapper ul.woocommerce-error::before,
body.post-type-archive-product .woocommerce-notices-wrapper ul.woocommerce-info::before {
	left: 16px !important;
	top: 50% !important;
	transform: translateY(-50%);
}

/* -------------------------------------------------------------------------
 * sl-theme-tokens: Woodmart ships a tan primary and an olive "alternative"
 * colour; both show up in places we do not style individually (cart, checkout,
 * wishlist, page title bars). Re-point the tokens at the brand palette.
 * ---------------------------------------------------------------------- */
:root {
	--wd-primary-color: #ff5a1f;
	--btn-accented-bgcolor: #ff5a1f;
	--btn-accented-bgcolor-hover: #e64d15;
	--wd-link-color: #0b1522;
	--wd-link-color-hover: #ff5a1f;
}

/* page title bars across WooCommerce pages */
body.woocommerce .wd-page-title,
body.woocommerce-cart .wd-page-title,
body.woocommerce-checkout .wd-page-title,
body.woocommerce-account .wd-page-title {
	background: #0b1522 !important;
	background-image: none !important;
	border-bottom: 1px solid #0b1522 !important;
}
body.woocommerce .wd-page-title .entry-title,
body.woocommerce .wd-page-title a,
body.woocommerce .wd-page-title {
	color: #ffffff !important;
}

/* checkout progress: cart / checkout / complete */
.wd-checkout-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wd-checkout-steps li,
.wd-checkout-steps .step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #8fa2b8;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.wd-checkout-steps li.is-active,
.wd-checkout-steps .step.is-active,
.wd-checkout-steps li.active {
	color: #ff5a1f;
}
.wd-checkout-steps li a { color: inherit; }

/* cart page furniture */
body.woocommerce-cart,
body.woocommerce-cart .wd-page-wrapper,
body.woocommerce-cart .main-page-wrapper,
body.woocommerce-cart .wd-page-content {
	background: #ffffff !important;
}
body.woocommerce-cart .woocommerce-cart-form {
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 8px 20px;
	background: #fff;
}
body.woocommerce-cart .cart-totals,
body.woocommerce-cart .cart_totals {
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	padding: 4px 22px 22px;
}
body.woocommerce-cart .checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a {
	border-radius: 999px !important;
	font-weight: 700 !important;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
body.woocommerce-cart button[name="apply_coupon"] {
	border-radius: 999px !important;
	font-weight: 600 !important;
}
body.woocommerce-cart .quantity input[type="number"] {
	border-radius: 10px !important;
}


/* -------------------------------------------------------------------------
 * sl-radii-pass: pull the odd radius values back onto the token set.
 * 999px = pill, 16px = card, 10px = control, 8px = chip.
 * ---------------------------------------------------------------------- */
:root {
	--sl-radius-card: 16px;
	--sl-radius-control: 10px;
	--sl-radius-chip: 8px;
	--sl-radius-pill: 999px;
}

/* blog + checkout still carried the demo beige canvas */
body.blog .wd-page-content.main-page-wrapper,
body.blog .main-page-wrapper,
body.archive .wd-page-content.main-page-wrapper,
body.woocommerce-checkout .wd-page-content.main-page-wrapper,
body.woocommerce-checkout .main-page-wrapper {
	background: #ffffff !important;
}

/* images inside Elementor cards: 14px -> token 16px */
.elementor-widget-image img,
.elementor-image img {
	border-radius: var(--sl-radius-card);
}

/* form controls: one background and one radius */
.sl-rfq input[type="text"],
.sl-rfq input[type="email"],
.sl-rfq input[type="number"],
.sl-rfq textarea,
body.single-product .quantity input[type="number"] {
	background: #f6f7f9 !important;
	border-color: #e2e8f0 !important;
	border-radius: var(--sl-radius-control) !important;
}

/* WooCommerce small controls snapped to 8px */
.woocommerce .coupon input[type="text"],
.woocommerce .coupon .button {
	border-radius: var(--sl-radius-chip) !important;
}

/* -------------------------------------------------------------------------
 * sl-token-force: Woodmart prints its design tokens as an inline <style> after
 * the theme stylesheet, so a plain :root override loses. Use html:root (higher
 * specificity) and also pin the components that read the tan accent.
 * ---------------------------------------------------------------------- */
html:root,
html body {
	--wd-primary-color: #ff5a1f;
	--btn-accented-bgcolor: #ff5a1f;
	--btn-accented-bgcolor-hover: #e64d15;
	--wd-link-color: #0b1522;
	--wd-link-color-hover: #ff5a1f;
	--wd-alternative-color: #0b1522;
}

body .btn-accent,
body .btn-accented,
body .button.btn-accent,
body .btn.btn-accent,
body .wd-btn-accent {
	background-color: #ff5a1f !important;
	border-color: #ff5a1f !important;
	color: #ffffff !important;
}
body .btn-accent:hover,
body .btn-accented:hover {
	background-color: #e64d15 !important;
	border-color: #e64d15 !important;
	color: #ffffff !important;
}

/* page title bar (blog, archives, any remaining page using the alternative colour) */
body .wd-page-title {
	background: #0b1522 !important;
	background-image: none !important;
	border-bottom: 1px solid #0b1522 !important;
}
body .wd-page-title,
body .wd-page-title .entry-title,
body .wd-page-title h1,
body .wd-page-title a {
	color: #ffffff !important;
}
body .wd-page-title .wd-breadcrumbs,
body .wd-page-title .woocommerce-breadcrumb,
body .wd-page-title .wd-breadcrumbs a {
	color: #b9c4d0 !important;
	font-size: 13px !important;
}

/* blog archive header is an Elementor block with the olive alternative colour */
body .elementor-element-55c69e0 {
	background: #0b1522 !important;
	background-image: none !important;
}
body .elementor-element-55c69e0 .entry-title,
body .elementor-element-55c69e0 .title,
body .elementor-element-55c69e0 a {
	color: #ffffff !important;
}
body .elementor-element-55c69e0 .wd-breadcrumbs,
body .elementor-element-55c69e0 .wd-breadcrumbs a {
	color: #b9c4d0 !important;
	font-size: 13px !important;
}

/* palette tidy: required marks and form surfaces */
body.woocommerce-checkout .validate-required .required,
body .woocommerce .required {
	color: #ff5a1f !important;
	border-color: #ff5a1f !important;
}
.sl-rfq input,
.sl-rfq textarea,
.sl-rfq select {
	background: #f6f7f9 !important;
	border-color: #e2e8f0 !important;
}

/* checkout / cart notices: brand-tinted bar instead of the theme yellow */
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message {
	background: #fff5f0 !important;
	border: 1px solid #ffd9c7 !important;
	border-left: 3px solid #ff5a1f !important;
	border-radius: 10px !important;
	color: #5b3a2a !important;
	padding: 14px 18px !important;
}
body.woocommerce-checkout .woocommerce-error::before,
body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before,
body.woocommerce-cart .woocommerce-info::before {
	color: #ff5a1f !important;
}
body.woocommerce-checkout .woocommerce-error li,
body.woocommerce-checkout .woocommerce-info li {
	color: #5b3a2a !important;
}


/* cart related-products carousel arrows sat outside the viewport on mobile */
@media (max-width: 767px) {
	body.woocommerce-cart .related,
	body.woocommerce-cart .wd-carousel-container {
		overflow: hidden !important;
	}
	body.woocommerce-cart .wd-carousel-container .wd-btn-arrow {
		display: none !important;
	}
}


/* -------------------------------------------------------------------------
 * sl-filters-44: make the catalogue filter controls look like controls, and
 * give the header icons / footer links a 44px tap target on phones.
 * ---------------------------------------------------------------------- */
body.post-type-archive-product .wd-product-filters,
body.tax-product_cat .wd-product-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	border: 0 !important;
}
body.post-type-archive-product .wd-pf-title,
body.tax-product_cat .wd-pf-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 11px 16px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #22364e !important;
	font-size: 13.5px !important;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
body.post-type-archive-product .wd-pf-title::after,
body.tax-product_cat .wd-pf-title::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 2px;
	border-right: 1.6px solid #8a97a6;
	border-bottom: 1.6px solid #8a97a6;
	transform: rotate(45deg) translateY(-2px);
}
body.post-type-archive-product .wd-pf-title:hover,
body.tax-product_cat .wd-pf-title:hover {
	border-color: #ff5a1f !important;
	color: #ff5a1f !important;
}
body.post-type-archive-product .wd-pf-checkboxes,
body.tax-product_cat .wd-pf-checkboxes {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(11, 21, 34, 0.08);
	padding: 14px 16px;
}

@media (max-width: 767px) {
	.sl-footer__col a,
	.sl-footer__legal a {
		display: inline-block;
		padding: 7px 0;
		min-height: 34px;
	}
	body.post-type-archive-product .wd-pf-title,
	body.tax-product_cat .wd-pf-title {
		min-height: 44px;
	}
}

/* chips row: 1px overhang at 390px from the negative margin + border */
@media (max-width: 767px) {
	.sl-cat-chips {
		margin-right: -14px !important;
		padding-right: 14px !important;
		max-width: calc(100% + 14px);
		box-sizing: border-box;
	}
}

/* account, cart and checkout canvases: white like the rest of the site */
body.woocommerce-account .wd-page-content.main-page-wrapper,
body.woocommerce-account .main-page-wrapper,
body.woocommerce-cart .wd-page-content.main-page-wrapper,
body.woocommerce-checkout .wd-page-content.main-page-wrapper {
	background: #ffffff !important;
}
/* account dashboard cards: brand border + radius token */
body.woocommerce-account .woocommerce-MyAccount-content .wd-account-card,
body.woocommerce-account .woocommerce-MyAccount-content > p + div,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-content-item {
	border-radius: 16px !important;
	border-color: #e2e8f0 !important;
}


/* freight note on cart + checkout */
.sl-freight-note {
	display: flex;
	gap: 10px;
	align-items: baseline;
	margin: 0 0 18px;
	padding: 12px 16px;
	background: #fff5f0;
	border: 1px solid #ffd9c7;
	border-left: 3px solid #ff5a1f;
	border-radius: 10px;
	color: #5b3a2a;
	font-size: 13.5px;
	line-height: 1.55;
}
.sl-freight-note strong {
	color: #ff5a1f;
	white-space: nowrap;
}

/* freight note sits inside the payment widget on the checkout builder */
body.woocommerce-checkout .sl-freight-note {
	margin: 0 0 16px !important;
}
