/**
 * Mishtam — WooCommerce overrides
 */

/* Archive layout — Astra flexes .ast-container; keep header above products */
.mishtam-theme.woocommerce .site-content > .ast-container,
.mishtam-theme.woocommerce-page .site-content > .ast-container {
	flex-direction: column !important;
	align-items: stretch !important;
}

.mishtam-theme.woocommerce .ast-woocommerce-container {
	width: 100%;
	max-width: 100%;
}

.mishtam-theme.ms-shop-archive-page .site-main {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.mishtam-theme.ms-checkout-page .site-main {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.mishtam-theme.ms-shop-archive-page .ast-woocommerce-container {
	padding-top: 0;
}

/* ===== ARCHIVE HERO ===== */
.mishtam-theme .ms-shop-hero {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: var(--space-5) 0 var(--space-6);
	overflow: hidden;
}

/* Full-bleed floral hero background — one shared image across all pages */
.mishtam-theme .ms-shop-hero::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background-image:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.96) 0%,
			rgba(255, 255, 255, 0.92) 35%,
			rgba(255, 255, 255, 0.75) 60%,
			rgba(255, 255, 255, 0.35) 85%,
			rgba(255, 255, 255, 0.15) 100%
		),
		url("../images/shop-hero-bg.png");
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
	border-bottom: 1px solid var(--ms-border-light);
	z-index: 0;
	pointer-events: none;
}

.mishtam-theme .ms-shop-hero__inner {
	position: relative;
	z-index: 1;
}

.mishtam-theme .ms-shop-hero__crumbs,
.mishtam-theme .woocommerce-breadcrumb {
	font-size: 13px;
	font-weight: 600;
	color: #401020 !important;
	margin: 0 0 var(--space-4);
	line-height: 1.5;
}

.mishtam-theme .ms-shop-hero__crumbs a,
.mishtam-theme .woocommerce-breadcrumb a {
	color: #800020 !important;
	font-weight: 600;
	text-decoration: none;
	transition: color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-shop-hero__crumbs a:hover,
.mishtam-theme .woocommerce-breadcrumb a:hover {
	color: var(--ms-primary) !important;
}

.mishtam-theme .ms-shop-hero__crumb-sep {
	margin: 0 0.35em;
	opacity: 0.75;
}

.mishtam-theme .ms-shop-hero__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
	margin-bottom: var(--space-4);
}

.mishtam-theme .ms-shop-hero__title {
	margin: 0;
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
	font-weight: 800;
	letter-spacing: var(--ms-letter-tight);
	color: #5c0017 !important;
	line-height: 1.15;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mishtam-theme .ms-shop-hero__intro {
	margin: var(--space-2) 0 0;
	max-width: 40rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.55;
	color: #2b121e !important;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mishtam-theme .ms-shop-hero__parent {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.65rem 1.2rem;
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-primary);
	text-decoration: none;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: var(--ms-radius-pill);
	box-shadow: 0 2px 14px rgba(31, 31, 31, 0.1);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease), border-color var(--ms-duration) var(--ms-ease), box-shadow var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-shop-hero__parent:hover {
	background: var(--ms-primary);
	color: #ffffff;
	border-color: var(--ms-primary);
	box-shadow: 0 4px 18px rgba(227, 28, 121, 0.28);
}

.mishtam-theme .ms-shop-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
}

.mishtam-theme .ms-shop-hero__chips .ms-showcase__chip--active {
	background: var(--ms-primary);
	border-color: var(--ms-primary);
	color: var(--ms-text-inverse);
	font-weight: 600;
}

.mishtam-theme .ms-shop-hero__chips .ms-showcase__chip--active:hover {
	background: var(--ms-primary-hover);
	border-color: var(--ms-primary-hover);
	color: var(--ms-text-inverse);
}

/* ===== ARCHIVE BODY ===== */
.mishtam-theme.ms-shop-archive-page .term-description {
	display: none !important;
}

.mishtam-theme .ms-shop-body {
	padding: var(--space-6) 0 var(--space-7);
	background: var(--ms-bg);
}

.mishtam-theme .ms-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--ms-border-light);
}

.mishtam-theme .ms-shop-toolbar__count,
.mishtam-theme .woocommerce-result-count {
	margin: 0;
	font-size: var(--ms-small);
	font-weight: 500;
	color: var(--ms-text-muted);
}

.mishtam-theme .woocommerce-ordering {
	margin: 0;
	float: none;
}

.mishtam-theme .woocommerce-ordering select {
	min-height: 38px;
	min-width: 11rem;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-pill);
	padding: var(--space-2) var(--space-4);
	padding-right: 2.25rem;
	font-size: var(--ms-small);
	font-weight: 500;
	color: var(--ms-text);
	background-color: var(--ms-bg);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M1.4.6 6 5.2 10.6.6 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.mishtam-theme .woocommerce-ordering select:focus {
	outline: none;
	border-color: var(--ms-primary);
	box-shadow: 0 0 0 2px var(--ms-primary-light);
}

/* Product grid — same 4/3/2 layout + card as homepage */
.mishtam-theme ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-5);
	margin: 0 0 var(--space-6);
	padding: 0;
	list-style: none;
	align-items: stretch;
}

@media (max-width: 1024px) {
	.mishtam-theme ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-4);
	}
}

@media (max-width: 767px) {
	.mishtam-theme ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-4);
	}
}

.mishtam-theme ul.products li.product,
.mishtam-theme ul.products li.ms-archive-product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	display: flex;
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
}

.mishtam-theme ul.products li.product .ms-product-card,
.mishtam-theme ul.products li.ms-archive-product .ms-product-card,
.mishtam-theme ul.products li.product .ms-showcase__card,
.mishtam-theme ul.products li.ms-archive-product .ms-showcase__card {
	width: 100%;
	height: 100%;
}

/* Shop cards are grid items, never carousel slides */
.mishtam-theme ul.products li .ms-showcase__card {
	flex: 1 1 auto;
	scroll-snap-align: none;
}

/* Archive pagination */
.mishtam-theme .woocommerce-pagination {
	margin-top: var(--space-2);
}

.mishtam-theme .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	border: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mishtam-theme .woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	padding: 0;
}

.mishtam-theme .woocommerce-pagination ul li a,
.mishtam-theme .woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 var(--space-3);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	font-size: var(--ms-small);
	font-weight: 600;
	color: var(--ms-text);
	background: var(--ms-bg);
	transition: all var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .woocommerce-pagination ul li a:hover {
	border-color: var(--ms-primary);
	color: var(--ms-primary);
	background: var(--ms-primary-light);
}

.mishtam-theme .woocommerce-pagination ul li span.current {
	border-color: var(--ms-primary);
	background: var(--ms-primary);
	color: var(--ms-text-inverse);
}

/* Empty shop / search results */
.mishtam-theme .ms-shop-empty {
	margin: 0;
	padding: var(--space-4) 0 var(--space-7);
}

.mishtam-theme .ms-shop-empty__card {
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	padding: var(--space-7) var(--space-6);
	text-align: center;
	background: var(--ms-bg);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-xl);
	box-shadow: var(--ms-shadow-card);
}

.mishtam-theme .ms-shop-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0 auto var(--space-5);
	color: var(--ms-primary);
}

.mishtam-theme .ms-shop-empty__icon svg {
	width: 100%;
	height: 100%;
}

.mishtam-theme .ms-shop-empty__title {
	margin: 0 0 var(--space-3);
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: var(--ms-letter-tight);
	color: var(--ms-text);
	line-height: 1.25;
}

.mishtam-theme .ms-shop-empty__text {
	margin: 0 auto var(--space-5);
	max-width: 28rem;
	font-size: var(--ms-body);
	line-height: 1.6;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-shop-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
}

.mishtam-theme .ms-shop-empty__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
}

.mishtam-theme .ms-shop-body .woocommerce-no-products-found:not(.ms-shop-empty) .woocommerce-info {
	margin: 0;
	padding: var(--space-7) var(--space-5);
	text-align: center;
	border: 1px dashed var(--ms-border);
	border-radius: var(--ms-radius-lg);
	background: var(--ms-bg-soft);
	color: var(--ms-text-muted);
	font-size: var(--ms-body);
}

@media (max-width: 767px) {
	.mishtam-theme .ms-shop-empty {
		padding: var(--space-3) 0 var(--space-6);
	}

	.mishtam-theme .ms-shop-empty__card {
		padding: var(--space-6) var(--space-4);
	}

	.mishtam-theme .ms-shop-empty__icon {
		width: 72px;
		height: 72px;
		margin-bottom: var(--space-4);
	}

	.mishtam-theme .ms-shop-empty__actions .ms-btn {
		width: 100%;
	}
}

/* Single product — see assets/css/single-product.css */

/* Cart — see assets/css/cart.css */

/* Checkout / account tables */
.mishtam-theme:not(.ms-cart-page):not(.ms-checkout-page):not(.ms-order-received-page) table.shop_table {
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-lg);
	overflow: hidden;
}

.mishtam-theme:not(.ms-cart-page):not(.ms-checkout-page):not(.ms-order-received-page) table.shop_table th,
.mishtam-theme:not(.ms-cart-page):not(.ms-checkout-page):not(.ms-order-received-page) table.shop_table td {
	padding: var(--space-4);
	border-color: var(--ms-border);
}

.mishtam-theme:not(.ms-cart-page) .wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	text-align: center;
	border-radius: var(--ms-radius-md) !important;
}

/* Checkout */
.mishtam-theme .woocommerce-checkout h3 {
	font-size: 18px;
	margin-bottom: var(--space-4);
}

.mishtam-theme .woocommerce form .form-row input.input-text,
.mishtam-theme .woocommerce form .form-row textarea,
.mishtam-theme .woocommerce form .form-row select {
	min-height: var(--ms-input-height);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	padding: var(--space-3) var(--space-4);
	font-size: var(--ms-body);
}

.mishtam-theme .woocommerce form .form-row label {
	font-size: var(--ms-small);
	font-weight: 500;
	margin-bottom: var(--space-2);
}

.mishtam-theme #place_order {
	width: 100%;
	min-height: var(--ms-btn-height);
	border-radius: var(--ms-radius-md) !important;
	font-size: var(--ms-button);
}

/* Breadcrumb — PDP spacing owned by single-product.css */
.mishtam-theme .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--ms-text-muted);
	margin-bottom: var(--space-4);
}

.mishtam-theme.single-product .woocommerce-breadcrumb {
	margin-bottom: 0 !important;
}

.mishtam-theme .woocommerce-breadcrumb a {
	color: var(--ms-text-muted);
}

/* Notices — polished card style */
.mishtam-theme .woocommerce-message,
.mishtam-theme .woocommerce-info,
.mishtam-theme .woocommerce-error {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: var(--space-3);
	position: relative;
	margin: 0 0 var(--space-4);
	padding: var(--space-4) var(--space-5);
	padding-left: calc(var(--space-5) + 32px);
	background: var(--ms-bg);
	border: 1px solid var(--ms-border);
	border-left: 4px solid var(--ms-success);
	border-top: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	box-shadow: var(--ms-shadow-sm);
	color: var(--ms-text);
	font-size: var(--ms-small);
	font-weight: 500;
	line-height: 1.5;
	list-style: none;
}

.mishtam-theme .woocommerce-message:has(.button.wc-forward),
.mishtam-theme .woocommerce-info:has(.button.wc-forward) {
	align-items: center;
	flex-wrap: nowrap;
	min-height: 56px;
}

/* Error lists — one message per line */
.mishtam-theme ul.woocommerce-error {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: var(--space-2);
}

.mishtam-theme ul.woocommerce-error > li {
	display: block !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.mishtam-theme .woocommerce-message::before,
.mishtam-theme .woocommerce-info::before,
.mishtam-theme .woocommerce-error::before {
	content: "";
	position: absolute;
	left: var(--space-4);
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	margin: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	color: inherit;
	font-family: inherit;
}

.mishtam-theme .woocommerce-message:focus,
.mishtam-theme .woocommerce-info:focus,
.mishtam-theme .woocommerce-error:focus {
	outline: none;
	box-shadow: var(--ms-shadow-sm), 0 0 0 3px var(--ms-primary-glow);
}

.mishtam-theme .woocommerce-message {
	border-left-color: var(--ms-success);
}

.mishtam-theme .woocommerce-message::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2316a34a'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mishtam-theme .woocommerce-info {
	border-left-color: var(--ms-primary);
}

.mishtam-theme .woocommerce-info::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23d4146a'/%3E%3Cpath d='M12 11v5M12 8h.01' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mishtam-theme .woocommerce-error {
	border-left-color: var(--ms-error);
}

.mishtam-theme .woocommerce-error::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23dc2626'/%3E%3Cpath d='M12 7v6M12 16h.01' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* View cart / forward button inside notices */
.mishtam-theme .woocommerce-message .button.wc-forward,
.mishtam-theme .woocommerce-info .button.wc-forward,
.mishtam-theme .woocommerce-error .button.wc-forward {
	order: 2;
	margin: 0 0 0 auto;
	padding: var(--space-2) var(--space-4);
	min-height: 0;
	background: var(--ms-primary);
	color: var(--ms-text-inverse) !important;
	border: 0;
	border-radius: var(--ms-radius-pill) !important;
	font-size: var(--ms-small);
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	transition: background var(--ms-duration) var(--ms-ease), transform var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .woocommerce-message .button.wc-forward:hover,
.mishtam-theme .woocommerce-info .button.wc-forward:hover,
.mishtam-theme .woocommerce-error .button.wc-forward:hover {
	background: var(--ms-primary-hover);
	transform: translateY(-1px);
}

@media (max-width: 600px) {
	.mishtam-theme .woocommerce-message,
	.mishtam-theme .woocommerce-info,
	.mishtam-theme .woocommerce-error {
		padding: var(--space-4);
		padding-left: calc(var(--space-4) + 30px);
	}

	.mishtam-theme .woocommerce-message:has(.button.wc-forward),
	.mishtam-theme .woocommerce-info:has(.button.wc-forward) {
		flex-wrap: wrap;
		align-items: center;
	}

	.mishtam-theme .woocommerce-message .button.wc-forward,
	.mishtam-theme .woocommerce-info .button.wc-forward,
	.mishtam-theme .woocommerce-error .button.wc-forward {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}

/* Cart added confirmation — bottom sheet (mobile) / centered bar (desktop) */
.ms-cart-notice {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
}

.ms-cart-notice__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 12, 22, 0.42);
	opacity: 0;
	transition: opacity 0.32s var(--ms-ease);
	pointer-events: auto;
}

.ms-cart-notice__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 440px);
	padding: 18px 18px 16px;
	background: var(--ms-bg);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-xl);
	box-shadow: 0 18px 48px rgba(26, 21, 32, 0.22);
	opacity: 0;
	transform: translateY(24px);
	transition: transform 0.36s var(--ms-ease), opacity 0.36s var(--ms-ease);
	pointer-events: auto;
}

.ms-cart-notice.is-visible .ms-cart-notice__backdrop {
	opacity: 1;
}

.ms-cart-notice.is-visible .ms-cart-notice__panel {
	opacity: 1;
	transform: translateY(0);
}

.ms-cart-notice__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	background: var(--ms-bg-soft);
	border: 0;
	border-radius: var(--ms-radius-pill);
	color: var(--ms-text-muted);
	cursor: pointer;
	transition: background var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease);
}

.ms-cart-notice__close svg {
	width: 14px;
	height: 14px;
}

.ms-cart-notice__close:hover {
	background: var(--ms-bg-muted);
	color: var(--ms-text);
}

.ms-cart-notice__body {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-right: 28px;
	margin-bottom: 16px;
}

.ms-cart-notice__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	color: var(--ms-success);
}

.ms-cart-notice__icon svg {
	width: 40px;
	height: 40px;
}

.ms-cart-notice__copy {
	min-width: 0;
}

.ms-cart-notice__title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ms-text);
	letter-spacing: var(--ms-letter-tight);
}

.ms-cart-notice__product {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ms-text-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.ms-cart-notice__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ms-cart-notice__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--ms-btn-height);
	padding: 0 18px;
	border-radius: var(--ms-radius-pill);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease), border-color var(--ms-duration) var(--ms-ease), transform var(--ms-duration) var(--ms-ease);
}

.ms-cart-notice__btn--primary,
.mishtam-theme a.ms-cart-notice__btn--primary,
.mishtam-theme a.ms-cart-notice__btn--primary:hover,
.mishtam-theme a.ms-cart-notice__btn--primary:focus {
	background: var(--ms-gradient-primary) !important;
	border: 1px solid var(--ms-primary) !important;
	color: var(--ms-text-inverse) !important;
	-webkit-text-fill-color: var(--ms-text-inverse);
	box-shadow: 0 8px 20px var(--ms-primary-glow);
}

.ms-cart-notice__btn--primary:hover,
.mishtam-theme a.ms-cart-notice__btn--primary:hover {
	background: var(--ms-primary-hover) !important;
	border-color: var(--ms-primary-hover) !important;
	color: var(--ms-text-inverse) !important;
	-webkit-text-fill-color: var(--ms-text-inverse);
}

.ms-cart-notice__btn--ghost,
.mishtam-theme button.ms-cart-notice__btn--ghost {
	background: transparent;
	border: 1px solid var(--ms-border);
	color: var(--ms-text) !important;
	-webkit-text-fill-color: var(--ms-text);
}

.ms-cart-notice__btn--ghost:hover,
.mishtam-theme button.ms-cart-notice__btn--ghost:hover {
	background: var(--ms-bg-soft);
	border-color: var(--ms-border);
	color: var(--ms-text) !important;
	-webkit-text-fill-color: var(--ms-text);
}

body.ms-cart-notice-open {
	overflow: hidden;
}

@media (min-width: 768px) {
	.ms-cart-notice {
		align-items: center;
		padding: 24px;
	}

	.ms-cart-notice__panel {
		padding: 22px 22px 18px;
	}

	.ms-cart-notice__title {
		font-size: 20px;
	}

	.ms-cart-notice__actions {
		flex-direction: row;
	}

	.ms-cart-notice__btn--primary {
		flex: 1.2;
	}

	.ms-cart-notice__btn--ghost {
		flex: 1;
	}
}

/* Toast — compact card for review success and other notices */
.ms-toast-container {
	position: fixed;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	width: min(300px, calc(100vw - 32px));
	pointer-events: none;
}

.ms-toast-container.is-mobile {
	top: auto !important;
	right: auto !important;
	left: 50% !important;
	bottom: 20px !important;
	transform: translateX(-50%);
	width: min(360px, calc(100vw - 32px));
}

.ms-toast-card {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 12px;
	background: var(--ms-bg);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-lg);
	box-shadow: 0 10px 40px rgba(26, 21, 32, 0.14);
	opacity: 0;
	transform: translateY(-8px) scale(0.96);
	transition: transform 0.38s var(--ms-ease), opacity 0.38s var(--ms-ease);
}

.ms-toast-container:not(.is-mobile) .ms-toast-card {
	transform: translateY(-6px) scale(0.96);
	transform-origin: top right;
}

.ms-toast-container.is-mobile .ms-toast-card {
	transform: translateY(16px) scale(0.98);
	transform-origin: bottom center;
}

.ms-toast-card.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.ms-toast-card.is-leaving {
	opacity: 0;
	transform: translateY(-6px) scale(0.96);
}

.ms-toast-container.is-mobile .ms-toast-card.is-leaving {
	transform: translateY(12px) scale(0.98);
}

.ms-toast-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ms-toast-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	color: var(--ms-success);
}

.ms-toast-card__icon svg {
	width: 22px;
	height: 22px;
}

.ms-toast-card__title {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ms-text);
	line-height: 1.2;
	letter-spacing: var(--ms-letter-tight);
}

.ms-toast-card__close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: var(--ms-radius-pill);
	color: var(--ms-text-muted);
	cursor: pointer;
	transition: background var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease);
}

.ms-toast-card__close svg {
	width: 12px;
	height: 12px;
}

.ms-toast-card__close:hover {
	background: var(--ms-bg-muted);
	color: var(--ms-text);
}

.ms-toast-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-left: 36px;
}

.ms-toast-card__product {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--ms-text-muted);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ms-toast-card__action {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--ms-primary);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--ms-duration) var(--ms-ease);
}

.ms-toast-card__action:hover {
	color: var(--ms-primary-hover);
	text-decoration: underline;
}

/* Success toast — review submitted, etc. */
.ms-toast-container:has(.ms-toast-card--success) {
	width: min(360px, calc(100vw - 32px));
}

.ms-toast-card--success {
	background: #ecfdf3;
	border-color: rgba(22, 163, 74, 0.22);
}

.ms-toast-card--success .ms-toast-card__title {
	font-weight: 600;
	color: #14532d;
	line-height: 1.4;
}

.ms-toast-card--success .ms-toast-card__icon {
	color: var(--ms-success);
}

.ms-toast-card--success .ms-toast-card__close:hover {
	background: rgba(22, 163, 74, 0.1);
	color: #14532d;
}

/* Hide empty inline notice wrapper after toast moves out */
.mishtam-theme .woocommerce-notices-wrapper:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* My Account nav — see assets/css/account.css */

/* Shop page wrapper padding — archive uses hero; other WC pages keep padding */
.mishtam-theme.woocommerce-shop:not(.ms-shop-archive-page):not(.single-product):not(.ms-cart-page):not(.ms-checkout-page) .site-main,
.mishtam-theme.woocommerce-page:not(.ms-shop-archive-page):not(.single-product):not(.ms-cart-page):not(.ms-checkout-page) .site-main {
	padding-top: var(--space-6);
	padding-bottom: var(--space-7);
}

.mishtam-theme.woocommerce-shop:not(.ms-cart-page):not(.ms-checkout-page) .ast-container,
.mishtam-theme.woocommerce-page:not(.ms-cart-page):not(.ms-checkout-page) .ast-container {
	max-width: var(--ms-container);
	padding-left: var(--ms-container-x);
	padding-right: var(--ms-container-x);
}

@media (max-width: 767px) {
	.mishtam-theme .ms-shop-hero {
		padding: var(--space-4) 0 var(--space-5);
	}

	.mishtam-theme .ms-shop-hero::before {
		left: 0;
		width: 100%;
		transform: none;
		background-image:
			linear-gradient(
				180deg,
				rgba(255, 255, 255, 0.88) 0%,
				rgba(255, 255, 255, 0.72) 55%,
				rgba(255, 255, 255, 0.85) 100%
			),
			url("../images/shop-hero-bg.png");
		background-position: center, center 35%;
		background-size: cover, cover;
	}

	.mishtam-theme .ms-shop-hero__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.mishtam-theme .ms-shop-hero__parent {
		align-self: stretch;
		justify-content: center;
		width: 100%;
	}

	.mishtam-theme .ms-shop-hero__chips {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: var(--space-1);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.mishtam-theme .ms-shop-hero__chips::-webkit-scrollbar {
		display: none;
	}

	.mishtam-theme .ms-shop-hero__chips .ms-showcase__chip {
		flex-shrink: 0;
	}

}

.ms-toast-container.is-mobile .ms-toast-card.is-leaving {
	transform: translateY(12px) scale(0.98);
}

.ms-toast-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ms-toast-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	color: var(--ms-success);
}

.ms-toast-card__icon svg {
	width: 22px;
	height: 22px;
}

.ms-toast-card__title {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ms-text);
	line-height: 1.2;
	letter-spacing: var(--ms-letter-tight);
}

.ms-toast-card__close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: var(--ms-radius-pill);
	color: var(--ms-text-muted);
	cursor: pointer;
	transition: background var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease);
}

.ms-toast-card__close svg {
	width: 12px;
	height: 12px;
}

.ms-toast-card__close:hover {
	background: var(--ms-bg-muted);
	color: var(--ms-text);
}

.ms-toast-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-left: 36px;
}

.ms-toast-card__product {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--ms-text-muted);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ms-toast-card__action {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--ms-primary);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--ms-duration) var(--ms-ease);
}

.ms-toast-card__action:hover {
	color: var(--ms-primary-hover);
	text-decoration: underline;
}

/* Success toast — review submitted, etc. */
.ms-toast-container:has(.ms-toast-card--success) {
	width: min(360px, calc(100vw - 32px));
}

.ms-toast-card--success {
	background: #ecfdf3;
	border-color: rgba(22, 163, 74, 0.22);
}

.ms-toast-card--success .ms-toast-card__title {
	font-weight: 600;
	color: #14532d;
	line-height: 1.4;
}

.ms-toast-card--success .ms-toast-card__icon {
	color: var(--ms-success);
}

.ms-toast-card--success .ms-toast-card__close:hover {
	background: rgba(22, 163, 74, 0.1);
	color: #14532d;
}

/* Hide empty inline notice wrapper after toast moves out */
.mishtam-theme .woocommerce-notices-wrapper:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* My Account nav — see assets/css/account.css */

/* Shop page wrapper padding — archive uses hero; other WC pages keep padding */
.mishtam-theme.woocommerce-shop:not(.ms-shop-archive-page):not(.single-product):not(.ms-cart-page):not(.ms-checkout-page) .site-main,
.mishtam-theme.woocommerce-page:not(.ms-shop-archive-page):not(.single-product):not(.ms-cart-page):not(.ms-checkout-page) .site-main {
	padding-top: var(--space-6);
	padding-bottom: var(--space-7);
}

.mishtam-theme.woocommerce-shop:not(.ms-cart-page):not(.ms-checkout-page) .ast-container,
.mishtam-theme.woocommerce-page:not(.ms-cart-page):not(.ms-checkout-page) .ast-container {
	max-width: var(--ms-container);
	padding-left: var(--ms-container-x);
	padding-right: var(--ms-container-x);
}

@media (max-width: 767px) {
	.mishtam-theme .ms-shop-hero {
		padding: var(--space-4) 0 var(--space-5);
	}

	.mishtam-theme .ms-shop-hero::before {
		left: 0;
		width: 100%;
		transform: none;
		background-image:
			linear-gradient(
				180deg,
				rgba(255, 255, 255, 0.88) 0%,
				rgba(255, 255, 255, 0.72) 55%,
				rgba(255, 255, 255, 0.85) 100%
			),
			url("../images/shop-hero-bg.png");
		background-position: center, center 35%;
		background-size: cover, cover;
	}

	.mishtam-theme .ms-shop-hero__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.mishtam-theme .ms-shop-hero__parent {
		align-self: stretch;
		justify-content: center;
		width: 100%;
	}

	.mishtam-theme .ms-shop-hero__chips {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: var(--space-1);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.mishtam-theme .ms-shop-hero__chips::-webkit-scrollbar {
		display: none;
	}

	.mishtam-theme .ms-shop-hero__chips .ms-showcase__chip {
		flex-shrink: 0;
	}

	.mishtam-theme .ms-shop-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.mishtam-theme .woocommerce-ordering select {
		width: 100%;
	}
}

/* ===== LUXURY WOOCOMMERCE PAGINATION ===== */
.mishtam-theme .woocommerce-pagination,
.mishtam-theme nav.woocommerce-pagination,
.ast-woocommerce-container .woocommerce-pagination {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin-top: var(--space-7) !important;
	padding-top: var(--space-5) !important;
	border-top: 1px solid var(--ms-border-light) !important;
	clear: both !important;
}

.mishtam-theme .woocommerce-pagination ul.page-numbers,
.mishtam-theme nav.woocommerce-pagination ul.page-numbers,
.ast-woocommerce-container .woocommerce-pagination ul.page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

.mishtam-theme .woocommerce-pagination ul.page-numbers li,
.mishtam-theme nav.woocommerce-pagination ul.page-numbers li,
.ast-woocommerce-container .woocommerce-pagination ul.page-numbers li {
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}

.mishtam-theme .woocommerce-pagination ul.page-numbers li span.page-numbers,
.mishtam-theme .woocommerce-pagination ul.page-numbers li a.page-numbers,
.mishtam-theme nav.woocommerce-pagination ul.page-numbers li span.page-numbers,
.mishtam-theme nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
.ast-woocommerce-container .woocommerce-pagination ul.page-numbers li span.page-numbers,
.ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a.page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	transition: background 0.2s var(--ms-ease), color 0.2s var(--ms-ease), border-color 0.2s var(--ms-ease) !important;
	transform: none !important;
	outline: none !important;
	box-shadow: none !important;
	overflow: hidden !important;
	-webkit-tap-highlight-color: transparent;
}

/* Inactive Page Buttons */
.mishtam-theme .woocommerce-pagination ul.page-numbers li a.page-numbers,
.ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a.page-numbers {
	color: #5c0017 !important;
	background: #ffffff !important;
	border: 1.5px solid rgba(128, 0, 32, 0.2) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
	transform: none !important;
}

.mishtam-theme .woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.mishtam-theme .woocommerce-pagination ul.page-numbers li a.page-numbers:focus,
.mishtam-theme .woocommerce-pagination ul.page-numbers li a.page-numbers:focus-visible,
.ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a.page-numbers:focus {
	color: #ffffff !important;
	background: var(--ms-primary) !important;
	border-color: var(--ms-primary) !important;
	transform: none !important;
	box-shadow: 0 4px 14px var(--ms-primary-glow) !important;
	outline: none !important;
}

/* Active / Current Page Button */
.mishtam-theme .woocommerce-pagination ul.page-numbers li span.page-numbers.current,
.ast-woocommerce-container .woocommerce-pagination ul.page-numbers li span.page-numbers.current {
	color: #ffffff !important;
	background: linear-gradient(135deg, #800020 0%, #e31c79 100%) !important;
	border: 1.5px solid #800020 !important;
	box-shadow: 0 4px 14px rgba(128, 0, 32, 0.3) !important;
	transform: none !important;
	cursor: default;
}

/* Next / Prev Arrow Buttons */
.mishtam-theme .woocommerce-pagination ul.page-numbers li a.next.page-numbers,
.mishtam-theme .woocommerce-pagination ul.page-numbers li a.prev.page-numbers {
	font-size: 18px !important;
	transform: none !important;
}

/* ===== SEARCH NO RESULTS STYLES ===== */
.ms-search-no-results {
	padding: var(--space-7) 0;
	display: flex;
	justify-content: center;
}

.ms-search-no-results__card {
	max-width: 520px;
	width: 100%;
	text-align: center;
	padding: var(--space-7) var(--space-6);
	background: #ffffff;
	border: 1px solid var(--ms-border-light);
	border-radius: 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.ms-search-no-results__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fdf2f6;
	color: #800020;
	margin-bottom: var(--space-4);
}

.ms-search-no-results__icon svg {
	width: 32px;
	height: 32px;
}

.ms-search-no-results__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #5c0017;
	margin: 0 0 var(--space-2);
}

.ms-search-no-results__text {
	font-size: 1rem;
	color: var(--ms-text-muted);
	margin: 0 0 var(--space-5);
	line-height: 1.5;
}

.ms-search-no-results__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}
