/*
Theme Name: JR Tools
Theme URI: https://jrtools.local
Author: JR Tools
Author URI: https://jrtools.local
Description: Complete JR Tools WooCommerce storefront. Homepage, shop, product, cart, checkout, and payment. Requires WooCommerce. No parent theme required.
Version: 4.1.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mian-sajid-tools
Tags: e-commerce, woocommerce, two-columns, custom-menu, featured-images, theme-options
*/

:root {
	--ink: #111827;
	--ink-2: #1f2937;
	--steel: #4b5563;
	--muted: #6b7280;
	--orange: #f97316;
	--orange-d: #ea580c;
	--yellow: #ffc107;
	--bg: #e8eef6;
	--page: #ffffff;
	--white: #ffffff;
	--line: #e5e7eb;
	--soft: #f3f4f6;
	--ok: #2e7d32;
	--danger: #c62828;
	--info: #1565c0;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	--shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
	--font-h: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-b: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
	--max: 100%;
	--header-z: 40;

	/* Layout & sizing — admin-editable via Customize > JRTOOLS Site Content
	   > Layout & Sizing (see msj_tools_layout_inline_css() in functions.php).
	   Values here are the shipped defaults; that inline <style> overrides
	   them only when an admin changes a setting away from its default. */
	--gutter: 40px;
	--gutter-mobile: 16px;
	--hero-height: 320px;
	--hero-height-desktop: 520px;
	--banner-height: 140px;
	--banner-height-desktop: 200px;
	--cat-card-height: 72px;
	--cat-card-height-desktop: 84px;
	--product-img-height: 160px;
	--product-img-height-desktop: 220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-b);
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
	font-family: var(--font-h);
	text-transform: none;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--ink);
}
.col-full, .wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }

#page {
	background: var(--page);
	min-height: 100vh;
	overflow-x: hidden;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}
#content {
	flex: 1 0 auto;
}
body.home #content .col-full {
	padding-top: 8px;
	padding-bottom: 8px;
}

/* Hide leftover Storefront chrome */
.storefront-primary-navigation,
.storefront-handheld-footer-bar,
.msj-top-bar,
.msj-header .main-navigation,
.msj-header .menu-toggle,
.site-header-cart,
.storefront-breadcrumb,
.home .storefront-breadcrumb,
.home .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb,
body.single-product .storefront-breadcrumb {
	display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.button,
.btn,
a.button,
button.button,
input.button,
#respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	font-family: var(--font-b);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	background: var(--orange);
	color: #fff;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button:hover, .btn:hover,
a.button:hover, button.button:hover, input.button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce #place_order:hover {
	background: var(--orange-d);
	color: #fff;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--orange); }
.btn-ghost, .msj-chat-with-seller {
	background: transparent;
	color: #fff;
	border: 1px solid #6a6a6a;
}
.btn-ghost:hover, .msj-chat-with-seller:hover { border-color: #fff; background: transparent; }
.btn-outline {
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: #fff; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #f3c4c4; }
.btn-danger:hover { background: #fff; color: var(--danger); }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */
.msj-top-bar { display: none; }
.site-header.msj-header {
	position: sticky;
	top: 0;
	z-index: var(--header-z);
	background: var(--white);
	border-bottom: 1px solid var(--line);
	padding: 10px 0 14px;
}
.msj-header .col-full { width: min(100% - (var(--gutter) * 2), var(--max)); }
.msj-header-row-1 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 0 10px;
}
.msj-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--ink);
}
.msj-logo-mark {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	background: var(--orange);
	color: #fff;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}
.msj-logo-word {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.msj-logo-word span { color: var(--orange); }
.msj-logo--custom { display: flex; align-items: center; min-width: 0; }
.msj-logo--custom .custom-logo-link { display: flex; align-items: center; }
.msj-logo--custom img { max-height: 40px; width: auto; display: block; }

.msj-header-icons { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.msj-header-icons a.msj-cart-contents,
.msj-header-icons .msj-account-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--ink-2);
	border-radius: 10px;
}
.msj-header-icons svg { width: 22px; height: 22px; }
.msj-header-icons a:hover { color: var(--orange); }
.msj-header-icons .msj-icon-label { display: none; }
.msj-header-icons .count {
	position: absolute;
	top: 4px;
	right: 4px;
	background: var(--orange);
	color: #fff;
	min-width: 16px;
	height: 16px;
	border-radius: 99px;
	font-size: 10px;
	font-weight: 700;
	display: grid;
	place-items: center;
	padding: 0 4px;
	line-height: 1;
}

.msj-header-row-2 { padding: 0; }
.msj-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	background: #f3f4f6;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0 6px 0 14px;
	min-height: 44px;
}
.msj-search:focus-within {
	background: #fff;
	border-color: #fdba74;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.msj-search-btn {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: #9ca3af;
	flex-shrink: 0;
}
.msj-search input[type="search"] {
	flex: 1;
	border: 0;
	background: transparent;
	min-height: 44px;
	padding: 0 12px 0 0;
	outline: none;
	color: var(--ink);
	-webkit-appearance: none;
}
.msj-search input[type="search"]::placeholder { color: #9ca3af; }
.msj-search input[type="search"]::-webkit-search-decoration,
.msj-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.msj-search-wrap { position: relative; width: 100%; }
.msj-search-suggest {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
	max-height: 360px;
	overflow-y: auto;
	padding: 6px;
}
.msj-search-suggest-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}
.msj-search-suggest-item:hover,
.msj-search-suggest-item.is-active {
	background: #f3f4f6;
}
.msj-search-suggest-thumb {
	width: 40px;
	height: 40px;
	object-fit: contain;
	background: #f9fafb;
	border-radius: 6px;
	flex-shrink: 0;
}
.msj-search-suggest-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.msj-search-suggest-title {
	font-size: 0.875rem;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.msj-search-suggest-price {
	font-size: 0.8125rem;
	color: #f97316;
	font-weight: 600;
}
.msj-search-suggest-empty {
	padding: 12px;
	font-size: 0.875rem;
	color: #9ca3af;
	text-align: center;
}

.msj-cat-bar { display: none; }

/* -------------------------------------------------------------------------- */
/* Categories mega-sheet                                                      */
/* -------------------------------------------------------------------------- */
.msj-cat-sheet {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: var(--bg);
	display: none;
	flex-direction: column;
}
.msj-cat-sheet.is-open { display: flex; }
.msj-cat-sheet__head {
	background: var(--ink);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border-bottom: 3px solid var(--orange);
}
.msj-cat-sheet__head h2 { color: #fff; font-size: 1.05rem; margin: 0; }
.msj-cat-sheet__close {
	background: none; border: 0; color: #fff;
	width: 44px; height: 44px; display: grid; place-items: center;
	font-size: 1.4rem;
}
.msj-cat-sheet__body { overflow: auto; flex: 1; padding: 12px; }
.msj-cat-dir {
	display: grid;
	grid-template-columns: 110px 1fr;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	min-height: 70vh;
	overflow: hidden;
}
.msj-cat-l1 { background: var(--bg); border-right: 1px solid var(--line); }
.msj-cat-l1 button {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	width: 100%; padding: 14px 8px;
	background: none; border: 0; border-left: 3px solid transparent;
	font-size: 0.72rem; font-weight: 600; color: var(--steel); text-align: center;
}
.msj-cat-l1 button.is-active {
	background: #fff;
	border-left-color: var(--orange);
	color: var(--ink);
}
.msj-cat-l1 img {
	width: 44px; height: 44px; border-radius: 50%;
	object-fit: cover; background: #fff;
}
.msj-cat-l2 { padding: 16px; }
.msj-cat-l2-panel { display: none; }
.msj-cat-l2-panel.is-active { display: block; }
.msj-cat-l2-panel h3 { font-size: 0.95rem; margin: 0 0 12px; }
.msj-cat-l2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.msj-cat-l2-grid a {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 10px 6px; background: var(--bg); border-radius: var(--radius);
	font-size: 0.72rem; font-weight: 600; text-align: center; color: var(--ink);
}
.msj-cat-l2-grid img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }

/* -------------------------------------------------------------------------- */
/* Home page                                                                  */
/* -------------------------------------------------------------------------- */
.msj-hero {
	position: relative;
	height: auto;
	min-height: var(--hero-height);
	background:
		linear-gradient(105deg, #1c2433 0%, #243044 42%, #6b4524 78%, #8a5a2b 100%)
		center / cover no-repeat;
	background-position: center;
	color: #fff;
	display: block;
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	margin: 6px 0 12px;
}
.msj-hero:has(.msj-hero-photo) {
	background: #111827;
}
.msj-hero-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: var(--hero-img-fit, contain);
	object-position: center;
}
.msj-hero::after { display: none; }
.msj-hero--full,
.msj-hero-carousel.msj-hero--full,
.msj-banner-strip.msj-hero--full {
	width: calc(100% + (var(--gutter) * 2));
	max-width: none;
	margin-left: calc(var(--gutter) * -1);
	margin-right: calc(var(--gutter) * -1);
	border-radius: 0;
}
.msj-hero--boxed,
.msj-hero-carousel.msj-hero--boxed,
.msj-banner-strip.msj-hero--boxed {
	max-width: 720px;
	width: 100%;
	margin-inline: auto;
	border-radius: 14px;
}
.editor-styles-wrapper .msj-hero--full,
.editor-styles-wrapper .msj-hero-carousel.msj-hero--full,
.editor-styles-wrapper .msj-banner-strip.msj-hero--full {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}
.msj-hero-inner {
	position: relative;
	z-index: 1;
	padding: 16px 14px;
	max-width: 640px;
	width: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--hero-height);
}
.msj-hero:has(.msj-hero-photo) .msj-hero-inner {
	position: absolute;
	inset: 0;
	min-height: 0;
}
.msj-hero-inner.is-empty { display: none; }
.msj-hero-eyebrow {
	margin: 0 0 6px;
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: inherit;
	opacity: 0.72;
}
.msj-hero h1, .msj-hero h2 {
	color: inherit;
	font-size: 1.22rem;
	line-height: 1.2;
	margin: 0 0 6px;
	font-weight: 700;
	letter-spacing: -0.03em;
	max-width: none;
}
.msj-hero p {
	color: inherit;
	opacity: 0.78;
	max-width: 42ch;
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.4;
}
.msj-hero-cta { margin-top: 12px; }

/* Hero carousel */
.msj-hero-carousel {
	position: relative;
	overflow: hidden;
	height: auto;
	min-height: 0;
	margin-top: 0;
	margin-bottom: 12px;
	touch-action: pan-y;
}
.msj-hero-carousel .msj-hero {
	margin: 0;
	border-radius: inherit;
	height: var(--hero-height);
	min-height: var(--hero-height);
}
.msj-hero-track {
	display: flex;
	height: 100%;
	transition: transform 0.55s ease;
	will-change: transform;
}
.msj-hero-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	height: 100%;
	display: flex;
}
.msj-hero-align-center .msj-hero-inner { margin-inline: auto; text-align: center; }
.msj-hero-align-right .msj-hero-inner { margin-inline-start: auto; text-align: right; }

.msj-hero-slide--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	align-items: center;
	gap: 32px;
	background-image: none;
}
.msj-hero-slide--split .msj-hero-media {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.msj-hero-slide--split .msj-hero-media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}
@media (max-width: 767px) {
	.msj-hero-slide--split {
		grid-template-columns: 1fr;
	}
	.msj-hero-slide--split .msj-hero-media {
		display: flex;
		position: absolute;
		inset: 0;
		padding: 0;
	}
	.msj-hero-slide--split .msj-hero-media img {
		width: 100%;
		height: 100%;
		max-height: none;
		object-fit: cover;
	}
	.msj-hero-slide--split .msj-hero-inner:not(.is-empty) {
		z-index: 1;
		padding: 14px 12px;
		background: linear-gradient(to top, rgba(0,0,0,.45), transparent 70%);
		justify-content: flex-end;
	}
}
.msj-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	display: grid;
	place-items: center;
	cursor: pointer;
	z-index: 2;
}
.msj-hero-arrow:hover { background: rgba(0, 0, 0, 0.55); }
.msj-hero-prev { left: 8px; }
.msj-hero-next { right: 8px; }
.msj-hero-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 2;
}
.msj-hero-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.5);
	padding: 0;
	cursor: pointer;
}
.msj-hero-dot.is-active { background: #fff; }

.msj-cat-strip {
	display: flex;
	gap: 18px;
	padding: 4px 2px 12px;
	background: transparent;
	border: 0;
	max-width: none;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}
.msj-cat-card {
	flex: 0 0 auto;
	width: calc(var(--cat-card-height) + 12px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	color: var(--ink);
	text-align: center;
	scroll-snap-align: start;
}
.msj-cat-icon {
	width: var(--cat-card-height);
	height: var(--cat-card-height);
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #f7f8fa;
	border: 1px solid #eef0f3;
	overflow: hidden;
}
.msj-cat-icon svg { width: 55%; height: 55%; }
.msj-cat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.msj-cat-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
	max-width: calc(var(--cat-card-height) + 12px);
}
.msj-cat-card:hover .msj-cat-icon { border-color: #fdba74; background: #fff7ed; }

.msj-banner-strip {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	padding: 10px 0 6px;
}
.msj-banner-item {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	line-height: 0;
}
.msj-banner-item img { width: 100%; height: auto; display: block; }
.msj-banner-strip--carousel {
	display: block;
	position: relative;
	overflow: hidden;
	height: auto;
	padding: 0;
	margin-top: 10px;
	margin-bottom: 12px;
}
.msj-banner-strip--carousel .msj-hero-track { height: auto; }
.msj-banner-strip--carousel .msj-banner-item {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	height: auto;
	margin: 0;
	border-radius: inherit;
	box-shadow: none;
}
.msj-banner-strip--carousel .msj-banner-item img {
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
	display: block;
}

/* Home page Smart Slider: the slide frame was shorter than the artwork, so Fill cropped it. */
.n2-ss-slider .n2-ss-slide-background-image img,
.n2-ss-slider .n2-ss-slide-background picture img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain !important;
	object-position: center center !important;
}

.msj-home-extra { padding: 12px 0 24px; }
.msj-home-extra > *:first-child { margin-top: 0; }

.msj-product-rail { padding: 18px 0 4px; background: transparent; }
.msj-product-rail:nth-child(odd) { background: transparent; }
.msj-related-products { margin-top: 32px; border-top: 1px solid #e5e7eb; }
.msj-rail-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 0 0 12px;
}
.msj-rail-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.msj-see-all {
	color: var(--orange);
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}
.msj-see-all:hover { color: var(--orange-d); }

.msj-rail-grid,
ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 14px 12px;
	padding: 0 0 8px !important;
	max-width: none;
	margin: 0 !important;
	list-style: none;
	float: none !important;
	width: 100% !important;
}
ul.products::before, ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last { clear: none !important; }

.msj-load-more-wrap {
	padding: 10px 0 18px;
}
.msj-load-more,
button.msj-load-more,
.msj-listing-load-more {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff !important;
	color: var(--ink) !important;
	font-family: var(--font-b);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
.msj-load-more:hover,
button.msj-load-more:hover {
	border-color: #d1d5db;
	background: var(--soft) !important;
}

/* -------------------------------------------------------------------------- */
/* Product card                                                               */
/* -------------------------------------------------------------------------- */
.woocommerce ul.products li.product,
.msj-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	display: flex;
	flex-direction: column;
	box-shadow: none;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	float: none !important;
	text-align: left;
}
.woocommerce ul.products li.product:hover, .msj-card:hover { box-shadow: none; }
.msj-card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: var(--ink);
	gap: 0;
	background: #f6f7f9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
}
.msj-card-img {
	position: relative;
	isolation: isolate;
	aspect-ratio: auto;
	width: 100%;
	height: var(--product-img-height, 160px);
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	overflow: hidden;
}
.msj-card-img img,
.woocommerce ul.products li.product .msj-card-img img {
	position: static;
	z-index: 1;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	aspect-ratio: auto;
	object-fit: contain !important;
	object-position: center;
	display: block;
	margin: 0 !important;
}
.msj-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	pointer-events: none;
	background: var(--orange);
	color: #fff;
	font-family: var(--font-b);
	font-size: 0.68rem;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 6px;
	letter-spacing: 0;
	line-height: 1.2;
}
.msj-card-body {
	padding: 10px 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	background: #f3f4f6;
}
.msj-card-title {
	font-family: var(--font-b);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.15em;
	color: var(--ink);
}
.msj-price-now {
	color: var(--orange);
	font-family: var(--font-b);
	font-size: 0.88rem;
	font-weight: 700;
}
.msj-price-was {
	color: #9ca3af;
	font-size: 0.72rem;
	text-decoration: line-through;
	margin-left: 6px;
	font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Category / listing page                                                    */
/* -------------------------------------------------------------------------- */
body.archive .woocommerce-breadcrumb,
body.woocommerce-shop .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering { display: none !important; }

.msj-page-head { padding: 10px 0 4px; }
.msj-crumbs {
	font-size: 0.75rem;
	color: var(--muted);
	margin: 0 0 6px;
	display: flex;
	gap: 6px;
	align-items: center;
}
.msj-crumbs a { color: var(--muted); }
.msj-crumbs span { color: var(--ink-2); }
.msj-page-head h1 { font-size: 1.35rem; margin: 0; font-weight: 800; letter-spacing: -0.03em; }
.msj-page-head .msj-meta { color: var(--muted); font-size: 0.8rem; margin: 4px 0 0; }

.msj-toolbar {
	display: flex;
	gap: 8px;
	padding: 12px 0 8px;
	overflow: visible;
	flex-wrap: wrap;
}
.msj-chip {
	flex-shrink: 0;
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 99px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ink-2);
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	list-style: none;
}
.msj-chip::-webkit-details-marker { display: none; }
.msj-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.msj-chip.is-on,
.msj-drop[open] > .msj-chip {
	border-color: #fdba74;
	color: var(--orange-d);
	background: #fff7ed;
}

.msj-drop { position: relative; }
.msj-drop-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.msj-drop-panel a,
.msj-drop-panel label {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 0.85rem;
	color: var(--ink);
}
.msj-drop-panel a:hover,
.msj-drop-panel label:hover { background: var(--soft); }
.msj-drop-panel a.is-active { background: #fff7ed; color: var(--orange-d); font-weight: 600; }
.msj-drop-label {
	margin: 4px 10px 6px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.msj-filter-panel .msj-btn { margin: 8px 4px 4px; width: calc(100% - 8px); min-height: 40px; }

.msj-listing-layout { padding: 8px 0 32px; }
.msj-listing-layout .msj-load-more-wrap { padding: 8px 0 0; }
.msj-listing-load-more {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font-weight: 600;
	font-size: 0.9rem;
}
.msj-listing-load-more:hover { background: var(--soft); }

/* -------------------------------------------------------------------------- */
/* Product detail                                                             */
/* -------------------------------------------------------------------------- */
body.single-product .woocommerce-breadcrumb,
body.single-product .storefront-breadcrumb,
body.single-product .entry-header { display: none !important; }
body.single-product #content { padding-bottom: 88px; }

.msj-pdp-layout {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 8px 0 24px;
}
.msj-pdp-gallery {
	position: relative;
	isolation: isolate;
	background: #f5f6f8;
	border-radius: 16px;
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 560px;
	min-height: 0;
	margin-inline: auto;
	display: grid;
	padding: 0;
	overflow: hidden;
	touch-action: pan-y;
}
.msj-gallery-track {
	grid-area: 1 / 1;
	min-height: 0;
	height: 100%;
}
.msj-gallery-slide {
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
.msj-gallery-image {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: none;
	margin: 0;
	object-fit: contain !important;
	object-position: center;
	display: block;
}
.msj-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 2px 8px rgba(15,23,42,0.12);
	display: grid;
	place-items: center;
	padding: 0;
}
.msj-gallery-prev { left: 10px; }
.msj-gallery-next { right: 10px; }
.msj-gallery-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 6px;
}
.msj-gallery-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: #d1d5db;
}
.msj-gallery-dot.is-active { background: var(--orange); width: 16px; }

.msj-zoom-lens {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	border: 2px solid var(--orange);
	background: rgba(249, 115, 22, 0.15);
	pointer-events: none;
	opacity: 0;
	transition: opacity 120ms ease;
}
.msj-pdp-gallery.is-zooming .msj-zoom-lens { opacity: 1; }
.msj-pdp-gallery .msj-gallery-nav,
.msj-pdp-gallery .msj-gallery-dots { z-index: 4; }
.msj-pdp-gallery.is-zooming { cursor: crosshair; }

.msj-zoom-result {
	position: fixed;
	z-index: 200;
	border: 1px solid var(--line);
	border-radius: 16px;
	background-color: #fff;
	background-repeat: no-repeat;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	pointer-events: none;
	transition: opacity 120ms ease;
}
.msj-zoom-result.is-active { opacity: 1; }

@media (max-width: 1279px), (pointer: coarse) {
	.msj-zoom-lens,
	.msj-zoom-result { display: none; }
}

.msj-pdp-info {
	display: flex;
	flex-direction: column;
}
.msj-pdp-info .product_title { order: 1; }
.msj-pdp-price { order: 2; }
.msj-pdp-stock { order: 3; }
.msj-pdp-actions { order: 4; }
.msj-pdp-delivery { order: 5; }
.msj-pdp-return { order: 6; }
.msj-pdp-cart-form { order: 7; }
.msj-reviews-section { order: 8; }
.msj-description-section { order: 9; }
.msj-specifications-section { order: 10; }
.msj-warranty-section { order: 11; }
.msj-faqs-section { order: 12; }

.msj-pdp-info .product_title {
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin: 0 0 10px;
}
.msj-pdp-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}
.msj-pdp-price .msj-price-now {
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--orange);
	letter-spacing: -0.03em;
}
.msj-pdp-price .msj-price-was {
	font-size: 0.95rem;
	color: #9ca3af;
	text-decoration: line-through;
	font-weight: 500;
}
.msj-off-badge {
	background: var(--orange);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 6px;
	letter-spacing: 0.02em;
}

.msj-pdp-stock {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.msj-stock-pill {
	background: #e8f7ee;
	color: #15803d;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 6px;
}
.msj-stock-pill.is-out { background: #fdecea; color: var(--danger); }
.msj-sold-count { color: var(--muted); font-size: 0.82rem; }

.msj-pdp-delivery {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ink);
}
.msj-pdp-delivery strong { color: var(--orange); font-weight: 800; }

.msj-pdp-return { margin: 0 0 16px; }
.msj-pdp-return strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
}
.msj-pdp-return span {
	display: block;
	color: var(--muted);
	font-size: 0.8rem;
	margin-top: 2px;
}

.msj-pdp-actions {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr 1.1fr;
	gap: 8px;
	margin-bottom: 8px;
}
.msj-pdp-cart-form {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
}
.msj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.88rem;
	border: 0;
	white-space: nowrap;
}
.msj-btn-chat {
	background: #f3f4f6;
	color: var(--ink);
	border: 1px solid #e5e7eb;
}
.msj-btn-cart { background: var(--orange); color: #fff; }
.msj-btn-buy { background: #1f2937; color: #fff; }
.msj-btn-chat:hover { background: #e5e7eb; }
.msj-btn-cart:hover { background: var(--orange-d); color: #fff; }
.msj-btn-buy:hover { background: #111827; color: #fff; }

.msj-pdp-section {
	padding: 18px 0 4px;
	border-top: 1px solid var(--line);
	background: transparent;
	margin-top: 16px;
}
.msj-pdp-section h2 {
	font-size: 0.95rem;
	margin: 0 0 12px;
	font-weight: 700;
}
.msj-empty-state { color: var(--muted); font-style: italic; font-size: 0.88rem; }
.msj-pdp-section p { color: var(--steel); font-size: 0.9rem; line-height: 1.55; margin: 0; }

.msj-faq-list { display: flex; flex-direction: column; gap: 8px; }
.msj-faq-item {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 14px;
}
.msj-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ink);
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.msj-faq-item summary::-webkit-details-marker { display: none; }
.msj-faq-item summary::after {
	content: "+";
	font-size: 1.1rem;
	color: var(--muted);
	flex-shrink: 0;
}
.msj-faq-item[open] summary::after { content: "\2212"; }
.msj-faq-item p { margin-top: 8px; }

.msj-review {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 10px;
	padding: 10px 0 12px;
}
.msj-review--hidden { display: none; }
.msj-review-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e5e7eb;
	color: var(--ink-2);
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.85rem;
}
.msj-review-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.msj-review-author { font-size: 0.85rem; }
.msj-stars { color: #d1d5db; letter-spacing: 1px; font-size: 0.78rem; }
.msj-stars .is-on { color: var(--orange); }
.msj-review-content { font-size: 0.85rem; color: var(--steel); margin: 4px 0 0; }
.msj-review-photos { display: flex; gap: 8px; margin-top: 8px; }
.msj-review-photos img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	background: #f3f4f6;
	border-radius: 8px;
	padding: 4px;
}
.msj-see-more-reviews {
	background: none;
	border: 0;
	color: var(--orange);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 4px 0 8px;
	min-height: 0;
}

.msj-specifications-section table.msj-spec,
table.msj-spec {
	width: 100%;
	border-collapse: collapse;
}
table.msj-spec th,
table.msj-spec td {
	text-align: left;
	background: none !important;
	color: var(--ink);
	font-size: 0.88rem;
	font-weight: 400;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
}
table.msj-spec th { color: var(--muted); width: 46%; font-weight: 500; }

.msj-sticky-cart-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 80;
	background: #fff;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: 0.8fr 1.2fr 1.1fr;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	box-shadow: 0 -8px 24px rgba(15,23,42,0.08);
}
.msj-sticky-cart-bar .msj-btn { width: 100%; min-height: 44px; }

.msj-chat-modal[hidden] { display: none; }
.msj-chat-modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60; }
.msj-chat-modal__panel {
	position: fixed; z-index: 61;
	left: 50%; top: 50%; transform: translate(-50%,-50%);
	width: min(92vw, 420px);
	background: #fff; border-radius: var(--radius); padding: 20px;
	max-height: 80vh; overflow: auto;
}
.msj-chat-modal__close {
	position: absolute; top: 8px; right: 8px;
	background: none; border: 0; font-size: 1.4rem; width: 36px; height: 36px;
}

/* -------------------------------------------------------------------------- */
/* Cart                                                                       */
/* -------------------------------------------------------------------------- */
body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-cart .storefront-breadcrumb { display: none !important; }
body.woocommerce-cart #content { padding-bottom: 88px; }

.msj-cart-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0 8px;
}
.msj-cart-head h1 {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}
.msj-cart-hint {
	margin: 0;
	color: var(--muted);
	font-size: 0.82rem;
}

.msj-cart-list { padding: 4px 0 16px; }
.msj-cart-item {
	display: grid;
	grid-template-columns: 22px 64px 1fr;
	gap: 12px;
	align-items: start;
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	margin: 0;
	padding: 16px 0;
	width: auto !important;
	float: none !important;
}
.msj-cart-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 22px 0 0;
	accent-color: var(--orange);
	flex-shrink: 0;
}
.msj-cart-thumb {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	background: #f3f4f6;
	border-radius: 12px;
	overflow: hidden;
}
.msj-cart-item img,
.msj-cart-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	margin: 0 !important;
	background: transparent;
}
.msj-cart-info { min-width: 0; }
.msj-cart-title {
	font-family: var(--font-b);
	font-size: 0.92rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 4px;
}
.msj-cart-title a { text-decoration: none; color: inherit; }
.msj-cart-info .msj-price-now { font-size: 0.95rem; display: block; margin-bottom: 8px; }
.msj-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.msj-qty button {
	width: 36px;
	height: 32px;
	background: #fff;
	border: 0;
	font-size: 1.05rem;
	color: var(--ink);
	min-height: 0;
	padding: 0;
	border-radius: 0;
	line-height: 1;
}
.msj-qty button:disabled { color: #d1d5db; }
.msj-qty span {
	min-width: 28px;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.88rem;
}

.msj-cart-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: center;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	z-index: 30;
}
.msj-cart-bar .msj-btn { width: 100%; min-height: 48px; border-radius: 12px; }
.msj-cart-bar .msj-btn-chat {
	background: #f3f4f6;
	border-color: transparent;
	color: var(--ink);
}

.msj-empty-cart { text-align: center; padding: 72px 24px; }
.msj-empty-cart h2 { margin: 0 0 8px; font-size: 1.4rem; }
.msj-empty-cart p { color: var(--steel); margin-bottom: 18px; }
.msj-empty-cart .msj-btn { min-width: 160px; }

@media (max-width: 899px) {
	body.woocommerce-cart .site-footer,
	body.woocommerce-checkout .site-footer {
		display: none;
	}
	.msj-checkout-guest { text-align: left; }
	body.woocommerce-checkout #content { padding-bottom: 24px; }
}

/* Cart/Checkout/Account pages get their own .msj-page-head inside the
   template override — suppress Storefront's default page title +
   breadcrumb so it isn't shown twice. */
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-account .entry-header,
body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-checkout .woocommerce-breadcrumb,
body.woocommerce-account .woocommerce-breadcrumb {
	display: none;
}

/* -------------------------------------------------------------------------- */
/* Checkout                                                                   */
/* -------------------------------------------------------------------------- */
body.woocommerce-checkout #content { padding-bottom: 24px; }
.msj-checkout-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0 16px;
}
.msj-checkout-head h1 {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}
.msj-checkout-layout {
	display: grid;
	gap: 20px;
	padding: 0 0 32px;
}
.msj-soft-panel {
	background: #f4f5f7;
	border: 0;
	border-radius: 16px;
	padding: 16px 16px 18px;
	margin-bottom: 12px;
}
.msj-soft-panel h2 {
	font-size: 0.95rem;
	margin: 0 0 12px;
	font-weight: 700;
}
.msj-soft-panel .form-row { margin: 0 0 12px; width: 100%; }
.msj-soft-panel .form-row label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--steel);
	display: block;
	margin-bottom: 6px;
}
.msj-soft-panel .form-row .required { color: transparent; }
.msj-soft-panel input.input-text,
.msj-soft-panel select,
.msj-soft-panel textarea {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 12px;
	min-height: 44px;
	background: #fff;
	width: 100%;
	box-shadow: none;
}
.msj-order-items { list-style: none; margin: 0; padding: 0; }
.msj-order-items li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.88rem;
	padding: 3px 0;
	color: var(--ink);
}
.msj-order-note {
	margin: 10px 0 0;
	font-size: 0.75rem;
	color: var(--muted);
	line-height: 1.4;
}
.msj-checkout-aside .msj-totals { padding: 4px 0 12px; }
.msj-totals-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 0.9rem;
	padding: 4px 0;
	color: var(--ink);
}
.msj-totals-row.is-total {
	border-top: 1px solid var(--line);
	margin-top: 6px;
	padding-top: 10px;
	font-weight: 800;
}
.msj-pay-box {
	background: #f4f5f7;
	border-radius: 16px;
	padding: 14px;
}
.msj-pay-box .msj-btn { width: 100%; min-height: 48px; border-radius: 12px; margin-top: 8px; }
#msj-back-delivery[hidden],
#msj-place-proxy[hidden],
#msj-continue-payment[hidden],
[data-msj-step][hidden] { display: none !important; }
.msj-checkout-guest { text-align: right; margin: 0 0 12px; }
.msj-btn-ghost-back {
	background: #fff;
	border: 1px solid var(--line);
	color: var(--ink);
}
.msj-payment .form-row.place-order #place_order,
.msj-payment .form-row.place-order noscript {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
}
.woocommerce-checkout #payment .payment_methods { list-style: none; margin: 0; padding: 0; }
.woocommerce-terms-and-conditions-wrapper { display: none; }

.msj-method,
.msj-wallet {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	margin: 0 0 8px;
	cursor: pointer;
}
.msj-method.is-on,
.msj-wallet.is-on {
	border-color: var(--orange);
	background: #fff7ed;
}
.msj-method.is-disabled { opacity: 0.55; cursor: not-allowed; }
.msj-method input,
.msj-wallet input {
	margin-top: 3px;
	accent-color: var(--orange);
	flex-shrink: 0;
}
.msj-wallet input { position: absolute; opacity: 0; pointer-events: none; }
.msj-method-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msj-method-body strong,
.msj-wallet span { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.msj-wallet span { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.msj-method-body span,
.msj-cod-warn {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--muted);
}
.msj-cod-warn { color: var(--danger); }
.msj-wallet span em {
	font-style: normal;
	font-weight: 500;
	color: var(--muted);
	margin-left: 6px;
}
.msj-wallet-list { margin: 4px 0 12px; }
.msj-promo-field { margin-top: 8px; }
.msj-promo-field > label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--steel);
	margin-bottom: 6px;
}
.msj-promo { display: flex; gap: 8px; }
.msj-promo input {
	flex: 1;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0 12px;
	min-height: 44px;
	background: #fff;
}
.msj-promo .msj-btn { min-height: 44px; width: auto; margin: 0; padding: 0 14px; }
.msj-wc-pay-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
}
.msj-pay-box .msj-order-note { margin-top: 10px; }

.msj-panel {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.msj-panel h2, .msj-panel h3 { font-size: 0.95rem; margin: 0 0 12px; }

.msj-notice, .woocommerce-notices-wrapper .woocommerce-error, .woocommerce-notices-wrapper .woocommerce-message {
	background: #fff8e1; border: 1px solid #ffe082; color: #6d4c00;
	font-size: 0.8rem; padding: 10px 12px; border-radius: 6px; margin: 8px 0 0;
	list-style: none;
}
.woocommerce-notices-wrapper .woocommerce-error {
	background: #fdecea; border-color: #f5c6c2; color: #8a1f1b;
}
.woocommerce-notices-wrapper .woocommerce-message {
	background: #e8f5e9; border-color: #c8e6c9; color: #1b5e20;
}

.msj-payment ul.wc_payment_methods { list-style: none; margin: 0; padding: 0; }
.msj-payment ul.wc_payment_methods > li.wc_payment_method {
	display: block;
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 12px; margin-bottom: 8px;
}
.msj-payment ul.wc_payment_methods > li.wc_payment_method:has(input:checked) {
	border-color: var(--orange); background: #fff7f0;
}
.msj-payment ul.wc_payment_methods input[type="radio"] { accent-color: var(--orange); margin-right: 8px; }
.msj-payment ul.wc_payment_methods label { display: inline; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.msj-payment .payment_box { font-size: 0.8rem; color: var(--muted); padding: 8px 0 0 24px; }

.msj-wallets { display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.msj-wallets.is-visible { display: grid; }
.msj-wallet {
	border: 1px solid var(--line); border-radius: 6px; padding: 10px 6px;
	text-align: center; font-size: 0.75rem; font-weight: 700;
	background: var(--bg);
}
.msj-wallet.is-on { border-color: var(--orange); background: #fff7f0; color: var(--orange-d); }

.msj-promo { display: flex; gap: 8px; margin-top: 8px; }
.msj-promo input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; min-height: 44px; }

table.shop_table.woocommerce-checkout-review-order-table { width: 100%; font-size: 0.9rem; border-collapse: collapse; }
table.shop_table.woocommerce-checkout-review-order-table th,
table.shop_table.woocommerce-checkout-review-order-table td { padding: 6px 0; border: 0; }
table.shop_table.woocommerce-checkout-review-order-table tr.order-total th,
table.shop_table.woocommerce-checkout-review-order-table tr.order-total td {
	font-family: var(--font-h); font-size: 1.2rem; color: var(--orange-d);
	border-top: 1px solid var(--line); padding-top: 10px;
}

.msj-confirm-bar {
	position: fixed; bottom: 0; left: 0; right: 0;
	background: #fff; border-top: 1px solid var(--line);
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	z-index: 30;
}
.msj-confirm-bar #place_order { width: 100%; }

/* Confirmation / order-received */
.msj-ship-to { margin-top: 8px; line-height: 1.45; }
.msj-track { display: grid; gap: 0; margin-top: 8px; }
.msj-step { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.msj-step .msj-dot {
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--line); margin-top: 4px; position: relative;
}
.msj-step .msj-dot::after {
	content: ""; position: absolute; left: 6px; top: 14px; width: 2px; height: calc(100% + 14px);
	background: var(--line);
}
.msj-step:last-child .msj-dot::after { display: none; }
.msj-step.is-now .msj-dot { background: var(--orange); box-shadow: 0 0 0 4px #ffe0c2; }
.msj-step h4 { font-family: var(--font-b); text-transform: none; letter-spacing: 0; font-size: 0.9rem; margin: 0; }
.msj-step p { color: var(--muted); font-size: 0.8rem; margin: 2px 0 16px; }

/* Account */
.msj-acct-list { background: #fff; border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.msj-acct-list li { border-bottom: 1px solid var(--line); }
.msj-acct-list a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 16px; font-weight: 600;
}
.msj-acct-list a span { color: var(--muted); font-weight: 400; }

/* Footer */
.site-footer.msj-footer,
.site-footer {
	background: #fff !important;
	color: var(--steel);
	padding: 28px 0 36px;
	margin-top: 24px;
	border-top: 1px solid var(--line);
}
.msj-trust { display: none; }
.msj-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.msj-footer-brand { grid-column: auto; }
.msj-footer-brand .msj-logo { margin-bottom: 8px; }
.msj-footer-brand p {
	margin: 0;
	max-width: 36ch;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--muted);
}
.msj-footer h3,
.msj-footer-grid h3 {
	margin: 0 0 10px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ink);
	text-transform: none;
	letter-spacing: 0;
}
.msj-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.msj-footer-grid a {
	display: block;
	color: var(--steel);
	font-size: 0.82rem;
	padding: 4px 0;
	text-decoration: none;
}
.msj-footer-grid a:hover { color: var(--orange); }
.msj-footer-menu { display: none; }

/* Toast */
.msj-toast {
	position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px);
	background: var(--ink); color: #fff;
	padding: 12px 18px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
	opacity: 0; pointer-events: none; z-index: 80; transition: .25s ease;
	box-shadow: var(--shadow-lg);
}
.msj-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -------------------------------------------------------------------------- */
/* Desktop                                                                    */
/* -------------------------------------------------------------------------- */
@media (min-width: 900px) {
	body { font-size: 16px; background: var(--bg); }
	#page {
		max-width: none;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
		min-height: 100vh;
	}
	.site-header.msj-header {
		padding: 14px 0 16px;
		border-bottom-color: #f3f4f6;
	}
	.msj-header-row-1 { padding: 0 0 12px; }
	.msj-logo-mark { width: 34px; height: 34px; font-size: 12px; }
	.msj-logo-word { font-size: 1.12rem; }
	.msj-cat-bar { display: none; }

	.msj-hero {
		min-height: var(--hero-height-desktop);
	}
	.msj-hero-inner {
		min-height: var(--hero-height-desktop);
	}
	.msj-hero-carousel .msj-hero {
		height: var(--hero-height-desktop);
		min-height: var(--hero-height-desktop);
	}
	.msj-rail-grid,
	ul.products {
		grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
	}
	.msj-hero-carousel { height: auto; margin-bottom: 16px; }
	.msj-banner-strip--carousel { height: auto; }
	.msj-hero:not(.msj-hero-slide):not(.msj-hero--full) { border-radius: 18px; }
	.msj-hero-inner { padding: 32px 36px; }
	.msj-hero h1, .msj-hero h2 { font-size: 2.05rem; max-width: 16ch; }
	.msj-hero p { font-size: 0.92rem; }

	.msj-cat-strip {
		gap: 24px;
		padding: 4px 2px 14px;
	}
	.msj-cat-card {
		width: calc(var(--cat-card-height-desktop) + 16px);
		gap: 10px;
	}
	.msj-cat-icon {
		width: var(--cat-card-height-desktop);
		height: var(--cat-card-height-desktop);
	}
	.msj-cat-label { font-size: 0.85rem; max-width: calc(var(--cat-card-height-desktop) + 16px); }

	.msj-rail-head { padding: 8px 0 14px; }
	.msj-rail-title { font-size: 1.15rem; }
	.msj-rail-grid, ul.products {
		gap: 18px 16px;
		padding: 0 0 8px !important;
	}
	.msj-card-img { padding: 12px; height: var(--product-img-height-desktop, 220px); }
	.msj-card-title { font-size: 0.82rem; }
	.msj-price-now { font-size: 0.95rem; }
	.msj-load-more-wrap { padding: 6px 0 20px; }

	.msj-page-head { padding: 16px 0 4px; }
	.msj-page-head h1 { font-size: 1.6rem; }
	.msj-listing-layout { padding: 8px 0 40px; }
	.msj-listing-layout ul.products { padding: 0 !important; margin-bottom: 8px !important; }

	.msj-pdp-layout {
		display: grid;
		grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
		gap: 36px;
		align-items: start;
		padding: 16px 0 48px;
	}
	.msj-pdp-gallery {
		position: sticky;
		top: 96px;
	}
	.msj-pdp-info .product_title { font-size: 1.35rem; }
	.msj-pdp-price .msj-price-now { font-size: 1.8rem; }
	.msj-pdp-delivery { order: 4; }
	.msj-pdp-return { order: 5; }
	.msj-pdp-actions { order: 6; grid-template-columns: 90px 1fr 1fr; gap: 10px; }
	.msj-sticky-cart-bar { display: none !important; }
	body.single-product #content { padding-bottom: 8px; }
	.msj-pdp-section { max-width: none; }

	body.woocommerce-cart #content { padding-bottom: 24px; }
	.msj-cart-head { padding: 18px 0 10px; }
	.msj-cart-head h1 { font-size: 1.6rem; }
	.msj-cart-list { padding: 0 0 8px; }
	.msj-cart-item {
		grid-template-columns: 22px 72px 1fr;
		padding: 18px 0;
	}
	.msj-cart-thumb { width: 72px; height: 72px; }
	.msj-cart-bar {
		position: static;
		padding: 18px 0 28px;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
		box-shadow: none;
	}

	.msj-checkout-head { padding: 18px 0 12px; }
	.msj-checkout-head h1 { font-size: 1.6rem; }
	.msj-checkout-layout {
		grid-template-columns: 1.15fr 0.85fr;
		align-items: start;
		gap: 32px;
		padding: 0 0 40px;
	}
	.msj-confirm-bar { position: static; padding: 0; border: 0; background: none; }

	.msj-trust { display: none; }
	.msj-footer-grid {
		grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
		gap: 32px;
		padding: 8px 0 8px;
	}
	.msj-footer-brand { grid-column: auto; }
	.site-footer.msj-footer { padding: 36px 0 44px; margin-top: 32px; }
	.msj-cat-dir { min-height: 520px; max-width: var(--max); margin: 20px auto; }
	.msj-cat-l1 { width: 180px; }
	.msj-cat-l2-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

@media (min-width: 640px) and (max-width: 899px) {
	.msj-banner-strip:not(.msj-banner-strip--carousel) { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px 0 10px; }
	.msj-cat-label { font-size: 0.78rem; }
	.msj-hero h1, .msj-hero h2 { font-size: 1.6rem; }
}

/* Storefront overrides */
.site-header {
	background: #fff !important;
	padding: 0 !important;
	color: var(--ink) !important;
}
.site-header .col-full,
#content .col-full,
.site-footer .col-full {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.site-content { padding: 0 !important; }
.site-footer { background: #fff !important; }
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale { display: none !important; }
.home #secondary, .home .widget-area { display: none; }

@media (max-width: 899px) {
	body { background: #fff; }
	#page { box-shadow: none; }
	.msj-hero h1, .msj-hero h2 { font-size: 1.22rem; }
	.col-full, .wrap { width: min(100% - (var(--gutter-mobile) * 2), var(--max)); }
	.msj-header .col-full { width: min(100% - (var(--gutter-mobile) * 2), var(--max)); }
	.msj-hero--full,
	.msj-hero-carousel.msj-hero--full,
	.msj-banner-strip.msj-hero--full {
		width: calc(100% + (var(--gutter-mobile) * 2));
		margin-left: calc(var(--gutter-mobile) * -1);
		margin-right: calc(var(--gutter-mobile) * -1);
	}
	.msj-hero-carousel .msj-hero {
		height: min(var(--hero-height), 42vw);
		min-height: 140px;
		max-height: 220px;
	}
	.msj-hero-inner {
		min-height: 0;
		padding: 12px 14px;
	}
	.msj-hero-photo { object-fit: cover !important; }
	.msj-hero-arrow { display: none; }
	.msj-hero h1, .msj-hero h2 { font-size: 1.05rem; }
	.msj-hero p { font-size: 0.68rem; }
	.msj-hero-cta { margin-top: 8px; padding: 8px 12px; font-size: 0.78rem; }
	.n2-ss-slide-backgrounds {
		position: relative !important;
		overflow: hidden !important;
		aspect-ratio: 2 / 1;
		max-height: 220px;
	}
	.n2-ss-slide-background {
		position: absolute !important;
		inset: 0 !important;
	}
	.n2-ss-slide-background[aria-hidden="true"] {
		visibility: hidden !important;
		pointer-events: none !important;
	}
	.n2-ss-slider .n2-ss-slide-background-image img,
	.n2-ss-slider .n2-ss-slide-background picture img {
		object-fit: cover !important;
	}
	.site-header.msj-header {
		padding: calc(8px + env(safe-area-inset-top)) 0 12px;
	}
	.msj-header-row-1 { padding-bottom: 8px; }
	.msj-search { min-height: 40px; }
	.msj-search input[type="search"] { min-height: 40px; }
	.msj-card-img { height: 120px; padding: 8px; }
	.msj-rail-grid, ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px 10px;
	}
	.msj-gallery-slide { padding: 12px; }
	.msj-card-title { font-size: 0.72rem; }
	.msj-price-now { font-size: 0.8rem; }
	.msj-page-head { padding: 8px 0 2px; }
	.msj-page-head h1 { font-size: 1.3rem; }
	.msj-page-head .msj-meta { font-size: 0.75rem; }
	.msj-toolbar { padding: 10px 0 6px; gap: 6px; }
	.msj-chip { min-height: 32px; padding: 0 12px; font-size: 0.78rem; }
	.msj-listing-layout { padding: 4px 0 28px; }
	.msj-drop-panel { min-width: min(260px, calc(100vw - 32px)); }

	body.single-product #content { padding-bottom: 88px; }
	body.single-product .msj-sticky-cart-bar { display: grid !important; }
	.msj-pdp-actions { display: none; }
	.msj-pdp-gallery {
		padding: 16px;
		margin-bottom: 4px;
	}
	.msj-pdp-info .product_title { font-size: 1.15rem; }
	.msj-pdp-price .msj-price-now { font-size: 1.55rem; }
	.msj-pdp-actions {
		grid-template-columns: 0.85fr 1.25fr 1.15fr;
		gap: 8px;
		margin: 4px 0 12px;
	}
	.msj-pdp-actions .msj-btn { min-height: 42px; font-size: 0.82rem; padding: 0 8px; border-radius: 12px; }
	.msj-pdp-delivery { margin-top: 4px; }
	.msj-pdp-return { margin-bottom: 8px; }
}
