/*
 * Mosahar Storefront styles — ported from the Next.js storefront reference.
 * Tokens below mirror the reference design (azure brand, neutral greys, green
 * success). Scoped under .mstore* so core block styling stays untouched.
 */

.mstore,
.mstore-header,
.mstore-footer {
	--m-brand: #1670cf;
	--m-brand-dark: #125cad;
	--m-success: #1a8a4f;
	--m-ink: #232323;
	--m-muted: #6f6f6f;
	--m-line: #e5e5e5;
	--m-surface: #ffffff;
	--m-soft: #f5f6f8;
	--m-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.08);
	color: var(--m-ink);
}
.mstore-trust-txt strong {
	color: var(--m-ink);
}

.mstore-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding-inline: 1rem;
}

.mstore-icon {
	width: 18px;
	height: 18px;
	flex: none;
}

/* Under-development banner */
.mstore-devbar {
	background: repeating-linear-gradient(45deg, #b45309, #b45309 12px, #92400e 12px, #92400e 24px);
	color: #fff;
	text-align: center;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.4rem 1rem;
	letter-spacing: 0.01em;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
/* The template-part <header> wrapper is what actually sticks — the inner
   .mstore-header alone would only stick within that short wrapper. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.mstore-header {
	background: var(--m-surface);
	border-bottom: 1px solid var(--m-line);
	color: var(--m-ink);
}

/* Utility bar */
.mstore-util {
	background: var(--m-soft);
	border-bottom: 1px solid var(--m-line);
	font-size: 0.75rem;
}
.mstore-util-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.375rem 1rem;
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
}
.mstore-util-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--m-muted);
	text-decoration: none;
}
.mstore-util-link:hover {
	color: var(--m-brand);
}
.mstore-util .mstore-icon {
	width: 14px;
	height: 14px;
}

/* Main bar */
.mstore-bar-inner {
	max-width: 1280px;
	margin: 0 auto;
	height: 56px;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.mstore-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--m-ink);
	flex: none;
}
.mstore-logo-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--m-brand);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	border-radius: 10px;
}
.mstore-logo-name {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.mstore-logo img {
	max-height: 40px;
	width: auto;
	display: block;
}
.mstore-logo-tagline {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--m-muted);
	white-space: nowrap;
	padding-left: 0.6rem;
	margin-left: 0.1rem;
	border-left: 1px solid var(--m-line);
}
.mstore-cat-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	height: 36px;
	padding: 0 0.75rem;
	background: var(--m-brand);
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	border-radius: 10px;
	text-decoration: none;
	flex: none;
}
.mstore-cat-btn:hover {
	background: var(--m-brand-dark);
	color: #fff;
}
.mstore-cat-btn .mstore-icon {
	width: 16px;
	height: 16px;
}
.mstore-search-bar {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 40px;
	padding: 0 0.75rem;
	background: var(--m-soft);
	border: 1px solid var(--m-line);
	border-radius: 10px;
	color: var(--m-muted);
}
.mstore-search-bar:focus-within {
	border-color: var(--m-brand);
	background: var(--m-surface);
}
.mstore-search-bar input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-size: 0.875rem;
	color: var(--m-ink);
	outline: none;
}
.mstore-search-bar .mstore-icon {
	width: 16px;
	height: 16px;
}
.mstore-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: none;
}
.mstore-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	height: 36px;
	width: 36px;
	background: transparent;
	border: 1px solid var(--m-line);
	border-radius: 999px;
	color: var(--m-ink);
	cursor: pointer;
	text-decoration: none;
}
.mstore-action:hover {
	background: var(--m-soft);
	color: var(--m-brand);
}
.mstore-action .mstore-icon {
	width: 16px;
	height: 16px;
}
.mstore-action-login {
	width: auto;
	padding: 0 0.85rem;
	border-radius: 999px;
}
.mstore-action-login span {
	font-size: 0.875rem;
	font-weight: 500;
}

/* Category nav */
.mstore-nav {
	border-top: 1px solid var(--m-line);
	overflow-x: auto;
}
.mstore-nav-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.375rem 0.5rem;
	display: flex;
	gap: 0.25rem;
}
.mstore-nav-link {
	padding: 0.25rem 0.75rem;
	font-size: 0.875rem;
	color: var(--m-muted);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 8px;
}
.mstore-nav-link:hover {
	color: var(--m-brand);
	background: var(--m-soft);
}
.mstore-nav-link.is-active {
	color: var(--m-brand);
	font-weight: 600;
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.mstore-hero-wrap {
	padding-top: 1rem;
}
.mstore-hero-split {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 1rem;
	align-items: stretch;
}
.mstore-hero-col-main,
.mstore-hero-col-side {
	min-width: 0;
}
.mstore-hero {
	position: relative;
	overflow: hidden;
	min-width: 0;
	border-radius: 18px;
	background: var(--m-brand);
	color: #fff;
	min-height: 20rem;
}
.mstore-hero-compact {
	min-height: 20rem;
}
.mstore-hero-track {
	display: flex;
	height: 100%;
	min-height: inherit;
	transition: transform 0.6s ease;
}
.mstore-slide {
	position: relative;
	flex: 0 0 100%;
	min-height: inherit;
	display: flex;
	align-items: center;
}
.mstore-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 70%);
}
.mstore-hero-compact .mstore-slide {
	align-items: flex-end;
}
.mstore-hero-compact .mstore-slide::after {
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 65%);
}
.mstore-slide-inner {
	position: relative;
	z-index: 1;
	max-width: 28rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 2.5rem;
}
.mstore-hero-compact .mstore-slide-inner {
	padding: 1.25rem;
	gap: 0.35rem;
}
.mstore-slide-eyebrow {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.9;
}
.mstore-hero-compact .mstore-slide-eyebrow {
	font-size: 0.75rem;
}
.mstore-slide-title {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}
.mstore-hero-compact .mstore-slide-title {
	font-size: 1.15rem;
}
.mstore-slide-sub {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.9;
	line-height: 1.5;
}
.mstore-slide-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	width: fit-content;
	margin-top: 0.5rem;
	padding: 0.6rem 1.2rem;
	background: #fff;
	color: var(--m-ink);
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mstore-slide-cta:hover {
	color: var(--m-ink);
	transform: translateY(-1px);
}
.mstore-slide-cta-link {
	background: transparent;
	color: #fff;
	padding: 0;
	box-shadow: none;
	margin-top: 0.25rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.mstore-slide-cta-link:hover {
	color: #fff;
}
.mstore-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	color: #fff;
	background: rgba(255, 255, 255, 0.25);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	backdrop-filter: blur(4px);
	z-index: 2;
}
.mstore-hero-arrow:hover {
	background: rgba(255, 255, 255, 0.4);
}
.mstore-hero-arrow-sm {
	width: 28px;
	height: 28px;
	font-size: 1.05rem;
}
.mstore-hero-prev {
	left: 0.5rem;
}
.mstore-hero-next {
	right: 0.5rem;
}
.mstore-hero-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.75rem;
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	z-index: 2;
}
.mstore-hero-dot {
	width: 8px;
	height: 8px;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: width 0.2s;
}
.mstore-hero-dot.is-active {
	width: 22px;
	background: #fff;
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.mstore-trust-band {
	background: var(--m-soft);
	border-top: 1px solid var(--m-line);
	border-bottom: 1px solid var(--m-line);
	margin-top: 1.5rem;
}
.mstore-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	padding-block: 1rem;
}
.mstore-trust-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.mstore-trust-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 999px;
	background: color-mix(in srgb, var(--m-brand) 12%, transparent);
	color: var(--m-brand);
}
.mstore-trust-ico svg {
	width: 20px;
	height: 20px;
}
.mstore-trust-txt strong {
	display: block;
	font-size: 0.875rem;
}
.mstore-trust-txt span {
	font-size: 0.75rem;
	color: var(--m-muted);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.mstore-main {
	padding-bottom: 2.5rem;
}
.mstore-section {
	margin-top: 2rem;
}
.mstore-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}
.mstore-section-heading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.mstore-section-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
}
.mstore-countdown {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.8rem;
	color: var(--m-muted);
}
.mstore-countdown svg {
	width: 15px;
	height: 15px;
}
.mstore-countdown b {
	display: inline-block;
	min-width: 1.7em;
	padding: 0.12rem 0.3rem;
	background: var(--m-ink);
	color: var(--m-surface);
	border-radius: 5px;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.mstore-rail-auto {
	scroll-behavior: smooth;
}
.mstore-all-title {
	margin: 2.5rem 0 1rem;
	scroll-margin-top: 5rem;
}
.mstore-see-all {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--m-brand);
	text-decoration: none;
	white-space: nowrap;
}
.mstore-see-all:hover {
	text-decoration: underline;
}

/* Category tiles */
.mstore-tiles {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.75rem;
}
.mstore-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	background: var(--m-surface);
	border: 1px solid var(--m-line);
	border-radius: 18px;
	text-decoration: none;
	transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.mstore-tile:hover {
	transform: translateY(-2px);
	box-shadow: var(--m-shadow);
	border-color: color-mix(in srgb, var(--m-brand) 50%, var(--m-line));
}
.mstore-tile-img {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 14px;
}
.mstore-tile-label {
	width: 100%;
	padding: 0.375rem 0.5rem;
	background: var(--m-soft);
	color: var(--m-ink);
	border-radius: 10px;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 600;
}
.mstore-tile:hover .mstore-tile-label {
	background: var(--m-brand);
	color: #fff;
}

/* Promo banners */
.mstore-promos {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.mstore-promo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	min-height: 7rem;
	padding: 1.25rem;
	border-radius: 18px;
	color: #fff;
	text-decoration: none;
	transition: transform 0.16s;
}
.mstore-promo:hover {
	transform: scale(1.02);
	color: #fff;
}
.mstore-promo-kicker {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	opacity: 0.9;
}
.mstore-promo-title {
	font-size: 1.125rem;
	font-weight: 700;
}
.mstore-promo-cta {
	font-size: 0.875rem;
	font-weight: 500;
	opacity: 0.9;
}

/* Product rail */
.mstore-rail {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}
.mstore-rail .mstore-card {
	flex: 0 0 176px;
	scroll-snap-align: start;
}
.mstore-rail::-webkit-scrollbar {
	height: 8px;
}
.mstore-rail::-webkit-scrollbar-thumb {
	background: var(--m-line);
	border-radius: 8px;
}

/* Rail arrow navigation (cross-sell rails). */
.mstore-rail-wrap {
	position: relative;
}
.mstore-rail-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 1px solid var(--m-line);
	border-radius: 50%;
	background: var(--m-surface);
	color: var(--m-ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.14 );
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s ease, background 0.15s ease;
}
.mstore-rail-arrow:hover {
	background: var(--m-brand);
	color: #fff;
	border-color: transparent;
}
.mstore-rail-prev {
	left: -8px;
}
.mstore-rail-next {
	right: -8px;
}
.mstore-rail-arrow.is-hidden {
	opacity: 0;
	pointer-events: none;
}
body.mstore-dark .mstore-rail-arrow {
	background: #222;
	color: #eee;
}
@media ( max-width: 600px ) {
	.mstore-rail-arrow {
		display: none;
	}
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.mstore-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
}
.mstore-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--m-surface);
	border: 1px solid var(--m-line);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.mstore-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--m-shadow);
	border-color: color-mix(in srgb, var(--m-brand) 40%, var(--m-line));
}
.mstore-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.mstore-card-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--m-soft);
	overflow: hidden;
}
.mstore-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.mstore-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mstore-thumb-icon {
	width: 32%;
	height: 32%;
}
.mstore-thumb-letter {
	position: absolute;
	right: 0.55rem;
	bottom: 0.4rem;
	font-size: 1rem;
	font-weight: 800;
	opacity: 0.65;
}
.mstore-card:hover .mstore-thumb img {
	transform: scale(1.08);
	transition: transform 0.4s;
}
.mstore-badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 2;
	padding: 0.15rem 0.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: #fff;
	background: var(--m-success);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.mstore-wish {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 999px;
	color: var(--m-muted);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.mstore-wish svg {
	width: 16px;
	height: 16px;
}
.mstore-wish:hover,
.mstore-wish.is-active {
	color: #e11d48;
}
.mstore-wish.is-active svg {
	fill: currentColor;
}
.mstore-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem;
}
.mstore-card-brand {
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--m-muted);
}
.mstore-card-name {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--m-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mstore-card:hover .mstore-card-name {
	color: var(--m-brand);
}
.mstore-card-pricerow {
	margin-top: auto;
	padding-top: 0.25rem;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.mstore-price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--m-ink);
}
.mstore-price-na {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--m-muted);
}
.mstore-mrp .mstore-price,
.mstore-mrp {
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--m-muted);
	text-decoration: line-through;
}
.mstore-off {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--m-success);
}
.mstore-card-stock {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--m-success);
}

/* Browse-by-category tabs */
.mstore-tabs-nav {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1rem;
	overflow-x: auto;
	border-bottom: 1px solid var(--m-line);
}
.mstore-tab {
	padding: 0.6rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--m-muted);
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
}
.mstore-tab:hover {
	color: var(--m-ink);
}
.mstore-tab.is-active {
	color: var(--m-brand);
	border-bottom-color: var(--m-brand);
}
.mstore-tab-pane.is-hidden {
	display: none;
}

/* Brand strip (auto-scrolling rail) */
.mstore-brand-row {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	padding-bottom: 0.5rem;
}
.mstore-brand-row::-webkit-scrollbar {
	height: 8px;
}
.mstore-brand-row::-webkit-scrollbar-thumb {
	background: var(--m-line);
	border-radius: 8px;
}
.mstore-brand {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	height: 64px;
	width: 140px;
	padding: 0 1rem;
	background: var(--m-surface);
	border: 1px solid var(--m-line);
	border-radius: 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--m-ink);
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}
.mstore-brand:hover {
	border-color: color-mix(in srgb, var(--m-brand) 50%, var(--m-line));
	color: var(--m-brand);
}
.mstore-brand-has-logo img {
	max-width: 100%;
	max-height: 40px;
	object-fit: contain;
}

/* Product-detail gallery */
.mstore-gallery-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	flex-wrap: wrap;
}
.mstore-gallery-thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 1px solid var(--m-line);
	border-radius: 8px;
	overflow: hidden;
	background: var(--m-surface);
	cursor: pointer;
}
.mstore-gallery-thumb.is-active {
	border-color: var(--m-brand);
}
.mstore-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   TOOLBAR / PAGINATION
   ========================================================================== */
.mstore-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.mstore-toolbar-search {
	flex: 1 1 260px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 0.75rem;
	background: var(--m-soft);
	border: 1px solid var(--m-line);
	border-radius: 10px;
	color: var(--m-muted);
}
.mstore-toolbar-search:focus-within {
	border-color: var(--m-brand);
	background: var(--m-surface);
}
.mstore-toolbar-input {
	flex: 1;
	padding: 0.6rem 0;
	border: none;
	background: transparent;
	font-size: 0.9rem;
	color: var(--m-ink);
	outline: none;
}
.mstore-toolbar-filters {
	flex: 1 1 220px;
	min-width: 0;
	display: flex;
	gap: 0.5rem;
}
.mstore-select {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	padding: 0.55rem 0.75rem;
	font-size: 0.875rem;
	color: var(--m-ink);
	background: var(--m-surface);
	border: 1px solid var(--m-line);
	border-radius: 10px;
	cursor: pointer;
}
.mstore-select:focus {
	outline: none;
	border-color: var(--m-brand);
}
.mstore-count {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.82rem;
	color: var(--m-muted);
}
.mstore-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}
.mstore-page {
	padding: 0.5rem 1rem;
	border: 1px solid var(--m-line);
	border-radius: 10px;
	text-decoration: none;
	color: var(--m-ink);
	font-weight: 600;
	font-size: 0.875rem;
}
.mstore-page:hover {
	border-color: var(--m-brand);
	color: var(--m-brand);
}
.mstore-page-info {
	font-size: 0.875rem;
	color: var(--m-muted);
}

/* ==========================================================================
   BUTTONS / EMPTY
   ========================================================================== */
.mstore-empty {
	grid-column: 1 / -1;
	padding: 3rem 1rem;
	text-align: center;
	color: var(--m-muted);
}
.mstore-btn {
	display: inline-block;
	padding: 0.7rem 1.2rem;
	background: var(--m-brand);
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	border: none;
	border-radius: 10px;
	cursor: pointer;
}
.mstore-btn:hover {
	background: var(--m-brand-dark);
	color: #fff;
}

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.mstore-detail {
	margin-block: 1.5rem;
}
.mstore-back {
	display: inline-block;
	margin-bottom: 1.25rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--m-brand);
	text-decoration: none;
}
.mstore-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 2.5rem;
	align-items: start;
}
.mstore-related {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--m-line);
}
.mstore-detail-media {
	border: 1px solid var(--m-line);
	border-radius: 18px;
	overflow: hidden;
}
.mstore-thumb-lg {
	aspect-ratio: 1 / 1;
}
.mstore-thumb-lg .mstore-thumb-icon {
	width: 24%;
	height: 24%;
}
.mstore-thumb-lg .mstore-thumb-letter {
	font-size: 1.8rem;
}
.mstore-detail-brand {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--m-muted);
}
.mstore-detail-name {
	margin: 0.4rem 0 0.8rem;
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	font-weight: 700;
}
.mstore-detail-price {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}
.mstore-detail-price .mstore-mrp {
	font-size: 1rem;
}
.mstore-detail-price .mstore-off {
	font-size: 0.9rem;
}
.mstore-detail-meta {
	color: var(--m-muted);
	margin: 0.5rem 0;
}
.mstore-detail-desc {
	margin: 1rem 0;
	line-height: 1.7;
}
.mstore-specs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.5rem 1rem;
	margin: 1.25rem 0;
	padding: 1rem;
	background: var(--m-soft);
	border-radius: 14px;
}
.mstore-spec dt {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--m-muted);
}
.mstore-spec dd {
	margin: 0;
	font-weight: 600;
}
.mstore-bulk {
	margin: 1.5rem 0;
}
.mstore-bulk-title {
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}
.mstore-bulk-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.mstore-bulk-table th,
.mstore-bulk-table td {
	text-align: left;
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--m-line);
}
.mstore-bulk-table th {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--m-muted);
}
.mstore-enquiry {
	margin-top: 1.5rem;
}

/* Loading state */
.mstore-grid.is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.mstore-footer {
	background: var(--m-soft);
	border-top: 1px solid var(--m-line);
	color: var(--m-ink);
	margin-top: 3rem;
}
.mstore-foot-assure {
	border-bottom: 1px solid var(--m-line);
}
.mstore-foot-assure-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.25rem 1rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--m-muted);
}
.mstore-foot-assure-inner span {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.mstore-foot-assure-inner svg {
	width: 20px;
	height: 20px;
	color: var(--m-brand);
	flex: none;
}
.mstore-foot-cols {
	max-width: 1280px;
	margin: 0 auto;
	padding: 2.5rem 1rem;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}
.mstore-foot-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
}
.mstore-foot-brand .mstore-logo-mark {
	width: 28px;
	height: 28px;
	font-size: 0.875rem;
}
.mstore-foot-brand-logo img {
	max-height: 48px;
	width: auto;
	max-width: 200px;
}
.mstore-foot-desc {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--m-muted);
}
.mstore-foot-contact {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--m-muted);
}
.mstore-foot-contact li,
.mstore-foot-contact a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--m-muted);
	text-decoration: none;
}
.mstore-foot-contact a:hover {
	color: var(--m-brand);
}
.mstore-foot-contact svg {
	width: 16px;
	height: 16px;
	color: var(--m-brand);
	flex: none;
}
.mstore-foot-col h3 {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
}
.mstore-foot-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.875rem;
}
.mstore-foot-col a,
.mstore-foot-col li {
	color: var(--m-muted);
	text-decoration: none;
}
.mstore-foot-col a:hover {
	color: var(--m-brand);
}
.mstore-foot-bottom {
	border-top: 1px solid var(--m-line);
}
.mstore-foot-bottom-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--m-muted);
	flex-wrap: wrap;
}
.mstore-foot-top {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--m-muted);
	text-decoration: none;
}
.mstore-foot-top:hover {
	color: var(--m-brand);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.mstore-tiles {
		grid-template-columns: repeat(4, 1fr);
	}
	.mstore-hero-split {
		grid-template-columns: minmax(0, 1fr);
	}
	.mstore-hero-col-side {
		display: none;
	}
}
@media (max-width: 768px) {
	.mstore-cat-btn span,
	.mstore-util-link span,
	.mstore-action-login span {
		display: none;
	}
	.mstore-cat-btn,
	.mstore-logo-tagline {
		display: none;
	}
	.mstore-bar-inner {
		gap: 0.5rem;
	}
	.mstore-actions {
		gap: 0.25rem;
	}
	.mstore-tiles {
		grid-template-columns: repeat(3, 1fr);
	}
	.mstore-promos {
		grid-template-columns: 1fr;
	}
	.mstore-foot-cols {
		grid-template-columns: repeat(2, 1fr);
	}
	.mstore-foot-assure-inner {
		grid-template-columns: 1fr;
	}
	.mstore-detail-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
@media (max-width: 520px) {
	.mstore-trust {
		grid-template-columns: 1fr 1fr;
	}
	.mstore-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
	.mstore-foot-cols {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   DARK MODE (opt-in via header toggle)
   ========================================================================== */
body.mstore-dark {
	background: #1a1a1a;
}
body.mstore-dark .mstore,
body.mstore-dark .mstore-header,
body.mstore-dark .mstore-footer {
	--m-ink: #ededed;
	--m-muted: #b4b4b4;
	--m-line: rgba(255, 255, 255, 0.12);
	--m-surface: #242424;
	--m-soft: #2c2c2c;
	--m-brand: #5aa2ee;
	--m-brand-dark: #4a90dd;
}
