/* ==========================================================================
   Mehrsun Gallery — shop / category archives (.mgs) and product page (.mgp)
   Same visual language as the landing page (deep green-black, ivory, gold).
   ========================================================================== */
.mgs, .mgp, .mgp-tabs {
	--mg-night: #0a1a18;
	--mg-ink: #13211f;
	--mg-text: #58625f;
	--mg-muted: #8b9491;
	--mg-teal: #088b87;
	--mg-teal-d: #0a4b4b;
	--mg-gold: #a67c2e;
	--mg-gold-l: #e2bf6e;
	--mg-ivory: #faf6ef;
	--mg-sand: #f1e8d8;
	--mg-line: #ebe4d6;
	--mg-grad: linear-gradient(115deg, #a8782a 0%, #e6c373 26%, #fff1c6 44%, #d4ab52 62%, #a8782a 82%, #e6c373 100%);
	font-family: iranyekan, Tahoma, sans-serif;
	color: var(--mg-text);
}
.mgs *, .mgp * { box-sizing: border-box; }
.mgs button, .mgp button { font-family: inherit; }
.mgs .screen-reader-text, .mgp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
html.mgs-lock, html.mgs-lock body { overflow: hidden; }

.mgs { max-width: 1320px; margin: 0 auto; padding: 24px 24px 90px; }

/* ---------- header banner ---------- */
.mgs-hero {
	position: relative; overflow: hidden; border-radius: 28px; padding: 40px 44px 38px; color: #fff;
	background: radial-gradient(45% 120% at 12% 0%, rgba(214, 171, 82, .22), rgba(214, 171, 82, 0) 70%), radial-gradient(40% 90% at 100% 100%, rgba(8, 139, 135, .28), rgba(8, 139, 135, 0) 70%), var(--mg-night);
}
.mgs-hero::after {
	content: ""; position: absolute; inset: 12px; border-radius: 20px; border: 1px solid rgba(226, 191, 110, .22); pointer-events: none;
}
.mgs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.mgs-crumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s; }
.mgs-crumbs a:hover { color: var(--mg-gold-l); }
.mgs-crumbs b { font-weight: 600; color: var(--mg-gold-l); }
.mgs-hero__title { margin: 12px 0 10px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.4; font-weight: 900; color: #fff; }
.mgs-hero__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; font-size: 15px; color: rgba(255, 255, 255, .72); }
.mgs-hero__sub b { color: #fff; font-weight: 800; }
.mgs-hero__sub .mgp-rate { font-weight: 800; color: var(--mg-gold-l); }
.mgs-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mg-gold-l); }

/* ---------- chips (categories, active filters) ---------- */
.mgs-cats {
	display: flex; gap: 10px; overflow-x: auto; padding: 22px 2px 6px; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to left, #000 92%, transparent); mask-image: linear-gradient(to left, #000 92%, transparent);
}
.mgs-cats::-webkit-scrollbar { display: none; }
.mgs .mgs-chip {
	flex: 0 0 auto; min-height: 0; box-shadow: none; text-transform: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
	border: 1px solid var(--mg-line); background: #fff; color: var(--mg-ink); font-size: 14px; font-weight: 600; line-height: 1.4;
	text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .25s, background-color .25s, color .25s;
}
.mgs-chip small { font-size: 11px; font-weight: 700; color: var(--mg-muted); background: var(--mg-ivory); border-radius: 999px; padding: 2px 8px; }
.mgs .mgs-chip:hover { border-color: var(--mg-gold); color: var(--mg-ink); }
.mgs .mgs-chip.is-active { background: var(--mg-ink); border-color: var(--mg-ink); color: #fff; }
.mgs-chip.is-active small { background: rgba(255, 255, 255, .14); color: var(--mg-gold-l); }
.mgs .mgs-chip--on { padding: 7px 14px; font-size: 13px; background: var(--mg-ivory); border-color: rgba(166, 124, 46, .35); }
.mgs-chip--on i { font-style: normal; font-size: 16px; line-height: 1; color: var(--mg-gold); }
.mgs .mgs-clear-all { min-height: 0; box-shadow: none; border: 0; background: none; padding: 6px 4px; font-size: 13px; font-weight: 700; color: var(--mg-gold); cursor: pointer; }

/* ---------- layout ---------- */
.mgs-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 22px; }

/* ---------- filter panel ---------- */
.mgs-filters {
	position: sticky; top: 96px; background: #fff; border: 1px solid var(--mg-line); border-radius: 24px;
	box-shadow: 0 24px 50px -42px rgba(19, 33, 31, .6);
}
.mgs-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.mgs-filters__head b { font-size: 17px; font-weight: 800; color: var(--mg-ink); }
.mgs .mgs-filters__head .mgs-icon-btn { display: none; }
.mgs-filters__scroll { padding: 8px 22px 22px; }
.mgs-filters__foot { display: none; }
.mgs .mgs-icon-btn { width: 40px; min-height: 0; box-shadow: none; height: 40px; border-radius: 50%; border: 1px solid var(--mg-line); background: #fff; color: var(--mg-ink); padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mgs-icon-btn svg { width: 18px; height: 18px; }

.mgs-search { position: relative; display: block; margin: 8px 0 6px; }
.mgs-search svg { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--mg-muted); pointer-events: none; }
.mgs .mgs-search input {
	box-sizing: border-box; width: 100%; max-width: none; height: 46px; margin: 0; padding: 0 42px 0 14px; border: 1px solid transparent; border-radius: 14px;
	background: var(--mg-ivory); color: var(--mg-ink); font-family: inherit; font-size: 14px; box-shadow: none; transition: border-color .2s, background-color .2s;
}
.mgs .mgs-search input:focus { outline: none; border-color: rgba(166, 124, 46, .5); background: #fff; }

.mgs-f { border-top: 1px solid var(--mg-line); padding: 16px 0 6px; }
.mgs-f summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 15px; font-weight: 800; color: var(--mg-ink); padding-bottom: 12px; }
.mgs-f summary::-webkit-details-marker { display: none; }
.mgs-f summary::after { content: ""; width: 8px; height: 8px; border-left: 1.6px solid var(--mg-muted); border-bottom: 1.6px solid var(--mg-muted); transform: rotate(-45deg); transition: transform .25s; margin-top: -4px; }
.mgs-f[open] summary::after { transform: rotate(135deg); margin-top: 4px; }

.mgs-range { --a: 0%; --b: 100%; padding-bottom: 10px; }
.mgs-range__values { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mg-ink); }
.mgs-range__values span { background: var(--mg-ivory); border-radius: 10px; padding: 6px 10px; }
.mgs-range small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--mg-muted); }
.mgs-range__track { position: relative; height: 30px; margin: 8px 11px 0; }
.mgs-range__track::before, .mgs-range__track::after { content: ""; position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.mgs-range__track::before { inset-inline: 0; background: var(--mg-line); }
.mgs-range__track::after { inset-inline-start: var(--a); inset-inline-end: calc(100% - var(--b)); background: linear-gradient(90deg, #b8862b, #e2bf6e); }
.mgs .mgs-range__track input[type=range] {
	position: absolute; inset: 0 -11px; width: calc(100% + 22px); height: 30px; margin: 0; padding: 0; background: none; border: 0;
	-webkit-appearance: none; appearance: none; pointer-events: none; z-index: 2; box-shadow: none;
}
.mgs .mgs-range__track input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; }
.mgs .mgs-range__track input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab; width: 22px; height: 22px; border-radius: 50%;
	background: #fff; border: 2px solid #c39a45; box-shadow: 0 4px 12px -4px rgba(19, 33, 31, .45); transition: transform .15s;
}
.mgs .mgs-range__track input[type=range]::-moz-range-thumb {
	pointer-events: auto; cursor: grab; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #c39a45; box-shadow: 0 4px 12px -4px rgba(19, 33, 31, .45);
}
.mgs .mgs-range__track input[type=range]::-moz-range-track { background: none; border: 0; }
.mgs .mgs-range__track input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.mgs .mgs-range__track input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(226, 191, 110, .45); outline-offset: 2px; }

.mgs-switch { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--mg-line); cursor: pointer; font-size: 14px; font-weight: 700; color: var(--mg-ink); }
.mgs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mgs-switch__ui { position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: var(--mg-line); transition: background-color .25s; }
.mgs-switch__ui::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(19, 33, 31, .25); transition: transform .25s; }
.mgs-switch input:checked + .mgs-switch__ui { background: var(--mg-teal-d); }
.mgs-switch input:checked + .mgs-switch__ui::after { transform: translateX(-18px); }
.mgs-switch input:focus-visible + .mgs-switch__ui { outline: 3px solid rgba(226, 191, 110, .45); outline-offset: 2px; }

/* ---------- buttons ---------- */
.mgs .mgs-btn, .mgp .mgp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px;
	border: 1px solid var(--mg-teal-d); background: var(--mg-teal-d); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.mgs .mgs-btn:hover, .mgp .mgp-btn:hover { background: var(--mg-teal); border-color: var(--mg-teal); color: #fff; }
.mgs .mgs-btn--ghost { background: transparent; color: var(--mg-ink); border-color: rgba(19, 33, 31, .2); }
.mgs .mgs-btn--ghost:hover { background: transparent; color: var(--mg-gold); border-color: var(--mg-gold); }

/* ---------- toolbar ---------- */
.mgs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 22px; }
.mgs-toolbar__count { margin: 0; font-size: 15px; color: var(--mg-muted); white-space: nowrap; }
.mgs-toolbar__count b { color: var(--mg-ink); font-weight: 800; }
.mgs-active { flex: 1 1 200px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.mgs-sort { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--mg-muted); white-space: nowrap; }
.mgs .mgs-sort select {
	height: 44px; min-width: 170px; margin: 0; padding: 0 16px 0 38px; border: 1px solid var(--mg-line); border-radius: 14px; background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%2313211f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: left 12px center; background-size: 18px; color: var(--mg-ink); font-family: inherit; font-size: 14px; font-weight: 700;
	-webkit-appearance: none; appearance: none; cursor: pointer; box-shadow: none;
}
.mgs .mgs-sort select:focus { outline: none; border-color: rgba(166, 124, 46, .5); }
.mgs .mgs-filter-toggle {
	display: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--mg-ink);
	background: var(--mg-ink); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.mgs .mgs-filter-toggle:hover { background: var(--mg-teal-d); border-color: var(--mg-teal-d); color: #fff; }
.mgs .mgs-filter-toggle svg { width: 20px; height: 20px; }
.mgs .mgs-filter-toggle b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mg-gold-l); color: var(--mg-ink); font-size: 12px; line-height: 20px; }

/* ---------- product cards ---------- */
.mgs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.mgs-card { position: relative; display: flex; flex-direction: column; min-width: 0; animation: mgs-in .45s ease both; }
@keyframes mgs-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mgs-card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 22px; background: #f7f4ef; isolation: isolate; }
.mgs-card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(19, 33, 31, .04); pointer-events: none; }
.mgs-card__img, .mgs-card__img2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.mgs-card__img2 { opacity: 0; }
.mgs-card:hover .mgs-card__img { transform: scale(1.06); }
.mgs-card:hover .mgs-card__img2 { opacity: 1; transform: scale(1.03); }
.mgs-badge {
	position: absolute; z-index: 2; top: 12px; right: 12px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.4;
	color: #1b1405; background: var(--mg-grad);
}
.mgs-badge--out { background: rgba(19, 33, 31, .78); color: #fff; }
.mgs-card.is-out .mgs-card__img { filter: grayscale(.7); opacity: .7; }
.mgs-card__body { padding: 14px 4px 0; display: flex; flex-direction: column; flex: 1; }
.mgs-card__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.75; color: var(--mg-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mgs-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.mgs-card__title a:hover { color: var(--mg-gold); }
.mgs-card__meta { margin-top: 2px; font-size: 12.5px; color: var(--mg-muted); }
.mgs-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.mgs-card .price { font-size: 16px; font-weight: 900; color: var(--mg-ink); white-space: nowrap; }
.mgs-card .price .woocommerce-Price-currencySymbol { margin-inline-start: 3px; font-size: 12px; font-weight: 600; color: var(--mg-muted); }
.mg-price-updated { animation: mg-flash 1.2s ease; }
@keyframes mg-flash { 0% { color: #a67c2e; } 100% { color: inherit; } }
.mgs .mgs-card__cart {
	position: relative; flex: 0 0 auto; width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 0;
	display: inline-flex; align-items: center; justify-content: center; background: var(--mg-ink); color: #fff; box-shadow: none;
	transition: background .3s, color .3s, transform .3s;
}
.mgs .mgs-card__cart svg { width: 21px; height: 21px; }
.mgs .mgs-card__cart:hover { background: var(--mg-grad); color: #1b1405; transform: translateY(-2px); }
.mgs .mgs-card__cart.loading { opacity: .6; pointer-events: none; }
.mgs .mgs-card__cart.loading svg { animation: mgs-spin .8s linear infinite; }
.mgs .mgs-card__cart.added { background: var(--mg-teal); }
.mgs .mgs-card__cart::after, .mgs .mgs-card .added_to_cart { display: none !important; }
@keyframes mgs-spin { to { transform: rotate(360deg); } }
.mgs-card__notify { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(19, 33, 31, .18); font-size: 12.5px; font-weight: 700; color: var(--mg-ink); text-decoration: none; }
.mgs-card__notify:hover { border-color: var(--mg-gold); color: var(--mg-gold); }

/* ---------- empty + load more ---------- */
.mgs-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--mg-line); border-radius: 24px; background: var(--mg-ivory); }
.mgs-empty b { display: block; font-size: 18px; color: var(--mg-ink); }
.mgs-empty p { margin: 8px 0 20px; color: var(--mg-muted); }
.mgs-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 46px; }
.mgs-more p { margin: 0; font-size: 14px; color: var(--mg-muted); }
.mgs-more__bar { width: 200px; height: 3px; border-radius: 3px; background: var(--mg-line); overflow: hidden; }
.mgs-more__bar i { display: block; height: 100%; margin-inline-start: 0; background: linear-gradient(90deg, #b8862b, #e2bf6e); transition: width .4s; }
.mgs-backdrop { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
	.mgs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.mgs { padding: 14px 16px 70px; }
	.mgs-hero { padding: 28px 24px 26px; border-radius: 22px; }
	.mgs-hero::after { inset: 8px; border-radius: 16px; }
	.mgs-body { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
	.mgs .mgs-filter-toggle { display: inline-flex; }
	.mgs-filters {
		position: fixed; z-index: 100010; left: 0; right: 0; bottom: 0; top: auto; max-height: 88vh; display: flex; flex-direction: column;
		border-radius: 26px 26px 0 0; border: 0; transform: translateY(105%); visibility: hidden;
		transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility .38s; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4);
	}
	.mgs.is-open .mgs-filters { transform: none; visibility: visible; }
	.mgs-filters__head { padding: 18px 20px 10px; border-bottom: 1px solid var(--mg-line); }
	.mgs .mgs-filters__head .mgs-icon-btn { display: inline-flex; }
	.mgs-filters__scroll { overflow-y: auto; padding: 10px 20px 20px; }
	.mgs-filters__foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mg-line); background: #fff; }
	.mgs-filters__foot .mgs-btn { flex: 1; }
	.mgs-backdrop { display: block; position: fixed; inset: 0; z-index: 100009; background: rgba(10, 26, 24, .5); backdrop-filter: blur(2px); }
	.mgs-backdrop[hidden] { display: none; }
	.mgs-toolbar { gap: 10px; }
	.mgs-toolbar__count { order: 3; flex: 1 0 100%; font-size: 13px; }
	.mgs-active { order: 4; flex: 1 0 100%; }
	.mgs-active:empty { display: none; }
	.mgs-sort { margin-inline-start: auto; }
	.mgs-sort span { display: none; }
}
@media (max-width: 767px) {
	.mgs-hero__title { font-size: 26px; margin: 8px 0 6px; }
	.mgs-hero__sub { font-size: 13px; }
	.mgs-cats { padding-top: 16px; margin-inline: -16px; padding-inline: 16px; }
	.mgs-chip { padding: 8px 14px; font-size: 13px; }
	.mgs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
	.mgs-card__media { border-radius: 18px; }
	.mgs-card__title { font-size: 13.5px; }
	.mgs-card__meta { font-size: 11.5px; }
	.mgs-card .price { font-size: 14px; }
	.mgs-card .price .woocommerce-Price-currencySymbol { font-size: 10.5px; }
	.mgs .mgs-card__cart { width: 38px; height: 38px; }
	.mgs .mgs-card__cart svg { width: 18px; height: 18px; }
	.mgs-badge { top: 8px; right: 8px; padding: 3px 10px; font-size: 11px; }
	.mgs .mgs-sort select { min-width: 0; height: 44px; }
	.mgs-card__notify { padding: 6px 10px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.mgs *, .mgp * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   PRODUCT PAGE (.mgp)
   ========================================================================== */
.mgp { max-width: 1320px; margin: 0 auto; padding: 22px 24px 24px; }
.mgp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--mg-muted); }
.mgp-crumbs a { color: var(--mg-text); text-decoration: none; }
.mgp-crumbs a:hover { color: var(--mg-gold); }
.mgp-crumbs b { font-weight: 600; color: var(--mg-ink); }
.mgp-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 20px; }
.mgp-gallery { min-width: 0; }
.mgp-gallery .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.mgp-gallery .woocommerce-product-gallery__image img, .mgp-gallery .wd-carousel-item img { border-radius: 26px; background: #f7f4ef; }
.mgp-info { position: sticky; top: 90px; min-width: 0; }

.mgp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; color: var(--mg-muted); }
.mgp-eyebrow a { padding: 6px 14px; border-radius: 999px; background: var(--mg-ivory); color: var(--mg-gold); font-weight: 700; text-decoration: none; }
.mgp-eyebrow a:hover { background: var(--mg-sand); }
.mgp-title { margin: 14px 0 0; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.45; font-weight: 900; color: var(--mg-ink); }

.mgp-price { margin: 20px 0 0; padding: 20px 24px; border-radius: 24px; background: var(--mg-ivory); border: 1px solid var(--mg-line); }
.mgp-price__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.mgp .mgp-price .price { margin: 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.4; font-weight: 900; color: var(--mg-ink); }
.mgp .mgp-price .price .woocommerce-Price-currencySymbol { margin-inline-start: 4px; font-size: 15px; font-weight: 600; color: var(--mg-muted); }
.mgp-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(166, 124, 46, .3); font-size: 12px; font-weight: 800; color: var(--mg-gold); }
.mgp-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #d4ab52; }
.mgp-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: mgp-ping 2.4s cubic-bezier(0, 0, .2, 1) 3; will-change: transform, opacity; }
@keyframes mgp-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.mgp-price__rate { margin: 8px 0 0; font-size: 13px; color: var(--mg-muted); }
.mgp-price__rate .mgp-rate { font-weight: 800; color: var(--mg-ink); }

.mgp-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.mgp-specs li { margin: 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--mg-line); background: #fff; }
.mgp-specs small { display: block; font-size: 12px; color: var(--mg-muted); }
.mgp-specs b { display: block; margin-top: 2px; font-size: 15px; font-weight: 800; color: var(--mg-ink); }

.mgp-cart { margin-top: 20px; }
.mgp .mgp-cart form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0; }
.mgp .mgp-cart .quantity { display: inline-flex !important; align-items: center; height: 56px; margin: 0 !important; border: 1px solid var(--mg-line); border-radius: 999px; overflow: hidden; background: #fff; }
.mgp .mgp-cart .quantity input { height: 54px !important; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font-family: inherit; }
.mgp .mgp-cart .quantity input.qty { width: 44px; text-align: center; font-size: 16px; font-weight: 800; color: var(--mg-ink); -moz-appearance: textfield; }
.mgp .mgp-cart .quantity input.qty::-webkit-inner-spin-button, .mgp .mgp-cart .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mgp .mgp-cart .quantity input[type=button] { width: 46px; font-size: 20px; color: var(--mg-ink); cursor: pointer; }
.mgp .mgp-cart .quantity input[type=button]:hover { color: var(--mg-gold); }
.mgp .mgp-cart .single_add_to_cart_button {
	flex: 1 1 200px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--mg-grad) !important; background-size: 200% auto !important;
	color: #1b1405 !important; font-family: inherit; font-size: 16px; font-weight: 800; box-shadow: 0 16px 36px -18px rgba(214, 171, 82, .9); transition: transform .25s, background-position .6s;
}
.mgp .mgp-cart .single_add_to_cart_button:hover { transform: translateY(-2px); background-position: 100% center !important; }
.mgp .mgp-cart .stock.out-of-stock { display: inline-block; margin: 0 0 10px; padding: 8px 16px; border-radius: 999px; background: rgba(19, 33, 31, .06); color: var(--mg-ink); font-weight: 700; }

.mgp-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.mgp-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #1f7a54; }
.mgp-stock i { width: 8px; height: 8px; border-radius: 50%; background: #2e9e6c; box-shadow: 0 0 0 4px rgba(46, 158, 108, .15); }
.mgp .mgp-link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--mg-line); background: #fff; color: var(--mg-ink); font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: none; }
.mgp .mgp-link-btn:hover { border-color: var(--mg-gold); color: var(--mg-gold); background: #fff; }
.mgp .mgp-link-btn svg { width: 20px; height: 20px; }

.mgp-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 0; padding: 16px 0; list-style: none; border-top: 1px solid var(--mg-line); border-bottom: 1px solid var(--mg-line); }
.mgp-trust li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--mg-ink); }
.mgp-trust svg { width: 26px; height: 26px; color: var(--mg-gold); }

.mgp-calc { margin-top: 18px; border: 1px solid var(--mg-line); border-radius: 22px; background: #fff; overflow: hidden; }
.mgp-calc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; cursor: pointer; }
.mgp-calc summary::-webkit-details-marker { display: none; }
.mgp-calc summary span { font-size: 15px; font-weight: 800; color: var(--mg-ink); }
.mgp-calc summary small { font-size: 12px; color: var(--mg-muted); margin-inline-start: auto; }
.mgp-calc summary::after { content: ""; width: 8px; height: 8px; border-left: 1.6px solid var(--mg-muted); border-bottom: 1.6px solid var(--mg-muted); transform: rotate(-45deg); transition: transform .25s; }
.mgp-calc[open] summary::after { transform: rotate(135deg); }
.mgp-calc table { width: 100%; margin: 0; border-collapse: collapse; border: 0; }
.mgp-calc th, .mgp-calc td { padding: 11px 20px; border: 0; border-top: 1px dashed var(--mg-line); background: none; font-size: 14px; vertical-align: middle; }
.mgp-calc th { text-align: start; font-weight: 600; color: var(--mg-text); }
.mgp-calc th small { margin-inline-start: 6px; font-size: 12px; font-weight: 500; color: var(--mg-muted); }
.mgp-calc td { text-align: end; font-weight: 700; color: var(--mg-ink); white-space: nowrap; }
.mgp-calc .is-discount td { color: #1f7a54; }
.mgp-calc .is-total th, .mgp-calc .is-total td { border-top: 1px solid var(--mg-line); background: var(--mg-ivory); font-size: 15.5px; font-weight: 900; color: var(--mg-ink); }

.mgp-dialog { width: min(860px, 94vw); max-width: none; max-height: 90vh; padding: 0; overflow: hidden; border: 0; border-radius: 24px; background: #fff; color: var(--mg-ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.mgp-dialog::backdrop { background: rgba(10, 26, 24, .6); backdrop-filter: blur(3px); }
.mgp-dialog img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* size guide (sizeguide.php) */
.mgsg { max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; padding: 30px 30px 24px; font-size: 14px; line-height: 1.9; color: var(--mg-text); }
.mgsg svg { display: block; width: 100%; height: auto; font-family: inherit; }
.mgsg ol, .mgsg ul, .mgsg li, .mgsg table { margin-top: 0; margin-bottom: 0; }
.mgsg .mgsg-tips { margin-top: 20px; }
.mgsg-head { padding-left: 44px; margin-bottom: 22px; }
.mgsg-head h2 { margin: 0 0 6px; font-size: 21px; font-weight: 900; color: var(--mg-ink); }
.mgsg-head p { margin: 0; }
.mgsg-mine { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: #e3f3f1; color: var(--mg-teal-d); font-size: 13.5px; font-weight: 800; }
.mgsg-mine::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mg-teal); }
.mgsg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mgsg-step { position: relative; margin: 0; padding: 14px 14px 16px; border-radius: 18px; background: var(--mg-ivory); border: 1px solid var(--mg-line); }
.mgsg-step svg { max-width: 190px; margin: 4px auto 6px; }
.mgsg-step__n { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mg-gold); color: #fff; font-weight: 800; font-size: 14px; }
.mgsg-step figcaption { font-size: 13px; line-height: 1.85; }
.mgsg-step figcaption b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--mg-ink); }
.mgsg-alt { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 12px 16px; border-radius: 18px; border: 1px dashed #d9c79f; }
.mgsg-alt svg { width: 96px; flex: none; }
.mgsg-alt p { margin: 0; font-size: 13.5px; }
.mgsg-alt b { display: block; color: var(--mg-ink); }
.mgsg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.mgsg-split--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.mgsg-figure { border-radius: 20px; background: var(--mg-ivory); padding: 10px; }
.mgsg-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mgsg-legend li { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--mg-line); }
.mgsg-legend li b { flex: none; width: 54px; text-align: center; font-size: 19px; font-weight: 900; line-height: 1.2; color: var(--mg-gold); }
.mgsg-legend li b small { display: block; font-size: 10.5px; font-weight: 600; color: var(--mg-muted); }
.mgsg-legend li span { font-size: 13px; line-height: 1.7; }
.mgsg-legend li strong { display: block; font-size: 14px; color: var(--mg-ink); }
.mgsg-legend li.is-mine { border-color: var(--mg-teal); background: #eef8f7; }
.mgsg-legend li.is-mine b { color: var(--mg-teal); }
.mgsg-list { margin: 0; padding: 0 20px 0 0; display: grid; gap: 8px; }
.mgsg-list li::marker { color: var(--mg-gold); font-weight: 800; }
.mgsg-note { margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--mg-ivory); font-size: 13.5px; }
.mgsg-note b { color: var(--mg-ink); }
.mgsg-table-wrap { margin-top: 20px; border: 1px solid var(--mg-line); border-radius: 16px; overflow: auto; max-height: 360px; }
.mgsg-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.mgsg-table th { position: sticky; top: 0; background: var(--mg-ivory); padding: 10px 8px; font-size: 13.5px; font-weight: 800; color: var(--mg-ink); border-bottom: 1px solid var(--mg-line); line-height: 1.5; }
.mgsg-table th small { display: block; font-size: 11px; font-weight: 500; color: var(--mg-muted); }
.mgsg-table td { padding: 8px; border-bottom: 1px solid #f3eee4; font-weight: 600; color: var(--mg-ink); }
.mgsg-table tbody tr:nth-child(even) td { background: #fdfbf7; }
.mgsg-table tr.is-mine td { background: #e3f3f1; color: var(--mg-teal-d); font-weight: 900; }
.mgsg-tips { margin: 20px 0 0; padding: 14px 16px 14px 14px; list-style: none; border-radius: 16px; background: #fbf7ee; display: grid; gap: 4px; font-size: 13px; }
.mgsg-tips li { position: relative; padding-right: 18px; }
.mgsg-tips li::before { content: ""; position: absolute; right: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--mg-gold); }
.mgsg-tips a { color: var(--mg-teal); font-weight: 700; }
@media (max-width: 680px) {
	.mgsg { padding: 22px 16px 18px; }
	.mgsg-head h2 { font-size: 18px; }
	.mgsg-steps { grid-template-columns: 1fr; }
	.mgsg-step { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 12px; }
	.mgsg-step svg { margin: 0; }
	.mgsg-step__n { top: 8px; right: 8px; width: 24px; height: 24px; font-size: 12.5px; }
	.mgsg-split, .mgsg-split--wide { grid-template-columns: 1fr; }
	.mgsg-split .mgsg-figure { max-width: 340px; margin: 0 auto; }
}
.mgp .mgp-dialog__close { position: absolute; top: 10px; left: 10px; width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #fff; color: var(--mg-ink); font-size: 24px; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); cursor: pointer; }

/* product tabs (Elementor nested tabs with class "mgp-tabs") */
.mgp-tabs .e-n-tabs-heading { gap: 8px; flex-wrap: wrap; border: 0; }
.mgp-tabs .e-n-tab-title {
	padding: 12px 22px !important; border-radius: 999px !important; border: 1px solid var(--mg-line) !important; background: #fff !important;
	color: var(--mg-ink) !important; font-family: iranyekan, Tahoma, sans-serif; font-size: 14.5px; font-weight: 700; transition: background-color .25s, color .25s, border-color .25s;
}
.mgp-tabs .e-n-tab-title:hover { border-color: var(--mg-gold) !important; }
.mgp-tabs .e-n-tab-title[aria-selected="true"] { background: var(--mg-ink) !important; border-color: var(--mg-ink) !important; color: #fff !important; }
.mgp-tabs .e-n-tabs-content > .e-con { margin-top: 18px; padding: 28px 30px !important; border: 1px solid var(--mg-line); border-radius: 24px; background: #fff; }
.mgp-tabs .e-n-tabs-content p, .mgp-desc p { margin: 0 0 12px; font-size: 15.5px; line-height: 2.1; color: var(--mg-text); }
.mgp-tabs .e-n-tabs-content ul { margin: 0; padding-inline-start: 20px; }
.mgp-tabs .e-n-tabs-content li { margin-bottom: 8px; line-height: 2; color: var(--mg-text); }
.mgp-tabs h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 800; color: var(--mg-ink); }
.mgp-tabs h3:first-child { margin-top: 0; }
.mgp-spec-table { width: 100%; max-width: 720px; margin: 0; border-collapse: collapse; border: 0; }
.mgp-spec-table th, .mgp-spec-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--mg-line); background: none; font-size: 14.5px; text-align: start; }
.mgp-spec-table th { width: 38%; font-weight: 600; color: var(--mg-muted); }
.mgp-spec-table td { font-weight: 700; color: var(--mg-ink); }
.mgp-spec-table tr:nth-child(odd) th, .mgp-spec-table tr:nth-child(odd) td { background: var(--mg-ivory); }

/* related products */
.mgs--related { padding-top: 34px; padding-bottom: 60px; }
.mgs-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.mgs-related__head h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; color: var(--mg-ink); }
.mgs-related__head a { font-size: 14px; font-weight: 700; color: var(--mg-ink); border-bottom: 1px solid currentColor; text-decoration: none; }
.mgs-related__head a:hover { color: var(--mg-gold); }

@media (max-width: 1024px) {
	.mgp { padding: 14px 16px 10px; }
	.mgp-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.mgp-info { position: static; }
	.mgp-tabs .e-n-tabs-content > .e-con { padding: 20px 18px !important; }
}
@media (max-width: 767px) {
	.mgp-title { font-size: 24px; margin-top: 10px; }
	.mgp-price { padding: 16px 18px; border-radius: 20px; }
	.mgp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgp-trust { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
	.mgp-calc th, .mgp-calc td { padding: 10px 14px; font-size: 13px; }
	.mgp-tabs .e-n-tabs-heading { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
	.mgp-tabs .e-n-tab-title { flex: 0 0 auto; padding: 10px 16px !important; font-size: 13.5px; }
	.mgs-grid--row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
	.mgs-grid--row .mgs-card { scroll-snap-align: start; }
}

/* ---------- landing: new arrivals ([mehrsun_new_arrivals]) — tabs are radios, switched by CSS only ---------- */
.mgs.mga { max-width: none; padding: 0; }
.mga__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mga__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.mga__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.mga__tabs::-webkit-scrollbar { display: none; }
.mga__tab {
	flex: 0 0 auto; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--mg-line); background: #fff; cursor: pointer;
	font-size: 14px; font-weight: 700; color: var(--mg-text); line-height: 1.5; user-select: none; transition: background-color .25s, color .25s, border-color .25s;
}
.mga__tab:hover { border-color: var(--mg-gold-l); color: var(--mg-ink); }
.mga__radio:nth-of-type(1):checked ~ .mga__bar .mga__tab:nth-child(1),
.mga__radio:nth-of-type(2):checked ~ .mga__bar .mga__tab:nth-child(2),
.mga__radio:nth-of-type(3):checked ~ .mga__bar .mga__tab:nth-child(3),
.mga__radio:nth-of-type(4):checked ~ .mga__bar .mga__tab:nth-child(4),
.mga__radio:nth-of-type(5):checked ~ .mga__bar .mga__tab:nth-child(5),
.mga__radio:nth-of-type(6):checked ~ .mga__bar .mga__tab:nth-child(6) { background: var(--mg-night); border-color: var(--mg-night); color: var(--mg-gold-l); }
.mga__radio:nth-of-type(1):focus-visible ~ .mga__bar .mga__tab:nth-child(1),
.mga__radio:nth-of-type(2):focus-visible ~ .mga__bar .mga__tab:nth-child(2),
.mga__radio:nth-of-type(3):focus-visible ~ .mga__bar .mga__tab:nth-child(3),
.mga__radio:nth-of-type(4):focus-visible ~ .mga__bar .mga__tab:nth-child(4),
.mga__radio:nth-of-type(5):focus-visible ~ .mga__bar .mga__tab:nth-child(5),
.mga__radio:nth-of-type(6):focus-visible ~ .mga__bar .mga__tab:nth-child(6) { outline: 2px solid var(--mg-gold); outline-offset: 2px; }
.mga__panel { display: none; }
.mga__radio:nth-of-type(1):checked ~ .mga__panels > .mga__panel:nth-child(1),
.mga__radio:nth-of-type(2):checked ~ .mga__panels > .mga__panel:nth-child(2),
.mga__radio:nth-of-type(3):checked ~ .mga__panels > .mga__panel:nth-child(3),
.mga__radio:nth-of-type(4):checked ~ .mga__panels > .mga__panel:nth-child(4),
.mga__radio:nth-of-type(5):checked ~ .mga__panels > .mga__panel:nth-child(5),
.mga__radio:nth-of-type(6):checked ~ .mga__panels > .mga__panel:nth-child(6) { display: block; animation: mga-in .35s ease; }
@keyframes mga-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mga__arrows { display: flex; gap: 8px; flex: none; }
.mgs .mga__arrow {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mg-line); background: #fff; color: var(--mg-ink); padding: 0; min-height: 0;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.mgs .mga__arrow:hover, .mgs .mga__arrow:focus-visible { background: var(--mg-night); border-color: var(--mg-night); color: var(--mg-gold-l); opacity: 1; box-shadow: none; }
.mgs .mga__arrow svg { display: block; width: 18px; height: 18px; flex: none; }
.mgs .mga__arrow--next svg { transform: scaleX(-1); }
.mga__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
}
.mga__track::-webkit-scrollbar { display: none; }
.mga__track > * { scroll-snap-align: start; }
.mga .mgs-card { animation: none; }
.mga__more {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; border-radius: 22px;
	background: var(--mg-ivory); border: 1px dashed rgba(166, 124, 46, .35); text-decoration: none; color: var(--mg-ink); transition: background-color .3s, border-color .3s;
}
.mga__more b { font-size: 15px; font-weight: 800; }
.mga__more span:last-child { font-size: 12.5px; color: var(--mg-muted); }
.mga__more-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--mg-night); color: var(--mg-gold-l); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; transition: transform .3s; }
.mga__more-ic svg { width: 22px; height: 22px; fill: currentColor; }
.mga__more:hover { background: #fff; border-color: var(--mg-gold); }
.mga__more:hover .mga__more-ic { transform: translateX(-4px); }
@media (max-width: 1024px) { .mga__track { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; } }
@media (max-width: 767px) {
	.mga__bar { margin-bottom: 18px; }
	.mga__arrows { display: none; }
	.mga__tabs { margin-inline: -2px; }
	.mga__tab { padding: 8px 16px; font-size: 13px; }
	.mga__track { grid-auto-columns: 46%; gap: 14px; margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; }
}
