/* ==========================================================================
   MINSHENG — 自带商城（不依赖 WooCommerce）
   Grid, product page, category bar. Same monochrome language as the rest of
   the theme: no cards, no borders, photography and type only.
   ========================================================================== */

.ms-store .ms-h1--page { margin-bottom: 10px; }

/* toolbar ----------------------------------------------------------------- */
/* the three families ------------------------------------------------------ */
.ms-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 30px;
	margin: 34px 0 0;
	border-bottom: 1px solid var(--line);
}
.ms-tab {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	padding: 0 0 13px;
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.42);
	text-decoration: none;
	transition: color 0.3s var(--ease);
}
.ms-tab em {
	font-style: normal;
	font-size: 9px;
	letter-spacing: 0.08em;
	color: rgba(11, 11, 12, 0.3);
	font-variant-numeric: tabular-nums;
	transition: color 0.3s var(--ease);
}
.ms-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: var(--ink);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s var(--ease);
}
.ms-tab:hover { color: var(--ink); }
.ms-tab.is-active { color: var(--ink); }
.ms-tab.is-active em { color: rgba(11, 11, 12, 0.55); }
.ms-tab.is-active::after { transform: scaleX(1); }

.ms-shop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 18px 26px;
	margin: 16px 0 0;
	padding: 0;
	border-bottom: 0;
}
.ms-shop-bar__field { display: grid; gap: 7px; }
.ms-shop-bar__field > span {
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.42);
}
.ms-shop-bar__field select {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	font-size: 13px;
	padding: 8px 30px 8px 12px;
	min-width: 148px;
	color: var(--ink);
	background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid rgba(11, 11, 12, 0.18);
	border-radius: 2px;
	cursor: pointer;
}
.ms-shop-bar__field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ms-shop-bar__count,
.ms-shop-bar__moq {
	margin: 0 0 9px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.45);
}
.ms-shop-bar__field--right { margin-left: auto; }
.ms-shop-bar__moq { margin-left: 0; }

/* grid -------------------------------------------------------------------- */
.ms-shop-grid {
	list-style: none;
	margin: 34px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 32px);
}
.ms-tile__link { display: block; text-decoration: none; color: inherit; }
.ms-tile__media {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f6f5f3;
}
.ms-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.9s var(--ease);
}
.ms-tile__link:hover .ms-tile__media img,
.ms-tile__link:focus-visible .ms-tile__media img { transform: scale(1.045); }
.ms-tile__title {
	margin: 14px 0 3px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}
.ms-tile__meta {
	margin: 0;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.42);
}
.ms-tile__price {
	margin: 9px 0 0;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.ms-tile__price span { font-size: 11px; letter-spacing: 0.12em; color: rgba(11, 11, 12, 0.42); }

.ms-shop-empty {
	margin: 60px 0;
	font-size: 14px;
	color: rgba(11, 11, 12, 0.5);
}

/* breadcrumb -------------------------------------------------------------- */
.ms-crumb {
	margin: 0 0 26px;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.4);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ms-crumb a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(11, 11, 12, 0.2); }
.ms-crumb a:hover { color: var(--ink); }

/* product page ------------------------------------------------------------ */
.ms-pdp {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(26px, 4vw, 64px);
	align-items: start;
}
.ms-pdp__figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #ffffff; }
.ms-pdp__figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ms-pdp__media { display: grid; gap: 10px; }

.ms-pdp__thumbs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 10px;
}
.ms-thumb {
	display: block;
	width: 100%;
	padding: 0;
	background: #f0eeeb;
	border: 1px solid transparent;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
	opacity: 0.72;
}
.ms-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-thumb:hover { opacity: 1; }
.ms-thumb.is-active { border-color: var(--ink); opacity: 1; }

.ms-pdp__summary {
	margin: 0 0 18px;
	max-width: 46ch;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(11, 11, 12, 0.66);
}
.ms-pdp__summary:empty { display: none; }
.ms-pdp__info .ms-h1--page { margin: 6px 0 14px; font-size: clamp(30px, 3.4vw, 46px); }
.ms-pdp__price {
	margin: 0;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
}
.ms-pdp__price span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(11, 11, 12, 0.45); }
.ms-pdp__moq {
	margin: 6px 0 0;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: rgba(11, 11, 12, 0.5);
}
.ms-pdp__block { margin-top: 26px; }
.ms-pdp__label {
	display: block;
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.42);
	margin-bottom: 10px;
}
.ms-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-swatch {
	display: grid;
	gap: 6px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	width: 84px;
	font: inherit;
}
.ms-swatch img {
	width: 84px;
	height: 100px;
	object-fit: cover;
	border: 1px solid rgba(11, 11, 12, 0.12);
	transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ms-swatch.is-active img { border-color: var(--ink); }
.ms-swatch:hover img { transform: translateY(-2px); }
.ms-swatch span {
	font-size: 9.5px;
	line-height: 1.3;
	letter-spacing: 0.06em;
	color: rgba(11, 11, 12, 0.55);
}
.ms-swatch.is-active span { color: var(--ink); }

.ms-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-size {
	min-width: 46px;
	padding: 8px 11px;
	text-align: center;
	font: inherit;
	font-size: 11px;
	letter-spacing: 0.12em;
	background: none;
	border: 1px solid rgba(11, 11, 12, 0.18);
	color: rgba(11, 11, 12, 0.7);
	cursor: pointer;
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.ms-size:hover { border-color: var(--ink); color: var(--ink); }
.ms-size.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.ms-size:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ms-sizes__hint {
	margin: 9px 0 0;
	font-size: 10.5px;
	letter-spacing: 0.06em;
	color: rgba(11, 11, 12, 0.42);
}

/* size detail sheet ------------------------------------------------------- */
.ms-sizebox {
	position: fixed;
	inset: 0;
	z-index: 92;
	display: grid;
	place-items: center;
	padding: 22px;
	background: rgba(10, 10, 11, 0.62);
	animation: msFade 0.22s var(--ease) both;
}
.ms-sizebox[hidden] { display: none; }
.ms-sizebox__panel {
	position: relative;
	width: min(700px, 100%);
	max-height: calc(100vh - 44px);
	overflow-y: auto;
	background: #fff;
	padding: clamp(24px, 3vw, 40px);
	box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.55);
	animation: msRise 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ms-sizebox__x {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: rgba(11, 11, 12, 0.45);
	cursor: pointer;
	transition: color 0.3s var(--ease);
}
.ms-sizebox__x:hover { color: var(--ink); }
.ms-sizebox__head {
	margin: 2px 0 8px;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.ms-sizebox__word { color: rgba(11, 11, 12, 0.32); font-weight: 400; }
.ms-sizebox__head b { font-weight: 600; }
.ms-sizebox__sub { margin: 0; font-size: 13px; color: rgba(11, 11, 12, 0.55); }
.ms-sizebox__model {
	margin: 14px 0 0;
	font-size: 12px;
	letter-spacing: 0.03em;
	color: rgba(11, 11, 12, 0.72);
}
.ms-sizebox__model:empty { display: none; }

.ms-sizetable {
	width: 100%;
	margin: 22px 0 0;
	border-collapse: collapse;
	font-size: 13.5px;
	font-variant-numeric: tabular-nums;
}
.ms-sizetable th,
.ms-sizetable td {
	padding: 11px 10px;
	text-align: left;
	border-bottom: 1px solid rgba(11, 11, 12, 0.1);
}
.ms-sizetable thead th {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.45);
	border-bottom: 1px solid rgba(11, 11, 12, 0.28);
	white-space: nowrap;
}
.ms-sizetable tbody th { width: 62px; font-weight: 600; }
.ms-sizetable tbody td { color: rgba(11, 11, 12, 0.7); }
.ms-sizetable tr.is-active { background: #f5f4f1; }
.ms-sizetable tr.is-active th,
.ms-sizetable tr.is-active td { color: var(--ink); }

.ms-sizebox__note {
	margin: 18px 0 0;
	font-size: 11.5px;
	line-height: 1.65;
	color: rgba(11, 11, 12, 0.48);
}
.ms-sizebox__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@keyframes msFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes msRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ms-pdp__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ms-pdp__facts {
	list-style: none;
	margin: 34px 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
}
.ms-pdp__facts li {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: 12.5px;
	color: rgba(11, 11, 12, 0.72);
}
.ms-pdp__facts li span {
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.42);
}
.ms-pdp__facts li strong { font-weight: 500; color: var(--ink); }

/* responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ms-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ms-pdp { grid-template-columns: 1fr; }
	.ms-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-shop-bar__moq { margin-left: 0; }
}
@media (max-width: 640px) {
	.ms-tabs {
		gap: 4px 20px;
		margin-top: 26px;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.ms-tabs::-webkit-scrollbar { display: none; }
	.ms-tab { flex: 0 0 auto; }
}
@media (max-width: 520px) {
	.ms-shop-grid { gap: 14px; }
	.ms-sizebox { padding: 12px; }
	.ms-sizebox__panel { padding: 22px 18px; max-height: calc(100vh - 24px); }
	.ms-sizetable { font-size: 12px; }
	.ms-sizetable th, .ms-sizetable td { padding: 9px 6px; }
	.ms-swatch { width: 68px; }
	.ms-swatch img { width: 68px; height: 84px; }
}

/* --------------------------------------------------------------------------
   Wholesale page — the four facts strip under the title
   -------------------------------------------------------------------------- */
.ms-facts--strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 30px 0 34px;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line-light, #e2e3e1);
	border-bottom: 1px solid var(--line-light, #e2e3e1);
}

.ms-facts--strip li {
	display: grid;
	gap: 4px;
	padding: 16px 20px 16px 0;
	border-right: 1px solid var(--line-light, #e2e3e1);
	margin: 0;
}

.ms-facts--strip li:last-child { border-right: 0; }

.ms-facts--strip span {
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--steel, #6b7178);
}

.ms-facts--strip strong {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.ms-store--wholesale .ms-head--split { margin-bottom: 0; }

@media (max-width: 860px) {
	.ms-facts--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-facts--strip li:nth-child(2n) { border-right: 0; }
	.ms-facts--strip li:nth-child(-n+2) { border-bottom: 1px solid var(--line-light, #e2e3e1); }
}

/* ==========================================================================
   The three doors — /shop/ landing
   Full-width rows, not small cards: this is the first thing a buyer sees, so
   the three cuts have to read before any photograph does.
   ========================================================================== */
.ms-shop-bar--doors {
	margin: 26px 0 0;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--line);
	align-items: flex-end;
}
.ms-shop-bar--doors .ms-shop-bar__moq {
	margin: 0 0 4px auto;
	font-size: 11.5px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.55);
}

.ms-fam {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--line);
}

.ms-fam__row {
	margin: 0;
	border-top: 1px solid var(--line);
}
.ms-fam__row:first-child { border-top: 0; }

.ms-fam__link {
	display: grid;
	grid-template-columns: 84px 260px minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(20px, 3vw, 48px);
	padding: clamp(26px, 3.4vw, 46px) 0;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.45s var(--ease), padding 0.45s var(--ease);
}

.ms-fam__link:hover,
.ms-fam__link:focus-visible { background: rgba(11, 11, 12, 0.028); }

.ms-fam__n {
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	color: rgba(11, 11, 12, 0.18);
	transition: color 0.45s var(--ease);
}
.ms-fam__link:hover .ms-fam__n { color: var(--ink); }

.ms-fam__media {
	position: relative;
	margin: 0;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
}
.ms-fam__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ms-fam__link:hover .ms-fam__media img,
.ms-fam__link:focus-visible .ms-fam__media img { transform: scale(1.06); }

.ms-fam__body { display: grid; gap: 10px; }

.ms-fam__name {
	font-size: clamp(32px, 4vw, 60px);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.035em;
}

.ms-fam__meta {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.45);
}

.ms-fam__desc {
	font-size: clamp(13.5px, 1.15vw, 15.5px);
	line-height: 1.7;
	color: var(--steel, #6b7178);
	max-width: 52ch;
}

.ms-fam__go {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.ms-fam__go i { font-style: normal; transition: transform 0.4s var(--ease); }
.ms-fam__link:hover .ms-fam__go,
.ms-fam__link:focus-visible .ms-fam__go {
	background: var(--ink);
	color: #fff;
}
.ms-fam__link:hover .ms-fam__go i { transform: translateX(4px); }

.ms-fam__more {
	margin: 26px 0 0;
	font-size: 12px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}
.ms-fam__more a {
	color: rgba(11, 11, 12, 0.55);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 3px;
	transition: color 0.35s var(--ease);
}
.ms-fam__more a:hover { color: var(--ink); }
.ms-fam__more i { font-style: normal; }

@media (max-width: 1024px) {
	.ms-fam__link {
		grid-template-columns: 56px minmax(0, 1fr);
		grid-template-areas:
			"n body"
			"media media";
		gap: 18px;
	}
	.ms-fam__n { grid-area: n; }
	.ms-fam__body { grid-area: body; }
	.ms-fam__media { grid-area: media; aspect-ratio: 16 / 9; }
	.ms-fam__go { justify-self: start; }
}

@media (max-width: 640px) {
	.ms-fam__link { grid-template-columns: 1fr; grid-template-areas: "n" "media" "body"; }
	.ms-shop-bar--doors .ms-shop-bar__moq { margin-left: 0; }
}

/* ==========================================================================
   Cart & checkout
   A wholesale basket is a table, not a card grid: buyers compare styles,
   colourways and quantities line by line. Freight is deliberately absent from
   every total on this page — it is quoted per shipment.
   ========================================================================== */

.ms-cart-link,
.cart-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: inherit;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	position: relative;
}

.cart-link__icon { flex: 0 0 auto; }

.cart-count {
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--ink);
	color: var(--paper);
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	letter-spacing: 0;
}

.cart-count[hidden] { display: none; }

/* ---- quantity stepper ---- */
.ms-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--line);
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
}

.ms-qty__btn {
	width: 38px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s var(--ease);
}

.ms-qty__btn:hover { background: rgba(11, 11, 12, 0.06); }

.ms-qty__input {
	width: 74px;
	border: 0;
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
	text-align: center;
	font: inherit;
	font-size: 14px;
	padding: 10px 4px;
	-moz-appearance: textfield;
	background: transparent;
	color: var(--ink);
}

.ms-qty__input::-webkit-outer-spin-button,
.ms-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---- product page buy row ---- */
.ms-pdp__buy { margin: 0 0 10px; }
/* The grid is the widest thing in the column, so the form takes the full
   width instead of shrinking to its content and leaving a gap on the right. */
.ms-pdp__actions .ms-pdp__buy { flex: 1 1 100%; min-width: 0; }
.ms-pdp__buyrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.ms-pdp__buyrow .ms-btn { flex: 1 1 auto; }

.ms-btn--cart { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }

.ms-pdp__freight {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: rgba(11, 11, 12, 0.55);
}

.ms-pdp__pricelabel {
	display: inline-block;
	margin-right: 9px;
	font-size: 10.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.45);
	vertical-align: middle;
}

.ms-size.is-active {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

/* ---- flash ---- */
.ms-flash {
	margin: 0 0 22px;
	padding: 12px 16px;
	background: rgba(11, 11, 12, 0.05);
	border-left: 3px solid var(--ink);
	font-size: 13.5px;
}

.ms-cart-empty {
	padding: 56px 0 30px;
	border-top: 1px solid var(--line);
}

.ms-cart-empty p { margin: 0 0 20px; font-size: 15px; color: rgba(11, 11, 12, 0.6); }

/* ---- cart table ---- */
.ms-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 56px;
	align-items: start;
	margin-top: 12px;
}

.ms-cart__head,
.ms-cart__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 104px 214px 116px 34px;
	gap: 14px;
	align-items: center;
}

.ms-cart__head {
	padding: 0 0 12px;
	border-bottom: 1px solid var(--ink);
	font-size: 10.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.5);
}

.ms-cart__row {
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.ms-cart__item { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }

.ms-cart__item img {
	width: 74px;
	height: 92px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 2px;
	flex: 0 0 auto;
}

.ms-cart__meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.ms-cart__name {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	line-height: 1.35;
}

.ms-cart__name:hover { text-decoration: underline; }
.ms-cart__sub { font-size: 12.5px; color: rgba(11, 11, 12, 0.6); }
.ms-cart__moq { font-size: 11px; letter-spacing: 0.06em; color: rgba(11, 11, 12, 0.4); }

.ms-cart__price,
.ms-cart__total { font-size: 14px; font-variant-numeric: tabular-nums; }
.ms-cart__total { font-weight: 600; }

.ms-cart__qty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ms-cart__update {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.5);
	cursor: pointer;
	border-bottom: 1px solid currentColor;
}

.ms-cart__update:hover { color: var(--ink); }

.ms-cart__remove {
	border: 0;
	background: none;
	padding: 0;
	width: 34px;
	height: 34px;
	font-size: 20px;
	line-height: 1;
	color: rgba(11, 11, 12, 0.4);
	cursor: pointer;
}

.ms-cart__remove:hover { color: var(--ink); }

/* ---- summary ---- */
.ms-cart__summary {
	position: sticky;
	top: 96px;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 2px;
}

.ms-cart__summary h2 {
	margin: 0 0 18px;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ms-cart__summary dl {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 16px;
	margin: 0 0 14px;
	font-size: 13.5px;
}

.ms-cart__summary dt { color: rgba(11, 11, 12, 0.55); }
.ms-cart__summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ms-cart__pending { color: #9a6a00; font-weight: 600; }

.ms-cart__note {
	margin: 0 0 22px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 12px;
	line-height: 1.65;
	color: rgba(11, 11, 12, 0.5);
}

/* ---- checkout form ---- */
.ms-checkout h2 {
	margin: 0 0 6px;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* PayPal block above the order form ------------------------------------- */
.ms-pay { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid rgba(11, 11, 12, 0.12); }
.ms-pay h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.ms-pay__lede { margin: 0 0 14px; font-size: 12.5px; color: rgba(11, 11, 12, 0.55); line-height: 1.6; }
.ms-pay__btn { width: 100%; background: #0070ba; border-color: #0070ba; color: #fff; }
.ms-pay__btn:hover { background: #005c99; border-color: #005c99; color: #fff; }
.ms-pay__fine { margin: 10px 0 0; font-size: 11.5px; color: rgba(11, 11, 12, 0.5); line-height: 1.55; }
.ms-pay__or { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 11.5px;
	color: rgba(11, 11, 12, 0.45); text-transform: uppercase; letter-spacing: 0.06em; }
.ms-pay__or::before, .ms-pay__or::after { content: ""; flex: 1; height: 1px; background: rgba(11, 11, 12, 0.12); }

.ms-checkout__lede { margin: 0 0 16px; font-size: 12.5px; color: rgba(11, 11, 12, 0.55); line-height: 1.6; }

.ms-checkout .ms-field { display: block; margin: 0 0 12px; }
.ms-checkout .ms-field span {
	display: block;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.5);
	margin-bottom: 5px;
}

.ms-checkout .ms-field input,
.ms-checkout .ms-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 2px;
	font: inherit;
	font-size: 13.5px;
	background: #fff;
	color: var(--ink);
}

.ms-checkout .ms-field input:focus,
.ms-checkout .ms-field textarea:focus { outline: 0; border-color: var(--ink); }

.ms-btn--block { display: block; width: 100%; text-align: center; margin-top: 18px; }

.ms-checkout__fine { margin: 10px 0 0; font-size: 11.5px; color: rgba(11, 11, 12, 0.45); text-align: center; }
.ms-checkout__err { margin: 0 0 14px; font-size: 12.5px; color: #b32d2e; }

/* ---- confirmation ---- */
.ms-thanks { text-align: center; padding: 18px 6px 6px; }
.ms-thanks__tick {
	width: 46px;
	height: 46px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	font-size: 22px;
	line-height: 46px;
}
.ms-thanks h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: 0.02em; }
.ms-thanks p { margin: 0 0 8px; font-size: 13.5px; }
.ms-thanks__sub { color: rgba(11, 11, 12, 0.55); margin-bottom: 20px !important; }

/* ---- narrow ---- */
@media (max-width: 1080px) {
	.ms-cart { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.ms-cart__summary { position: static; }
}

@media (max-width: 760px) {
	.ms-cart__head { display: none; }
	.ms-cart__row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 10px 12px;
	}
	.ms-cart__item { grid-column: 1 / -1; }
	.ms-cart__qty { grid-column: 1 / -1; }
	.ms-cart__remove { justify-self: end; }
}

.drawer__cart {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--line-light);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}

.drawer__cart span {
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	background: var(--paper);
	color: var(--ink);
	font-size: 11px;
	line-height: 20px;
	text-align: center;
}

.drawer__cart span[hidden] { display: none; }

/* ===================================================== WooCommerce layer
   The storefront keeps its own voice when WooCommerce takes over the money:
   price suffix, freight note under the buy button, MOQ line in the cart. */

.ms-woo-freight {
	margin: 14px 0 0;
	font-family: var(--ms-sans, "Helvetica Neue", Arial, sans-serif);
	font-size: 11.5px;
	line-height: 1.65;
	letter-spacing: .04em;
	color: #6f6f6f;
	max-width: 42ch;
}

.ms-woo-freight--cart {
	margin: 0 0 16px;
	padding: 12px 14px;
	background: #f6f5f2;
	color: #4a4a4a;
	max-width: none;
}

.ms-unit {
	font-size: .62em;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8a8a8a;
	font-weight: 400;
}

.ms-cart-moq {
	margin: 4px 0 0;
	font-family: var(--ms-sans, "Helvetica Neue", Arial, sans-serif);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #9a9a9a;
}

/* Woo's own notices, in house type. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: var(--ms-sans, "Helvetica Neue", Arial, sans-serif) !important;
	font-size: 12px !important;
	letter-spacing: .04em;
	border-top: 1px solid #111 !important;
	background: #faf9f6 !important;
	color: #222 !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { color: #111 !important; }

/* Single product page: keep the editorial rhythm. */
.single-product div.product .price {
	font-family: var(--ms-serif, Georgia, serif);
	font-size: 26px;
	letter-spacing: -.02em;
}

.single-product div.product form.cart .quantity input.qty {
	width: 84px;
	height: 46px;
	border: 1px solid #dcdcd6;
	text-align: center;
	font-size: 14px;
}

.single-product div.product .single_add_to_cart_button {
	height: 46px;
	padding: 0 28px;
	background: #111;
	color: #fff;
	border: 0;
	border-radius: 0;
	font-size: 11.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.single-product div.product .single_add_to_cart_button:hover { background: #333; }

/* ------------------------------------------------- colour x size matrix ---
   The buy form. One row per colourway, one column per size, because the
   wholesale minimum is a per-style total: 10 red S + 20 white M + 20 navy L is
   a legal 50-piece order and a single quantity box could not express it.
   Scrolls sideways rather than squashing the inputs on a phone. */

.ms-mix {
	margin: 24px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.ms-mix__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 12px;
}

.ms-mix__title {
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.42);
}

.ms-mix__count {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: rgba(11, 11, 12, 0.55);
	white-space: nowrap;
}

.ms-mix__count b {
	font-size: 19px;
	font-weight: 600;
	color: var(--ink);
}

.ms-mix__count i {
	font-style: normal;
	letter-spacing: 0.06em;
}

.ms-mix__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ms-mix__table {
	width: 100%;
	min-width: 366px;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.ms-mix__table thead th {
	padding: 0 3px 8px;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.42);
	text-align: center;
	white-space: nowrap;
	border-bottom: 1px solid rgba(11, 11, 12, 0.24);
}

.ms-mix__table thead th.ms-mix__col { text-align: left; padding-left: 0; }
.ms-mix__table thead th.ms-mix__sum { width: 46px; }

.ms-mix__table tbody th,
.ms-mix__table tbody td {
	padding: 7px 3px;
	text-align: center;
	border-bottom: 1px solid rgba(11, 11, 12, 0.09);
}

.ms-mix__table tbody th.ms-mix__col { text-align: left; padding-left: 0; }
.ms-mix__table tbody tr.is-active { background: rgba(11, 11, 12, 0.03); }

.ms-mix__pick {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	text-align: left;
	color: rgba(11, 11, 12, 0.7);
}

.ms-mix__pick img {
	flex: 0 0 auto;
	width: 34px;
	height: 42px;
	object-fit: cover;
	border: 1px solid rgba(11, 11, 12, 0.12);
	transition: border-color 0.3s var(--ease);
}

.ms-mix__pick span {
	font-size: 11px;
	letter-spacing: 0.04em;
	white-space: nowrap;
	transition: color 0.3s var(--ease);
}

.ms-mix__pick:hover span,
.ms-mix__table tr.is-active .ms-mix__pick span { color: var(--ink); }
.ms-mix__table tr.is-active .ms-mix__pick img { border-color: var(--ink); }
.ms-mix__pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.ms-mix__in {
	width: 100%;
	min-width: 42px;
	max-width: 58px;
	padding: 7px 3px;
	border: 1px solid rgba(11, 11, 12, 0.16);
	background: #fff;
	font: inherit;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	color: var(--ink);
	-moz-appearance: textfield;
	appearance: textfield;
	transition: border-color 0.2s var(--ease);
}

.ms-mix__in::-webkit-outer-spin-button,
.ms-mix__in::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ms-mix__in::placeholder { color: rgba(11, 11, 12, 0.22); }
.ms-mix__in:focus { outline: 0; border-color: var(--ink); }
.ms-mix__table tr.is-filled .ms-mix__in { border-color: rgba(11, 11, 12, 0.42); }

.ms-mix__sum {
	width: 46px;
	font-size: 12px;
	color: rgba(11, 11, 12, 0.45);
	text-align: center;
}

.ms-mix__table tr.is-filled .ms-mix__sum { color: var(--ink); font-weight: 600; }

.ms-mix__table tfoot th,
.ms-mix__table tfoot td {
	padding: 11px 3px 0;
	border-bottom: 0;
}

.ms-mix__table tfoot th {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(11, 11, 12, 0.42);
	text-align: right;
}

.ms-mix__table tfoot td {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
}

.ms-mix__status {
	margin: 13px 0 0;
	font-size: 11.5px;
	line-height: 1.6;
	color: rgba(11, 11, 12, 0.5);
	transition: color 0.2s var(--ease);
}

.ms-mix.is-ok .ms-mix__status { color: #1b6b3d; }
.ms-mix.is-short .ms-mix__status { color: #a3321f; }

.ms-mix__note {
	max-width: 54ch;
	margin: 8px 0 0;
	font-size: 10.5px;
	line-height: 1.7;
	color: rgba(11, 11, 12, 0.4);
}

.ms-mix__err {
	margin: 0 0 16px;
	padding: 12px 15px;
	background: #fdf1ee;
	border-left: 2px solid #b23a24;
	font-size: 12px;
	line-height: 1.65;
	color: #7c2a18;
}

.ms-mix__err strong {
	display: block;
	margin-bottom: 4px;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Basket: the style total, and the block that appears while it is short. */
.ms-cart__warn {
	margin: 0 0 26px;
	padding: 16px 20px;
	background: #fdf1ee;
	border-left: 2px solid #b23a24;
	font-size: 12.5px;
	line-height: 1.7;
	color: #7c2a18;
}

.ms-cart__warn strong {
	display: block;
	margin-bottom: 8px;
	font-size: 9.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ms-cart__warn ul { margin: 0 0 10px; padding-left: 18px; }
.ms-cart__warn li { margin-bottom: 4px; }
.ms-cart__warn a { color: #7c2a18; text-decoration: underline; text-underline-offset: 3px; }
.ms-cart__warn span { display: block; font-size: 11px; color: rgba(124, 42, 24, 0.78); }

.ms-cart__moq.is-short { color: #a3321f; font-weight: 600; }

.ms-cart__blocked {
	padding: 16px 18px;
	border: 1px dashed rgba(11, 11, 12, 0.24);
	font-size: 12px;
	line-height: 1.6;
	color: rgba(11, 11, 12, 0.5);
}

.ms-cart__blocked p { margin: 0; }

.ms-cart-moq { margin: 3px 0 0; font-size: 11px; color: rgba(11, 11, 12, 0.45); }
.ms-cart-moq.is-short { color: #a3321f; }
.ms-cart-moq.is-ok { color: #1b6b3d; }

@media (max-width: 560px) {
	.ms-mix__pick img { width: 28px; height: 34px; }
	.ms-mix__pick span { font-size: 10px; }
}
