/* =========================================================
   Mawlid Wear — front page (event-and-community layout)
   Loaded on the front page only. Mobile first.
   ========================================================= */
.mwh-home {
	--mwh-gold: #C9A24B;
	--mwh-tint: #EAF2ED;
	--mwh-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Shared ---------- */
.mwh-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mwh-gold); margin: 0 0 14px; }
.mwh-eyebrow--dark { color: var(--mw-primary); margin-bottom: 8px; }

.mwh-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
	padding: 13px 26px; font: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
	border: 1px solid transparent; text-decoration: none; cursor: pointer; text-align: center;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mwh-btn--light { background: #fff; color: var(--mw-primary); border-color: #fff; }
.mwh-btn--light:hover { background: var(--mw-cream); border-color: var(--mw-cream); }
.mwh-btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.mwh-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.mwh-btn--dark { background: var(--mw-primary); color: #fff; border-color: var(--mw-primary); }
.mwh-btn--dark:hover { background: var(--mw-accent); border-color: var(--mw-accent); }
.mwh-btn--outline { color: var(--mw-primary); border-color: var(--mw-primary); background: transparent; }
.mwh-btn--outline:hover { background: var(--mw-primary); color: #fff; }
.mwh-btn--wa { background: #25D366; color: #0b2f1a; border-color: #25D366; }
.mwh-btn--wa:hover { background: #20bd5a; border-color: #20bd5a; }

.mwh-section { padding: 64px 0; }
.mwh-section + .mwh-section { border-top: 1px solid #ece8de; }
.mwh-section--tint { background: var(--mwh-tint); border-top: 0 !important; }
.mwh-section--cream { background: var(--mw-cream); border-top: 0 !important; }

.mwh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.mwh-head h2 { font-family: var(--mwh-serif); font-weight: 600; font-size: clamp(1.55rem, 3.4vw, 2.3rem); line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.mwh-head__link { flex: none; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mw-primary); border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }

/* Horizontal swipe rows on phones (desktop keeps the grid) */
.mwh-rail .mw-reveal { opacity: 1; transform: none; }
@media (max-width: 700px) {
	.mwh-snap {
		display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
		margin: 0 -24px; padding: 0 24px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.mwh-snap::-webkit-scrollbar { display: none; }
	.mwh-snap > * { flex: 0 0 68%; scroll-snap-align: start; min-width: 0; }
	.mwh-tiles > * { flex-basis: 44%; }
	.mwh-creators > * { flex-basis: 62%; }
}

/* ---------- Hero ---------- */
.mwh-hero {
	position: relative; overflow: hidden; background-color: var(--mw-primary); color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 60 60' fill='none'%3E%3Cpath d='M30 4 L36 24 L56 24 L40 36 L46 56 L30 44 L14 56 L20 36 L4 24 L24 24 Z' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E");
	background-size: 120px 120px;
}
.mwh-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
.mwh-hero h1 { font-family: var(--mwh-serif); font-weight: 600; font-size: clamp(2.1rem, 6vw, 3.9rem); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 16px; color: #fff; }
.mwh-hero__sub { font-size: 1.02rem; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 520px; margin: 0 0 26px; }
.mwh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mwh-hero__cta .mwh-btn { flex: 1 1 160px; }

.mwh-hero .mwc-cutoff.mwh-countdown {
	display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 22px 0 0; padding: 10px 14px;
	background: rgba(201,162,75,.16); border: 1px solid rgba(201,162,75,.6); border-left-width: 1px; color: #f3dfb0; font-size: .9rem;
}
.mwh-hero .mwc-cutoff.mwh-countdown strong { color: #fff; font-weight: 600; }

/* design cards in the hero */
.mwh-hero__art { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 6px; scrollbar-width: none; }
.mwh-hero__art::-webkit-scrollbar { display: none; }
.mwh-card { flex: 0 0 62%; scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; color: #fff; text-decoration: none; }
.mwh-card__art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.08; background: var(--mw-cream); overflow: hidden; }
.mwh-card__art .mw-tee { height: 100%; }
.mwh-card__art img { width: 100%; height: 100%; object-fit: cover; }
.mwh-card__art .mw-motif { width: 56px; height: 56px; opacity: .5; }
.mwh-card__meta { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; font-size: .92rem; }
.mwh-card__meta strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mwh-card__meta small { color: rgba(255,255,255,.75); font-size: .85rem; }
.mwh-card--empty .mwh-card__art { background: rgba(255,255,255,.08); }
.mwh-card--empty .mw-motif { color: #fff; }

@media (min-width: 801px) {
	.mwh-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding-top: 80px; padding-bottom: 80px; }
	.mwh-hero__cta .mwh-btn { flex: 0 0 auto; }
	.mwh-hero__art { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 18px; overflow: visible; margin: 0; padding: 0; }
	.mwh-card { flex: none; }
	.mwh-card--tall { grid-row: span 2; }
	.mwh-card--tall .mwh-card__art { flex: 1; aspect-ratio: auto; min-height: 280px; }
	.mwh-hero__art--1 { grid-template-columns: minmax(0, 360px); }
	.mwh-hero__art--1 .mwh-card--tall { grid-row: auto; }
	.mwh-hero__art--1 .mwh-card--tall .mwh-card__art { aspect-ratio: 1 / 1.08; }
	.mwh-hero__art--2 .mwh-card--tall { grid-row: auto; }
	.mwh-hero__art--2 .mwh-card--tall .mwh-card__art { aspect-ratio: 1 / 1.08; }
}

/* ---------- Trust strip ---------- */
.mwh-trust { background: #fff; border-bottom: 1px solid #ece8de; }
.mwh-trust__list { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.mwh-trust li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.mwh-trust__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mwh-tint); color: var(--mw-primary); display: inline-flex; align-items: center; justify-content: center; }
.mwh-trust__icon svg { width: 18px; height: 18px; }
.mwh-trust strong { display: block; font-size: .86rem; font-weight: 600; line-height: 1.25; }
.mwh-trust small { display: block; font-size: .78rem; color: #666; line-height: 1.35; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 801px) {
	.mwh-trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 24px; padding-bottom: 24px; }
	.mwh-trust strong { font-size: .92rem; }
	.mwh-trust small { font-size: .82rem; }
}

/* ---------- Category / occasion tiles ---------- */
.mwh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mwh-tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.mwh-tile__art { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--mw-sage); overflow: hidden; transition: background .25s ease; }
.mwh-tile__art img { width: 100%; height: 100%; object-fit: cover; }
.mwh-tile__art .mw-motif { width: 44px; height: 44px; }
.mwh-tile:hover .mwh-tile__art { background: var(--mw-primary); }
.mwh-tile:hover .mwh-tile__art .mw-motif { color: #fff; }
.mwh-tile__label strong { display: block; font-size: .95rem; font-weight: 600; }
.mwh-tile__label small { display: block; font-size: .8rem; color: #666; margin-top: 2px; }
@media (min-width: 701px) { .mwh-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; } }

/* ---------- Community ---------- */
.mwh-spot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.mwh-spot__id h2 { font-family: var(--mwh-serif); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 10px 0; line-height: 1.12; }
.mwh-spot__id p { line-height: 1.6; color: #444; }
.mwh-spot__id .mwc-avatar { display: block; margin: 4px 0 6px; }
.mwh-spot__id .mwh-btn { margin-top: 8px; }
.mwh-spot__grid .mw-product-card__body, .mwh-spot__grid h3 { color: inherit; }
@media (min-width: 701px) { .mwh-spot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 901px) { .mwh-spot { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 48px; } }
.mwh-creators { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---------- How it works ---------- */
.mwh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.mwh-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.mwh-steps__n { grid-row: span 2; font-family: var(--mwh-serif); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--mwh-gold); }
.mwh-steps h3 { margin: 4px 0 6px; font-size: 1.05rem; font-weight: 600; }
.mwh-steps p { margin: 0; line-height: 1.6; color: #444; font-size: .95rem; }
@media (min-width: 801px) {
	.mwh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
	.mwh-steps li { display: block; }
	.mwh-steps__n { display: block; margin-bottom: 10px; font-size: 3.2rem; }
}

/* ---------- Creator paths ---------- */
.mwh-paths { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mwh-path { border: 1px solid #e4dfd2; padding: 26px 22px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.mwh-path__big { font-family: var(--mwh-serif); font-weight: 600; font-size: 2.1rem; line-height: 1; color: var(--mw-primary); margin: 0 0 12px; }
.mwh-path h3 { margin: 0 0 8px; font-size: 1.1rem; }
.mwh-path p:not(.mwh-path__big) { margin: 0 0 20px; line-height: 1.6; color: #444; font-size: .95rem; flex: 1; }
@media (min-width: 801px) { .mwh-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .mwh-path { padding: 34px 32px; } }

/* ---------- Group orders band ---------- */
.mwh-group { background: var(--mw-charcoal); color: var(--mw-cream); padding: 48px 0; }
.mwh-group__row { display: flex; flex-direction: column; gap: 24px; }
.mwh-group h2 { font-family: var(--mwh-serif); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 8px; color: #fff; line-height: 1.15; }
.mwh-group p { margin: 0; line-height: 1.6; opacity: .85; max-width: 520px; }
.mwh-group__cta { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 801px) {
	.mwh-group { padding: 60px 0; }
	.mwh-group__row { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
	.mwh-group__cta { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
}

/* ---------- Mobile bottom bar ---------- */
.mwh-bar { display: none; }
@media (max-width: 900px) {
	.mwh-home { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.mwh-bar {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
		background: #fff; border-top: 1px solid #e4dfd2; padding-bottom: env(safe-area-inset-bottom, 0px);
		box-shadow: 0 -4px 18px rgba(0,0,0,.06);
	}
	.mwh-bar a, .mwh-bar button {
		position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-height: 60px; padding: 6px 2px; background: none; border: 0; font: inherit; font-size: .68rem; font-weight: 600;
		letter-spacing: .02em; color: var(--mw-charcoal); text-decoration: none; cursor: pointer;
	}
	.mwh-bar svg { width: 22px; height: 22px; color: var(--mw-primary); }
	.mwh-bar em {
		position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
		background: var(--mw-primary); color: #fff; font-style: normal; font-size: .65rem; line-height: 17px; text-align: center;
	}
	.mwh-bar em[hidden] { display: none; }
	.mwh-home .mw-whatsapp-float { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 901px) { .mwh-home .mw-whatsapp-float { bottom: 20px; } }

@media (prefers-reduced-motion: reduce) { .mwh-btn, .mwh-tile__art { transition: none; } }
