/*
 * MBD Jewelry Landing — front-end styles.
 * Every selector is scoped to the plugin root except the optional theme-title helper.
 */

body.mbdj-page {
	overflow-x: clip;
}

body.mbdj-hide-theme-title .entry-header > .entry-title,
body.mbdj-hide-theme-title .page-header > .page-title,
body.mbdj-hide-theme-title main > .wp-block-post-title,
body.mbdj-hide-theme-title article > .entry-title,
body.mbdj-hide-theme-title .elementor-page-title {
	display: none !important;
}

.mbdj-landing,
.mbdj-landing * {
	box-sizing: border-box;
}

.mbdj-landing {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 0 clamp(34px, 5vw, 78px);
	background: var(--mbdj-bg, #fff);
	color: var(--mbdj-text, #171717);
	font-family: var(--mbdj-font-body, Heebo, Arial, sans-serif);
	font-size: 16px;
	line-height: 1.55;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.mbdj-landing--full-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.mbdj-landing a,
.mbdj-landing button {
	font: inherit;
}

.mbdj-landing a {
	color: inherit;
	text-decoration: none;
}

.mbdj-landing button {
	color: inherit;
}

.mbdj-landing img,
.mbdj-landing svg {
	display: block;
	max-width: 100%;
}

.mbdj-landing button,
.mbdj-landing a {
	-webkit-tap-highlight-color: transparent;
}

.mbdj-landing :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mbdj-gold, #b68e5a) 70%, #fff);
	outline-offset: 3px;
}

.mbdj-shell {
	width: min(calc(100% - clamp(32px, 10vw, 96px)), var(--mbdj-max, 1440px));
	margin-inline: auto;
}

.mbdj-overlap-shell {
	width: min(calc(100% - clamp(40px, 14vw, 120px)), min(1200px, var(--mbdj-max, 1440px)));
	margin-inline: auto;
}

.mbdj-section {
	margin-top: var(--mbdj-gap, 28px);
}

.mbdj-eyebrow {
	margin: 0 0 clamp(8px, 1.1vw, 15px);
	color: var(--mbdj-gold, #b68e5a);
	font-family: var(--mbdj-font-body, Heebo, Arial, sans-serif);
	font-size: clamp(11px, 1.25vw, 16px);
	font-weight: 600;
	letter-spacing: .16em;
	line-height: 1.15;
	text-transform: uppercase;
}

.mbdj-section-title {
	margin: 0;
	font-size: clamp(25px, 3.25vw, 44px);
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1.1;
}

.mbdj-display-title {
	margin: 0;
	font-family: var(--mbdj-font-display, Georgia, serif);
	font-size: clamp(27px, 3.8vw, 50px);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1;
}

.mbdj-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(42px, 5vw, 54px);
	padding: 10px clamp(18px, 3vw, 38px);
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: clamp(14px, 1.65vw, 19px);
	font-weight: 500;
	line-height: 1.1;
	text-align: center;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
	cursor: pointer;
}

.mbdj-button:hover {
	transform: translateY(-1px);
}

.mbdj-button--gold {
	background: var(--mbdj-gold, #b68e5a);
	color: #fff !important;
	box-shadow: 0 5px 16px color-mix(in srgb, var(--mbdj-gold, #b68e5a) 23%, transparent);
}

.mbdj-button--gold:hover {
	background: color-mix(in srgb, var(--mbdj-gold, #b68e5a) 88%, #000);
}

.mbdj-button--outline {
	border-color: color-mix(in srgb, var(--mbdj-text, #171717) 72%, transparent);
	background: color-mix(in srgb, var(--mbdj-card, #fff) 76%, transparent);
	color: var(--mbdj-text, #171717) !important;
}

.mbdj-button--outline:hover {
	background: var(--mbdj-card, #fff);
}

.mbdj-button--black {
	background: #050505;
	color: #fff !important;
}

.mbdj-button--black:hover {
	background: #242424;
}

.mbdj-button--compact {
	min-height: clamp(38px, 4vw, 48px);
	padding-inline: clamp(22px, 3.5vw, 48px);
	font-size: clamp(13px, 1.45vw, 17px);
}

/* Hero */
.mbdj-hero {
	position: relative;
	min-height: clamp(470px, 55vw, 700px);
	overflow: hidden;
	background: var(--mbdj-surface-2, #f5ece6);
}

.mbdj-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(248, 244, 240, .23) 0%, rgba(248, 244, 240, .08) 38%, transparent 66%);
	pointer-events: none;
}

.mbdj-hero__media,
.mbdj-hero__picture,
.mbdj-hero__image,
.mbdj-hero__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.mbdj-hero__image {
	object-fit: cover;
}

.mbdj-hero__placeholder {
	display: grid;
	place-items: stretch;
	background: linear-gradient(110deg, #f8f3ef, #eaded3);
}

.mbdj-hero__placeholder > span,
.mbdj-hero__placeholder svg {
	width: 100%;
	height: 100%;
}

.mbdj-hero__copy {
	position: relative;
	z-index: 2;
	width: min(39vw, 510px);
	margin-right: auto;
	margin-left: clamp(24px, 8vw, 138px);
	padding-top: clamp(42px, 6.1vw, 90px);
	text-align: right;
}

.mbdj-hero__title {
	max-width: 12ch;
	margin: 0;
	font-size: clamp(36px, 4.45vw, 64px);
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: 1.08;
}

.mbdj-hero__description {
	margin: clamp(15px, 2.4vw, 28px) 0 0;
	font-size: clamp(16px, 1.95vw, 23px);
	font-weight: 400;
	line-height: 1.45;
}

.mbdj-hero__actions {
	display: grid;
	width: min(100%, 300px);
	gap: clamp(10px, 1.25vw, 15px);
	margin-top: clamp(20px, 3vw, 36px);
}

/* Weekly card */
.mbdj-week {
	position: relative;
	z-index: 4;
	margin-top: clamp(-138px, -13vw, -104px);
}

.mbdj-week__card {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
	min-height: clamp(226px, 26vw, 315px);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--mbdj-line, #e6ded8) 76%, transparent);
	border-radius: calc(var(--mbdj-radius, 18px) + 4px);
	background: var(--mbdj-card, #fffefd);
	box-shadow: 0 10px 22px rgba(40, 31, 25, .09);
	direction: ltr;
}

.mbdj-week__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(22px, 3.5vw, 48px) clamp(18px, 4vw, 58px);
	direction: rtl;
	text-align: center;
}

.mbdj-week__description {
	margin: clamp(9px, 1.3vw, 17px) 0 0;
	font-size: clamp(14px, 1.65vw, 20px);
}

.mbdj-week__price {
	margin: clamp(7px, 1vw, 13px) 0 clamp(10px, 1.5vw, 18px);
	font-size: clamp(17px, 2vw, 24px);
	font-weight: 500;
}

.mbdj-week__media {
	display: grid;
	place-items: center;
	min-width: 0;
	padding: clamp(12px, 2vw, 28px);
}

.mbdj-week__image {
	width: 100%;
	height: 100%;
	max-height: clamp(185px, 23vw, 286px);
	object-fit: contain;
}

/* Shared heading */
.mbdj-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(15px, 2.2vw, 28px);
}

.mbdj-text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: max-content;
	padding: 4px 0;
	border: 0;
	background: transparent;
	font-size: clamp(14px, 1.55vw, 18px);
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
}

.mbdj-text-link svg {
	width: 18px;
	height: 18px;
	transition: transform .2s ease;
}

.mbdj-text-link:hover svg {
	transform: translateX(-3px);
}

/* Collections */
.mbdj-collections {
	margin-top: clamp(28px, 4.8vw, 66px);
}

.mbdj-collections__track {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: clamp(12px, 2.5vw, 44px);
}

.mbdj-collection {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	gap: clamp(9px, 1.35vw, 16px);
	text-align: center;
}

.mbdj-collection__circle {
	display: grid;
	width: clamp(96px, 14.1vw, 172px);
	max-width: 100%;
	aspect-ratio: 1;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--mbdj-line, #e6ded8);
	border-radius: 50%;
	background: var(--mbdj-surface, #fbf7f4);
	transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.mbdj-collection:hover .mbdj-collection__circle {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--mbdj-gold, #b68e5a) 52%, var(--mbdj-line, #e6ded8));
	box-shadow: 0 10px 24px rgba(44, 35, 29, .08);
}

.mbdj-collection__image {
	width: 82%;
	height: 82%;
	object-fit: contain;
}

.mbdj-collection__title {
	font-size: clamp(16px, 1.9vw, 22px);
	font-weight: 400;
	line-height: 1.2;
}

/* Design-your-own banner */
.mbdj-design {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	min-height: clamp(240px, 28.3vw, 390px);
	overflow: hidden;
	border-radius: var(--mbdj-radius, 18px);
	background: var(--mbdj-surface-2, #f5ece6);
	direction: ltr;
}

.mbdj-design__media {
	display: grid;
	place-items: center;
	min-width: 0;
	padding: clamp(17px, 3vw, 44px) clamp(15px, 2.8vw, 40px);
}

.mbdj-design__image {
	width: 100%;
	height: 100%;
	max-height: clamp(205px, 25vw, 340px);
	object-fit: contain;
}

.mbdj-design__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(22px, 3.7vw, 54px);
	direction: rtl;
	text-align: center;
}

.mbdj-design__description {
	margin: clamp(12px, 1.8vw, 22px) 0 clamp(17px, 2.2vw, 28px);
	font-size: clamp(15px, 1.75vw, 20px);
	line-height: 1.55;
}

/* Featured products */
.mbdj-featured {
	position: relative;
}

.mbdj-section-heading--featured {
	align-items: flex-end;
}

.mbdj-section-heading__links {
	display: flex;
	align-items: center;
	gap: clamp(15px, 2.4vw, 34px);
}

.mbdj-text-link--favorites {
	position: relative;
	color: color-mix(in srgb, var(--mbdj-gold, #b68e5a) 82%, var(--mbdj-text, #171717));
}

.mbdj-text-link--favorites svg {
	width: 17px;
	height: 17px;
}

.mbdj-favorites-count {
	display: inline-grid;
	min-width: 20px;
	height: 20px;
	place-items: center;
	padding: 0 5px;
	border-radius: 99px;
	background: var(--mbdj-gold, #b68e5a);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.mbdj-featured__viewport {
	overflow: hidden;
}

.mbdj-featured__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - clamp(24px, 3vw, 42px)) / 4);
	gap: clamp(8px, 1vw, 14px);
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 6px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.mbdj-featured__track::-webkit-scrollbar,
.mbdj-collections__track::-webkit-scrollbar,
.mbdj-benefits__track::-webkit-scrollbar {
	display: none;
}

.mbdj-product-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--mbdj-line, #e6ded8) 72%, transparent);
	border-radius: 7px;
	background: var(--mbdj-surface, #fbf7f4);
	scroll-snap-align: start;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mbdj-product-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--mbdj-gold, #b68e5a) 42%, var(--mbdj-line, #e6ded8));
	box-shadow: 0 12px 26px rgba(40, 31, 25, .09);
}

.mbdj-product-card__link {
	display: flex;
	min-height: clamp(205px, 25vw, 360px);
	flex-direction: column;
	align-items: stretch;
	padding: clamp(8px, 1.1vw, 14px) clamp(9px, 1.15vw, 16px) clamp(10px, 1.3vw, 18px);
	text-align: center;
}

.mbdj-product-card__media {
	display: grid;
	height: clamp(126px, 16vw, 240px);
	place-items: center;
	margin-bottom: clamp(5px, .8vw, 10px);
	padding: clamp(8px, 1.4vw, 20px) 4px 0;
}

.mbdj-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .28s ease;
}

.mbdj-product-card:hover .mbdj-product-card__image {
	transform: scale(1.025);
}

.mbdj-product-card__title {
	margin-top: auto;
	font-size: clamp(13px, 1.45vw, 18px);
	font-weight: 400;
	line-height: 1.25;
}

.mbdj-product-card__price {
	display: block;
	margin-top: clamp(5px, .7vw, 9px);
	color: var(--mbdj-text, #171717);
	font-size: clamp(12px, 1.35vw, 17px);
	font-weight: 400;
	line-height: 1.2;
}

.mbdj-product-card__price .woocommerce-Price-amount {
	font-weight: inherit;
}

.mbdj-heart {
	position: absolute;
	top: clamp(9px, 1.1vw, 14px);
	left: clamp(9px, 1.1vw, 14px);
	z-index: 3;
	display: grid;
	width: clamp(28px, 3vw, 38px);
	height: clamp(28px, 3vw, 38px);
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .66);
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: transform .2s ease, color .2s ease, background .2s ease;
}

.mbdj-heart svg {
	width: 74%;
	height: 74%;
}

.mbdj-heart:hover {
	transform: scale(1.08);
	background: #fff;
}

.mbdj-heart.is-favorite {
	color: var(--mbdj-gold, #b68e5a);
}

.mbdj-heart.is-favorite svg path {
	fill: currentColor;
}

.mbdj-carousel-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 1.3vw, 16px);
	margin-top: clamp(14px, 2vw, 24px);
}

.mbdj-carousel-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d8d8d8;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}

.mbdj-carousel-dot.is-active {
	transform: scale(1.08);
	background: var(--mbdj-gold, #b68e5a);
}

/* Benefits */
.mbdj-benefits {
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--mbdj-line, #e6ded8) 68%, transparent);
	border-radius: 8px;
	background: var(--mbdj-card, #fffefd);
}

.mbdj-benefits__track {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mbdj-benefit {
	display: flex;
	min-width: 0;
	min-height: clamp(98px, 12vw, 145px);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(7px, 1vw, 13px);
	padding: clamp(12px, 1.8vw, 24px) 10px;
	text-align: center;
}

.mbdj-benefit + .mbdj-benefit {
	border-inline-start: 1px solid color-mix(in srgb, var(--mbdj-line, #e6ded8) 74%, transparent);
}

.mbdj-benefit__icon {
	display: grid;
	width: clamp(34px, 4.7vw, 58px);
	height: clamp(34px, 4.7vw, 58px);
	place-items: center;
}

.mbdj-benefit__icon svg,
.mbdj-benefit__custom-icon {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mbdj-benefit__title {
	font-size: clamp(12px, 1.4vw, 17px);
	font-weight: 500;
	line-height: 1.25;
}

/* Diamond center */
.mbdj-diamond-center {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	min-height: clamp(225px, 27vw, 370px);
	overflow: hidden;
	border-radius: var(--mbdj-radius, 18px);
	background: var(--mbdj-surface-2, #f5ece6);
	direction: ltr;
}

.mbdj-diamond-center__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 4vw, 58px);
	direction: rtl;
	text-align: center;
}

.mbdj-diamond-center__description {
	margin: clamp(11px, 1.7vw, 21px) 0 clamp(16px, 2.2vw, 28px);
	font-size: clamp(14px, 1.7vw, 20px);
	line-height: 1.55;
}

.mbdj-diamond-center__media {
	display: grid;
	place-items: center;
	min-width: 0;
	padding: clamp(12px, 2.8vw, 38px);
}

.mbdj-diamond-center__image {
	width: 100%;
	height: 100%;
	max-height: clamp(185px, 24vw, 330px);
	object-fit: contain;
}

/* Placeholders */
.mbdj-media-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 80px;
	color: color-mix(in srgb, var(--mbdj-gold, #b68e5a) 70%, #777);
}

.mbdj-media-placeholder svg {
	width: min(72%, 150px);
	height: min(72%, 150px);
}

/* Favorites modal */
.mbdj-modal[hidden] {
	display: none !important;
}

.mbdj-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
	direction: rtl;
}

.mbdj-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 13, 12, .64);
	backdrop-filter: blur(7px);
	animation: mbdjFadeIn .2s ease both;
}

.mbdj-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(780px, calc(100vw - 32px));
	max-height: min(820px, calc(100dvh - 32px));
	flex-direction: column;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--mbdj-line, #e6ded8) 74%, transparent);
	border-radius: 24px;
	background: var(--mbdj-card, #fffefd);
	box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
	animation: mbdjModalIn .28s cubic-bezier(.2, .85, .3, 1) both;
}

.mbdj-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(22px, 4vw, 38px) clamp(20px, 4vw, 40px) clamp(16px, 2.6vw, 24px);
	border-bottom: 1px solid var(--mbdj-line, #e6ded8);
}

.mbdj-modal__title {
	margin: 0;
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 500;
	line-height: 1.1;
}

.mbdj-modal__description {
	margin: 8px 0 0;
	color: var(--mbdj-muted, #625b56);
	font-size: 15px;
}

.mbdj-modal__close {
	display: grid;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--mbdj-line, #e6ded8);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.mbdj-modal__close svg {
	width: 21px;
	height: 21px;
}

.mbdj-modal__body {
	min-height: 180px;
	overflow-y: auto;
	padding: clamp(16px, 3vw, 30px) clamp(20px, 4vw, 40px);
}

.mbdj-modal__status {
	display: none;
	margin-bottom: 14px;
	padding: 11px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--mbdj-gold, #b68e5a) 12%, #fff);
	font-size: 14px;
}

.mbdj-modal__status:not(:empty) {
	display: block;
}

.mbdj-modal__status.is-error {
	background: #fff0ef;
	color: #8d2018;
}

.mbdj-favorites-list {
	display: grid;
	gap: 12px;
}

.mbdj-favorite-item {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 10px;
	border: 1px solid var(--mbdj-line, #e6ded8);
	border-radius: 14px;
	background: var(--mbdj-surface, #fbf7f4);
}

.mbdj-favorite-item__image {
	display: grid;
	width: 104px;
	aspect-ratio: 1;
	place-items: center;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}

.mbdj-favorite-item__image img {
	width: 92%;
	height: 92%;
	object-fit: contain;
}

.mbdj-favorite-item__image svg {
	width: 64%;
	height: 64%;
	opacity: .32;
}

.mbdj-favorite-item__title {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}

.mbdj-favorite-item__price {
	margin-top: 6px;
	font-size: 15px;
}

.mbdj-favorite-item__remove {
	display: inline-flex;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mbdj-muted, #625b56);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.mbdj-favorite-item__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mbdj-favorite-item__actions .mbdj-button {
	min-height: 38px;
	padding: 8px 16px;
	font-size: 13px;
}

.mbdj-favorites-empty {
	display: flex;
	min-height: 260px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.mbdj-favorites-empty[hidden] {
	display: none;
}

.mbdj-favorites-empty__icon {
	display: grid;
	width: 68px;
	height: 68px;
	place-items: center;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--mbdj-surface-2, #f5ece6);
	color: var(--mbdj-gold, #b68e5a);
}

.mbdj-favorites-empty__icon svg {
	width: 34px;
	height: 34px;
}

.mbdj-favorites-empty h3 {
	margin: 0;
	font-size: 23px;
}

.mbdj-favorites-empty p {
	max-width: 36ch;
	margin: 8px 0 0;
	color: var(--mbdj-muted, #625b56);
}

.mbdj-modal__footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: clamp(15px, 2.8vw, 24px) clamp(20px, 4vw, 40px);
	border-top: 1px solid var(--mbdj-line, #e6ded8);
	background: #fff;
}

.mbdj-modal__add-all[disabled],
.mbdj-favorite-item__actions button[disabled] {
	cursor: wait;
	opacity: .62;
}

body.mbdj-modal-open {
	overflow: hidden !important;
}

@keyframes mbdjFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes mbdjModalIn {
	from { opacity: 0; transform: translateY(18px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tablet tuning matching the supplied 864px reference. */
@media (max-width: 980px) {
	.mbdj-product-card__link {
		min-height: 205px;
	}

	.mbdj-design__content,
	.mbdj-diamond-center__content {
		padding-inline: 24px;
	}
}

/* Mobile */
@media (max-width: 640px) {
	.mbdj-landing {
		padding-bottom: 42px;
	}

	.mbdj-shell {
		width: calc(100% - 32px);
	}

	.mbdj-overlap-shell {
		width: calc(100% - 28px);
	}

	.mbdj-section {
		margin-top: clamp(20px, 6vw, 30px);
	}

	.mbdj-hero {
		min-height: 500px;
	}

	.mbdj-hero::after {
		background: linear-gradient(90deg, rgba(248, 244, 240, .34), rgba(248, 244, 240, .08) 72%, transparent);
	}

	.mbdj-hero__copy {
		width: min(64%, 300px);
		margin-left: 18px;
		padding-top: 38px;
	}

	.mbdj-hero__title {
		font-size: clamp(31px, 9vw, 39px);
	}

	.mbdj-hero__description {
		font-size: clamp(14px, 4.1vw, 17px);
	}

	.mbdj-hero__actions {
		width: min(100%, 235px);
		margin-top: 22px;
	}

	.mbdj-button {
		min-height: 43px;
		font-size: 14px;
	}

	.mbdj-week {
		margin-top: -92px;
	}

	.mbdj-week__card {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
		min-height: 220px;
		border-radius: 17px;
	}

	.mbdj-week__content {
		align-items: flex-start;
		padding: 20px 8px 20px 18px;
		text-align: right;
	}

	.mbdj-week__content .mbdj-eyebrow {
		font-size: 9px;
	}

	.mbdj-week .mbdj-display-title {
		font-size: clamp(22px, 6.5vw, 28px);
		text-align: right;
	}

	.mbdj-week__description {
		font-size: 12.5px;
	}

	.mbdj-week__price {
		font-size: 15px;
	}

	.mbdj-week__media {
		padding: 8px;
	}

	.mbdj-week__image {
		max-height: 190px;
	}

	.mbdj-section-heading {
		align-items: flex-end;
		gap: 12px;
		margin-bottom: 16px;
	}

	.mbdj-section-title {
		font-size: clamp(23px, 7vw, 29px);
	}

	.mbdj-text-link {
		font-size: 13px;
	}

	.mbdj-collections__track {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 116px;
		justify-content: start;
		gap: 14px;
		overflow-x: auto;
		padding: 3px 1px 8px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.mbdj-collection {
		scroll-snap-align: start;
	}

	.mbdj-collection__circle {
		width: 106px;
	}

	.mbdj-collection__title {
		font-size: 15px;
	}

	.mbdj-design,
	.mbdj-diamond-center {
		grid-template-columns: 1fr;
	}

	.mbdj-design__media,
	.mbdj-diamond-center__media {
		min-height: 210px;
		padding: 18px 18px 4px;
	}

	.mbdj-design__content,
	.mbdj-diamond-center__content {
		padding: 24px 20px 28px;
	}

	.mbdj-design__description,
	.mbdj-diamond-center__description {
		font-size: 14px;
	}

	.mbdj-section-heading--featured {
		align-items: flex-start;
		flex-direction: column;
	}

	.mbdj-section-heading__links {
		width: 100%;
		justify-content: space-between;
		gap: 14px;
	}

	.mbdj-featured__track {
		grid-auto-columns: minmax(160px, 68vw);
		gap: 10px;
	}

	.mbdj-product-card__link {
		min-height: 246px;
	}

	.mbdj-product-card__media {
		height: 164px;
	}

	.mbdj-product-card__title {
		font-size: 15px;
	}

	.mbdj-product-card__price {
		font-size: 14px;
	}

	.mbdj-benefits {
		overflow: visible;
	}

	.mbdj-benefits__track {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 132px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.mbdj-benefit {
		min-height: 112px;
		scroll-snap-align: start;
	}

	.mbdj-benefit + .mbdj-benefit {
		border-inline-start: 1px solid var(--mbdj-line, #e6ded8);
	}

	.mbdj-modal {
		align-items: end;
		padding: 0;
	}

	.mbdj-modal__dialog {
		width: 100%;
		max-height: min(88dvh, 780px);
		border-radius: 22px 22px 0 0;
	}

	.mbdj-favorite-item {
		grid-template-columns: 82px minmax(0, 1fr);
		gap: 12px;
	}

	.mbdj-favorite-item__image {
		width: 82px;
	}

	.mbdj-favorite-item__actions {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.mbdj-modal__footer {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 390px) {
	.mbdj-hero__copy {
		width: 66%;
		margin-left: 14px;
	}

	.mbdj-week__content {
		padding-inline: 12px 4px;
	}

	.mbdj-week__content .mbdj-button {
		padding-inline: 14px;
	}

	.mbdj-section-heading__links {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbdj-landing *,
	.mbdj-landing *::before,
	.mbdj-landing *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
