/* ==========================================================================
   Modern product page — reference-inspired redesign (flatsome-child)
   Palette: Caterpillar yellow (#FFC400) + near-black ink
   Scope: single product pages only (.cat-product-modern)
   ========================================================================== */

/* Tokens (:root) live in cat-design-system.css, loaded site-wide. */

/* --------------------------------------------------------------------------
   Page atmosphere
   -------------------------------------------------------------------------- */

/* Thin frame separating the product section from the page background */
.cat-product-modern .product-main .row.cat-product-row {
	box-sizing: border-box;
	width: calc(100% - 60px);
	max-width: 1720px;
	margin-inline: auto;
	padding: 20px 6px;
	background: #ffffff;
	border: 1px solid var(--cat-line);
	border-radius: 22px;
}

@media (max-width: 849px) {
	.cat-product-modern .product-main .row.cat-product-row {
		width: calc(100% - 24px);
		padding: 14px 0;
	}
}

.cat-product-modern .product-main {
	background: linear-gradient(180deg, #f8f8f6 0%, #ffffff 92%);
	padding-top: 24px;
	padding-bottom: 48px;
}

/* --------------------------------------------------------------------------
   Breadcrumb bar
   -------------------------------------------------------------------------- */

.cat-breadcrumb-bar {
	max-width: 1450px;
	margin: 0 auto 18px;
	padding: 0 15px;
}

.cat-breadcrumb-bar .breadcrumbs {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.85em;
	font-weight: 500;
	color: var(--cat-muted);
	margin: 0;
}

.cat-breadcrumb-bar .breadcrumbs a {
	color: var(--cat-muted);
	transition: color 0.2s ease;
}

.cat-breadcrumb-bar .breadcrumbs a:hover {
	color: var(--cat-accent-text);
}

.cat-breadcrumb-bar .breadcrumbs a:first-child::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-inline-end: 6px;
	vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.5L12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.5L12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/></svg>") center / contain no-repeat;
}

.cat-breadcrumb-bar .breadcrumbs .divider {
	opacity: 0.45;
	margin: 0 0.5em;
}

/* --------------------------------------------------------------------------
   Layout / columns
   -------------------------------------------------------------------------- */

/* Three-column layout: 35% gallery / 35% info / 30% purchase box.
   Stacked full-width on small screens. */
.cat-col-gallery,
.cat-col-info,
.cat-col-buy {
	flex: 0 0 100%;
	max-width: 100%;
}

@media (min-width: 850px) {
	.cat-product-row {
		align-items: stretch;
	}

	.cat-col-gallery {
		flex: 0 0 35%;
		max-width: 35%;
	}

	.cat-col-info {
		flex: 0 0 40%;
		max-width: 40%;
		padding-inline: 26px;
	}

	.cat-col-buy {
		flex: 0 0 25%;
		max-width: 25%;
	}

	.cat-gallery-col {
		display: flex;
		flex-direction: column;
	}

	.cat-gallery-col .product-images {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.cat-buy-box {
		position: sticky;
		top: 96px;
	}
}

/* Purchase box card */
.cat-buy-box {
	background: #ffffff;
	border: 1px solid var(--cat-line);
	border-radius: 18px;
	padding: 22px 20px;
	box-shadow: 0 14px 34px -22px rgba(30, 30, 40, 0.25);
}

/* Brand block: name on the inline-start side, rounded logo box opposite */
.cat-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--cat-line);
	padding-bottom: 1em;
	margin-bottom: 1.1em;
}

.cat-brand__label {
	color: var(--cat-muted);
	font-size: 0.85em;
	font-weight: 500;
}

.cat-brand__name {
	color: var(--cat-ink);
	font-weight: 700;
	transition: color 0.2s ease;
}

a.cat-brand__info:hover .cat-brand__name {
	color: var(--cat-accent-text);
}

a.cat-brand__logo {
	transition: all 0.25s ease;
}

a.cat-brand__logo:hover {
	border-color: var(--cat-accent-500);
	box-shadow: 0 8px 18px -10px var(--cat-glow);
	transform: translateY(-1px);
}

.cat-brand__logo {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border: 1px solid var(--cat-line);
	border-radius: 12px;
	background: var(--cat-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.cat-brand__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cat-brand__monogram {
	font-size: 1.35em;
	font-weight: 800;
	color: var(--cat-ink);
}

/* Price inside the buy box: three-tier stack — reference row, hero price, profit chip */
.cat-buy-box .cat-price-wrap {
	display: block;
	margin: 0 0 1.1em;
	padding-bottom: 1em;
	border-bottom: 1px solid var(--cat-line);
}

/* Reference row: struck old price + discount pill, spread across the width */
.cat-buy-box .cat-price-top {
	display: flex;
	flex-direction: row-reverse; /* old price at the left, discount pill at the right */
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.cat-buy-box .cat-price-top del,
.cat-buy-box .cat-price-top del .woocommerce-Price-amount {
	color: #a6abb8;
	font-size: 0.9em;
	font-weight: 400;
	text-decoration-color: rgba(166, 171, 184, 0.7);
}

.cat-buy-box .cat-price-label {
	color: var(--cat-muted);
	font-size: 0.82em;
	font-weight: 500;
}

.cat-buy-box .cat-price-off {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--cat-ink);
	color: var(--cat-accent-500);
	font-size: 0.78em;
	font-weight: 700;
	white-space: nowrap;
}

/* Hero price */
.cat-buy-box .cat-price-badge {
	background: none;
	box-shadow: none;
	display: block;
	padding: 0;
	margin: 0;
	border-radius: 0;
	font-size: 1.7em;
	font-weight: 800;
	color: var(--cat-ink) !important;
	line-height: 1.35;
	text-align: left;
}

.cat-buy-box .cat-price-badge .woocommerce-Price-amount {
	color: var(--cat-ink);
	font-weight: 800;
}

.cat-buy-box .cat-price-badge .woocommerce-Price-currencySymbol {
	font-size: 0.55em;
	font-weight: 500;
	color: var(--cat-muted);
}

/* Profit chip: full-width, label right / amount left */
.cat-buy-box .cat-price-profit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--cat-surface);
}

.cat-buy-box .cat-price-profit__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--cat-muted);
	font-size: 0.8em;
	font-weight: 500;
}

.cat-buy-box .cat-price-profit__label svg {
	color: var(--cat-accent-700);
	flex: 0 0 auto;
}

.cat-buy-box .cat-price-profit b,
.cat-buy-box .cat-price-profit b .woocommerce-Price-amount {
	color: var(--cat-accent-text);
	font-size: 0.9em;
	font-weight: 800;
}

.cat-buy-box .cat-size-select {
	margin-bottom: 1.25em;
}

/* Narrow column: size pills justified — equal widths filling the full row */
.cat-buy-box .cat-size-select__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
	gap: 8px;
}

.cat-buy-box .cat-size-pill {
	min-width: 0;
	width: 100%;
	padding: 0 4px;
}

/* Cart row: (RTL, right to left) add-to-cart | quantity | bookmark */
.cat-buy-box form.cart {
	margin-bottom: 0;
	flex-wrap: nowrap;
	gap: 6px;
}

/* One line: add-to-cart (takes the leftover width) | quantity | bookmark */
.cat-buy-box .single_add_to_cart_button.button {
	order: 1;
	flex: 1 1 0;
	min-width: 0;
	padding: 0 6px;
	white-space: nowrap;
}

.cat-buy-box form.cart .quantity {
	order: 2;
	flex: 0 0 auto;
}

.cat-buy-box form.cart .quantity .ux-quantity__button {
	width: 26px;
}

.cat-buy-box form.cart .quantity input.qty {
	width: 30px;
}

/* Authenticity trust strip */
.cat-authentic {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 1.1em;
	padding: 11px 14px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid var(--cat-line);
}

.cat-authentic__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: #fff8e1;
	color: var(--cat-ink);
}

.cat-authentic__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	line-height: 1.7;
}

.cat-authentic__text strong {
	color: var(--cat-ink);
	font-size: 0.88em;
	font-weight: 700;
}

.cat-authentic__text span {
	color: var(--cat-muted);
	font-size: 0.76em;
}

/* Bookmark button: only shown inside the buy box row */
.cat-wishlist-btn {
	display: none;
}

.cat-buy-box .cat-wishlist-btn {
	order: 3;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 1px solid var(--cat-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--cat-ink);
	transition: all 0.25s ease;
}

.cat-buy-box .cat-wishlist-btn:hover {
	border-color: var(--cat-accent-500);
	color: var(--cat-accent-700);
	box-shadow: 0 8px 18px -10px var(--cat-glow);
	transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

/* Soft gray stage card: the product sits on a rounded tinted panel */
.cat-gallery-col .product-images {
	border-radius: 22px;
	border: 1px solid var(--cat-line);
	background: #f1f1f4;
	box-shadow: none;
	overflow: hidden;
	min-height: 380px;
}

/* Each slide is its own stacking context (flickity transforms), so it carries
   the stage colour itself — otherwise the multiply blend has nothing to melt into. */
.cat-gallery-col .woocommerce-product-gallery__image {
	background: #f1f1f4;
	padding: 18px 10px;
}

.cat-gallery-col .product-images .product-gallery-slider {
	margin-bottom: 0;
}

/* Floating controls over the stage: wishlist heart (start) + discount chip (end) */
.cat-gallery-col {
	position: relative;
}

.cat-gallery-overlay {
	position: absolute;
	top: 16px;
	inset-inline: 31px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.cat-gallery-overlay > * {
	pointer-events: auto;
}

.cat-gallery-wish {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--cat-ink);
	box-shadow: 0 6px 16px -8px rgba(30, 30, 40, 0.3);
	transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-gallery-wish:hover {
	color: #d4383e;
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -10px rgba(30, 30, 40, 0.4);
}

.cat-gallery-off {
	margin-inline-start: auto;
	font-family: 'IRANSansFaNum', IRANSans, sans-serif;
}

/* Compact main image: cap the height, keep proportions.
   multiply-blend melts the photo's white studio background into the page. */
.cat-gallery-col .woocommerce-product-gallery__image img {
	max-height: 440px;
	width: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.cat-gallery-col .woocommerce-product-gallery__image:hover img {
	transform: scale(1.025);
}

/* No sale badge or wishlist tools over the featured image */
.cat-gallery-col .product-images .badge-container,
.cat-gallery-col .product-images .image-tools.top {
	display: none !important;
}

/* Thumbnails: compact centered row of small square cards.
   Flatsome initializes this row as a flickity slider (absolute cells),
   so its layout is neutralized into a centered static flex row. */
.cat-gallery-col .product-thumbnails {
	margin-top: 14px;
	justify-content: center;
	text-align: center; /* centers the inline-block cells of the pre-init slider */
}

.cat-gallery-col .product-thumbnails .flickity-viewport {
	height: auto !important;
	overflow-x: auto !important;
	overflow-y: hidden;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	padding: 4px 0 8px !important;
	box-sizing: content-box;
}

.cat-gallery-col .product-thumbnails .flickity-viewport::-webkit-scrollbar {
	display: none;
}

.cat-gallery-col .product-thumbnails .flickity-slider {
	position: static !important;
	height: auto !important;
	align-items: flex-start;
	transform: none !important;
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: 100%;
}

.cat-gallery-col .product-thumbnails .col {
	scroll-snap-align: start;
	position: static !important;
	width: 25% !important;
	max-width: 25% !important;
	flex: 0 0 25% !important;
	padding: 0 8px;
	margin: 0;
}

/* Thumbnails: white cards with a light border (reference style) */
.cat-gallery-col .product-thumbnails img {
	display: block;
	margin: 0 !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border: 1.5px solid var(--cat-line);
	border-radius: 14px;
	background: #fff;
	padding: 8px;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-gallery-col .product-thumbnails .col:hover img {
	border-color: #cfd3dd;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px -8px rgba(30, 30, 40, 0.25);
}

/* Active thumbnail: yellow border, same clean white card */
.cat-gallery-col .product-thumbnails .is-nav-selected img {
	border: 2px solid var(--cat-accent-500);
	background: #fff;
	padding: 7.5px;
	box-shadow: none;
}

/* Thumbnail row arrows (product-thumbs.js) — only when the row overflows */
.cat-thumbs-shell {
	position: relative;
}

.cat-thumbs-nav {
	display: none;
	position: absolute;
	top: calc(50% - 5px);
	transform: translateY(-50%);
	z-index: 3;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--cat-line);
	border-radius: 50%;
	background: #ffffff;
	color: var(--cat-ink);
	box-shadow: 0 6px 14px -8px rgba(30, 30, 40, 0.35);
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cat-thumbs-shell.has-overflow .cat-thumbs-nav {
	display: inline-flex;
}

.cat-thumbs-nav:hover:not(:disabled) {
	background: var(--cat-accent-500);
	border-color: var(--cat-accent-500);
}

.cat-thumbs-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.cat-thumbs-nav--prev {
	right: 4px;
}

.cat-thumbs-nav--next {
	left: 4px;
}

/* Navigation belongs to the featured-image carousel only — never over thumbnails */
.cat-gallery-col .product-thumbnails .flickity-prev-next-button {
	display: none !important;
}

/* Main gallery arrows: complete circular buttons — solid white, bordered,
   dark chevron, fully inside the frame and clearly clickable.
   (Flatsome pushes them outside via left/right:100% and hides the svg with
   margin-top:-40px — both are overridden here.) */
.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff !important;
	border: 1px solid var(--cat-line);
	box-shadow: 0 6px 16px -8px rgba(30, 30, 40, 0.3);
	color: var(--cat-ink);
	opacity: 1 !important;
	top: calc(50% - 20px);
	bottom: auto;
	margin: 0;
	transform: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button.previous {
	right: 12px !important;
	left: auto !important;
}

.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button.next {
	left: 12px !important;
	right: auto !important;
}

.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button:hover {
	background: var(--cat-accent-500) !important;
	border-color: var(--cat-accent-500);
	color: var(--cat-ink);
}

.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button svg {
	width: 16px !important;
	height: 16px !important;
	padding: 0 !important;
	margin: 0 !important;
	position: absolute;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
}

.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button .arrow,
.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button svg {
	fill: currentColor !important;
}

.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button:hover .arrow,
.cat-product-modern .product-gallery .product-gallery-slider .flickity-prev-next-button:hover svg {
	fill: var(--cat-ink) !important;
	background: none;
	border: 0;
}

/* No separate zoom button — the featured image itself opens the lightbox */
.cat-gallery-col .product-images .image-tools.bottom {
	display: none;
}

.cat-gallery-col .woocommerce-product-gallery__image a {
	cursor: zoom-in;
}

/* --------------------------------------------------------------------------
   Summary column
   -------------------------------------------------------------------------- */

.cat-summary-col .product-title.entry-title {
	font-size: 1.5em;
	line-height: 1.45;
	color: var(--cat-ink);
	margin-bottom: 0.35em;
}

/* Hide Flatsome's default title divider for a cleaner hierarchy */
.cat-summary-col .is-divider {
	display: none;
}

/* Hide the stray next/prev product arrows inside the summary (mobile) */
.cat-summary-col .next-prev-thumbs {
	display: none !important;
}

/* Interactive rating: compact row, anchored to the left side of the column */
.cat-rating {
	display: flex;
	align-items: center;
	justify-content: flex-end; /* flex-end = left in RTL */
	gap: 8px;
	margin-bottom: 0.9em;
}

/* Product code: pinned to the opposite (start) end of the rating row */
.cat-product-code {
	order: -1;
	margin-inline-end: auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	border: 1px solid var(--cat-line);
	border-radius: 999px;
	padding: 4px 14px;
	color: var(--cat-muted);
	font-size: 0.8em;
	font-weight: 500;
	line-height: 1.6;
}

.cat-product-code b {
	color: var(--cat-ink);
	font-weight: 700;
}

.cat-rating__stars {
	display: inline-flex;
	gap: 2px;
}

.cat-rating__star {
	position: relative;
	display: block;
	width: 17px;
	height: 17px;
	min-height: 0;
	line-height: 1;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.cat-rating__star:hover {
	transform: scale(1.15);
}

.cat-rating__star-base,
.cat-rating__star-fill {
	position: absolute;
	inset: 0;
	display: block;
}

.cat-rating__star-base {
	color: #e3e6ee;
}

.cat-rating__star-fill {
	color: #f5b301;
	overflow: hidden;
	inset-inline-end: auto;
	transition: width 0.15s ease;
}

.cat-rating__star svg {
	width: 17px;
	height: 17px;
	display: block;
}

.cat-rating__count {
	color: var(--cat-muted);
	font-size: 0.85em;
	line-height: 17px;
	margin: 0;
}

.cat-rating.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* Yellow stars everywhere else on the product page (reviews tab, related) */
.cat-product-modern .star-rating span::before,
.cat-product-modern .star-rating::before {
	color: #f5b301 !important;
}

/* --------------------------------------------------------------------------
   Price badge + savings pill
   -------------------------------------------------------------------------- */

.cat-price-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 0.5em 0 1.25em;
}

.cat-price-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 0.6em;
	margin: 0;
	padding: 0.5em 1.2em;
	border-radius: 14px;
	background: var(--cat-gradient);
	box-shadow: 0 14px 30px -14px var(--cat-glow), 0 2px 5px rgba(30, 30, 40, 0.08);
	color: var(--cat-ink) !important;
	font-size: 1.4em;
	font-weight: 800;
	line-height: 1.6;
}

.cat-price-badge .woocommerce-Price-amount,
.cat-price-badge ins {
	color: var(--cat-ink);
	font-weight: 500;
	text-decoration: none;
}

.cat-price-badge del {
	color: rgba(23, 24, 28, 0.55);
	font-size: 0.62em;
	font-weight: 500;
}

.cat-price-badge del .woocommerce-Price-amount {
	color: rgba(23, 24, 28, 0.55);
	font-weight: 500;
}

/* Savings pill: inverted (ink on yellow page accent) for premium contrast */
.cat-saving-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.4em 1em;
	border-radius: 10px;
	background: var(--cat-ink);
	color: var(--cat-accent-500);
	font-size: 0.9em;
	font-weight: 700;
	box-shadow: 0 8px 18px -10px rgba(30, 30, 40, 0.5);
}

.cat-saving-badge .woocommerce-Price-amount {
	color: var(--cat-accent-500);
	font-weight: 800;
}

/* --------------------------------------------------------------------------
   Size guide shortcut
   -------------------------------------------------------------------------- */

.cat-size-guide {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 1em;
	padding: 9px 16px;
	border: 1px solid var(--cat-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--cat-ink);
	font-size: 0.9em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
}

.cat-size-guide:hover {
	border-color: var(--cat-accent-500);
	color: var(--cat-accent-text);
	background: #ffffff;
	box-shadow: 0 8px 18px -12px var(--cat-glow);
}

/* Size guide modal: image only */
.cat-size-guide-modal {
	position: fixed;
	inset: 0;
	z-index: 100000; /* above the sticky header and admin bar */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
}

.cat-size-guide-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 17, 22, 0.72);
	cursor: pointer;
}

.cat-size-guide-modal__body {
	position: relative;
	margin: 0;
	max-width: min(920px, 94vw);
	max-height: 88vh;
	background: #ffffff;
	border-radius: 14px;
	padding: 10px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
	animation: cat-size-guide-in 0.25s ease;
}

.cat-size-guide-modal__img {
	display: block;
	max-width: 100%;
	max-height: calc(88vh - 20px);
	width: auto;
	height: auto;
	border-radius: 8px;
	object-fit: contain;
}

.cat-size-guide-modal__close {
	position: absolute;
	top: -14px;
	inset-inline-end: -14px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: var(--cat-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
	transition: all 0.2s ease;
}

.cat-size-guide-modal__close:hover {
	background: var(--cat-accent-500);
}

html.cat-size-guide-open {
	overflow: hidden;
}

@keyframes cat-size-guide-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Add-to-cart success popup
   -------------------------------------------------------------------------- */

.cat-atc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.cat-atc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 17, 22, 0.6);
	cursor: pointer;
}

.cat-atc-modal__card {
	position: relative;
	width: min(430px, 94vw);
	background: #ffffff;
	border-radius: 18px;
	padding: 26px 24px 22px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
	animation: cat-size-guide-in 0.28s ease;
}

.cat-atc-modal__close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cat-surface);
	color: var(--cat-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cat-atc-modal__close:hover {
	background: var(--cat-accent-500);
	color: var(--cat-ink);
}

.cat-atc-modal__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.cat-atc-modal__check {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: var(--cat-gradient);
	color: var(--cat-ink);
	box-shadow: 0 10px 20px -10px var(--cat-glow);
}

.cat-atc-modal__head strong {
	color: var(--cat-ink);
	font-size: 1em;
	font-weight: 700;
	line-height: 1.6;
}

.cat-atc-modal__product {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--cat-line);
	border-radius: 14px;
	background: var(--cat-surface);
	margin-bottom: 18px;
}

.cat-atc-modal__product img {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 10px;
	background: #ffffff;
}

.cat-atc-modal__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cat-atc-modal__title {
	color: var(--cat-ink);
	font-size: 0.88em;
	font-weight: 600;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cat-atc-modal__meta {
	color: var(--cat-muted);
	font-size: 0.8em;
}

.cat-atc-modal__actions {
	display: flex;
	gap: 10px;
}

/* Both actions share the row equally; the gradient fill marks the primary. */
.cat-atc-modal__cart {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--cat-gradient);
	color: var(--cat-ink) !important;
	font-size: 0.92em;
	font-weight: 700;
	box-shadow: 0 12px 24px -12px var(--cat-glow);
	transition: all 0.25s ease;
}

.cat-atc-modal__cart:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 30px -12px var(--cat-glow);
}

.cat-atc-modal__continue {
	flex: 1 1 0;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 0 16px;
	line-height: 1.4;
	border: 1px solid var(--cat-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--cat-ink);
	font-size: 0.92em;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.25s ease;
}

.cat-atc-modal__continue:hover {
	border-color: var(--cat-accent-500);
	color: var(--cat-accent-text);
}

html.cat-atc-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.cat-atc-modal {
		align-items: flex-end;
		padding: 0;
	}

	.cat-atc-modal__card {
		width: 100%;
		border-radius: 18px 18px 0 0;
	}

	.cat-atc-modal__actions {
		flex-direction: column;
	}
}

/* --------------------------------------------------------------------------
   Size selector (shoe sizes)
   -------------------------------------------------------------------------- */

.cat-size-select {
	margin-bottom: 1.5em;
}

.cat-size-select__title {
	font-size: 1em;
	font-weight: 800;
	color: var(--cat-ink);
	margin-bottom: 0.75em;
}

.cat-size-select__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cat-size-pill {
	min-width: 56px;
	height: 46px;
	padding: 0 12px;
	margin: 0;
	border: 1.5px solid var(--cat-line);
	border-radius: 14px;
	background: #ffffff;
	color: var(--cat-ink);
	font-size: 1em;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cat-size-pill:hover:not(:disabled):not(.is-selected) {
	border-color: var(--cat-accent-500);
	color: var(--cat-accent-text);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -12px var(--cat-glow);
}

.cat-size-pill.is-selected {
	border-color: var(--cat-accent-500);
	background: #fdeeb8;
	color: var(--cat-ink);
	box-shadow: 0 10px 20px -14px var(--cat-glow);
}

.cat-size-pill:disabled {
	position: relative;
	background: var(--cat-surface);
	border-color: #eef0f4;
	color: #b8bcc7;
	cursor: not-allowed;
	overflow: hidden;
}

/* Diagonal strike for unavailable sizes */
.cat-size-pill:disabled::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top left,
		transparent calc(50% - 1px),
		#d4d7de calc(50% - 1px),
		#d4d7de calc(50% + 1px),
		transparent calc(50% + 1px)
	);
}

.cat-size-select__error {
	margin: 0.75em 0 0;
	color: #b32d2e;
	font-size: 0.85em;
	font-weight: 600;
}

.cat-size-select__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0.75em 0 0;
	padding: 0.35em 0.9em;
	border-radius: 10px;
	background: #fdf0ee;
	color: #b3532e;
	font-size: 0.82em;
	font-weight: 700;
}

.cat-size-select__stock::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e06a3f;
}

.cat-size-select.has-error .cat-size-select__grid {
	animation: cat-size-shake 0.4s ease;
}

@keyframes cat-size-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

/* --------------------------------------------------------------------------
   Features (short description)
   -------------------------------------------------------------------------- */

.cat-features {
	margin-bottom: 1.5em;
}

.cat-features__title {
	font-size: 1em;
	font-weight: 600;
	color: var(--cat-ink);
	margin-bottom: 0.85em;
	margin-top: 1.2em;
}

.cat-features__list {
	color: var(--cat-muted);
	font-size: 0.95em;
	line-height: 2;
}

.cat-features__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-features__list p,
.cat-features__list li {
	position: relative;
	margin: 0 0 0.6em;
	padding-inline-start: 34px;
}

.cat-features__list p::before,
.cat-features__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.35em;
	width: 22px;
	height: 22px;
	border-radius: 8px;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center / 12px 12px no-repeat,
		var(--cat-gradient);
	box-shadow: 0 6px 14px -8px var(--cat-glow);
}

/* Icon-based feature list (Product Features tab): card with a two-column grid */
.cat-features--icons .cat-features__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
}

.cat-features__title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: #fdeeb8;
	color: var(--cat-accent-text);
}

.cat-features__items {
	list-style: none;
	margin: 0;
	padding: 20px 22px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 18px;
	background: #ffffff;
	border: 1px solid var(--cat-line);
	border-radius: 18px;
}

.cat-features__item {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	min-width: 0;
}

.cat-features__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--cat-surface);
	border: 1px solid var(--cat-line);
	color: var(--cat-ink);
	transition: all 0.25s ease;
}

.cat-features__item:hover .cat-features__icon {
	border-color: var(--cat-accent-500);
	background: #fff8e1;
	color: var(--cat-accent-text);
}

.cat-features__icon svg {
	display: block;
}

.cat-features__icon .cat-feature-icon-img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
}

.cat-features__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.75;
}

.cat-features--icons .cat-features__text {
	color: var(--cat-ink);
	font-size: 0.9em;
	font-weight: 600;
}

.cat-features__sub {
	color: var(--cat-muted);
	font-size: 0.8em;
}

/* Shipping terms card */
.cat-shipping {
	margin-bottom: 1.5em;
	padding: 16px 22px;
	background: #ffffff;
	border: 1px solid var(--cat-line);
	border-radius: 18px;
}

.cat-shipping__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 12px;
	font-size: 0.95em;
	font-weight: 700;
	color: var(--cat-ink);
}

.cat-shipping__title svg {
	color: var(--cat-accent-700);
	flex: 0 0 auto;
}

ul.cat-shipping__rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cat-shipping__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	min-width: 0;
	font-size: 0.86em;
	color: var(--cat-muted);
}

.cat-shipping__row + .cat-shipping__row {
	padding-inline-start: 18px;
	border-inline-start: 1px solid var(--cat-line);
}

.cat-shipping__row svg {
	flex: 0 0 auto;
	color: var(--cat-ink);
}

.cat-shipping__value {
	color: var(--cat-ink);
	font-weight: 700;
	font-family: 'IRANSansFaNum', IRANSans, sans-serif;
}

/* Trust bar under the product row */
ul.cat-trust {
	list-style: none;
	width: calc(100% - 60px);
	max-width: 1720px;
	margin: 26px auto 0;
	padding: 18px 10px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: #ffffff;
	border: 1px solid var(--cat-line);
	border-radius: 18px;
	box-shadow: 0 14px 34px -26px rgba(30, 30, 40, 0.25);
}

.cat-trust__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0;
	padding: 4px 14px;
	min-width: 0;
}

.cat-trust__item + .cat-trust__item {
	border-inline-start: 1px solid var(--cat-line);
}

.cat-trust__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #fdeeb8;
	color: var(--cat-ink);
}

.cat-trust__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.7;
}

.cat-trust__text strong {
	color: var(--cat-ink);
	font-size: 0.92em;
	font-weight: 700;
}

.cat-trust__text span {
	color: var(--cat-muted);
	font-size: 0.78em;
}

@media (max-width: 849px) {
	ul.cat-trust {
		width: calc(100% - 30px);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
		padding: 16px 6px;
	}

	.cat-trust__item {
		justify-content: flex-start;
	}

	.cat-trust__item:nth-child(odd) {
		border-inline-start: 0;
	}

	.cat-trust__icon {
		width: 42px;
		height: 42px;
	}
}

@media (max-width: 549px) {
	.cat-features__items {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 16px;
	}

	.cat-features__icon {
		width: 42px;
		height: 42px;
	}

	ul.cat-shipping__rows {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.cat-shipping__row + .cat-shipping__row {
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.cat-trust__item {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}
}

/* --------------------------------------------------------------------------
   Cart form: quantity + add to cart
   -------------------------------------------------------------------------- */

.cat-buy-box form.cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 6px;
	margin-bottom: 1.25em;
}

.cat-buy-box form.cart .variations,
.cat-buy-box form.cart .woocommerce-variation {
	flex-basis: 100%;
}

/* Quantity as a segmented pill */
.cat-buy-box form.cart .quantity {
	display: inline-flex;
	align-items: stretch;
	height: 54px;
	border: 1px solid var(--cat-line);
	border-radius: 999px;
	background: #ffffff;
	overflow: hidden;
	white-space: nowrap;
}

.cat-buy-box form.cart .quantity .ux-quantity__button,
.cat-buy-box form.cart .quantity input.qty {
	height: 100%;
	border: 0;
	margin: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cat-ink);
}

.cat-buy-box form.cart .quantity .ux-quantity__button {
	width: 26px;
	font-size: 1.1em;
	font-weight: 700;
	color: var(--cat-muted);
	transition: color 0.2s ease, background 0.2s ease;
}

.cat-buy-box form.cart .quantity .ux-quantity__button:hover {
	background: var(--cat-surface);
	color: var(--cat-accent-text);
}

.cat-buy-box form.cart .quantity input.qty {
	width: 30px;
	font-weight: 800;
	font-size: 1em;
}

/* Add-to-cart button */
.cat-buy-box .single_add_to_cart_button.button {
	flex: 1 1 0;
	min-width: 0;
	white-space: nowrap;
	min-height: 54px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 999px;
	background: var(--cat-gradient);
	background-size: 150% 100%;
	background-position: 0 0;
	box-shadow: 0 16px 32px -12px var(--cat-glow), 0 3px 8px rgba(30, 30, 40, 0.1);
	color: var(--cat-ink);
	font-size: 0.88em;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	transition: all 0.3s ease;
}

/* Cart icon inside the add-to-cart button */
.cat-buy-box .single_add_to_cart_button.button::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-inline-end: 5px;
	vertical-align: -4px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>") center / contain no-repeat;
}

.cat-buy-box .single_add_to_cart_button.button:hover {
	background-position: 100% 0;
	box-shadow: 0 20px 40px -12px rgba(255, 196, 0, 0.6), 0 4px 10px rgba(30, 30, 40, 0.12);
	transform: translateY(-2px);
	color: var(--cat-ink);
}

.cat-buy-box .single_add_to_cart_button.button:active {
	transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Variation swatches / selects (variable products)
   -------------------------------------------------------------------------- */

.cat-buy-box table.variations {
	margin-bottom: 0.5em;
}

.cat-buy-box table.variations td.label {
	font-weight: 700;
	color: var(--cat-ink);
}

.cat-buy-box table.variations select {
	border: 1px solid var(--cat-line);
	border-radius: 12px;
	background-color: #ffffff;
	padding: 8px 14px;
	height: auto;
	box-shadow: none;
	font-weight: 600;
	color: var(--cat-ink);
}

.cat-buy-box .ux-swatches .ux-swatch {
	min-width: 52px;
	height: 44px;
	border: 1.5px solid var(--cat-line);
	border-radius: 14px;
	background: #ffffff;
	color: var(--cat-ink);
	font-weight: 700;
	box-shadow: none;
	transition: all 0.2s ease;
}

.cat-buy-box .ux-swatches .ux-swatch:hover {
	border-color: var(--cat-accent-500);
	color: var(--cat-accent-text);
}

.cat-buy-box .ux-swatches .ux-swatch.selected {
	border-color: transparent;
	background: var(--cat-gradient);
	color: var(--cat-ink);
	box-shadow: 0 10px 20px -10px var(--cat-glow);
}

/* --------------------------------------------------------------------------
   Meta
   -------------------------------------------------------------------------- */

.cat-buy-box .product_meta {
	border-top: 1px solid var(--cat-line);
	padding-top: 1em;
	font-size: 0.85em;
	color: var(--cat-muted);
	text-transform: none;
	letter-spacing: 0;
}

.cat-buy-box .product_meta > span {
	display: block;
	margin-bottom: 0.4em;
}

.cat-buy-box .product_meta a {
	color: var(--cat-ink);
	font-weight: 600;
	transition: color 0.2s ease;
}

.cat-buy-box .product_meta a:hover {
	color: var(--cat-accent-text);
}

/* --------------------------------------------------------------------------
   Tabs (description / reviews)
   -------------------------------------------------------------------------- */

.cat-product-modern .product-footer {
	padding-top: 0;
}

.cat-product-modern .woocommerce-tabs .nav.product-tabs {
	justify-content: center;
	border-bottom: 0;
	gap: 8px;
	margin-bottom: 10px;
}

.cat-product-modern .woocommerce-tabs .nav.product-tabs > li {
	border: 0;
	margin: 0;
}

.cat-product-modern .woocommerce-tabs .nav.product-tabs > li > a {
	padding: 11px 26px;
	border-radius: 999px;
	border-bottom: 0;
	background: var(--cat-surface);
	color: var(--cat-muted);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.95em;
	transition: all 0.25s ease;
}

.cat-product-modern .woocommerce-tabs .nav.product-tabs > li > a:hover {
	color: var(--cat-accent-text);
	background: rgba(255, 196, 0, 0.12);
}

.cat-product-modern .woocommerce-tabs .nav.product-tabs > li.active > a {
	background: var(--cat-gradient);
	color: var(--cat-ink);
	box-shadow: 0 12px 24px -12px var(--cat-glow);
}

.cat-product-modern .woocommerce-tabs .nav.product-tabs > li:after,
.cat-product-modern .woocommerce-tabs .nav.product-tabs > li:before,
.cat-product-modern .woocommerce-tabs .nav.product-tabs > li > a:after,
.cat-product-modern .woocommerce-tabs .nav.product-tabs > li > a:before {
	display: none;
}

.cat-product-modern .woocommerce-tabs .tab-panels {
	padding-top: 26px;
	color: var(--cat-muted);
	line-height: 2;
}

/* --------------------------------------------------------------------------
   Related products
   -------------------------------------------------------------------------- */

.cat-product-modern .related h3,
.cat-product-modern .up-sells h3,
.cat-product-modern .product-section-title {
	font-size: 1.3em;
	font-weight: 800;
	color: var(--cat-ink);
	text-transform: none;
	letter-spacing: 0;
}

.cat-product-modern .related .product-small .box-image,
.cat-product-modern .up-sells .product-small .box-image {
	border-radius: var(--cat-radius);
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 849px) {
	.cat-product-modern .product-main {
		padding-top: 12px;
		padding-bottom: 32px;
	}

	.cat-breadcrumb-bar {
		margin-bottom: 10px;
	}

	.cat-summary-col .product-title.entry-title {
		font-size: 1.45em;
	}

	.cat-price-badge {
		font-size: 1.2em;
	}

	.cat-gallery-col .product-images {
		border-radius: var(--cat-radius);
	}

	.cat-gallery-col .woocommerce-product-gallery__image img {
		max-height: 340px;
	}



}

/* ==========================================================================
   Product details — introduction + specifications (tabs replaced)
   ========================================================================== */
.cat-details {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	margin: 24px 0 40px;
	padding-top: 32px;
	border-top: 1px solid var(--cat-line);
}

.cat-details__col {
	flex: 1 1 50%;
	min-width: 0;
}

.cat-details__body {
	color: #3c414d;
	line-height: 2.1;
	text-align: justify;
	font-size: 0.98em;
}

.cat-details__body p:last-child {
	margin-bottom: 0;
}

/* Specifications card: header + two-column grid of icon rows */
.cat-details__intro {
	flex: 1 1 38%;
}

.cat-details__specs {
	flex: 1 1 62%;
}

.cat-specs-card {
	background: linear-gradient(180deg, #fff, var(--cat-surface));
	border: 1px solid var(--cat-line);
	border-radius: 20px;
	padding: 22px;
	box-shadow: 0 10px 30px rgba(23, 24, 28, 0.05);
}

.cat-specs-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.cat-specs-card__icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fdeeb8;
	color: var(--cat-ink);
}

.cat-specs-card__icon svg {
	width: 26px;
	height: 26px;
}

.cat-specs-card__title {
	margin: 0;
	font-size: 1.15em;
	font-weight: 800;
	color: var(--cat-ink);
}

.cat-specs-card__sub {
	margin: 2px 0 0;
	font-size: 0.85em;
	color: var(--cat-muted);
}

ul.cat-specs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.cat-specs__row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--cat-line);
	border-radius: 14px;
	min-width: 0;
}

.cat-specs__icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cat-surface);
	color: var(--cat-ink);
}

.cat-specs__icon svg {
	width: 19px;
	height: 19px;
}

.cat-specs__label {
	color: var(--cat-muted);
	font-size: 0.9em;
	flex: 1 1 auto;
	min-width: 0;
}

.cat-specs__value {
	flex: 0 1 auto;
	max-width: 55%;
	font-weight: 700;
	color: var(--cat-ink);
	font-size: 0.92em;
	display: inline-flex;
	align-items: center;
	text-align: start;
	font-family: 'IRANSansFaNum', IRANSans, sans-serif;
}

.cat-spec-bool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
}

.cat-spec-bool--yes {
	background: #e5f6ec;
	color: #199a4c;
}

.cat-spec-bool--no {
	background: #fdeaea;
	color: #d4383e;
}

/* ==========================================================================
   Questions & customer views (reviews redesign)
   ========================================================================== */
.cat-reviews {
	margin: 8px 0 44px;
	padding-top: 32px;
	border-top: 1px solid var(--cat-line);
}

.cat-reviews__head {
	display: flex;
	justify-content: flex-end; /* left edge in RTL */
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.cat-reviews__head .cat-section-title {
	margin-bottom: 0;
	flex: 0 0 auto;
	width: auto;
}

/* Form card sits on the right (first track), so the heading is pushed over the list on the left */
@media (min-width: 1000px) {
	.cat-reviews__head {
		margin-inline-start: 432px;
	}

	.cat-reviews__form {
		order: -1;
	}
}

.cat-reviews__count {
	background: var(--cat-surface);
	border: 1px solid var(--cat-line);
	color: var(--cat-muted);
	border-radius: 999px;
	padding: 3px 14px;
	font-size: 0.85em;
	font-weight: 600;
	display: inline-flex;
	white-space: nowrap;
}

.cat-reviews__grid {
	display: grid;
	grid-template-columns: 400px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

/* List */
.cat-reviews__list ol.commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-reviews__list ol.commentlist ol.children {
	list-style: none;
	margin: 0;
	padding-inline-start: 40px;
}

li.cat-review {
	margin: 0 0 14px;
}

.cat-review__card {
	background: #fff;
	border: 1px solid var(--cat-line);
	border-radius: var(--cat-radius);
	padding: 18px 20px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-review__card:hover {
	border-color: #d8dbe4;
	box-shadow: 0 10px 30px -18px rgba(30, 30, 40, 0.18);
}

.cat-review__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.cat-review__avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--cat-gradient);
	color: var(--cat-ink);
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 1.05em;
}

.cat-review__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cat-review__author {
	color: var(--cat-ink);
	font-size: 0.98em;
	line-height: 1.5;
}

.cat-review__date {
	color: var(--cat-muted);
	font-size: 0.8em;
}

.cat-review__stars {
	margin-inline-start: auto;
	display: inline-flex;
	gap: 1px;
	font-size: 17px;
	color: #e3e6ee;
	direction: ltr;
}

.cat-review__stars .is-on {
	color: #f5b301;
}

.cat-review__tag {
	margin-inline-start: auto;
	background: #eef2ff;
	color: #3f51b5;
	border-radius: 999px;
	padding: 2px 12px;
	font-size: 0.78em;
	font-weight: 700;
}

.cat-review__pending {
	margin: 0 0 8px;
	color: #996800;
	background: #fdf6e3;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 0.82em;
}

.cat-review__text {
	color: #3c414d;
	line-height: 2;
	font-size: 0.95em;
}

.cat-review__text p:last-child {
	margin-bottom: 0;
}

/* Empty state */
.cat-reviews__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 46px 20px;
	border: 1px dashed #cfd3dd;
	border-radius: var(--cat-radius);
	color: var(--cat-muted);
	text-align: center;
}

.cat-reviews__empty p {
	margin: 0;
}

/* Pagination */
.cat-reviews__pagination ul.page-numbers {
	list-style: none;
	display: flex;
	gap: 6px;
	margin: 18px 0 0;
	padding: 0;
}

.cat-reviews__pagination .page-numbers li a,
.cat-reviews__pagination .page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	border-radius: 10px;
	border: 1px solid var(--cat-line);
	color: var(--cat-ink);
	font-size: 0.9em;
}

.cat-reviews__pagination .page-numbers li span.current {
	background: var(--cat-gradient);
	border-color: transparent;
	font-weight: 700;
}

/* Form card */
.cat-reviews__form-card {
	background: var(--cat-surface);
	border: 1px solid var(--cat-line);
	border-radius: var(--cat-radius);
	padding: 24px;
	position: sticky;
	top: 96px;
}

.cat-reviews__form-title {
	font-size: 1.05em;
	font-weight: 700;
	color: var(--cat-ink);
	margin: 0 0 6px;
}

.cat-reviews__form-hint {
	color: var(--cat-muted);
	font-size: 0.82em;
	margin: 0 0 16px;
}

.cat-review-field {
	margin: 0 0 12px;
}

.cat-reviews__form-card input[type="text"],
.cat-reviews__form-card textarea {
	width: 100%;
	background: #fff;
	border: 1px solid var(--cat-line);
	border-radius: 12px;
	padding: 11px 14px;
	font-size: 0.92em;
	color: var(--cat-ink);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cat-reviews__form-card input[type="text"]:focus,
.cat-reviews__form-card textarea:focus {
	border-color: var(--cat-accent-500);
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.22);
	outline: none;
}

.cat-reviews__form-card textarea {
	resize: vertical;
	min-height: 120px;
}

/* Star picker (pure CSS, radios) */
.cat-review-rate {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}

.cat-review-rate__label {
	color: var(--cat-muted);
	font-size: 0.88em;
}

.cat-review-stars {
	display: inline-flex;
	flex-direction: row-reverse;
}

.cat-review-stars input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cat-review-stars label {
	color: #d6d9e2;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 0 1px;
	transition: color 0.12s ease, transform 0.12s ease;
}

.cat-review-stars label:hover {
	transform: scale(1.12);
}

.cat-review-stars input:checked ~ label,
.cat-review-stars label:hover,
.cat-review-stars label:hover ~ label {
	color: #f5b301;
}

/* Submit */
.cat-reviews__form-card .form-submit {
	margin: 4px 0 0;
}

.cat-reviews__form-card .cat-review-submit {
	width: 100%;
	margin: 0;
	background: var(--cat-gradient);
	color: var(--cat-ink);
	border: 0;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.95em;
	padding: 0 16px;
	min-height: 46px;
	box-shadow: 0 12px 26px -14px var(--cat-glow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-reviews__form-card .cat-review-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 30px -14px var(--cat-glow);
	color: var(--cat-ink);
}

/* Responsive */
@media (max-width: 999px) {
	.cat-reviews__grid {
		grid-template-columns: 1fr;
	}

	.cat-reviews__form-card {
		position: static;
	}
}

@media (max-width: 549px) {
	ul.cat-specs {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 849px) {
	.cat-details {
		flex-direction: column;
		gap: 28px;
	}

	.cat-details__col {
		flex-basis: auto;
		width: 100%;
	}
}

/* Ratings left without a text body: collapse the empty area */
.cat-review__text:empty {
	display: none;
}

/* Load more (3-by-3 batches) */
.cat-reviews__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.cat-reviews__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--cat-line);
	border-radius: 999px;
	padding: 0 22px;
	min-height: 44px;
	font-size: 0.92em;
	font-weight: 700;
	color: var(--cat-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cat-reviews__more:hover {
	border-color: var(--cat-accent-500);
	box-shadow: 0 10px 24px -16px var(--cat-glow);
	transform: translateY(-1px);
}

.cat-reviews__more-count {
	background: var(--cat-gradient);
	color: var(--cat-ink);
	border-radius: 999px;
	min-width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 7px;
	font-size: 0.85em;
	font-weight: 800;
}

/* Button spinner */
.cat-reviews__more-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid var(--cat-line);
	border-top-color: var(--cat-accent-500);
	border-radius: 50%;
	animation: cat-spin 0.7s linear infinite;
}

.cat-reviews__more.is-loading .cat-reviews__more-spinner {
	display: inline-block;
}

.cat-reviews__more.is-loading {
	pointer-events: none;
	opacity: 0.75;
}

@keyframes cat-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Entrance animation for appended cards */
li.cat-review {
	transition: opacity 0.4s ease, transform 0.4s ease;
}

li.cat-review.is-entering {
	opacity: 0;
	transform: translateY(14px);
}

/* Nested replies */
.cat-review__replies {
	list-style: none;
	margin: 10px 0 0;
	padding-inline-start: 34px;
}

.cat-review--reply .cat-review__card {
	background: var(--cat-surface);
}

.cat-review--reply .cat-review__avatar {
	width: 34px;
	height: 34px;
	font-size: 0.9em;
}

.cat-review--reply .cat-review__tag {
	background: #fdf6e3;
	color: #996800;
}

/* ==========================================================================
   Similar products
   ========================================================================== */
.cat-related {
	margin: 8px 0 48px;
	padding-top: 32px;
	border-top: 1px solid var(--cat-line);
	content-visibility: auto;
	contain-intrinsic-size: auto 520px;
}

/* Hide anything the theme might still print for related/upsells */
.cat-product-modern .related.products,
.cat-product-modern .upsells.products {
	display: none;
}

/* Header row: title + slider arrows */
.cat-related__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.cat-related__nav {
	display: inline-flex;
	gap: 8px;
}

.cat-related--static .cat-related__nav {
	display: none;
}

.cat-related__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	background: #fff;
	border: 1px solid var(--cat-line);
	border-radius: 50%;
	color: var(--cat-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cat-related__arrow:hover:not(:disabled) {
	border-color: var(--cat-accent-500);
	box-shadow: 0 8px 18px -12px var(--cat-glow);
}

.cat-related__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Track: native scroll-snap carousel — 5 cards per view, no slider library */
.cat-related__track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 2px 16px;
	margin-bottom: -8px;
}

.cat-related__track::-webkit-scrollbar {
	display: none;
}

.cat-related__track > .cat-rp {
	flex: 0 0 calc((100% - 88px) / 5);
	scroll-snap-align: start;
}

/* Card — white, soft shadow, borderless (reference style) */
a.cat-rp {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	padding: 10px 10px 18px;
	color: var(--cat-ink);
	box-shadow: 0 1px 4px rgba(25, 28, 40, 0.1);
	transition: box-shadow 0.2s ease;
}

a.cat-rp:hover {
	color: var(--cat-ink);
	box-shadow: 0 8px 22px rgba(25, 28, 40, 0.14);
}

/* Image tile — light gray, rounded */
.cat-rp__media {
	position: relative;
	display: block;
	aspect-ratio: 13 / 12;
	border-radius: 10px;
	background: #f0f0f2;
	overflow: hidden;
}

.cat-rp__media img.cat-rp__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 7%;
	mix-blend-mode: multiply;
}

.cat-rp--oos .cat-rp__media img {
	filter: grayscale(0.5);
	opacity: 0.8;
}

/* Size chips — centered, wrapping */
.cat-rp__sizes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	padding: 0 4px;
}

.cat-rp__size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 29px;
	padding: 0 8px;
	border: 1px solid #e3e5ea;
	border-radius: 8px;
	background: #fff;
	color: #3c414d;
	font-size: 0.8em;
	font-weight: 600;
}

/* Title — centered, two lines */
.cat-rp__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: center;
	font-size: 0.93em;
	font-weight: 500;
	line-height: 1.9;
	min-height: calc(2 * 1.9em);
	margin-top: 12px;
	padding: 0 8px;
}

/* Price — stacked, aligned to the visual left like the reference */
.cat-rp__price {
	margin-top: auto;
	padding: 10px 8px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	min-height: 3.4em;
	justify-content: flex-end;
}

.cat-rp__price del,
.cat-rp__price del .woocommerce-Price-amount {
	color: #c3c7d1;
	font-size: 0.8em;
	font-weight: 400;
	line-height: 1.6;
	text-decoration: line-through;
	text-decoration-color: rgba(195, 199, 209, 0.9);
}

.cat-rp__price ins {
	text-decoration: none;
}

.cat-rp__price ins,
.cat-rp__price ins .woocommerce-Price-amount {
	color: var(--cat-ink);
	font-size: 1em;
	font-weight: 800;
	line-height: 1.7;
}

.cat-rp__price ins .woocommerce-Price-currencySymbol {
	font-size: 0.8em;
	font-weight: 500;
}

.cat-rp__unavailable {
	color: var(--cat-muted);
	font-size: 0.88em;
	font-weight: 600;
	line-height: 1.7;
}

@media (max-width: 1199px) {
	.cat-related__track > .cat-rp {
		flex-basis: calc((100% - 66px) / 4);
	}
}

@media (max-width: 849px) {
	.cat-related__track > .cat-rp {
		flex-basis: calc((100% - 44px) / 3);
	}
}

@media (max-width: 599px) {
	.cat-related__track {
		gap: 12px;
	}

	.cat-related__track > .cat-rp {
		flex-basis: calc((100% - 12px) / 2);
	}
}

/* Below-fold sections: skip layout/paint until scrolled near (perf) */
.cat-details,
.cat-reviews {
	content-visibility: auto;
	contain-intrinsic-size: auto 600px;
}

/* ==========================================================================
   Mobile sticky add-to-cart bar (includes/sticky-cart.php)
   Floating rounded card above the bottom edge: [qty] [add to cart] [price].
   Phones/tablets only — the desktop buy box stays in view while scrolling.
   ========================================================================== */
.cat-sbar {
	display: none;
}

@media (max-width: 849px) {
	.cat-sbar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 9990;
		display: block;
		padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
		pointer-events: none;
		transform: translateY(130%);
		opacity: 0;
		transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
	}

	.cat-sbar.is-shown {
		transform: none;
		opacity: 1;
	}

	.cat-sbar__card {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 10px;
		border: 1px solid var(--cat-line);
		border-radius: 20px;
		background: rgba(255, 255, 255, 0.97);
		box-shadow: 0 -10px 40px -14px rgba(30, 30, 40, 0.35), 0 4px 14px -6px rgba(30, 30, 40, 0.15);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		pointer-events: auto;
	}

	/* Quantity stepper */
	.cat-sbar__qty {
		display: flex;
		align-items: center;
		flex: 0 0 auto;
		height: 42px;
		border: 1px solid var(--cat-line);
		border-radius: 12px;
		background: var(--cat-surface);
		direction: ltr; /* "−  ۱  +" reads the same in both directions */
	}

	.cat-sbar .cat-sbar__qty button {
		flex: 0 0 auto;
		display: grid;
		place-items: center;
		width: 30px;
		height: 100%;
		margin: 0;
		padding: 0;
		min-height: 0;
		border: 0;
		background: none;
		box-shadow: none;
		color: var(--cat-ink);
		font-size: 20px;
		font-weight: 600;
		line-height: 1;
	}

	.cat-sbar .cat-sbar__qty input[type="text"] {
		flex: 0 0 auto;
		width: 22px;
		max-width: 22px;
		height: auto;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		color: var(--cat-ink);
		font-family: 'IRANSansFaNum', IRANSans, sans-serif;
		font-size: 15px;
		font-weight: 700;
		text-align: center;
	}

	/* Add to cart — compact, so the price gets the room */
	.cat-sbar .cat-sbar__btn {
		flex: 0 0 auto;
		height: 42px;
		margin: 0;
		padding: 0 12px;
		min-height: 0;
		border: 0;
		border-radius: 12px;
		background: var(--cat-gradient);
		box-shadow: 0 8px 18px -12px var(--cat-glow);
		color: var(--cat-ink);
		font-family: inherit;
		font-size: 12.5px;
		font-weight: 800;
		letter-spacing: 0;
		text-transform: none;
		white-space: nowrap;
		cursor: pointer;
		transition: transform 0.15s ease, opacity 0.2s ease;
	}

	.cat-sbar .cat-sbar__btn:active {
		transform: scale(0.97);
	}

	.cat-sbar .cat-sbar__btn.is-loading {
		opacity: 0.6;
		pointer-events: none;
	}

	/* Price block — one font, one alignment: [pill  old price] over [price] */
	.cat-sbar__price {
		display: flex;
		flex-wrap: wrap;
		align-content: center;
		align-items: center;
		flex-direction: row-reverse;
		justify-content: flex-start;
		gap: 4px 8px;
		flex: 1 1 auto;
		min-width: 0;
		padding-inline-end: 4px;
		font-family: 'IRANSansFaNum', IRANSans, sans-serif;
		text-align: end;
		line-height: 1.4;
	}

	.cat-sbar__off {
		order: 1;
		padding: 1px 9px;
		border-radius: 999px;
		background: var(--cat-ink);
		color: var(--cat-accent-500);
		font-size: 13px;
		font-weight: 800;
	}

	.cat-sbar__price del {
		order: 2;
		color: var(--cat-muted);
		font-size: 13px;
		font-weight: 500;
	}

	.cat-sbar__price del .woocommerce-Price-currencySymbol {
		display: none;
	}

	.cat-sbar__price strong {
		order: 3;
		flex: 1 0 100%;
		color: var(--cat-ink);
		font-size: 16px;
		font-weight: 800;
		white-space: nowrap;
	}

	.cat-sbar__price .woocommerce-Price-currencySymbol {
		margin-inline-start: 3px;
		font-size: 12px;
		font-weight: 600;
	}

	/* Keep page content (and the footer) clear of the floating card. */
	body.has-cat-sbar {
		padding-bottom: 92px;
	}
}

@media (max-width: 380px) {
	.cat-sbar__more {
		display: none;
	}

	.cat-sbar__price strong {
		font-size: 14.5px;
	}

	.cat-sbar__card {
		gap: 8px;
		padding: 8px;
	}

	.cat-sbar .cat-sbar__btn {
		padding: 0 8px;
		font-size: 13px;
	}

	.cat-sbar .cat-sbar__qty button {
		width: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cat-sbar {
		transition: none;
	}
}


/* ==========================================================================
   Site menu on product pages: white bar, slightly larger labels + icons
   ========================================================================== */
body.single-product .cat-hd__bar {
	--cat-hd-bar-bg: #ffffff;
	background: #ffffff;
}
