/* Stores + Coupons — Mandy theme palette */

/* Full-width shop inside terms/legal shell */
.elementor-3953 .mff-legal-content:has(.mff-shop-body),
.elementor-3953 .mff-legal-content:has(.mff-store-grid),
.elementor-3953 .mff-legal-content:has(.mff-coupon-list),
.elementor-3953 .mff-legal-content:has(.mff-store-detail),
.elementor-3953 .mff-legal-content:has(.mff-store-detail-page),
.elementor-3953 .mff-legal-content:has(.mff-stores-page),
.elementor-3953 .mff-legal-content:has(.mff-coupons-page) {
	max-width: 100% !important;
	width: 100%;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.elementor-3953 .elementor-element-84627bd:has(.mff-store-detail-page) > .elementor-container,
.elementor-3953 .elementor-element-84627bd:has(.mff-stores-page) > .elementor-container,
.elementor-3953 .elementor-element-84627bd:has(.mff-coupons-page) > .elementor-container,
.elementor-3953 .elementor-element-84627bd:has(.mff-shop-body) > .elementor-container,
.elementor-3953 .elementor-element-84627bd:has(.mff-store-grid) > .elementor-container,
.elementor-3953 .elementor-element-84627bd:has(.mff-coupon-list) > .elementor-container,
.elementor-3953 .mff-legal-content:has(.mff-store-detail-page) .elementor-widget-container,
.elementor-3953 .mff-legal-content:has(.mff-stores-page) .elementor-widget-container,
.elementor-3953 .mff-legal-content:has(.mff-coupons-page) .elementor-widget-container,
.elementor-3953 .mff-legal-content:has(.mff-shop-body) .elementor-widget-container,
.elementor-3953 .mff-legal-content:has(.mff-store-grid) .elementor-widget-container,
.elementor-3953 .mff-legal-content:has(.mff-coupon-list) .elementor-widget-container {
	max-width: 100% !important;
	width: 100%;
}

/* Kill empty terms-page title band (margin-top 50 + margin-bottom 90) */
.elementor-3953:has(.mff-store-detail-page) .elementor-element-e5ce10e,
.elementor-3953:has(.mff-stores-page) .elementor-element-e5ce10e,
.elementor-3953:has(.mff-coupons-page) .elementor-element-e5ce10e,
.elementor-3953:has(.mff-shop-body) .elementor-element-e5ce10e,
.elementor-3953:has(.mff-store-grid) .elementor-element-e5ce10e,
.elementor-3953:has(.mff-coupon-list) .elementor-element-e5ce10e,
.elementor-3953:has(.mff-shop-hero) .elementor-element-e5ce10e {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

.elementor-3953:has(.mff-store-detail-page) .elementor-element-84627bd,
.elementor-3953:has(.mff-stores-page) .elementor-element-84627bd,
.elementor-3953:has(.mff-coupons-page) .elementor-element-84627bd,
.elementor-3953:has(.mff-shop-body) .elementor-element-84627bd,
.elementor-3953:has(.mff-store-grid) .elementor-element-84627bd,
.elementor-3953:has(.mff-coupon-list) .elementor-element-84627bd {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
}

.elementor-3953:has(.mff-store-detail-page) .mff-legal-content,
.elementor-3953:has(.mff-stores-page) .mff-legal-content,
.elementor-3953:has(.mff-coupons-page) .mff-legal-content,
.elementor-3953:has(.mff-shop-body) .mff-legal-content,
.elementor-3953:has(.mff-store-grid) .mff-legal-content,
.elementor-3953:has(.mff-coupon-list) .mff-legal-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.mff-store-detail-page .mff-sd-hero,
.mff-stores-page .mff-stores-hero,
.mff-coupons-page .mff-stores-hero {
	margin-top: 0;
}

/* Stores / Coupons top selection bar */
.mff-stores-page,
.mff-coupons-page {
	width: 100%;
}

.mff-stores-hero {
	width: 100%;
	background: #f5f3f1;
	border-bottom: 1px solid #e6e6e6;
	padding: 36px 0 28px !important;
}

.mff-stores-hero-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 32px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.mff-stores-hero-copy {
	flex: 1 1 280px;
	min-width: 0;
}

.mff-stores-hero-copy .elementor-heading-title {
	margin: 0 0 8px !important;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	line-height: 1.15;
	color: #191919;
}

.mff-stores-hero-copy .mff-shop-sub {
	margin: 0 !important;
	color: #666;
	font-size: 1.05rem;
	line-height: 1.5;
}

.mff-stores-hero-search {
	flex: 0 1 360px;
	width: 100%;
	max-width: 360px;
}

.mff-stores-hero .mff-store-search {
	width: 100%;
	max-width: none;
	height: 50px;
	border: 1px solid #e6e6e6;
	background: #fff;
	padding: 0 18px;
	font-size: 15px;
	color: #191919;
}

.mff-stores-hero .mff-store-search:focus {
	outline: none;
	border-color: #191919;
}

.mff-stores-hero-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding-top: 4px;
}

.mff-stores-hero-bar--cats {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e6e6e6;
}

.mff-stores-showing {
	margin: 0;
	font-size: 13px;
	color: #888;
	white-space: nowrap;
}

.mff-stores-grid-section {
	padding: 36px 0 64px !important;
	width: 100%;
	background: #fff;
}

.mff-shop-hero,
.mff-shop-body,
.mff-store-detail {
	padding: 40px 0;
	width: 100%;
}

.mff-shop-body > .elementor-container,
.mff-shop-hero > .elementor-container,
.mff-store-detail > .elementor-container {
	max-width: var(--vamtam-site-max-width, 1260px);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

@media (max-width: 767px) {
	.mff-stores-hero {
		padding: 28px 0 22px !important;
	}
	.mff-stores-hero-search {
		max-width: none;
		flex-basis: 100%;
	}
	.mff-stores-hero-bar {
		align-items: flex-start;
		flex-direction: column;
	}
	.mff-stores-showing {
		white-space: normal;
	}
}

/* Theme-like 4-column store rows */
.mff-stores-widget {
	--e-columns: 4;
	--grid-columns: 4;
	width: 100%;
}

ul.products.mff-store-grid.elementor-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 30px 24px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	float: none !important;
}

ul.products.mff-store-grid.elementor-grid::before,
ul.products.mff-store-grid.elementor-grid::after {
	display: none !important;
	content: none !important;
}

ul.products.mff-store-grid > li.product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	padding: 0 !important;
}

ul.products.mff-store-grid > li.product .mff-store-thumb {
	display: block;
	aspect-ratio: 315 / 395;
	background: #f5f3f1;
	overflow: hidden;
}

ul.products.mff-store-grid > li.product .mff-store-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	padding: 18px;
	box-sizing: border-box;
}

ul.products.mff-store-grid > li.product .vamtam-product-content {
	text-align: center;
	padding-top: 12px;
}

ul.products.mff-store-grid > li.product .vamtam-add-to-cart-wrap {
	text-align: center;
	margin-top: 10px;
}

@media (max-width: 1024px) {
	ul.products.mff-store-grid.elementor-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	ul.products.mff-store-grid.elementor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 20px 14px !important;
	}
}

.mff-shop-hero .elementor-heading-title,
.mff-store-detail .elementor-heading-title {
	margin: 0 0 8px;
}

.mff-shop-sub {
	color: #666;
	margin: 0 0 24px;
}

.mff-shop-toolbar {
	display: grid;
	gap: 16px;
	margin-bottom: 8px;
}

.mff-store-search {
	width: 100%;
	max-width: 420px;
	height: 48px;
	border: 1px solid #e6e6e6;
	padding: 0 16px;
	background: #fff;
	font-size: 15px;
}

.mff-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.mff-stores-hero .mff-filter-chips button,
.mff-stores-hero .mff-filter-chips a.mff-filter-chip {
	display: inline-block;
	border: 1px solid #e6e6e6;
	background: #fff;
	color: #191919;
	padding: 9px 16px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mff-stores-hero .mff-filter-chips button span,
.mff-stores-hero .mff-filter-chips a.mff-filter-chip span {
	opacity: 0.55;
	margin-left: 4px;
}

.mff-stores-hero .mff-filter-chips button.is-active,
.mff-stores-hero .mff-filter-chips button:hover,
.mff-stores-hero .mff-filter-chips a.mff-filter-chip.is-active,
.mff-stores-hero .mff-filter-chips a.mff-filter-chip:hover {
	background: #191919;
	color: #fff;
	border-color: #191919;
}

.mff-stores-pagination.elementor-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 40px 0 8px;
	width: 100%;
}

.mff-stores-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #e6e6e6;
	background: #f5f3f1;
	color: #191919;
	text-decoration: none;
	font-size: 14px;
	line-height: 1;
}

.mff-stores-pagination .page-numbers.current,
.mff-stores-pagination a.page-numbers:hover {
	background: #191919;
	border-color: #191919;
	color: #fff;
}

.mff-stores-pagination .page-numbers.dots {
	border: 0;
	background: transparent;
	min-width: auto;
	padding: 0 4px;
}

.mff-stores-pagination .page-numbers.dots:hover {
	background: transparent;
	color: #191919;
}

.mff-filter-chips button {
	border: 1px solid #e6e6e6;
	background: #f5f3f1;
	color: #191919;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 13px;
}

.mff-filter-chips button span {
	opacity: 0.65;
	margin-left: 4px;
}

.mff-filter-chips button.is-active,
.mff-filter-chips button:hover {
	background: #191919;
	color: #fff;
	border-color: #191919;
}

.mff-store-grid .mff-store-item.is-hidden,
.mff-coupon-card.is-hidden {
	display: none !important;
}

.mff-store-grid .woocommerce-loop-product__title {
	font-size: 1.05rem;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
}

.mff-coupon-list {
	display: grid;
	gap: 18px;
}

.mff-coupon-card {
	display: grid;
	grid-template-columns: 120px 1fr auto;
	gap: 18px;
	align-items: center;
	border: 1px solid #e6e6e6;
	background: #fff;
	padding: 16px;
}

.mff-coupon-thumb img {
	width: 120px;
	height: 90px;
	object-fit: cover;
	display: block;
	background: #f5f3f1;
}

.mff-coupon-store {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #191919;
	font-size: 13px;
	margin-bottom: 6px;
}

.mff-coupon-store img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border: 1px solid #eee;
	background: #fff;
}

.mff-coupon-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 6px;
	font-size: 12px;
}

.mff-badge {
	display: inline-block;
	padding: 2px 8px;
	background: #f5f3f1;
}

.mff-badge.is-active {
	background: #191919;
	color: #fff;
}

.mff-badge.is-expired {
	background: #ddd;
	color: #555;
}

.mff-badge.is-featured {
	background: #f5f3f1;
	color: #191919;
	border: 1px solid #191919;
}

.mff-coupon-card.is-featured {
	border-color: #191919;
}

.mff-coupon-body h3 {
	margin: 0 0 6px;
	font-size: 1.2rem;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
}

.mff-coupon-body p {
	margin: 0;
	color: #666;
	line-height: 1.55;
}

.mff-coupon-action {
	display: grid;
	gap: 8px;
	justify-items: stretch;
	min-width: 140px;
}

.mff-code-peep {
	font-family: ui-monospace, monospace;
	font-size: 13px;
	text-align: center;
	letter-spacing: 0.04em;
	color: #666;
}

/* ── Store detail (full-width theme layout) ── */
.mff-store-detail-page {
	width: 100%;
	background: #fff;
}

.mff-sd-wrap {
	width: 100%;
	max-width: var(--vamtam-site-max-width, 1260px);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.mff-sd-hero {
	width: 100%;
	background: #f5f3f1;
	padding: 18px;
	border: 1px solid #e6e6e6;
	margin-bottom: 24px;
	box-sizing: border-box;
}

.mff-breadcrumb {
	font-size: 13px;
	color: #888;
	margin: 0 0 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.mff-breadcrumb a {
	color: #191919;
	text-decoration: none;
}

.mff-breadcrumb a:hover {
	text-decoration: underline;
}

.mff-sd-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: start;
}

.mff-sd-media {
	background: #fff;
	border: 1px solid #e6e6e6;
	width: 140px;
	height: 140px;
	display: grid;
	place-items: center;
	padding: 16px;
}

.mff-sd-media .mff-store-logo {
	width: 100%;
	height: 100%;
	max-width: 110px;
	object-fit: contain;
}

.mff-sd-info .elementor-heading-title {
	margin: 0 0 8px;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.2rem, 1.8vw, 1.55rem);
	line-height: 1.25;
	color: #191919;
}

.mff-sd-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.mff-sd-pills span {
	display: inline-block;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #e6e6e6;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: #555;
}

.mff-store-rating {
	margin: 0 0 8px;
	color: #666;
	font-size: 15px;
}

.mff-stars {
	color: #191919;
	letter-spacing: 0.08em;
	margin-right: 6px;
}

.mff-store-short,
.mff-store-content {
	margin: 0 0 20px;
	color: #444;
	line-height: 1.7;
	font-size: 1.05rem;
}

.mff-store-short {
	max-width: 54ch;
}

.mff-store-content p {
	margin: 0 0 0.9em;
}

.mff-store-content p:last-child {
	margin-bottom: 0;
}

.mff-store-content ul,
.mff-store-content ol {
	margin: 0 0 1em 1.25em;
}

.mff-store-content img {
	max-width: 100%;
	height: auto;
}

.mff-sd-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 10px 0 0;
}

.mff-sd-jump a {
	color: #191919;
	font-size: 13px;
	text-decoration: none;
	border-bottom: 1px solid #191919;
}

.mff-sd-jump a:hover {
	opacity: 0.7;
}

.mff-store-info-box {
	border: 1px solid #e6e6e6;
	padding: 22px;
	background: #fff;
	margin-bottom: 24px;
}

.mff-store-info-box .elementor-heading-title {
	margin: 0 0 14px;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
	font-size: 1.35rem;
}

.mff-store-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mff-store-info-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}

.mff-store-info-list li span {
	color: #888;
}

.mff-store-info-list li strong {
	font-weight: 500;
	text-align: right;
	color: #191919;
}

.mff-store-keywords {
	margin-top: 16px;
}

.mff-store-keywords-label {
	display: block;
	font-size: 12px;
	color: #888;
	margin-bottom: 8px;
}

.mff-store-keyword-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mff-store-keyword-tags span {
	display: inline-block;
	padding: 5px 10px;
	background: #f5f3f1;
	border: 1px solid #e6e6e6;
	font-size: 12px;
	color: #555;
}

.mff-store-short-block {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.mff-featured-deal {
	margin-top: 8px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid #e6e6e6;
}

.mff-featured-deal h3 {
	margin: 10px 0 8px;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
	font-size: 1.45rem;
	line-height: 1.3;
}

.mff-featured-desc {
	margin: 0 0 14px;
	color: #666;
	line-height: 1.55;
}

.mff-featured-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.mff-featured-actions .mff-expiry {
	font-size: 13px;
	color: #777;
}

.mff-sd-main {
	padding: 20px 0 64px;
	width: 100%;
	background: #fff;
}

.mff-sd-layout {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 32px 40px;
	align-items: start;
}

.mff-sd-side,
.mff-sd-coupons {
	min-width: 0;
}

.mff-sd-coupons-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.mff-sd-coupons-head .elementor-heading-title {
	margin: 0 0 6px;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
	font-size: 1.75rem;
}

.mff-sd-coupons-head .mff-shop-sub {
	margin: 0;
}

.mff-sd-coupons .mff-coupon-card {
	background: #fff;
	transition: border-color 0.2s ease;
}

.mff-sd-coupons .mff-coupon-card:hover {
	border-color: #191919;
}

.mff-store-long {
	margin: 0 0 24px;
	padding: 22px;
	border: 1px solid #e6e6e6;
	background: #fff;
	line-height: 1.75;
	color: #444;
}

.mff-store-long .elementor-heading-title {
	margin: 0 0 16px;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
	font-size: 1.6rem;
}

.mff-store-faqs {
	margin: 0 0 24px;
	padding: 22px;
	border: 1px solid #e6e6e6;
	background: #fff;
}

.mff-store-faqs > .elementor-heading-title {
	margin: 0 0 8px;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
	font-size: 1.6rem;
}

.mff-store-faqs .elementor-tab-title {
	cursor: pointer;
	padding: 18px 0;
	border-bottom: 1px solid #e6e6e6;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 1.25rem;
	font-family: "Gilda Display", Georgia, serif;
}

.mff-store-faqs .elementor-tab-content {
	display: none;
	padding: 0 0 18px;
	color: #555;
	line-height: 1.7;
}

.mff-store-faqs .elementor-tab-title.elementor-active + .elementor-tab-content {
	display: block;
}

.mff-sd-aside {
	position: static;
}

.mff-related-stores {
	border: 1px solid #e6e6e6;
	padding: 22px;
	background: #f5f3f1;
}

.mff-related-stores .elementor-heading-title {
	margin: 0 0 14px;
	font-family: "Gilda Display", Georgia, serif;
	font-weight: 400;
	font-size: 1.35rem;
}

.mff-related-store {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	color: #191919;
	padding: 12px 0;
	border-bottom: 1px solid #e6e6e6;
}

.mff-related-store:last-of-type {
	border-bottom: 0;
}

.mff-related-store img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #e6e6e6;
	flex: 0 0 auto;
}

.mff-related-store strong,
.mff-related-store em {
	display: block;
}

.mff-related-store strong {
	font-weight: 500;
	margin-bottom: 2px;
}

.mff-related-store em {
	font-style: normal;
	color: #888;
	font-size: 12px;
}

.mff-related-all {
	display: inline-block;
	margin-top: 16px;
	color: #191919;
	font-size: 14px;
	text-decoration: none;
	border-bottom: 1px solid #191919;
}

.mff-related-all:hover {
	opacity: 0.7;
}

@media (max-width: 1024px) {
	.mff-sd-layout {
		grid-template-columns: 1fr;
	}
	.mff-sd-coupons {
		order: -1;
	}
	.mff-sd-aside {
		position: static;
	}
}

@media (max-width: 900px) {
	.mff-sd-hero-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.mff-sd-media {
		width: 112px;
		height: 112px;
		margin: 0;
	}
	.mff-sd-hero {
		padding: 16px;
	}
	.mff-sd-main {
		padding: 16px 0 48px;
	}
}

.mff-empty {
	color: #888;
	padding: 24px 0;
}

.mff-coupon-modal[hidden] {
	display: none !important;
}

.mff-coupon-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
}

.mff-coupon-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.mff-coupon-modal__dialog {
	position: relative;
	background: #fff;
	width: min(440px, calc(100vw - 32px));
	padding: 28px 24px;
	border: 1px solid #e6e6e6;
	text-align: center;
}

.mff-coupon-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
}

.mff-coupon-modal__code-wrap {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	margin: 16px 0;
}

.mff-coupon-modal__code-wrap code {
	font-size: 1.2rem;
	padding: 10px 14px;
	background: #f5f3f1;
	border: 1px dashed #ccc;
	min-width: 140px;
}

@media (max-width: 900px) {
	.mff-coupon-card {
		grid-template-columns: 90px 1fr;
	}
	.mff-coupon-action {
		grid-column: 1 / -1;
	}
}
