/* YEMShop — vibrant, responsive storefront */
:root {
	--ink: #2a1538;
	--ink-soft: #5c4468;
	--cream: #fff8fb;
	--white: #ffffff;
	--coral: #ff5c8a;
	--coral-deep: #e03d6f;
	--lilac: #c9a7ff;
	--mint: #5eead4;
	--sun: #ffd84d;
	--sky: #7dd3fc;
	--card: rgba(255, 255, 255, 0.92);
	--shadow: 0 18px 50px rgba(90, 40, 120, 0.12);
	--radius: 22px;
	--font: "Outfit", system-ui, sans-serif;
	--font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.yem-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	color: var(--ink);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(255, 92, 138, 0.35), transparent 55%),
		radial-gradient(900px 500px at 90% 0%, rgba(201, 167, 255, 0.45), transparent 50%),
		radial-gradient(800px 500px at 50% 100%, rgba(94, 234, 212, 0.35), transparent 55%),
		linear-gradient(165deg, #fff4fc 0%, #f3ecff 35%, #e8fffb 100%);
	background-attachment: fixed;
	line-height: 1.5;
}

.yem-skip {
	position: absolute;
	left: -999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.yem-skip:focus {
	left: 12px;
	top: 12px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--white);
	border-radius: 10px;
	z-index: 9999;
}

.yem-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(14px);
	background: rgba(255, 248, 251, 0.78);
	border-bottom: 1px solid rgba(255, 92, 138, 0.15);
}

.yem-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.yem-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.yem-logo__text {
	display: flex;
	align-items: baseline;
	gap: 2px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.65rem;
	letter-spacing: -0.02em;
}

.yem-logo__yem {
	background: linear-gradient(120deg, var(--coral), #a855f7, #22c55e);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.yem-logo__shop {
	font-style: italic;
	font-weight: 500;
	color: var(--ink-soft);
	font-size: 1.35rem;
}

.yem-header__tag {
	margin: 0;
	flex: 1 1 200px;
	font-size: 0.95rem;
	color: var(--ink-soft);
	max-width: 520px;
}

main#main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

.yem-flash {
	margin: 16px 0 0;
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 500;
	animation: yem-pop 0.45s ease;
}

.yem-flash--ok {
	background: linear-gradient(135deg, rgba(94, 234, 212, 0.35), rgba(125, 211, 252, 0.4));
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #14532d;
}

.yem-flash--err {
	background: linear-gradient(135deg, rgba(255, 92, 138, 0.2), rgba(255, 216, 77, 0.35));
	border: 1px solid rgba(224, 61, 111, 0.35);
	color: #7f1d1d;
}

@keyframes yem-pop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.yem-hero {
	position: relative;
	padding: 36px 0 28px;
	overflow: hidden;
}

.yem-hero__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(36px);
	opacity: 0.55;
	pointer-events: none;
}

.yem-hero__blob--1 {
	width: 220px;
	height: 220px;
	background: var(--coral);
	top: -40px;
	right: 5%;
}

.yem-hero__blob--2 {
	width: 180px;
	height: 180px;
	background: var(--mint);
	bottom: 0;
	left: 0;
}

.yem-hero__content {
	position: relative;
	z-index: 1;
}

.yem-hero__title {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	margin: 0 0 10px;
	color: var(--ink);
	letter-spacing: -0.03em;
}

.yem-hero__lead {
	margin: 0;
	font-size: 1.08rem;
	color: var(--ink-soft);
	max-width: 640px;
}

.yem-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 28px;
}

.yem-pill {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--ink);
	background: var(--white);
	border: 2px solid rgba(201, 167, 255, 0.5);
	box-shadow: 0 4px 16px rgba(120, 60, 160, 0.08);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.yem-pill:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: var(--coral);
}

.yem-pill.is-active {
	background: linear-gradient(135deg, var(--coral), #c084fc);
	color: var(--white);
	border-color: transparent;
}

.yem-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 22px;
}

.yem-card {
	background: var(--card);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid rgba(255, 255, 255, 0.8);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.yem-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 60px rgba(90, 40, 120, 0.18);
}

.yem-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: linear-gradient(145deg, #fce7f3, #e0f2fe);
}

.yem-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.yem-card:hover .yem-card__media img {
	transform: scale(1.06);
}

.yem-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(42, 21, 56, 0.85);
	color: var(--white);
}

.yem-badge--muted {
	background: rgba(100, 80, 110, 0.88);
}

.yem-card__body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}

.yem-card__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.35;
}

.yem-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.yem-card__title a:hover {
	color: var(--coral-deep);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.yem-card__price {
	margin: 0;
	font-weight: 700;
	font-size: 1.1rem;
	color: #7c3aed;
}

.yem-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

.yem-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 12px;
	font-family: var(--font);
	font-weight: 600;
	font-size: 0.9rem;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.yem-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.yem-btn:not(:disabled):active {
	transform: scale(0.97);
}

.yem-btn--buy {
	background: linear-gradient(135deg, var(--coral), #f472b6);
	color: var(--white);
	box-shadow: 0 6px 20px rgba(255, 92, 138, 0.45);
}

.yem-btn--buy:not(:disabled):hover {
	box-shadow: 0 10px 28px rgba(255, 92, 138, 0.55);
}

.yem-btn--fb {
	background: linear-gradient(135deg, #1877f2, #42b72a);
	color: var(--white);
	box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}

.yem-btn--fb:hover {
	filter: brightness(1.05);
}

.yem-btn--ghost {
	background: transparent;
	color: var(--ink-soft);
	border: 2px solid rgba(201, 167, 255, 0.6);
}

.yem-btn--ghost:hover {
	border-color: var(--coral);
	color: var(--coral-deep);
}

.yem-btn--lg {
	padding: 12px 22px;
	font-size: 1rem;
	border-radius: 14px;
}

.yem-btn--block {
	width: 100%;
}

.yem-btn--primary {
	background: linear-gradient(135deg, #7c3aed, var(--coral));
	color: var(--white);
	box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
	margin-top: 6px;
}

.yem-empty {
	text-align: center;
	padding: 48px 20px;
	color: var(--ink-soft);
	font-size: 1.1rem;
}

/* Product detail */
.yem-detail {
	padding-top: 20px;
}

.yem-back {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--ink-soft);
	font-weight: 600;
	text-decoration: none;
}

.yem-back:hover {
	color: var(--coral-deep);
}

.yem-detail__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 820px) {
	.yem-detail__grid {
		grid-template-columns: 1fr;
	}
}

.yem-detail__frame {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 3px solid rgba(255, 255, 255, 0.9);
	background: linear-gradient(160deg, #fdf4ff, #ecfeff);
}

.yem-detail__frame img {
	width: 100%;
	height: auto;
	vertical-align: middle;
	display: block;
}

.yem-badge--float {
	top: 16px;
	left: 16px;
}

.yem-detail__cat {
	margin: 0 0 6px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: #a855f7;
}

.yem-detail__title {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin: 0 0 10px;
	line-height: 1.2;
}

.yem-detail__price {
	font-size: 1.45rem;
	font-weight: 800;
	color: #6d28d9;
	margin: 0 0 14px;
}

.yem-detail__perks {
	list-style: none;
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(201, 167, 255, 0.22));
	border: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 8px 24px rgba(90, 40, 120, 0.06);
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.45;
}

.yem-detail__perk {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em 0.5em;
}

.yem-detail__perk-sep {
	color: var(--ink-soft);
	font-weight: 500;
	opacity: 0.75;
}

.yem-detail__perk [lang="ur"] {
	font-weight: 600;
	color: #5b21b6;
}

.yem-detail__excerpt {
	margin: 0 0 12px;
	color: var(--ink-soft);
	font-size: 1.05rem;
}

.yem-detail__desc {
	margin: 0 0 22px;
	color: var(--ink);
}

.yem-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

/* Modal */
.yem-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}

.yem-modal.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.yem-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(42, 21, 56, 0.45);
	backdrop-filter: blur(4px);
}

.yem-modal__panel {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--white);
	border-radius: 24px;
	padding: 28px 24px 26px;
	box-shadow: 0 30px 80px rgba(60, 20, 80, 0.35);
	border: 2px solid rgba(255, 182, 214, 0.5);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.yem-modal.is-open .yem-modal__panel {
	transform: translateY(0) scale(1);
}

.yem-modal__x {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(255, 92, 138, 0.12);
	color: var(--ink);
	border-radius: 12px;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.yem-modal__x:hover {
	background: rgba(255, 92, 138, 0.22);
}

.yem-modal__title {
	font-family: var(--font-display);
	margin: 0 0 6px;
	font-size: 1.45rem;
}

.yem-modal__sub {
	margin: 0 0 18px;
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.yem-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.yem-field span {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--ink);
}

.yem-req {
	color: var(--coral-deep);
	font-style: normal;
}

.yem-field input,
.yem-field textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 2px solid rgba(201, 167, 255, 0.45);
	font-family: var(--font);
	font-size: 1rem;
	background: #fffafd;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.yem-field input:focus,
.yem-field textarea:focus {
	outline: none;
	border-color: var(--coral);
	box-shadow: 0 0 0 4px rgba(255, 92, 138, 0.15);
}

.yem-footer {
	margin-top: 40px;
	padding: 28px 20px 40px;
	background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.65));
	border-top: 1px solid rgba(201, 167, 255, 0.25);
}

.yem-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.yem-footer__fine {
	font-size: 0.85rem;
	opacity: 0.9;
}
