/* Elkayy Product Experience – styles
   Palette: charcoal, ivory, champagne gold, white. Scoped under .epx and drawer classes. */

[hidden] { display: none !important; }

.epx {
	--ink: #2a2a2d;
	--charcoal: #1c1c1e;
	--muted: #7a7872;
	--ivory: #f6f2ea;
	--gold: #b8956a;
	--line: #e4dfd4;
	--ok: #3d6b4f;
	position: relative;
	color: var(--ink);
}

.epx-eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }

.epx-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 30px;
	line-height: 1.2;
	color: var(--charcoal);
	margin: 8px 0;
}

.epx-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: var(--muted); }

.epx-price { font-size: 24px; color: var(--charcoal); margin: 18px 0 6px; }
.epx-price del { color: #a7a195; font-size: 15px; margin-right: 8px; }
.epx-price ins { text-decoration: none; }

.epx-save {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ok);
	background: #e7efe9;
	padding: 4px 8px;
	margin-bottom: 6px;
}

/* Variation chips */
.epx-opt { margin-top: 20px; }
.epx-opt-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--charcoal); margin-bottom: 10px; }
.epx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.epx-chip {
	min-width: 86px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	color: var(--charcoal);
	cursor: pointer;
	transition: all 0.2s;
}
.epx-chip:hover:not(:disabled) { border-color: var(--charcoal); }
.epx-chip.is-active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.epx-chip:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

.epx-stock { font-size: 12px; color: var(--ok); margin-top: 10px; min-height: 16px; }
.epx-stock.is-out { color: #a0592a; }

/* Bulk tiers */
.epx-tiers { display: flex; gap: 8px; margin-top: 20px; }
.epx-tier {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: center;
	padding: 10px 4px;
	border: 1px solid var(--line);
	background: #fff;
	font-size: 11px;
	color: var(--muted);
}
.epx-tier strong { font-weight: 600; color: var(--charcoal); font-size: 12px; }
.epx-tier.is-hit { border-color: var(--gold); background: var(--ivory); }
.epx-tier-msg { font-size: 12px; color: var(--muted); margin: 8px 0 0; min-height: 16px; }

/* Quantity and buttons */
.epx-qty-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; margin-top: 18px; }
.epx-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
	padding: 0 6px;
	border: 1px solid var(--line);
	border-radius: 2px;
}
.epx-qty button { width: 34px; height: 34px; background: none; border: 0; font-size: 18px; color: var(--charcoal); cursor: pointer; }
.epx-qty button:disabled { opacity: 0.3; cursor: default; }
.epx-qty output { min-width: 24px; text-align: center; }

.epx-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	border: 0;
	border-radius: 2px;
	font: inherit;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}
.epx-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.epx-btn-primary { background: var(--charcoal); color: #fff; }
.epx-btn-primary:hover:not(:disabled) { background: #000; }
.epx-btn-gold { grid-column: 1 / -1; margin-top: 10px; background: none; border: 1px solid var(--gold); color: var(--charcoal); }
.epx-btn-gold:hover:not(:disabled) { background: var(--gold); color: #fff; }

/* Shipping progress */
.epx-ship { margin-top: 18px; padding: 12px; font-size: 12px; color: var(--muted); background: var(--ivory); border: 1px dashed #d9c4a0; }
.epx-ship-bar { height: 4px; margin-top: 8px; background: var(--line); border-radius: 2px; overflow: hidden; }
.epx-ship-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.4s; }

/* Accordion (native details) */
.epx details { border-top: 1px solid var(--line); margin-top: 20px; }
.epx summary { padding: 16px 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--charcoal); cursor: pointer; }
.epx details > div { padding-bottom: 16px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* Sticky mobile bar */
.epx-sticky { display: none; }

/* Toast */
.epx-toast {
	position: fixed;
	left: 50%;
	bottom: 96px;
	transform: translate(-50%, 20px);
	padding: 12px 18px;
	background: var(--charcoal);
	color: #fff;
	font-size: 13px;
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s;
	z-index: 200;
}
.epx-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Bag drawer */
.epx-scrim {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	z-index: 9998;
}
.epx-scrim.is-open { opacity: 1; pointer-events: auto; }

.epx-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: min(420px, 100%);
	display: flex;
	flex-direction: column;
	background: #fff;
	transform: translateX(100%);
	transition: transform 0.35s ease;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
	z-index: 9999;
}
.epx-drawer.is-open { transform: translateX(0); }

.epx-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.epx-drawer-head h2 { margin: 0; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; }
.epx-close { background: none; border: 0; font-size: 24px; color: var(--charcoal); cursor: pointer; }

.epx-drawer-list { flex: 1; overflow-y: auto; padding: 20px 24px; }
.epx-line {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 12px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}
.epx-line-info { grid-column: 1; }
.epx-line-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.epx-line-ctl { grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.epx-remove { grid-column: 2; grid-row: 1; background: none; border: 0; font-size: 11px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.epx-mini-qty { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border: 1px solid var(--line); }
.epx-step { width: 20px; background: none; border: 0; font-size: 15px; color: var(--charcoal); cursor: pointer; }
.epx-empty { padding: 40px 0; text-align: center; font-size: 13px; color: var(--muted); }

.epx-drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.epx-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.epx-drawer-fee { font-size: 12px; color: var(--ok); }
.epx-drawer-foot small { display: block; margin: 10px 0 16px; font-size: 11px; color: var(--muted); }
.epx-drawer-checkout { height: 52px; display: flex; align-items: center; justify-content: center; background: var(--charcoal); color: #fff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-radius: 2px; }

/* Mobile */
@media (max-width: 860px) {
	.epx-title { font-size: 24px; }
	.epx-qty-row { grid-template-columns: 1fr 1fr; }

	body.single-product { padding-bottom: 84px; }
	.epx-sticky {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--line);
		box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.05);
		z-index: 9000;
	}
	.epx-sticky-price { display: block; font-size: 16px; font-weight: 500; color: var(--charcoal); }
	.epx-sticky-meta { font-size: 12px; color: var(--muted); }
	.epx-sticky .epx-btn { height: 46px; padding: 0 18px; font-size: 11px; }
}

/* ---------- v0.2: perks under title, short description, key notes ---------- */

.epx-perks { margin: 14px 0 4px; }
.epx-points {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 10px 14px;
	background: #e6e1d6;
	font-size: 14px;
	color: var(--charcoal);
	border-radius: 2px;
}
.epx-points-icon { color: var(--gold); }
.epx-points-val { font-weight: 700; }
.epx-perks .epx-ship { margin-top: 12px; }

.epx-short { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.epx-short p { margin: 0 0 8px; }

.epx-notes { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.epx-notes-title { margin: 0 0 14px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--charcoal); }
.epx-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.epx-note-col h4 { margin: 0 0 8px; font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.epx-note { margin: 0 0 12px; }
.epx-note img,
.epx-note-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--ivory);
	border-radius: 4px;
}
.epx-note-ph { font-family: Georgia, serif; font-size: 22px; color: var(--gold); }
.epx-note figcaption { margin-top: 6px; font-size: 13px; color: var(--charcoal); }

@media (max-width: 520px) {
	.epx-notes-grid { gap: 8px; }
	.epx-note figcaption { font-size: 12px; }
}
