/* Elisa Hair Castle — shared storefront components (works on any theme) */

:root {
	--ehc-ink: #17100f;
	--ehc-plum: #3b1f2b;
	--ehc-gold: #c9a24b;
	--ehc-gold-soft: #e6cf9a;
	--ehc-cream: #fbf7f2;
	--ehc-rose: #b4636f;
	--ehc-line: rgba(23, 16, 15, .12);
}

/* Badges ------------------------------------------------------------- */
.ehc-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.4;
	background: var(--ehc-cream);
	color: var(--ehc-ink);
}

.ehc-badge--ok { background: #e7f3e9; color: #1d5c2c; }
.ehc-badge--warn { background: #fdf0d8; color: #8a5a06; }
.ehc-badge--pre { background: #efe6f5; color: #5b2b78; }
.ehc-badge--out { background: #f1ecec; color: #6b5c5c; }
.ehc-badge--origin { background: var(--ehc-ink); color: #fff; }

ul.products li.product .ehc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
}

ul.products li.product { position: relative; }

.ehc-product-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.ehc-eta {
	margin: 0 0 18px;
	font-size: 14px;
	color: #5f5450;
	background: var(--ehc-cream);
	border-radius: 10px;
	padding: 10px 14px;
}

/* Specs table -------------------------------------------------------- */
.ehc-specs {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 22px;
	font-size: 14px;
}

.ehc-specs th,
.ehc-specs td {
	text-align: left;
	padding: 9px 0;
	border-bottom: 1px solid var(--ehc-line);
	vertical-align: top;
}

.ehc-specs th {
	width: 38%;
	font-weight: 500;
	color: #6d615d;
}

.ehc-care {
	border-left: 2px solid var(--ehc-gold);
	padding: 4px 0 4px 16px;
	margin: 0 0 22px;
}

.ehc-care h3 { font-size: 15px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .1em; }
.ehc-care p { margin: 0; font-size: 14px; color: #514743; }

/* Video -------------------------------------------------------------- */
.ehc-product-video { margin-top: 18px; }
.ehc-product-video h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; color: #6d615d; }

.ehc-video iframe,
.ehc-video video {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 14px;
	background: #000;
	aspect-ratio: 16 / 9;
}

.ehc-video--vertical iframe,
.ehc-video--vertical video { aspect-ratio: 9 / 16; max-width: 360px; }
.ehc-video--vertical blockquote { margin: 0 auto; }

/* Buttons ------------------------------------------------------------ */
.ehc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	border: 1px solid var(--ehc-ink);
	background: var(--ehc-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform .18s ease, background .18s ease, color .18s ease;
	cursor: pointer;
}

.ehc-btn:hover { transform: translateY(-1px); background: var(--ehc-plum); border-color: var(--ehc-plum); color: #fff; }
.ehc-btn--ghost { background: transparent; color: var(--ehc-ink); }
.ehc-btn--ghost:hover { background: var(--ehc-ink); color: #fff; }
.ehc-btn--dark { background: #111; border-color: #111; }
.ehc-btn--tiktok { background: #111; border-color: #111; color: #fff; }

/* TikTok ------------------------------------------------------------- */
.ehc-tiktok-card {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	padding: 22px;
	border: 1px solid var(--ehc-line);
	border-radius: 18px;
	background: #fff;
}

.ehc-tiktok-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ehc-ink);
	color: #fff;
	flex: 0 0 auto;
}

.ehc-tiktok-card strong { display: block; font-size: 16px; }
.ehc-tiktok-card p { margin: 2px 0 0; font-size: 14px; color: #6d615d; }
.ehc-tiktok-card > div:nth-child(2) { flex: 1 1 240px; }

.ehc-tiktok-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin-top: 22px;
}

.ehc-tiktok-float {
	position: fixed;
	right: 18px;
	bottom: 82px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

.ehc-tiktok-float:hover { color: var(--ehc-gold-soft); }

.ehc-wa-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.ehc-wa-float:hover { background: #1ebe5b; color: #fff; }

.ehc-btn--wa {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}

.ehc-btn--wa:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }

.ehc-pdp__wa { margin: 0 0 18px; }

/* Order tracker ------------------------------------------------------ */
.ehc-tracker { max-width: 1080px; margin: 0 auto; }
.ehc-tracker__form { background: #fff; border: 1px solid var(--ehc-line); border-radius: 18px; padding: 26px; }
.ehc-tracker__form h2 { margin: 0 0 6px; }

.ehc-tracker__hint { margin: 0 0 20px; font-size: 14px; color: #6d615d; }

.ehc-tracker__row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.ehc-tracker__row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; flex: 1 1 200px; }
.ehc-tracker__row input { padding: 12px 14px; border: 1px solid var(--ehc-line); border-radius: 10px; font-size: 15px; }

.ehc-tracker__error { color: #a3221f; margin: 14px 0 0; font-size: 14px; }

.ehc-tracker__result { margin-top: 26px; }
.ehc-tracker__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.ehc-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a7d78; }
.ehc-tracker__head h3 { margin: 4px 0; }
.ehc-tracker__head p { margin: 0; color: #6d615d; font-size: 14px; }

.ehc-tracker__badge {
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--ehc-ink);
	color: #fff;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 600;
}

.ehc-progress { display: flex; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: step; }
.ehc-progress li {
	flex: 1;
	padding: 10px 8px 0;
	border-top: 3px solid #e6e0da;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8a7d78;
	position: relative;
}
.ehc-progress li.is-done { border-color: var(--ehc-gold); color: var(--ehc-ink); }
.ehc-progress li.is-current { border-color: var(--ehc-ink); color: var(--ehc-ink); font-weight: 700; }

.ehc-map { height: 360px; border-radius: 16px; overflow: hidden; margin-bottom: 26px; background: #eee; position: relative; z-index: 0; }
.ehc-map.is-empty { display: none; }

.ehc-tracker__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; }
.ehc-tracker__grid h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; color: #6d615d; }

.ehc-timeline, .ehc-items { list-style: none; margin: 0; padding: 0; }
.ehc-timeline li { padding: 0 0 20px 26px; position: relative; border-left: 1px solid var(--ehc-line); }
.ehc-timeline li:last-child { border-left-color: transparent; }
.ehc-timeline li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #d8cfc6; }
.ehc-timeline li:first-child::before { background: var(--ehc-gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, .18); }
.ehc-timeline time { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a7d78; }
.ehc-timeline strong { display: block; font-size: 15px; margin: 2px 0; }
.ehc-timeline span { font-size: 14px; color: #6d615d; }

.ehc-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ehc-line); font-size: 14px; }

@media (max-width: 860px) {
	.ehc-tracker__grid { grid-template-columns: 1fr; }
	.ehc-progress { flex-wrap: wrap; }
	.ehc-progress li { flex: 1 1 30%; }
}

/* Admin -------------------------------------------------------------- */
.ehc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.ehc-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; }
.ehc-field--wide { grid-column: 1 / -1; }
.ehc-field label { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #50575e; }
.ehc-field input, .ehc-field select, .ehc-field textarea { width: 100%; }
.ehc-help { font-size: 12px; color: #646970; }
.ehc-notice { background: #f0f6fc; border-left: 3px solid #2271b1; padding: 10px 14px; margin: 0; }

.ehc-quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; max-width: 1100px; }
.ehc-quick__wide { grid-column: 1 / -1; }
.ehc-quick label { display: block; font-weight: 600; margin-bottom: 4px; }
.ehc-quick input, .ehc-quick select, .ehc-quick textarea { width: 100%; }
