/* Merna Core: placement drawings and widgets. Works with any theme; picks up theme tokens when present. */
:root {
	--mc-pink: var(--mp-pink, #d83f8f);
	--mc-deep: var(--mp-pink-deep, #b02470);
	--mc-blush: var(--mp-blush, #fdeef6);
	--mc-ink: var(--mp-ink, #17101a);
	--mc-muted: var(--mp-muted, #6f6470);
	--mc-line: var(--mp-line, #f0dfe9);
	--mc-display: var(--mp-display, "Fredoka", system-ui, sans-serif);
}

/* Drawings */
.mc-fig { display: block; width: 100%; height: auto; color: var(--mc-ink); fill: currentColor; overflow: visible; }
.mc-fig use { fill: currentColor; }
.mc-core { fill: var(--mc-pink); }
.mc-halo { fill: var(--mc-pink); opacity: .28; transform-box: fill-box; transform-origin: center; }
.mc-hit { fill: transparent; }
.mc-bar { stroke: var(--mc-pink); stroke-width: 4; stroke-linecap: round; }
.mc-fig--fake .mc-core { fill: #fff; stroke: var(--mc-pink); stroke-width: 3.5; stroke-dasharray: 3 3; }
.mc-fig--static .mc-halo { display: none; }
.mc-fig a { outline: none; }
.mc-fig a:focus-visible .mc-core { stroke: var(--mc-ink); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
	.mc-fig:not(.mc-fig--static) .mc-halo { animation: mc-pulse 1.8s ease-out infinite; }
	.mc-fig .mc-dot:nth-of-type(2n) .mc-halo { animation-delay: .35s; }
	.mc-fig a:active .mc-core { transform: scale(1.25); transform-box: fill-box; transform-origin: center; }
}
@keyframes mc-pulse { 0% { transform: scale(.55); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }

/* Where it goes */
.mc-where { margin: 20px 0; padding: 16px; border: 1.5px solid var(--mc-line); border-radius: 20px; background: #fff; }
.mc-where__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
body .mc-where__title { margin: 0; font-family: var(--mc-display); font-size: 1.05rem; font-weight: 600; color: var(--mc-ink); }
.mc-where__figs { display: flex; justify-content: center; gap: 12px; }
.mc-where__figs--many { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mc-where__figs--many::-webkit-scrollbar { display: none; }
.mc-where__fig { flex: 0 0 auto; width: min(46%, 170px); scroll-snap-align: center; }
.mc-where__figs--many .mc-where__fig { width: min(50%, 170px); }
.mc-where__chips, .mc-finder__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.mc-where__chips a, .mc-where__chips span, .mc-finder__chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--mc-blush); color: var(--mc-deep); font-family: var(--mc-display); font-size: .88rem; font-weight: 500; text-decoration: none; }
.mc-badge-nopierce { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1.5px dashed var(--mc-deep); color: var(--mc-deep); font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap; }

/* Card icon */
.mc-card-icon { display: block; width: 30px; }

/* Category header */
.mc-cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 4px auto 12px; }
.mc-cat-head .mc-fig { width: 104px; }

/* Finder */
.mc-finder__ear { width: min(72%, 320px); margin: 0 auto; }
.mc-finder__ear .mc-fig a { cursor: pointer; }

/* Shared layout. Elementor controls set these variables on each widget's wrapper. */
.mc-wrap { --mc-gutter: 16px; --mc-gap: 12px; --mc-rows: 1; --mc-cols: 2; --mc-visible: 2.2; }
.mc-cats { --mc-visible: 3.3; --mc-cols: 3; }
.mc-reviews { --mc-visible: 1.15; --mc-cols: 1; }
.mc-insta { --mc-visible: 2.3; --mc-cols: 3; }
.mc-trust { --mc-cols: 2; --mc-gap: 10px; }
@media (min-width: 768px) {
	.mc-wrap { --mc-visible: 3.5; --mc-cols: 3; }
	.mc-cats { --mc-visible: 5; --mc-cols: 4; }
	.mc-reviews { --mc-visible: 2.2; --mc-cols: 2; }
	.mc-insta { --mc-visible: 4; --mc-cols: 4; }
	.mc-trust { --mc-cols: 4; }
}
@media (min-width: 1025px) {
	.mc-wrap { --mc-visible: 5; --mc-cols: 4; }
	.mc-cats { --mc-visible: 7; --mc-cols: 6; }
	.mc-reviews { --mc-visible: 3; --mc-cols: 3; }
	.mc-insta { --mc-visible: 5; --mc-cols: 5; }
}

/* Section heads */
.mc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--mc-gutter, 16px); margin: 0 0 12px; }
.mc-section-head--center { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.mc-section-head--end { flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
body .mc-section-title { margin: 0; font-family: var(--mc-display); font-size: clamp(1.45rem, 6vw, 2rem); font-weight: 600; line-height: 1.1; color: var(--mc-ink); }
.mc-section-head a { flex: none; color: var(--mc-deep); font-size: .9rem; font-weight: 600; text-decoration: none; }
.mc-section-sub { margin: -6px 0 12px; padding: 0 var(--mc-gutter, 16px); color: var(--mc-muted); }
.mc-section-sub--center { text-align: center; }
.mc-section-sub--end { text-align: right; }
.mc-finder-head { text-align: center; padding: 0 var(--mc-gutter, 16px); margin-bottom: 8px; }
body .mc-finder-head h2 { margin: 0 0 4px; font-family: var(--mc-display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 600; color: var(--mc-ink); }
.mc-finder-head p { margin: 0; color: var(--mc-muted); }
.mc-noglow .mc-halo { display: none; }

/* Swipe rows and grids */
.mc-body { position: relative; }
body .mc-rail, body ul.products.mc-rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(var(--mc-rows, 1), auto); grid-auto-columns: calc((100% - (var(--mc-visible, 2.2) - 1) * var(--mc-gap, 12px)) / var(--mc-visible, 2.2)); gap: var(--mc-gap, 12px); margin: 0; padding: 2px var(--mc-gutter, 16px) 12px; list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-left: var(--mc-gutter, 16px); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mc-rail::-webkit-scrollbar { display: none; }
.mc-rail > * { min-width: 0; scroll-snap-align: start; }
body ul.products.mc-rail > li.product { width: auto; margin: 0; }
body .mc-grid, body ul.products.mc-grid { display: grid; grid-template-columns: repeat(var(--mc-cols, 2), minmax(0, 1fr)); gap: calc(var(--mc-gap, 12px) * 1.6) var(--mc-gap, 12px); margin: 0; padding: 2px var(--mc-gutter, 16px) 12px; list-style: none; }
body ul.products.mc-grid > li.product { width: auto; margin: 0; }
.mc-more { padding: 8px var(--mc-gutter, 16px) 0; text-align: center; }

/* Arrows */
body .mc-arrow { position: absolute; top: 38%; z-index: 3; display: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--mc-ink); box-shadow: 0 3px 14px rgba(23, 16, 26, .18); cursor: pointer; }
.mc-arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid currentColor; border-width: 2.4px 2.4px 0 0; transform: translate(-65%, -50%) rotate(45deg); }
.mc-arrow--prev { left: 6px; }
.mc-arrow--next { right: 6px; }
.mc-arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.mc-arrows--all .mc-arrow { display: block; }
@media (min-width: 1025px) { .mc-arrows--desktop .mc-arrow { display: block; } }

/* Which card parts show */
.mc-no-heart .mp-heart, .mc-no-add .mp-add, .mc-no-icon .mc-card-icon, .mc-no-sticker .mp-stickers, .mc-no-metals .mp-card__metals, .mc-no-price .price, .mc-no-name .mp-card__title { display: none !important; }
.mc-card-text-center .mp-card__body { text-align: center; }
.mc-card-text-center .mp-card__meta { justify-content: center; }

/* Tabs */
.mc-tabs__list { display: flex; gap: 8px; padding: 0 var(--mc-gutter, 16px) 12px; overflow-x: auto; scrollbar-width: none; }
.mc-tabs__list::-webkit-scrollbar { display: none; }
body .mc-tabs__btn { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--mc-blush); color: var(--mc-deep); font-family: var(--mc-display); font-size: .95rem; font-weight: 500; cursor: pointer; }
body .mc-tabs__btn[aria-selected="true"] { background: var(--mc-pink); color: #fff; }
.mc-tabs__all { margin: 0; padding: 0 var(--mc-gutter, 16px) 8px; text-align: center; }
.mc-tabs__all a { color: var(--mc-deep); font-weight: 600; }

/* Banner */
.mc-banner { position: relative; display: flex; align-items: center; min-height: 240px; margin: 0 var(--mc-gutter, 16px); overflow: hidden; border-radius: 24px; background: var(--mc-pink); color: #fff; }
.mc-banner--photo { background: var(--mc-ink); }
body .mc-banner .mc-banner__media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mc-banner--photo::after { content: ""; position: absolute; inset: 0; background: var(--mc-shade, rgba(23, 16, 26, .38)); pointer-events: none; }
.mc-banner__copy { position: relative; z-index: 2; width: 100%; padding: 28px 24px; pointer-events: none; }
.mc-banner__copy a { pointer-events: auto; }
.mc-banner__eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
body .mc-banner__title { margin: 0 0 8px; font-family: var(--mc-display); font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 600; line-height: 1.08; color: #fff; }
.mc-banner__text { margin: 0 0 14px; color: #fff; }
.mc-banner .mc-btn { background: #fff; color: var(--mc-deep); }

/* Drawing widget */
.mc-drawing { text-align: center; }
.mc-drawing a { color: inherit; text-decoration: none; }
.mc-drawing__fig { width: min(60%, 240px); margin: 0 auto; }
.mc-drawing__cap { margin: 10px 0 0; font-family: var(--mc-display); font-weight: 500; }

/* Category cards */
.mc-cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: var(--mc-ink); }
.mc-cat-card__media { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--mc-blush); }
body .mc-cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mc-cat-card__media .mc-fig { width: auto; height: 84%; }
.mc-cat-card__name { font-family: var(--mc-display); font-size: .95rem; font-weight: 500; text-align: center; line-height: 1.15; }
.mc-cat-card__count { font-size: .78rem; color: var(--mc-muted); }

/* Hero */
.mc-hero { position: relative; overflow: hidden; background: var(--mc-blush); line-height: 0; }
.mc-hero__copy, .mc-hero__dots { line-height: 1.4; }
.mc-hero__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mc-hero__track::-webkit-scrollbar { display: none; }
.mc-hero__slide { position: relative; flex: 0 0 100%; height: min(118vw, 74vh); overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: flex-end; color: #fff; }
body .mc-hero .mc-hero__media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--mc-focus, center center); }
.mc-picture { display: contents; }
body .mc-hero__whole { position: absolute; inset: 0; z-index: 1; }
.mc-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, var(--mc-shade, rgba(23,16,26,.62)) 100%); pointer-events: none; }
.mc-hero--noshade .mc-hero__slide::after { display: none; }
.mc-hero__copy { position: relative; z-index: 2; width: 100%; padding: 24px 20px 52px; pointer-events: none; }
.mc-hero__copy a { pointer-events: auto; }
body .mc-hero__copy h2 { margin: 0 0 6px; font-family: var(--mc-display); font-size: clamp(2.1rem, 10vw, 3.6rem); font-weight: 600; line-height: 1.02; color: #fff; text-wrap: balance; }
.mc-hero__copy p { margin: 0 0 14px; font-size: 1.02rem; color: #fff; }
body .mc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--mc-pink); color: #fff; font-family: var(--mc-display); font-size: 1.02rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.mc-hero__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; gap: 2px; }
body .mc-hero__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mc-hero__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mc-dot, #fff); opacity: .55; transition: transform .2s, background .2s; }
.mc-hero__dots button[aria-current="true"]::before { opacity: 1; transform: scale(1.35); }

/* Offer bar */
.mc-offer { overflow: hidden; background: var(--mc-ink); color: #fff; padding: 10px 0; }
.mc-offer__track { display: flex; width: max-content; }
.mc-offer__group { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.mc-offer__group li { display: flex; align-items: center; gap: var(--mc-offer-gap, 28px); padding-right: var(--mc-offer-gap, 28px); font-family: var(--mc-display); font-size: .94rem; font-weight: 500; white-space: nowrap; }
.mc-offer__group a { color: inherit; text-decoration: none; }
.mc-offer__sep { color: var(--mc-pink); }
@media (prefers-reduced-motion: no-preference) { .mc-offer__track { animation: mc-marquee var(--mc-speed, 26s) linear infinite; animation-direction: var(--mc-dir, normal); } }
.mc-offer--pause:hover .mc-offer__track, .mc-offer--pause:active .mc-offer__track { animation-play-state: paused; }
@keyframes mc-marquee { to { transform: translateX(-50%); } }

/* Reviews */
.mc-reviews { padding: 32px 0 24px; background: var(--mc-blush); }
.mc-review { margin: 0; padding: 18px; border-radius: 20px; background: #fff; min-width: 0; }
.mc-review__stars { color: var(--mc-pink); letter-spacing: 2px; font-size: .95rem; margin-bottom: 6px; }
.mc-review__text { margin: 0 0 10px; padding: 0; border: 0; font-size: .98rem; line-height: 1.5; color: var(--mc-ink); }
.mc-review__who { display: flex; align-items: center; gap: 8px; }
body .mc-review__photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.mc-review__name { font-family: var(--mc-display); font-weight: 600; color: var(--mc-deep); }

/* Instagram */
.mc-insta__item { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 18px; }
body .mc-insta__item img { width: 100%; height: 100%; object-fit: cover; }

/* Countdown */
.mc-count { margin: 0 var(--mc-gutter, 16px); padding: 20px; border-radius: 24px; background: var(--mc-pink); color: #fff; text-align: center; text-decoration: none; display: block; }
body .mc-count__title { margin: 0 0 12px; font-family: var(--mc-display); font-size: 1.4rem; font-weight: 600; color: #fff; }
.mc-count__row { display: flex; justify-content: center; gap: 8px; }
.mc-count__cell { min-width: 62px; padding: 8px 4px; border-radius: 14px; background: #fff; color: var(--mc-deep); }
.mc-count__num { display: block; font-family: var(--mc-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mc-count__sub { margin: 10px 0 0; color: #fff; }
.mc-count__unit { display: block; font-size: .7rem; font-weight: 600; }

/* Trust */
.mc-trust { display: grid; grid-template-columns: repeat(var(--mc-cols, 2), minmax(0, 1fr)); gap: var(--mc-gap, 10px); padding-left: var(--mc-gutter, 16px); padding-right: var(--mc-gutter, 16px); margin: 0; list-style: none; }
.mc-trust__item a { color: inherit; text-decoration: none; }
.mc-trust__item { padding: 16px 12px; border-radius: 18px; background: var(--mc-blush); text-align: center; }
body .mc-trust__icon { display: block; width: 34px; height: 34px; object-fit: contain; margin: 0 auto 8px; color: var(--mc-deep); }
.mc-trust__title { display: block; font-family: var(--mc-display); font-size: .98rem; font-weight: 600; color: var(--mc-ink); line-height: 1.2; }
.mc-trust__text { display: block; margin-top: 3px; font-size: .82rem; line-height: 1.35; color: var(--mc-muted); }

@media (min-width: 768px) {
	.mc-hero__slide { height: 560px; }
	.mc-hero__copy { padding: 48px 56px 64px; }
}
