.msw-wrap {
	--msw-columns: 5;
	--msw-bg: #f3ece0;
	--msw-card-bg: #f3ece0;
	--msw-active: #3a4a3a;
	--msw-text-dark: #2b2b26;
	--msw-text-muted: #6f6a5e;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: var(--msw-bg);
	padding: 24px;
	border-radius: 20px;
	box-sizing: border-box;
}

.msw-wrap * {
	box-sizing: border-box;
}

/* Tabs */
.msw-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #e4dccb;
	border-radius: 999px;
	padding: 6px;
	margin-bottom: 28px;
	width: fit-content;
	max-width: 100%;
}

.msw-tab {
	border: none;
	background: transparent;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--msw-text-dark);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.msw-tab:hover {
	background: #f1ede3;
}

.msw-tab.is-active {
	background: var(--msw-active);
	color: #ffffff;
}

/* Grid */
.msw-grid {
	display: grid;
	grid-template-columns: repeat(var(--msw-columns), 1fr);
	gap: 24px;
}

@media (max-width: 1100px) {
	.msw-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
	.msw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.msw-grid { grid-template-columns: 1fr; }
}

/* Card */
.msw-card {
	background: var(--msw-card-bg);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.msw-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: #ddd;
	flex: 0 0 auto;
}

.msw-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.msw-card-noimage {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #e4dccb, #e4dccb 10px, #ece5d6 10px, #ece5d6 20px);
}

.msw-card-number {
	position: absolute;
	top: 12px;
	left: 12px;
	color: #ffffff;
	font-size: 20px;
	font-weight: 600;
	text-shadow: 0 1px 4px rgba(0,0,0,0.55);
	z-index: 2;
}

/* Body is a column flex container so the footer (price) can be pinned
   to the bottom of every card regardless of how much text is above it. */
.msw-card-body {
	padding: 14px 4px 4px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* Fixed-height, ellipsis-truncated title so every card's title zone
   is exactly the same height even when product names differ in length. */
.msw-card-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--msw-text-dark);
	height: 40px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	flex: 0 0 auto;
}

/* Same idea for the description - fixed height, truncates with an ellipsis
   so every card's description zone lines up regardless of content length. */
.msw-card-desc {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--msw-text-muted);
	height: 60px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	flex: 0 0 auto;
}

/* Pinned to the bottom of the card no matter how tall the title/description
   above it are - this is what keeps price bottom-right on every item. */
.msw-card-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.msw-card-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 15px;
}

.msw-icon-image img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.msw-card-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--msw-text-dark);
	white-space: nowrap;
	text-align: right;
	margin-left: auto;
}

/* Multiple Items (one card, several stacked title/description/price blocks) */
.msw-card-variants {
	display: flex;
	flex-direction: column;
}

.msw-card-variant {
	display: flex;
	flex-direction: column;
}

.msw-card-variant + .msw-card-variant {
	margin-top: 18px;
}

.msw-variant-divider-yes .msw-card-variant + .msw-card-variant {
	padding-top: 14px;
	border-top: 1px solid rgba(43, 43, 38, 0.12);
}

.msw-card-variant .msw-card-price {
	margin-top: 4px;
}

.msw-card-footer-icons-only {
	margin-top: 12px;
	justify-content: flex-start;
}

/* Multiple Prices / Quantities (single title + description, several
   label/price rows underneath, e.g. "8 Pieces .... ₹965"). */
.msw-card-pricelist {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
}

.msw-card-pricerow {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.msw-card-pricerow-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--msw-text-muted);
	white-space: nowrap;
	flex: 0 0 auto;
}

.msw-card-pricerow-dots {
	flex: 1 1 auto;
	border-bottom: 1px dashed rgba(43, 43, 38, 0.25);
	margin-bottom: 4px;
	min-width: 12px;
}

.msw-pricerow-nodots-yes .msw-card-pricerow-dots {
	border-bottom: none;
}

.msw-card-pricerow-price {
	flex: 0 0 auto;
	white-space: nowrap;
}
