/**
 * Mishtam — single product page (Winni-inspired PDP)
 */

/* ── Page shell ─────────────────────────────────────────────── */
.mishtam-theme.single-product #page {
	display: block !important;
	min-height: 0 !important;
}

.mishtam-theme.single-product #page .site-content,
.mishtam-theme.single-product #content {
	flex-grow: 0 !important;
	flex: none !important;
	min-height: 0 !important;
}

.mishtam-theme.single-product .site-content,
.mishtam-theme.single-product #content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.mishtam-theme.single-product .site-main,
.mishtam-theme.single-product.woocommerce-page .site-main {
	padding-top: 0 !important;
	padding-bottom: var(--space-7);
}

.mishtam-theme.single-product.ast-plain-container.ast-no-sidebar #primary,
.mishtam-theme.single-product #primary.site-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Let ms-container align with header — no double padding from ast-container */
.mishtam-theme.single-product .site-content > .ast-container {
	max-width: none;
	width: 100%;
	padding: 0 !important;
	margin: 0;
}

.mishtam-theme.single-product #primary,
.mishtam-theme.single-product .ast-woocommerce-container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.mishtam-theme.single-product #primary {
	width: 100%;
	max-width: 100%;
}

/* Winni: breadcrumb + product share one container — no orphaned strip */
.mishtam-theme.single-product div.product.ms-pdp,
.mishtam-theme.single-product div.product.ms-pdp.ast-article-single {
	margin: 0 !important;
	padding: 0 !important;
}

.ms-pdp__inner {
	padding-top: 0;
	padding-bottom: 0;
}

.ms-pdp__crumbs {
	margin: 0;
	padding: 0;
}

.mishtam-theme.single-product .ms-pdp__crumbs .woocommerce-breadcrumb,
.mishtam-theme.single-product .ms-pdp__crumbs .ms-pdp__breadcrumb,
.mishtam-theme.single-product .ms-pdp .woocommerce-breadcrumb {
	display: block;
	font-size: 12px;
	line-height: 1.35;
	color: var(--ms-text-muted);
	margin: 0 !important;
	padding: 12px 0 14px !important;
}

.mishtam-theme.single-product .ms-pdp__crumb-sep {
	margin: 0 5px;
	opacity: 0.65;
}

.mishtam-theme.single-product .woocommerce-breadcrumb a {
	color: var(--ms-text-muted);
}

/* Hide any stray breadcrumb inside summary */
.mishtam-theme.single-product .summary .woocommerce-breadcrumb {
	display: none !important;
}

/* ── Kill WC/Astra 48% float layout (root cause of the gap) ── */
.mishtam-theme.single-product .woocommerce div.product,
.mishtam-theme.single-product .woocommerce-page div.product,
.mishtam-theme.single-product div.product.ms-pdp {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

.mishtam-theme.single-product .woocommerce div.product::before,
.mishtam-theme.single-product .woocommerce div.product::after {
	display: none !important;
	content: none !important;
}

.mishtam-theme.single-product .woocommerce div.product .woocommerce-product-gallery,
.mishtam-theme.single-product .woocommerce #content div.product .woocommerce-product-gallery,
.mishtam-theme.single-product .ms-pdp .woocommerce-product-gallery,
.mishtam-theme.single-product .woocommerce div.product div.images,
.mishtam-theme.single-product .woocommerce div.product div.summary,
.mishtam-theme.single-product .woocommerce #content div.product div.summary,
.mishtam-theme.single-product .ms-pdp .summary {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	clear: none !important;
}

/* ── Two-column grid (Winni: ~50% image / ~50% buy box + details) ───── */
.ms-pdp__layout {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	grid-template-areas:
		"gallery buybox"
		"gallery below";
	column-gap: clamp(20px, 3vw, 36px) !important;
	row-gap: var(--space-3) !important;
	align-items: start;
	width: 100%;
	margin-bottom: var(--space-6);
}

.ms-pdp__gallery-col {
	grid-area: gallery;
	min-width: 0;
}

.ms-pdp__buybox {
	grid-area: buybox;
	min-width: 0;
}

.ms-pdp__below {
	grid-area: below;
}

.ms-pdp__content-col {
	display: contents;
}

@media (min-width: 901px) {
	/* Stretch left column to full row height — required for position:sticky */
	.mishtam-theme.single-product #page,
	.mishtam-theme.single-product .site-content,
	.mishtam-theme.single-product #content,
	.mishtam-theme.single-product .ast-container,
	.mishtam-theme.single-product #primary,
	.mishtam-theme.single-product div.product.ms-pdp,
	.mishtam-theme.single-product .ms-pdp__layout,
	.mishtam-theme.single-product .ms-pdp__gallery-col {
		overflow: visible !important;
	}

	.ms-pdp__layout {
		grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) !important;
		align-items: stretch !important;
	}

	.ms-pdp__gallery-col {
		grid-row: 1 / -1;
		align-self: stretch;
	}

	.ms-pdp__gallery-sticky {
		display: flex;
		flex-direction: column;
		gap: var(--space-4);
		position: -webkit-sticky;
		position: sticky;
		top: var(--ms-pdp-sticky-top, calc(var(--ms-header-height, 120px) + var(--space-4)));
		z-index: 2;
	}
}

.ms-pdp__gallery-col {
	min-width: 0;
}

.ms-pdp__gallery {
	position: relative;
	min-width: 0;
	width: 100%;
}

.mishtam-theme .ms-pdp .ms-pdp__mobile-hero {
	display: none;
}

.ms-pdp__gallery-sticky {
	width: 100%;
}

@media (min-width: 901px) {
	.mishtam-theme .ms-pdp .ms-pdp__mobile-hero {
		display: none !important;
	}
}

@media (min-width: 901px) {
	.ms-pdp__gallery-sticky .ms-pdp__trust {
		flex-shrink: 0;
	}
}

.ms-pdp__buybox {
	min-width: 0;
	width: 100%;
}

.mishtam-theme .ms-pdp .ms-pdp__summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.mishtam-theme .ms-pdp .ms-pdp__summary > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Title → rating: keep tight; rating → price: a little more air */
.mishtam-theme .ms-pdp .product_title + .ms-pdp__rating {
	margin-top: calc(-1 * var(--space-2));
}

.mishtam-theme .ms-pdp .ms-pdp__rating + .ms-pdp__price-block {
	margin-top: 0;
}

.ms-pdp__summary {
	width: 100%;
}

/* Hide Astra/WC duplicate elements we replace */
.mishtam-theme.single-product .summary .woocommerce-product-rating,
.mishtam-theme.single-product .summary .woocommerce-product-details__short-description,
.mishtam-theme.single-product .ast-stock-detail,
.mishtam-theme.single-product .summary > p.price:not(.ms-pdp__price-current) {
	display: none !important;
}

.mishtam-theme.single-product .ast-sticky-add-to-cart {
	display: none !important;
}

/* Gallery — large square hero; desktop thumbs sit left so they stay in view */
.mishtam-theme.single-product .ms-pdp .woocommerce-product-gallery {
	position: relative;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	background: #fff;
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-md);
	padding: var(--space-3);
	margin: 0 !important;
	overflow: hidden;
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery__wrapper {
	border-radius: var(--ms-radius-md);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #fdf8fa;
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery .flex-viewport {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #fdf8fa;
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	cursor: pointer;
	background: #fdf8fa;
	border-radius: var(--ms-radius-sm);
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery__image a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: none !important;
	aspect-ratio: auto;
	object-fit: contain;
	object-position: center center;
	border-radius: var(--ms-radius-sm);
	background: #fdf8fa;
	transition: opacity 0.2s ease;
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery__image .zoomImg {
	border-radius: var(--ms-radius-sm);
	cursor: zoom-in;
}

/* Magnifying glass — visible on gallery hover */
.mishtam-theme .ms-pdp .woocommerce-product-gallery__trigger {
	position: absolute;
	top: var(--space-4);
	right: var(--space-4);
	z-index: 12;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ms-border);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 12px rgba(31, 31, 31, 0.1);
	opacity: 0;
	transform: scale(0.92);
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
	cursor: pointer;
	text-decoration: none;
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery:hover .woocommerce-product-gallery__trigger,
.mishtam-theme .ms-pdp .woocommerce-product-gallery.is-gallery-hover .woocommerce-product-gallery__trigger,
.mishtam-theme .ms-pdp .woocommerce-product-gallery__trigger:focus-visible {
	opacity: 1;
	transform: scale(1);
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery__trigger:hover {
	background: #fff;
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery__trigger::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1F1F' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.mishtam-theme .ms-pdp .woocommerce-product-gallery__trigger span {
	display: none;
}

@media (max-width: 900px) {
	.mishtam-theme .ms-pdp .woocommerce-product-gallery__image,
	.mishtam-theme .ms-pdp .woocommerce-product-gallery__image a {
		cursor: pointer;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery__trigger {
		opacity: 1;
		transform: none;
	}
}

.mishtam-theme .ms-pdp .flex-control-thumbs {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: var(--space-3) 0 0 !important;
	padding: 0;
	list-style: none;
}

.mishtam-theme .ms-pdp .flex-control-thumbs li {
	width: 64px !important;
	float: none !important;
	margin: 0 !important;
}

.mishtam-theme .ms-pdp .flex-control-thumbs li img {
	width: 64px !important;
	height: 64px !important;
	object-fit: contain;
	object-position: center center;
	background: #fdf8fa;
	border: 2px solid transparent;
	border-radius: var(--ms-radius-sm);
	opacity: 0.75;
}

/* Desktop: thumbs column on the left of the main image */
@media (min-width: 901px) {
	.mishtam-theme.single-product .ms-pdp .woocommerce-product-gallery:has(.flex-control-thumbs li) {
		display: grid !important;
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-areas: "thumbs main";
		column-gap: var(--space-3);
		align-items: start;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery:has(.flex-control-thumbs li) .flex-viewport,
	.mishtam-theme .ms-pdp .woocommerce-product-gallery:has(.flex-control-thumbs li) .woocommerce-product-gallery__wrapper,
	.mishtam-theme .ms-pdp .woocommerce-product-gallery:has(.flex-control-thumbs li) .woocommerce-product-gallery__trigger {
		grid-area: main;
		width: 100%;
		min-width: 0;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery:has(.flex-control-thumbs li) > .flex-control-thumbs,
	.mishtam-theme .ms-pdp .woocommerce-product-gallery:has(.flex-control-thumbs li) .flex-control-thumbs {
		grid-area: thumbs;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: var(--space-2);
		margin: 0 !important;
		max-height: min(100%, 560px);
		overflow-x: hidden;
		overflow-y: auto;
		scrollbar-width: thin;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery:has(.flex-control-thumbs li) .flex-control-thumbs li {
		width: 64px !important;
		flex-shrink: 0;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery:has(.flex-control-thumbs li) .woocommerce-product-gallery__trigger {
		justify-self: end;
		align-self: start;
		width: 42px;
		position: absolute;
		top: var(--space-4);
		right: var(--space-4);
	}

	.mishtam-theme .ms-pdp__gallery:has(.flex-control-thumbs li) > .ms-pdp__badge,
	.mishtam-theme .ms-pdp__gallery:has(.flex-control-thumbs li) > span.onsale {
		left: calc(72px + var(--space-3) + var(--space-3) + var(--space-2));
	}
}

.mishtam-theme .ms-pdp .flex-control-thumbs li img.flex-active,
.mishtam-theme .ms-pdp .flex-control-thumbs li img:hover {
	border-color: var(--ms-primary);
	opacity: 1;
}

.mishtam-theme .ms-pdp__gallery > .ms-pdp__badge,
.mishtam-theme .ms-pdp__gallery > span.onsale {
	position: absolute;
	top: calc(var(--space-3) + var(--space-2));
	left: calc(var(--space-3) + var(--space-2));
	z-index: 6;
	margin: 0;
	pointer-events: none;
}

.mishtam-theme .ms-pdp__badge {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border-radius: var(--ms-radius-sm);
	min-height: auto;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.mishtam-theme .ms-pdp__badge--bestseller {
	background: #16a34a;
	color: #fff;
}

.mishtam-theme .ms-pdp__badge--sale {
	background: var(--ms-primary);
	color: #fff;
}

/* Hide Astra duplicate sale pills on PDP gallery */
.mishtam-theme.single-product .ms-pdp .ast-onsale-card,
.mishtam-theme.single-product .ms-pdp__gallery .ast-on-card-button {
	display: none !important;
}

.mishtam-theme .ms-pdp span.onsale {
	position: absolute;
	top: calc(var(--space-3) + var(--space-2));
	left: calc(var(--space-3) + var(--space-2));
	background: var(--ms-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border-radius: var(--ms-radius-sm);
	min-height: auto;
	line-height: 1;
	z-index: 6;
	margin: 0;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

/* Title */
.mishtam-theme .ms-pdp .product_title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: var(--ms-text);
	letter-spacing: var(--ms-letter-tight);
	overflow-wrap: break-word;
}

/* Rating */
.ms-pdp__rating {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin: 0;
	flex-wrap: wrap;
}

.ms-pdp__rating-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #16a34a;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--ms-radius-sm);
	line-height: 1.2;
}

.ms-pdp__rating-pill svg {
	width: 12px;
	height: 12px;
}

.ms-pdp__rating-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-text-muted);
	text-decoration: none;
}

.ms-pdp__rating-link:hover {
	color: var(--ms-primary);
}

/* Price */
.ms-pdp__price-block {
	margin: 0;
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--ms-border-light);
}

.ms-pdp__price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-3);
}

.ms-pdp__price-current,
.ms-pdp__price-current .woocommerce-Price-amount {
	font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
	font-weight: 800 !important;
	color: var(--ms-text) !important;
	line-height: 1.1;
}

.ms-pdp__price-mrp,
.ms-pdp__price-mrp .woocommerce-Price-amount {
	font-size: 1.125rem !important;
	color: var(--ms-text-muted) !important;
	text-decoration: line-through;
	font-weight: 500 !important;
}

.ms-pdp__price-off {
	font-size: 14px;
	font-weight: 700;
	color: #16a34a;
}

.ms-pdp__price-from {
	margin: var(--space-2) 0 0;
	font-size: 13px;
	color: var(--ms-text-muted);
}

.ms-pdp__price-tax {
	margin: 0;
	font-size: 13px;
	color: var(--ms-text-muted);
}

.ms-pdp__price-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-3);
	margin-top: var(--space-2);
}

.ms-pdp__price-details-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	margin: 0;
	border: none !important;
	border-radius: var(--ms-radius-pill);
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ms-text-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease);
}

.ms-pdp__price-details-btn svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.mishtam-theme .ms-pdp__price-details-btn:hover,
.mishtam-theme .ms-pdp__price-details-btn:focus-visible {
	background: var(--ms-primary-light) !important;
	color: var(--ms-primary) !important;
	border: none !important;
	box-shadow: none !important;
	outline: none;
}

.mishtam-theme .ms-pdp__price-details-btn:active {
	background: var(--ms-primary-light) !important;
	color: var(--ms-primary-hover) !important;
}

.ms-pdp__price-details {
	margin-top: var(--space-3);
	padding: var(--space-3);
	background: var(--ms-bg-soft);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-md);
}

.ms-pdp__price-details-row {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	font-size: 14px;
	color: var(--ms-text);
}

.ms-pdp__price-details-row + .ms-pdp__price-details-row {
	margin-top: var(--space-2);
}

.ms-pdp__price-details-note {
	margin: var(--space-1) 0 var(--space-2);
	font-size: 12px;
	color: var(--ms-text-muted);
}

.ms-pdp__price-details-save {
	margin: var(--space-2) 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #16a34a;
}

/* Hide default WC price in summary (we render custom block) */
.mishtam-theme .ms-pdp .summary > p.price {
	display: none !important;
}

/* Short description */
.mishtam-theme .ms-pdp .woocommerce-product-details__short-description {
	font-size: 15px;
	line-height: 1.65;
	color: var(--ms-text-muted);
	margin: 0 0 var(--space-4);
}

/* Offers */
.ms-pdp__offers {
	margin: 0;
	padding: var(--space-4);
	background: linear-gradient(180deg, #fff9fc 0%, #fff 100%);
	border: 1px solid rgba(212, 20, 106, 0.12);
	border-radius: var(--ms-radius-md);
}

.ms-pdp__offers-title {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-3);
	font-size: 15px;
	font-weight: 700;
	color: var(--ms-text);
}

.ms-pdp__offers-title svg {
	width: 18px;
	height: 18px;
	color: var(--ms-primary);
	flex-shrink: 0;
}

.ms-pdp__offers-list {
	margin: 0;
	padding: 0 0 0 1.1rem;
	list-style: disc;
}

.ms-pdp__offers-list li {
	font-size: 13px;
	line-height: 1.55;
	color: var(--ms-text-muted);
	margin-bottom: var(--space-2);
}

.ms-pdp__offers-list li:last-child {
	margin-bottom: 0;
}

/* Delivery check */
.ms-pdp__delivery {
	margin: 0;
}

.ms-pdp__delivery-label {
	display: block;
	margin-bottom: var(--space-2);
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-text);
}

.ms-pdp__delivery-row {
	display: flex;
	align-items: stretch;
	gap: var(--space-2);
}

.ms-pdp__delivery-input-wrap {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
}

.ms-pdp__delivery-input-wrap svg {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--ms-text-muted);
	pointer-events: none;
}

.ms-pdp__delivery-input {
	width: 100%;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
	padding: 0 var(--space-3) 0 48px !important;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	font-size: 14px;
	line-height: 48px;
	color: var(--ms-text);
	background: #fff;
	box-shadow: none;
	box-sizing: border-box;
}

.ms-pdp__delivery-input:focus {
	outline: none;
	border-color: rgba(212, 20, 106, 0.35);
	box-shadow: 0 0 0 3px var(--ms-primary-light);
}

.mishtam-theme .ms-pdp .ms-pdp__delivery-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
	padding: 0 22px !important;
	border: none !important;
	border-radius: var(--ms-radius-md);
	background: var(--ms-gradient-primary) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
	box-shadow: none !important;
	cursor: pointer;
	transition: opacity var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-pdp .ms-pdp__delivery-btn:hover {
	opacity: 0.92;
}

.ms-pdp__delivery-result {
	margin: var(--space-2) 0 0;
	font-size: 13px;
	font-weight: 600;
}

.ms-pdp__delivery-result.is-success {
	color: #16a34a;
}

.ms-pdp__delivery-result.is-error {
	color: var(--ms-error);
}

.ms-pdp__delivery-result.is-loading {
	color: var(--ms-text-muted);
}

.ms-pdp__delivery-cod {
	margin: var(--space-2) 0 0;
	font-size: 12px;
	color: var(--ms-text-muted);
}

.mishtam-theme.single-product .ast-article-single img,
.mishtam-theme.single-product .woocommerce-product-gallery__image img {
	box-shadow: none !important;
}

/* Variations form — pills above cart */
.mishtam-theme .ms-pdp form.variations_form {
	width: 100%;
	margin: 0;
}

.mishtam-theme .ms-pdp table.variations {
	width: 100%;
	margin: 0 0 var(--space-2);
	border: 0;
}

.mishtam-theme .ms-pdp table.variations tr {
	display: block;
	margin-bottom: var(--space-4);
}

.mishtam-theme .ms-pdp table.variations tr:last-child {
	margin-bottom: var(--space-2);
}

.mishtam-theme .ms-pdp table.variations th,
.mishtam-theme .ms-pdp table.variations td {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
}

.mishtam-theme .ms-pdp table.variations th.label {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	margin: 0 0 var(--space-2) !important;
	padding: 0 !important;
	overflow: visible !important;
}

.mishtam-theme .ms-pdp table.variations th.label label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ms-text);
	margin: 0;
}

.mishtam-theme .ms-pdp table.variations select {
	display: none !important;
}

.ms-pdp__var {
	margin-bottom: 0;
}

.ms-pdp__var-select {
	display: none !important;
}

.mishtam-theme .ms-pdp__pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.mishtam-theme button.ms-pdp__pill,
.mishtam-theme .ms-pdp__pill {
	min-height: 42px;
	padding: 0 16px;
	border: 1.5px solid var(--ms-border) !important;
	border-radius: var(--ms-radius-md);
	background: #fff !important;
	color: var(--ms-text) !important;
	font-family: var(--ms-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	transition: border-color var(--ms-duration) var(--ms-ease), background var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme button.ms-pdp__pill:hover:not(.is-active),
.mishtam-theme button.ms-pdp__pill:focus:not(.is-active),
.mishtam-theme .ms-pdp__pill:hover:not(.is-active),
.mishtam-theme .ms-pdp__pill:focus:not(.is-active) {
	border-color: rgba(212, 20, 106, 0.35) !important;
	background: var(--ms-primary-light) !important;
	color: var(--ms-primary) !important;
}

.mishtam-theme button.ms-pdp__pill.is-active,
.mishtam-theme .ms-pdp__pill.is-active,
.mishtam-theme button.ms-pdp__pill.is-active:hover,
.mishtam-theme button.ms-pdp__pill.is-active:focus,
.mishtam-theme .ms-pdp__pill.is-active:hover,
.mishtam-theme .ms-pdp__pill.is-active:focus {
	border-color: var(--ms-primary) !important;
	background: var(--ms-primary-light) !important;
	color: var(--ms-primary) !important;
}

.mishtam-theme button.ms-pdp__pill:focus-visible,
.mishtam-theme .ms-pdp__pill:focus-visible {
	outline: 2px solid var(--ms-primary);
	outline-offset: 2px;
}

.mishtam-theme .ms-pdp .reset_variations {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--ms-primary);
	margin-top: var(--space-2);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mishtam-theme .ms-pdp .single_variation_wrap {
	margin-top: var(--space-2);
}

.mishtam-theme .ms-pdp .woocommerce-variation.single_variation:empty {
	display: none;
	margin: 0;
	padding: 0;
	min-height: 0;
}

.mishtam-theme .ms-pdp .woocommerce-variation-add-to-cart,
.mishtam-theme .ms-pdp .variations_button {
	width: 100%;
}

.mishtam-theme .ms-pdp .woocommerce-variation-price {
	display: none;
}

/* Cart form */
.mishtam-theme .ms-pdp form.cart,
.mishtam-theme .ms-pdp form.variations_form {
	display: block;
	margin: 0;
}

.mishtam-theme .ms-pdp .ms-pdp__actions {
	display: flex;
	align-items: stretch;
	gap: var(--space-2);
	width: 100%;
}

.mishtam-theme .ms-pdp .ms-pdp__wishlist {
	flex-shrink: 0;
	width: 52px;
	min-width: 52px;
	height: 52px;
	min-height: 52px;
	max-height: 52px;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	background: #fff;
	color: var(--ms-text-muted);
	font-size: 22px;
	line-height: 1;
	box-sizing: border-box;
	box-shadow: none !important;
	cursor: pointer;
	transition: border-color var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-pdp .ms-pdp__wishlist-icon {
	display: block;
	line-height: 1;
}

.mishtam-theme .ms-pdp .ms-pdp__wishlist svg {
	display: none;
}

.mishtam-theme .ms-pdp .ms-pdp__wishlist:hover,
.mishtam-theme .ms-pdp .ms-pdp__wishlist.is-active {
	border-color: var(--ms-primary);
	color: var(--ms-primary);
}

.mishtam-theme .ms-pdp .ms-pdp__wishlist.is-active .ms-pdp__wishlist-icon {
	color: var(--ms-primary);
}

.mishtam-theme .ms-pdp .ms-pdp__wishlist.is-busy,
.mishtam-theme .ms-pdp .ms-pdp__wishlist:disabled {
	opacity: 0.65;
	cursor: wait;
}

.mishtam-theme .ms-pdp .quantity,
.mishtam-theme .ms-pdp form.cart .quantity,
.mishtam-theme .ms-pdp .ms-pdp__actions .quantity {
	display: none !important;
}

.mishtam-theme .ms-pdp .single_add_to_cart_button {
	flex: 1 1 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	margin: 0 !important;
	padding: 0 24px !important;
	border-radius: var(--ms-radius-md) !important;
	background: #16a34a !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: none !important;
	box-sizing: border-box;
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
	transition: transform var(--ms-duration) var(--ms-ease), box-shadow var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-pdp .single_add_to_cart_button:hover:not(:disabled):not(.disabled) {
	background: #15803d !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(22, 163, 74, 0.32);
}

.mishtam-theme .ms-pdp .stock {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 var(--space-2);
	width: 100%;
}

.mishtam-theme .ms-pdp .stock.out-of-stock,
.mishtam-theme .ms-pdp .stock.in-stock,
.mishtam-theme .ms-pdp .woocommerce-variation-availability {
	display: none !important;
}

.ms-pdp__stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 var(--space-3);
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ms-text-muted);
	box-sizing: border-box;
}

.ms-pdp__stock-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: inherit;
}

.ms-pdp__stock-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.ms-pdp__stock-text {
	color: var(--ms-text);
	font-weight: 600;
}

.ms-pdp__stock--in-stock {
	color: #16a34a;
}

.ms-pdp__stock--in-stock .ms-pdp__stock-text {
	color: #15803d;
}

.ms-pdp__stock--out-of-stock {
	color: var(--ms-error);
}

.ms-pdp__stock--out-of-stock .ms-pdp__stock-text {
	color: var(--ms-error);
}

.ms-pdp__stock--pending {
	color: var(--ms-text-muted);
}

.ms-pdp__stock--pending .ms-pdp__stock-text {
	color: var(--ms-text-muted);
	font-weight: 500;
}

.mishtam-theme .ms-pdp .single_add_to_cart_button.is-ms-hidden {
	display: none !important;
}

/* Countdown */
.mishtam-theme .ms-pdp .ms-pdp__actions + .ms-pdp__countdown,
.ms-pdp__countdown {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: wrap;
	width: 100%;
	margin-top: var(--space-3);
	padding: var(--space-3);
	background: #fff5f7;
	border: 1px solid rgba(212, 20, 106, 0.12);
	border-radius: var(--ms-radius-md);
	box-sizing: border-box;
}

.ms-pdp__countdown-timer {
	font-size: 15px;
	font-weight: 800;
	color: #dc2626;
	font-variant-numeric: tabular-nums;
}

.ms-pdp__countdown-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-text);
}

/* Trust chips — compact row */
.ms-pdp__trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.ms-pdp__trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: 6px;
	padding: 10px 8px;
	background: #faf7f8;
	border-radius: 10px;
	min-height: 0;
}

.ms-pdp__trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	color: var(--ms-primary);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.ms-pdp__trust-icon svg {
	width: 18px;
	height: 18px;
}

.ms-pdp__trust-text {
	font-size: 11px;
	font-weight: 600;
	color: var(--ms-text);
	line-height: 1.3;
}

/* Description, details, reviews — right column below buy box */
.ms-pdp__below {
	padding-top: 0;
	margin-top: 0;
	border-top: 0;
	width: 100%;
}

/* Stacked sections — no tab bar */
.mishtam-theme .ms-pdp .ms-pdp__sections {
	margin: 0;
	width: 100%;
}

.mishtam-theme .ms-pdp .ms-pdp__sections > ul.tabs,
.mishtam-theme .ms-pdp .ms-pdp__sections ul.tabs {
	display: none !important;
}

.mishtam-theme .ms-pdp .ms-pdp__section {
	display: block !important;
	padding: var(--space-5) 0;
	border-top: 1px solid var(--ms-border-light);
}

.mishtam-theme .ms-pdp .ms-pdp__section:first-child {
	padding-top: 0;
	border-top: 0;
}

.mishtam-theme .ms-pdp .ms-pdp__section-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--ms-text);
	margin: 0 0 var(--space-4);
	line-height: 1.3;
}

.mishtam-theme .ms-pdp .ms-pdp__section-body {
	font-size: 15px;
	line-height: 1.65;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-pdp .woocommerce-Tabs-panel {
	padding: 0;
	border: 0 !important;
}

.mishtam-theme .ms-pdp .woocommerce-Tabs-panel > h2:not(.ms-pdp__section-title),
.mishtam-theme .ms-pdp .woocommerce-Tabs-panel > #reviews > h2,
.mishtam-theme .ms-pdp #reviews .woocommerce-Reviews-title {
	display: none;
}

.mishtam-theme .ms-pdp .woocommerce-Tabs-panel h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--ms-text);
	margin: 0 0 var(--space-3);
}

.mishtam-theme .ms-pdp .ms-pdp__section-body > p {
	margin: 0;
}

.mishtam-theme .ms-pdp .ms-pdp__section-body > ul {
	margin: 0 0 var(--space-3);
	padding-left: 1.25rem;
}

.mishtam-theme .ms-pdp .ms-pdp__section-body > ul > li {
	margin-bottom: var(--space-2);
}

/* Additional information — clean key/value rows */
.mishtam-theme .ms-pdp table.shop_attributes {
	width: 100%;
	border: 0 !important;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	background: transparent;
}

.mishtam-theme .ms-pdp table.shop_attributes th,
.mishtam-theme .ms-pdp table.shop_attributes td {
	border: 0 !important;
	border-bottom: 1px solid var(--ms-border-light) !important;
	padding: 14px 0 !important;
	background: transparent !important;
	font-size: 14px;
	line-height: 1.4;
	vertical-align: middle;
}

.mishtam-theme .ms-pdp table.shop_attributes tr:last-child th,
.mishtam-theme .ms-pdp table.shop_attributes tr:last-child td {
	border-bottom: 0 !important;
}

.mishtam-theme .ms-pdp table.shop_attributes th {
	width: 36%;
	font-weight: 700;
	color: var(--ms-text);
	padding-right: var(--space-4) !important;
}

.mishtam-theme .ms-pdp table.shop_attributes td {
	font-weight: 500;
	color: var(--ms-text-muted);
	font-style: normal !important;
}

.mishtam-theme .ms-pdp table.shop_attributes td p {
	margin: 0;
}

/* ── Reviews — Winni-style summary + badge cards ───────────── */
.mishtam-theme .ms-pdp #reviews {
	margin: 0;
	width: 100%;
}

/* Summary: score left, distribution bars right */
.mishtam-theme .ms-pdp #reviews .ms-pdp__review-summary,
.mishtam-theme .ms-pdp .woocommerce-Tabs-panel--reviews > .ms-pdp__review-summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-5);
	margin: 0 0 var(--space-6);
	padding: 0 0 var(--space-5);
	border: 0;
	border-bottom: 1px solid var(--ms-border-light);
	background: transparent;
}

.mishtam-theme .ms-pdp .ms-pdp__review-summary-left {
	flex: 0 0 auto;
}

.mishtam-theme .ms-pdp .ms-pdp__review-summary-score {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.mishtam-theme .ms-pdp .ms-pdp__review-summary-num {
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	color: var(--ms-text);
}

.mishtam-theme .ms-pdp .ms-pdp__review-summary-star {
	width: 22px;
	height: 22px;
	color: var(--ms-success);
}

.mishtam-theme .ms-pdp .ms-pdp__review-summary.is-empty .ms-pdp__review-summary-star {
	color: #d8d8d8;
}

.mishtam-theme .ms-pdp .ms-pdp__review-summary-label {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-pdp .ms-pdp__rating--empty .ms-pdp__rating-link {
	font-size: 13px;
	font-weight: 600;
}

/* Reviews list heading */
.mishtam-theme .ms-pdp .ms-pdp__reviews-list-heading {
	margin: 0 0 var(--space-4);
	font-size: 14px;
	font-weight: 700;
	color: var(--ms-text);
}

/* Empty reviews state */
.mishtam-theme .ms-pdp .ms-pdp__reviews-empty {
	margin: 0 0 var(--space-5);
	padding: var(--space-5);
	text-align: center;
	background: var(--ms-bg-soft);
	border-radius: var(--ms-radius-md);
}

.mishtam-theme .ms-pdp .ms-pdp__reviews-empty-title {
	margin: 0 0 var(--space-2);
	font-size: 15px;
	font-weight: 700;
	color: var(--ms-text);
}

.mishtam-theme .ms-pdp .ms-pdp__reviews-empty-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ms-text-muted);
}

/* Login / verification notices */
.mishtam-theme .ms-pdp .ms-pdp__review-notice {
	margin: var(--space-5) 0 0;
	padding: var(--space-4) var(--space-5);
	background: var(--ms-bg-soft);
	border-radius: var(--ms-radius-md);
}

.mishtam-theme .ms-pdp .ms-pdp__review-notice p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-pdp .ms-pdp__review-notice a {
	color: var(--ms-primary);
	font-weight: 600;
	text-decoration: none;
}

.mishtam-theme .ms-pdp .ms-pdp__review-notice a:hover {
	text-decoration: underline;
}

/* Review pagination */
.mishtam-theme .ms-pdp .ms-pdp__review-pagination {
	margin: var(--space-5) 0 0;
}

.mishtam-theme .ms-pdp .ms-pdp__review-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin: 0 4px 4px 0;
	padding: 0 10px;
	border-radius: var(--ms-radius-md);
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-text);
	text-decoration: none;
	background: var(--ms-bg-soft);
}

.mishtam-theme .ms-pdp .ms-pdp__review-pagination .page-numbers.current {
	background: var(--ms-primary);
	color: #fff;
}

.mishtam-theme .ms-pdp .ms-pdp__review-pagination .page-numbers:hover:not(.current) {
	background: var(--ms-primary-light);
	color: var(--ms-primary);
}


.mishtam-theme .ms-pdp .ms-pdp__review-summary-bars {
	flex: 1 1 200px;
	max-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mishtam-theme .ms-pdp .ms-pdp__review-bar-row {
	display: grid;
	grid-template-columns: 28px 1fr 24px;
	align-items: center;
	gap: 8px;
}

.mishtam-theme .ms-pdp .ms-pdp__review-bar-label {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-pdp .ms-pdp__review-bar-label svg {
	width: 11px;
	height: 11px;
	color: #f5a623;
}

.mishtam-theme .ms-pdp .ms-pdp__review-bar-track {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: #eee;
	overflow: hidden;
}

.mishtam-theme .ms-pdp .ms-pdp__review-bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--ms-success);
}

.mishtam-theme .ms-pdp .ms-pdp__review-bar-track.is-low .ms-pdp__review-bar-fill {
	background: var(--ms-error);
}

.mishtam-theme .ms-pdp .ms-pdp__review-bar-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--ms-text-muted);
	text-align: right;
}

/* Review cards */
.mishtam-theme .ms-pdp #reviews .commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.mishtam-theme .ms-pdp #reviews .commentlist > .ms-pdp__review-item {
	margin: 0;
	padding: 0;
	border: 0;
}

.mishtam-theme .ms-pdp .ms-pdp__review-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-3);
	width: 100%;
	margin: 0;
	padding: var(--space-4);
	border: 0;
	border-radius: var(--ms-radius-md);
	background: var(--ms-bg-soft);
}

.mishtam-theme .ms-pdp .ms-pdp__review-card-top {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	width: 100%;
}

.mishtam-theme .ms-pdp .ms-pdp__review-avatar {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ms-primary-light);
	color: var(--ms-primary);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.mishtam-theme .ms-pdp .ms-pdp__review-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	flex-shrink: 0;
	margin-left: auto;
	min-width: 44px;
	height: 28px;
	padding: 0 8px;
	border-radius: 6px;
	background: var(--ms-success);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.mishtam-theme .ms-pdp .ms-pdp__review-badge-star {
	width: 12px;
	height: 12px;
}

.mishtam-theme .ms-pdp .ms-pdp__review-card-meta {
	flex: 1;
	min-width: 0;
}

.mishtam-theme .ms-pdp .ms-pdp__review-name {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ms-text);
	line-height: 1.3;
}

.mishtam-theme .ms-pdp .ms-pdp__review-date {
	margin: 0;
	font-size: 12px;
	color: var(--ms-text-muted);
	line-height: 1.4;
}

.mishtam-theme .ms-pdp .ms-pdp__review-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: var(--space-1) 0 0;
	font-size: 11px;
	font-weight: 600;
	color: var(--ms-success);
	line-height: 1.3;
}

.mishtam-theme .ms-pdp .ms-pdp__review-verified svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.mishtam-theme .ms-pdp .ms-pdp__review-text {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: left;
}

.mishtam-theme .ms-pdp .ms-pdp__review-text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ms-text);
	text-align: left;
}

.mishtam-theme .ms-pdp #reviews .woocommerce-noreviews {
	display: none;
}

/* Review form — soft card */
.mishtam-theme .ms-pdp #review_form #respond {
	margin: 0;
	padding: var(--space-5);
	background: var(--ms-bg) !important;
	border: 0 !important;
	border-radius: var(--ms-radius-lg) !important;
	box-shadow: 0 2px 16px rgba(31, 31, 31, 0.06) !important;
}

/* Reviews + form layout */
.mishtam-theme .ms-pdp #reviews {
	display: block;
	margin: 0;
	width: 100%;
	clear: both;
}

.mishtam-theme .ms-pdp #reviews::before,
.mishtam-theme .ms-pdp #reviews::after {
	content: "";
	display: table;
	clear: both;
}

.mishtam-theme .ms-pdp #reviews #comments {
	float: none !important;
	clear: both !important;
	margin: 0 0 var(--space-5) !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.mishtam-theme .ms-pdp #reviews #review_form_wrapper {
	float: none !important;
	clear: both !important;
	margin: var(--space-6) 0 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	border: 0 !important;
	background: transparent !important;
}

.mishtam-theme .ms-pdp #reviews #review_form {
	float: none !important;
	clear: both !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	border: 0 !important;
	background: transparent !important;
}

.mishtam-theme .ms-pdp #review_form .comment-form,
.mishtam-theme .ms-pdp #review_form .ms-pdp__review-form {
	display: block;
	margin: 0;
	width: 100%;
}

.mishtam-theme .ms-pdp #review_form .comment-reply-title {
	display: block;
	margin: 0 0 var(--space-5);
	font-size: 16px;
	font-weight: 700;
	color: var(--ms-text);
	line-height: 1.35;
}

.mishtam-theme .ms-pdp #review_form .comment-notes {
	display: none;
}

.mishtam-theme .ms-pdp #review_form p.stars {
	display: none !important;
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__form-rating-label {
	display: block;
	margin: 0 0 var(--space-2);
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-text);
}

.mishtam-theme .ms-pdp #review_form label:not(.ms-pdp__star-label) {
	display: block;
	margin: 0 0 var(--space-2);
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-text);
}

.mishtam-theme .ms-pdp #review_form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	clear: both !important;
	float: none !important;
	width: 100% !important;
	margin: 0 0 var(--space-5) !important;
}

.mishtam-theme .ms-pdp #review_form .comment-form-cookies-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--ms-primary);
}

.mishtam-theme .ms-pdp #review_form .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-pdp #review_form .comment-form-rating,
.mishtam-theme .ms-pdp #review_form .ms-pdp__form-rating {
	float: none !important;
	clear: both;
	display: block;
	width: 100% !important;
	margin: 0 0 var(--space-5) !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* Radio stars — CSS-only highlight (no JS dependency) */
.mishtam-theme .ms-pdp #review_form .ms-pdp__form-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__form-stars input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__star-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__star-icon {
	display: block;
	font-size: 32px;
	line-height: 1;
	color: #d8d8d8;
	transition: color 0.15s ease, transform 0.15s ease;
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__star-label:hover {
	background: rgba(245, 166, 35, 0.12);
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__star-label:hover .ms-pdp__star-icon,
.mishtam-theme .ms-pdp #review_form .ms-pdp__star-label:hover ~ .ms-pdp__star-label .ms-pdp__star-icon,
.mishtam-theme .ms-pdp #review_form .ms-pdp__form-stars input[type="radio"]:checked ~ .ms-pdp__star-label .ms-pdp__star-icon {
	color: #f5a623;
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__form-stars input[type="radio"]:focus-visible + .ms-pdp__star-label {
	box-shadow: 0 0 0 2px var(--ms-primary-light);
	outline: none;
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__form-stars input[type="radio"]:checked + .ms-pdp__star-label .ms-pdp__star-icon {
	transform: scale(1.05);
}

.mishtam-theme .ms-pdp #review_form .ms-pdp__star-label .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.mishtam-theme .ms-pdp #review_form p {
	float: none !important;
	clear: both;
	margin: 0 0 var(--space-5);
	width: 100%;
}

.mishtam-theme .ms-pdp #review_form .comment-form-comment textarea,
.mishtam-theme .ms-pdp #review_form input[type="text"],
.mishtam-theme .ms-pdp #review_form input[type="email"] {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--ms-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ms-text);
	box-shadow: none;
	outline: none;
	box-sizing: border-box;
}

.mishtam-theme .ms-pdp #review_form .comment-form-comment textarea {
	min-height: 100px;
	resize: vertical;
}

.mishtam-theme .ms-pdp #review_form .comment-form-comment textarea:focus,
.mishtam-theme .ms-pdp #review_form input[type="text"]:focus,
.mishtam-theme .ms-pdp #review_form input[type="email"]:focus {
	border-color: var(--ms-primary);
	box-shadow: 0 0 0 3px var(--ms-primary-light);
}

.mishtam-theme .ms-pdp #review_form .comment-form-author,
.mishtam-theme .ms-pdp #review_form .comment-form-email {
	float: none !important;
	width: 100% !important;
	margin: 0 0 var(--space-5) !important;
}

/* Name + Email side-by-side on tablet & desktop */
@media (min-width: 768px) {
	.mishtam-theme .ms-pdp #review_form .comment-form,
	.mishtam-theme .ms-pdp #review_form .ms-pdp__review-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: var(--space-4);
		align-items: start;
	}

	.mishtam-theme .ms-pdp #review_form .comment-reply-title,
	.mishtam-theme .ms-pdp #review_form .comment-notes,
	.mishtam-theme .ms-pdp #review_form .comment-form-rating,
	.mishtam-theme .ms-pdp #review_form .ms-pdp__form-rating,
	.mishtam-theme .ms-pdp #review_form .comment-form-comment,
	.mishtam-theme .ms-pdp #review_form .comment-form-cookies-consent,
	.mishtam-theme .ms-pdp #review_form .form-submit {
		grid-column: 1 / -1;
	}

	.mishtam-theme .ms-pdp #review_form .comment-form-author,
	.mishtam-theme .ms-pdp #review_form .comment-form-email {
		clear: none !important;
		float: none !important;
		width: 100% !important;
		margin: 0 0 var(--space-5) !important;
	}
}

.mishtam-theme .ms-pdp #review_form .form-submit {
	margin: var(--space-2) 0 0;
}

.mishtam-theme .ms-pdp #review_form .form-submit input,
.mishtam-theme .ms-pdp #review_form .form-submit .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--ms-primary) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	box-shadow: none !important;
}

.mishtam-theme .ms-pdp #review_form .form-submit input:hover,
.mishtam-theme .ms-pdp #review_form .form-submit .submit:hover {
	background: var(--ms-primary-hover) !important;
}

@media (max-width: 640px) {
	.mishtam-theme .ms-pdp .ms-pdp__section {
		padding: var(--space-4) 0;
	}

	.mishtam-theme .ms-pdp .ms-pdp__section-title {
		font-size: 16px;
		margin-bottom: var(--space-3);
	}

	.mishtam-theme .ms-pdp #reviews .ms-pdp__review-summary,
	.mishtam-theme .ms-pdp .woocommerce-Tabs-panel--reviews > .ms-pdp__review-summary {
		flex-direction: column;
		gap: var(--space-4);
	}

	.mishtam-theme .ms-pdp .ms-pdp__review-summary-bars {
		max-width: none;
		width: 100%;
	}
}

/* Upsells — homepage-style showcase section (full width below hero) */
.ms-pdp__upsells {
	width: 100%;
	margin-top: var(--space-6);
	clear: both;
	position: relative;
	z-index: 1;
}

.mishtam-theme .ms-pdp-upsells {
	padding: var(--ms-section-y) 0;
}

.mishtam-theme .ms-pdp-upsells .ms-bestsellers__head {
	margin-bottom: var(--space-5);
}

@media (max-width: 900px) {
	.mishtam-theme .ms-pdp-upsells .ms-showcase__scroll {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-4);
	}
}

@media (max-width: 540px) {
	.mishtam-theme .ms-pdp-upsells .ms-showcase__scroll {
		grid-template-columns: 1fr;
	}
}

/* Legacy WC upsell loop (fallback) */
.mishtam-theme .ms-pdp section.up-sells {
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--ms-border-light);
}

.mishtam-theme .ms-pdp section.up-sells > h2 {
	font-size: var(--ms-h3);
	margin-bottom: var(--space-4);
}

/* Related products */
.mishtam-theme .ms-pdp section.related {
	margin-top: var(--space-6);
	padding-top: var(--space-5);
	border-top: 1px solid var(--ms-border-light);
}

.mishtam-theme .ms-pdp section.related > h2 {
	font-size: var(--ms-h3);
	margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
	.mishtam-theme.single-product .site-main {
		padding-bottom: var(--space-3);
	}

	.mishtam-theme.single-product .ms-pdp__inner {
		padding-top: var(--space-2);
	}

	.mishtam-theme.single-product .ms-pdp__crumbs .woocommerce-breadcrumb,
	.mishtam-theme.single-product .ms-pdp__crumbs .ms-pdp__breadcrumb {
		padding: 6px 0 8px !important;
		font-size: 11px;
		line-height: 1.4;
	}

	/* Full-bleed gallery — edge-to-edge on mobile */
	.mishtam-theme.single-product .ms-pdp__gallery {
		margin-left: calc(-1 * var(--ms-container-x));
		margin-right: calc(-1 * var(--ms-container-x));
		width: calc(100% + 2 * var(--ms-container-x));
		max-width: none;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery,
	.mishtam-theme .ms-pdp .woocommerce-product-gallery.is-ms-mobile-gallery {
		padding: 0;
		border: 0;
		border-radius: 0;
		display: block !important;
		margin: 0;
		min-height: 0 !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery .flex-viewport {
		display: none !important;
		height: 0 !important;
		min-height: 0 !important;
		max-height: 0 !important;
		overflow: hidden !important;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
		display: block !important;
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		transform: none !important;
		border-radius: 0;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image {
		display: none !important;
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 1;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		visibility: visible !important;
		pointer-events: auto !important;
		clip: auto !important;
		background: #fdf8fa;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image.is-ms-active,
	.mishtam-theme .ms-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image:first-child {
		display: block !important;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image a {
		display: block;
		width: 100%;
		height: 100%;
		cursor: pointer;
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery .woocommerce-product-gallery__image img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: none !important;
		aspect-ratio: auto;
		object-fit: contain;
		object-position: center center;
		background: #fdf8fa;
		border-radius: 0 !important;
	}

	.mishtam-theme .ms-pdp .ms-pdp__mobile-hero {
		display: none !important;
	}

	.mishtam-theme .ms-pdp__gallery > .ms-pdp__badge,
	.mishtam-theme .ms-pdp__gallery > span.onsale {
		top: var(--space-3);
		left: var(--space-3);
	}

	.mishtam-theme .ms-pdp .woocommerce-product-gallery__trigger {
		top: var(--space-3);
		right: var(--space-3);
	}

	.mishtam-theme .ms-pdp .ms-pdp__section {
		padding: var(--space-4) 0;
	}

	.mishtam-theme .ms-pdp .woocommerce-Tabs-panel--reviews {
		padding-bottom: 0;
	}

	.mishtam-theme .ms-pdp #reviews #review_form_wrapper {
		margin-top: var(--space-4) !important;
	}

	.mishtam-theme .ms-pdp #review_form #respond {
		padding: var(--space-4);
	}

	.mishtam-theme.single-product .ms-pdp__upsells:empty {
		display: none;
		margin: 0;
		padding: 0;
	}

	.ms-pdp__layout {
		display: flex !important;
		flex-direction: column;
		gap: var(--space-3) !important;
		margin-bottom: var(--space-4);
	}

	/* Flatten sticky wrapper so mobile order stays: gallery → buybox → trust → details */
	.ms-pdp__gallery-col,
	.ms-pdp__content-col,
	.ms-pdp__gallery-sticky {
		display: contents;
	}

	.ms-pdp__gallery {
		order: 1;
	}

	.ms-pdp__buybox {
		order: 2;
	}

	.ms-pdp__trust {
		order: 3;
	}

	.ms-pdp__below {
		order: 4;
	}

	.mishtam-theme .ms-pdp .ms-pdp__summary {
		gap: var(--space-3);
	}

	.mishtam-theme .ms-pdp__gallery > .flex-control-thumbs,
	.mishtam-theme .ms-pdp .woocommerce-product-gallery > .flex-control-thumbs,
	.mishtam-theme .ms-pdp .flex-control-thumbs {
		display: flex !important;
		position: relative;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: var(--space-2);
		margin: var(--space-2) 0 0 !important;
		padding: 0 var(--ms-container-x);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.mishtam-theme .ms-pdp__gallery > .flex-control-thumbs::-webkit-scrollbar,
	.mishtam-theme .ms-pdp .flex-control-thumbs::-webkit-scrollbar {
		display: none;
	}

	.ms-pdp__trust-item {
		padding: 8px 6px;
		min-height: 0;
	}

	.ms-pdp__trust-text {
		font-size: 10px;
		line-height: 1.25;
	}

	.ms-pdp__below {
		padding-top: 0;
		margin-top: 0;
	}

	.mishtam-theme .ms-pdp .product_title {
		font-size: 1.35rem;
	}

	.ms-pdp__price-block {
		padding-bottom: var(--space-2);
	}

	.ms-pdp__upsells {
		margin-top: var(--space-3);
	}

	.mishtam-theme .ms-pdp-upsells {
		padding: var(--space-4) 0;
	}

	.mishtam-theme.single-product .ms-trust {
		padding: var(--space-4) 0;
	}
}

@media (max-width: 767px) {
	.mishtam-theme .ms-pdp form.cart {
		flex-direction: column;
	}

	.mishtam-theme .ms-pdp .single_add_to_cart_button {
		width: 100%;
	}

	.ms-pdp__trust {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.ms-pdp__delivery-row {
		flex-direction: column;
	}
}

/* Mishtam PDP lightbox — replaces WooCommerce PhotoSwipe */
.pswp {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

body.ms-pdp-lightbox-open {
	overflow: hidden;
}

.ms-pdp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4);
}

.ms-pdp-lightbox[hidden] {
	display: none !important;
}

.ms-pdp-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.88);
}

.ms-pdp-lightbox__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(960px, 100%);
	max-height: calc(100vh - 2 * var(--space-4));
}

.ms-pdp-lightbox__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	max-height: calc(100vh - 120px);
	margin: 0;
	padding: 0;
	background: #fff;
	border-radius: var(--ms-radius-md);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.ms-pdp-lightbox__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
}

.mishtam-theme .ms-pdp-lightbox__close,
.mishtam-theme .ms-pdp-lightbox__nav,
.ms-pdp-lightbox__close,
.ms-pdp-lightbox__nav {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 !important;
	min-height: 0 !important;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(31, 31, 31, 0.14);
	transition: background-color var(--ms-duration) var(--ms-ease), border-color var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease), transform var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-pdp-lightbox__close,
.ms-pdp-lightbox__close {
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	color: var(--ms-text) !important;
	background: rgba(255, 255, 255, 0.98) !important;
	border: 1px solid var(--ms-border-light) !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 14px rgba(31, 31, 31, 0.18) !important;
}

.mishtam-theme .ms-pdp-lightbox__close svg,
.ms-pdp-lightbox__close svg {
	width: 16px;
	height: 16px;
}

.mishtam-theme .ms-pdp-lightbox__close:hover,
.mishtam-theme .ms-pdp-lightbox__close:focus-visible,
.ms-pdp-lightbox__close:hover,
.ms-pdp-lightbox__close:focus-visible {
	color: #fff !important;
	background: var(--ms-primary) !important;
	border-color: var(--ms-primary) !important;
	transform: scale(1.04);
	outline: none;
}

.mishtam-theme .ms-pdp-lightbox__nav,
.ms-pdp-lightbox__nav {
	top: 50%;
	width: 44px;
	height: 44px;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.14) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 50% !important;
	transform: translateY(-50%);
}

.mishtam-theme .ms-pdp-lightbox__nav svg,
.ms-pdp-lightbox__nav svg {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.mishtam-theme .ms-pdp-lightbox__nav--prev,
.ms-pdp-lightbox__nav--prev {
	left: -56px;
}

.mishtam-theme .ms-pdp-lightbox__nav--next,
.ms-pdp-lightbox__nav--next {
	right: -56px;
}

.mishtam-theme .ms-pdp-lightbox__nav:hover,
.mishtam-theme .ms-pdp-lightbox__nav:focus-visible,
.ms-pdp-lightbox__nav:hover,
.ms-pdp-lightbox__nav:focus-visible {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.24) !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
	outline: none;
}

.ms-pdp-lightbox__counter {
	margin: var(--space-3) 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	text-align: center;
}

@media (max-width: 900px) {
	.ms-pdp-lightbox {
		padding: var(--space-3);
	}

	.mishtam-theme .ms-pdp-lightbox__close,
	.ms-pdp-lightbox__close {
		top: 10px;
		right: 10px;
		width: 34px;
		height: 34px;
	}

	.mishtam-theme .ms-pdp-lightbox__close svg,
	.ms-pdp-lightbox__close svg {
		width: 14px;
		height: 14px;
	}

	.mishtam-theme .ms-pdp-lightbox__nav,
	.ms-pdp-lightbox__nav {
		width: 38px;
		height: 38px;
	}

	.mishtam-theme .ms-pdp-lightbox__nav svg,
	.ms-pdp-lightbox__nav svg {
		width: 18px;
		height: 18px;
	}

	.mishtam-theme .ms-pdp-lightbox__nav--prev,
	.ms-pdp-lightbox__nav--prev {
		left: 8px;
	}

	.mishtam-theme .ms-pdp-lightbox__nav--next,
	.ms-pdp-lightbox__nav--next {
		right: 8px;
	}

	.ms-pdp-lightbox__figure {
		max-height: calc(100vh - 96px);
	}

	.ms-pdp-lightbox__img {
		max-height: calc(100vh - 96px);
	}
}
