/* EtemadPack builder — palette from the Etemad brand boxes (سرمه‌ای + نارنجی),
   pistachio green for the weight gauge, warm paper canvas.
   Vazirmatn is bundled locally: some theme/mobile font stacks break the
   ZWNJ (نیم‌فاصله) shaping between «ه» and «ها». */

@font-face {
	font-family: 'Vazirmatn EPK';
	src: url('../fonts/Vazirmatn.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-display: swap;
}

.epk {
	--epk-navy: #22304d;
	--epk-ink: #17203a;
	--epk-orange: #e4671f;
	--epk-orange-dark: #c25312;
	--epk-orange-soft: #fdeadd;
	--epk-cream: #faf6ef;
	--epk-paper: #ffffff;
	--epk-pist: #6f9e4f;
	--epk-pist-soft: #e9f2e0;
	--epk-line: #e8e0d2;
	--epk-muted: #77808f;
	--epk-danger: #c23b3b;
	--epk-radius: 14px;

	direction: rtl;
	background: var(--epk-cream);
	border: 1px solid var(--epk-line);
	border-radius: 22px;
	padding: clamp(16px, 3vw, 32px);
	color: var(--epk-ink);
	position: relative;
	font-family: 'Vazirmatn EPK', Vazirmatn, Tahoma, sans-serif;
}
.epk button, .epk input, .epk textarea, .epk select { font-family: inherit; }
/* Theme heading fonts + letter-spacing break Persian shaping (e.g. «تلخ» with
   a medial خ, «دسته‌ها» losing its نیم‌فاصله). Direct element rules like
   `h3 { font-family / letter-spacing }` beat INHERITED values, so the override
   must hit every element, with an ID selector so classed theme rules lose. */
#epk, #epk * {
	font-family: 'Vazirmatn EPK', Vazirmatn, Tahoma, sans-serif !important;
	letter-spacing: normal !important;
}
.epk *, .epk *::before, .epk *::after { box-sizing: border-box; }
.epk img { display: block; max-width: 100%; }
.epk button { font-family: inherit; cursor: pointer; }
.epk button:focus-visible, .epk a:focus-visible, .epk input:focus-visible, .epk textarea:focus-visible {
	outline: 2px solid var(--epk-orange);
	outline-offset: 2px;
}

/* ------------------------------- Header ------------------------------- */

.epk-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.epk-title { margin: 0 0 4px; font-size: clamp(20px, 3.2vw, 28px); font-weight: 700; color: var(--epk-navy); line-height: 1.4; }
.epk-sub { margin: 0; font-size: 14px; color: var(--epk-muted); }

.epk-steps { display: flex; align-items: center; gap: 0; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.epk-step {
	display: flex; align-items: center; gap: 7px; padding: 0 10px; position: relative;
	font-size: 13px; color: var(--epk-muted); white-space: nowrap;
	margin: 0 !important; line-height: 1.4; list-style: none;
}
.epk-step::marker { content: none; }
.epk-step-label { line-height: 1; }
.epk-step + .epk-step::before {
	content: ""; width: 18px; height: 1px; background: var(--epk-line);
	position: absolute; right: -9px; top: 50%;
}
.epk-step-num {
	width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--epk-paper); border: 1.5px solid var(--epk-line); font-size: 12px; font-weight: 700; color: var(--epk-muted);
	transition: all .15s ease; line-height: 1; padding: 0;
}
.epk-step.is-current { color: var(--epk-navy); font-weight: 600; }
.epk-step.is-current .epk-step-num { background: var(--epk-navy); border-color: var(--epk-navy); color: #fff; }
.epk-step.is-done { color: var(--epk-pist); cursor: pointer; }
.epk-step.is-done .epk-step-num { background: var(--epk-pist-soft); border-color: var(--epk-pist); color: var(--epk-pist); }
@media (max-width: 560px) {
	.epk-step-label { display: none; }
	.epk-step.is-current .epk-step-label { display: inline; }
}

/* ------------------------------- Notice -------------------------------- */

.epk-notice {
	margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px; line-height: 1.8;
	background: #fdecec; color: var(--epk-danger); border: 1px solid #f3c9c9;
}
.epk-notice.is-info { background: var(--epk-pist-soft); color: #3e6427; border-color: #cfe3bf; }

/* ------------------------------ Section head --------------------------- */

.epk-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 16px; }
.epk-section-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--epk-navy); }
.epk-section-title small { font-weight: 400; color: var(--epk-muted); font-size: 13px; margin-inline-start: 8px; }
@media (max-width: 640px) {
	.epk-section-title small { display: block; margin: 6px 0 0; line-height: 1.8; }
}
.epk-catnav { display: flex; align-items: center; gap: 8px; }
.epk-catnav-btn {
	border: 1.5px solid var(--epk-line); background: var(--epk-paper); color: var(--epk-navy);
	border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; transition: border-color .15s;
}
.epk-catnav-btn:hover:not(:disabled) { border-color: var(--epk-navy); }
.epk-catnav-btn:disabled { opacity: .4; cursor: default; }
.epk-catnav-pos { font-size: 13px; color: var(--epk-muted); }

/* Category jump pills (step 2) */
.epk-catpills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 6px; scrollbar-width: thin; }
.epk-catpill {
	flex: 0 0 auto; border: 1.5px solid var(--epk-line); background: var(--epk-paper); color: var(--epk-muted);
	border-radius: 999px; padding: 7px 14px; font-size: 13px; transition: all .15s;
}
.epk-catpill .epk-pill-count {
	display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; margin-inline-start: 6px;
	align-items: center; justify-content: center; border-radius: 999px;
	background: var(--epk-pist-soft); color: #3e6427; font-size: 11px; font-weight: 700;
}
.epk-catpill.is-active { border-color: var(--epk-navy); background: var(--epk-navy); color: #fff; }
.epk-catpill.is-active .epk-pill-count { background: rgba(255,255,255,.18); color: #fff; }

/* ------------------------------ Category grid -------------------------- */

.epk-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
@media (min-width: 768px) { .epk-cat-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; } }

.epk-cat-card {
	position: relative; background: var(--epk-paper); border: 1.5px solid var(--epk-line); border-radius: var(--epk-radius);
	overflow: hidden; text-align: right; padding: 0; transition: border-color .15s, transform .15s;
	/* themes style <button> as inline-flex row — force the card column layout */
	display: flex; flex-direction: column; align-items: stretch; width: 100%;
}
.epk-cat-card:hover { transform: translateY(-2px); }
.epk-cat-card.is-selected { border-color: var(--epk-orange); }
.epk-cat-img {
	aspect-ratio: 4 / 3; width: 100%; height: auto; flex: 0 0 auto;
	object-fit: contain; object-position: center; background: #fff; padding: 10px;
}
.epk-cat-name { display: block; padding: 10px 12px 2px; font-size: 14px; font-weight: 700; color: var(--epk-navy); line-height: 1.6; }
.epk-cat-count { display: block; padding: 0 12px 12px; font-size: 12px; color: var(--epk-muted); }
.epk-cat-check {
	position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%;
	background: var(--epk-paper); border: 1.5px solid var(--epk-line);
	display: flex; align-items: center; justify-content: center; font-size: 14px; color: transparent; transition: all .15s;
}
.epk-cat-card.is-selected .epk-cat-check { background: var(--epk-orange); border-color: var(--epk-orange); color: #fff; }

/* ------------------------------ Product grid --------------------------- */

.epk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 768px) { .epk-grid { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 16px; } }

.epk-card {
	background: var(--epk-paper); border: 1.5px solid var(--epk-line); border-radius: var(--epk-radius);
	overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .15s;
}
.epk-card.is-in-pack { border-color: var(--epk-pist); }
.epk-card-imgwrap { position: relative; }
.epk-card-img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--epk-cream); }
.epk-badge {
	position: absolute; top: 8px; right: 8px; border-radius: 999px; padding: 3px 10px;
	font-size: 11px; font-weight: 700; background: var(--epk-orange-soft); color: var(--epk-orange-dark);
}
.epk-badge.is-low { background: #fdecec; color: var(--epk-danger); }
.epk-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.epk-card-name { font-size: 13.5px; font-weight: 600; color: var(--epk-navy); line-height: 1.6; min-height: 2.6em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.epk-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.epk-chip {
	border: 1.5px solid var(--epk-line); background: var(--epk-paper); color: var(--epk-muted);
	border-radius: 999px; padding: 3px 9px; font-size: 11.5px; transition: all .12s;
}
.epk-chip[aria-pressed="true"] { border-color: var(--epk-navy); background: var(--epk-navy); color: #fff; }
.epk-chip:disabled { opacity: .35; cursor: default; text-decoration: line-through; }
.epk-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.epk-price { font-size: 13.5px; font-weight: 700; color: var(--epk-ink); }
.epk-price small { font-weight: 400; color: var(--epk-muted); font-size: 11px; }

.epk-add {
	border: 1.5px solid var(--epk-navy); background: var(--epk-paper); color: var(--epk-navy);
	border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; width: 100%;
	transition: all .15s;
}
.epk-add:hover { background: var(--epk-navy); color: #fff; }

.epk-stepper { display: flex; align-items: stretch; border: 1.5px solid var(--epk-pist); border-radius: 10px; overflow: hidden; min-height: 36px; }
.epk .epk-stepper button {
	flex: 0 0 32px; width: 32px; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0;
	background: var(--epk-pist-soft); color: #3e6427; font-size: 16px; font-weight: 700; line-height: 1;
}
.epk .epk-stepper button:hover { background: #dcebcd; }
.epk-stepper .epk-stepper-qty {
	flex: 1 1 auto; min-width: 34px; display: flex; align-items: center; justify-content: center;
	font-size: 13.5px; font-weight: 700; color: #3e6427; background: var(--epk-paper); padding: 0 4px;
}
/* Typeable count (pack qty): looks like the qty span, accepts direct input. */
.epk .epk-stepper-input {
	flex: 1 1 auto; width: 56px; min-width: 48px; border: 0; margin: 0; padding: 0 4px;
	text-align: center; font-size: 13.5px; font-weight: 700; color: #3e6427;
	background: var(--epk-paper); border-radius: 0; -moz-appearance: textfield; appearance: textfield;
}
.epk .epk-stepper-input::-webkit-outer-spin-button,
.epk .epk-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.epk .epk-stepper-input:focus { outline: 2px solid var(--epk-pist); outline-offset: -2px; }

/* -------------------------------- Boxes -------------------------------- */

.epk-box-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .epk-box-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } }

.epk-box-card {
	display: flex; gap: 12px; align-items: stretch; background: var(--epk-paper);
	border: 1.5px solid var(--epk-line); border-radius: var(--epk-radius); overflow: hidden;
	padding: 0; text-align: right; transition: border-color .15s, opacity .15s;
}
.epk-box-card.is-recommended { border-color: var(--epk-orange); box-shadow: 0 0 0 1px var(--epk-orange); }
.epk-box-card.is-selected { border-color: var(--epk-navy); box-shadow: 0 0 0 1.5px var(--epk-navy); }
.epk-box-card.is-unfit { opacity: .55; }
.epk-box-img { width: 96px; flex: 0 0 96px; object-fit: cover; background: var(--epk-cream); align-self: stretch; }
/* min-width:0 lets long names wrap inside the flex column instead of overflowing */
.epk-box-body { padding: 12px 0; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.epk-box-name { margin: 0; font-size: 14px; font-weight: 700; color: var(--epk-navy); line-height: 1.6; overflow-wrap: anywhere; }
.epk-box-cap { font-size: 12px; color: var(--epk-muted); line-height: 1.7; }
.epk-box-price { font-size: 13.5px; font-weight: 700; margin-top: auto; }
.epk-box-flag { font-size: 11.5px; font-weight: 700; }
.epk-box-flag.is-fit { color: var(--epk-orange-dark); }
.epk-box-flag.is-small { color: var(--epk-danger); }
.epk-box-flag.is-big { color: var(--epk-muted); }
/* In-flow radio column (was position:absolute, which let long names slide under it) */
.epk-box-radio {
	flex: 0 0 22px; align-self: center; width: 22px; height: 22px; border-radius: 50%;
	border: 1.5px solid var(--epk-line); background: var(--epk-paper); margin-inline-end: 12px;
}
.epk-box-card.is-selected .epk-box-radio { border-color: var(--epk-navy); background: radial-gradient(circle, var(--epk-navy) 45%, var(--epk-paper) 50%); }

/* -------------------------------- Review ------------------------------- */

.epk-review { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .epk-review { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.epk-list { background: var(--epk-paper); border: 1.5px solid var(--epk-line); border-radius: var(--epk-radius); overflow: hidden; }
.epk-row {
	display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto auto;
	gap: 6px 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--epk-line);
}
.epk-row:last-child { border-bottom: 0; }
.epk-row-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--epk-cream); }
.epk-row-info { min-width: 0; }
.epk-row-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--epk-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epk-row-meta { display: block; font-size: 12px; color: var(--epk-muted); white-space: nowrap; }
.epk-row-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.epk-row .epk-stepper { width: 96px; }
.epk-row-remove { border: 0; background: none; color: var(--epk-muted); font-size: 15px; padding: 6px; border-radius: 8px; }
.epk-row-remove:hover { color: var(--epk-danger); background: #fdecec; }
/* phones: two-line row — name on top, controls under it; nothing overlaps */
@media (max-width: 640px) {
	.epk-row {
		grid-template-columns: 52px minmax(0, 1fr) auto;
		grid-template-areas: "img info remove" "img ctrl price";
	}
	.epk-row-img { grid-area: img; }
	.epk-row-info { grid-area: info; }
	.epk-row-remove { grid-area: remove; justify-self: end; }
	.epk-row .epk-stepper { grid-area: ctrl; justify-self: start; }
	.epk-row-price { grid-area: price; justify-self: end; }
}

.epk-aside { display: flex; flex-direction: column; gap: 14px; }
.epk-panel { background: var(--epk-paper); border: 1.5px solid var(--epk-line); border-radius: var(--epk-radius); padding: 14px 16px; }
.epk-panel h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--epk-navy); }
.epk-note-field { width: 100%; min-height: 84px; border: 1.5px solid var(--epk-line); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 13px; resize: vertical; background: var(--epk-cream); color: var(--epk-ink); }
.epk-note-count { display: block; text-align: left; font-size: 11px; color: var(--epk-muted); margin-top: 4px; }
.epk-packqty { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.epk-packqty .epk-stepper { flex: 0 0 110px; }
.epk-packqty-hint { font-size: 11.5px; color: var(--epk-muted); margin-top: 6px; display: block; }

.epk-totals { font-size: 13.5px; }
.epk-totals-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--epk-muted); }
.epk-totals-row.is-grand { color: var(--epk-ink); font-weight: 700; font-size: 15px; border-top: 1px dashed var(--epk-line); margin-top: 6px; padding-top: 10px; }
.epk-trust { font-size: 11.5px; color: var(--epk-muted); display: flex; align-items: center; gap: 6px; }

/* ------------------------------ Empty state ---------------------------- */

.epk-empty { text-align: center; padding: 40px 16px; color: var(--epk-muted); font-size: 14px; }
.epk-empty strong { display: block; font-size: 16px; color: var(--epk-navy); margin-bottom: 6px; }

/* ------------------------------- Tray bar ------------------------------ */

.epk-tray { position: sticky; bottom: 0; z-index: 30; margin: 20px calc(clamp(16px, 3vw, 32px) * -1) calc(clamp(16px, 3vw, 32px) * -1); }
.epk-tray-inner {
	display: flex; align-items: center; gap: 14px;
	background: var(--epk-navy); color: #fff;
	border-radius: 16px 16px 22px 22px; padding: 12px 16px;
	padding-bottom: max(12px, env(safe-area-inset-bottom));
	box-shadow: 0 -6px 24px rgba(23, 32, 58, .18);
}
.epk-tray-items { display: flex; align-items: center; }
.epk-tray-thumb {
	width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
	border: 2px solid var(--epk-navy); margin-inline-start: -8px; background: var(--epk-cream);
	animation: epk-pop .22s ease;
}
.epk-tray-thumb:first-child { margin-inline-start: 0; }
.epk-tray-more {
	width: 34px; height: 34px; border-radius: 9px; margin-inline-start: -8px;
	background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 700;
}
@keyframes epk-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.epk-tray-gauge { flex: 1; min-width: 120px; }
.epk-gauge-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; margin-bottom: 5px; }
.epk-gauge-label { font-weight: 700; }
.epk-gauge-hint { color: #ffd9ba; }
.epk-gauge-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); }
.epk-gauge-fill {
	position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0%;
	border-radius: 999px; background: #8fc26b; transition: width .25s ease;
}
.epk-gauge-fill.is-over { background: #e57b7b; }
.epk-gauge-ticks span {
	position: absolute; top: -3px; width: 2px; height: 14px; border-radius: 2px;
	background: rgba(255,255,255,.5);
}
.epk-tray-total { text-align: center; line-height: 1.5; white-space: nowrap; }
.epk-total-label { display: block; font-size: 11px; color: rgba(255,255,255,.7); }
.epk-total-value { font-size: 15px; }

.epk-cta {
	border: 0; border-radius: 12px; background: var(--epk-orange); color: #fff;
	font-size: 14.5px; font-weight: 700; padding: 12px 22px; white-space: nowrap;
	transition: background .15s, transform .1s;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.epk-cta:hover { background: var(--epk-orange-dark); }
.epk-cta:active { transform: scale(.97); }
.epk-cta:disabled { background: #8b93a5; cursor: default; }
/* success screen uses <a class="epk-cta"> — theme link colors must not win */
.epk a.epk-cta, .epk a.epk-cta:hover, .epk a.epk-cta:focus, .epk a.epk-cta:visited {
	color: #fff !important; text-decoration: none !important;
}

@media (max-width: 700px) {
	.epk-tray-items { display: none; }
	.epk-tray-inner { flex-wrap: wrap; gap: 10px 14px; }
	.epk-tray-gauge { flex: 1 1 100%; order: -1; }
	.epk-tray-total { flex: 1; text-align: right; }
	.epk-cta { flex: 2; padding: 13px 10px; }
}

/* ------------------------------- Success ------------------------------- */

.epk-success { text-align: center; padding: 48px 16px; }
.epk-success-icon {
	width: 72px; height: 72px; border-radius: 50%; background: var(--epk-pist-soft);
	display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 14px;
}
.epk-success h3 { margin: 0 0 8px; font-size: 20px; color: var(--epk-navy); }
.epk-success p { margin: 0 0 22px; color: var(--epk-muted); font-size: 14px; }
.epk-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.epk-btn-ghost {
	border: 1.5px solid var(--epk-navy); background: transparent; color: var(--epk-navy);
	border-radius: 12px; padding: 12px 22px; font-size: 14px; font-weight: 700; transition: all .15s;
}
.epk-btn-ghost:hover { background: var(--epk-navy); color: #fff; }

/* ------------------------- Corporate (phase 3) ------------------------- */

.epk-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.epk-tier {
	font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
	background: var(--epk-cream); border: 1px dashed var(--epk-line); color: var(--epk-muted);
}
.epk-tier.is-on { background: var(--epk-pist-soft); border: 1px solid var(--epk-pist); color: #3e6427; font-weight: 700; }
.epk-totals-row.is-discount span { color: #3e6427; font-weight: 700; }
.epk-cartview-total.is-discount { color: #3e6427; font-size: 13.5px; padding-top: 0; }
.epk-mini { margin: 0 0 10px; font-size: 12px; color: var(--epk-muted); line-height: 1.9; }
.epk-q-field {
	display: block; width: 100%; box-sizing: border-box; margin-bottom: 8px;
	border: 1.5px solid var(--epk-line); border-radius: 10px; padding: 9px 12px;
	font-family: inherit; font-size: 13px; background: var(--epk-cream); color: var(--epk-ink);
}
textarea.epk-q-field { resize: vertical; min-height: 56px; }
.epk-q-send { width: 100%; }
#epk-quote-form { margin-top: 10px; }
.epk-q-paylink { display: flex; margin-top: 6px; }
.epk-share-row { display: flex; gap: 6px; }
.epk-share-row input {
	flex: 1; min-width: 0; border: 1.5px solid var(--epk-pist); border-radius: 10px;
	padding: 8px 10px; font-size: 12px; background: var(--epk-paper); color: var(--epk-ink);
}

/* ---------------------------- Inline cart ------------------------------ */

.epk-cartview { max-width: 660px; margin: 0 auto; text-align: right; }
.epk-cartview-title { margin: 18px 0 4px; font-size: 19px; font-weight: 700; color: var(--epk-navy); text-align: center; }
.epk-cartview-sub { margin: 0 0 18px; font-size: 13px; color: var(--epk-muted); text-align: center; }
.epk-pack-card { background: var(--epk-paper); border: 1.5px solid var(--epk-line); border-radius: var(--epk-radius); padding: 14px 16px; margin-bottom: 12px; }
.epk-pack-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.epk-pack-title { font-size: 14px; font-weight: 700; color: var(--epk-navy); }
.epk-pack-title .epk-pack-num { color: var(--epk-muted); font-weight: 400; font-size: 12px; margin-inline-start: 6px; }
.epk-pack-items { margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--epk-muted); line-height: 2; }
.epk-pack-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--epk-line); margin-top: 8px; padding-top: 8px; font-size: 13.5px; font-weight: 700; }
.epk-pack-remove { border: 0; background: none; color: var(--epk-muted); font-size: 14px; padding: 4px 8px; border-radius: 8px; }
.epk-pack-remove:hover { color: var(--epk-danger); background: #fdecec; }
.epk-cartview-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px; font-size: 15px; font-weight: 700; color: var(--epk-ink); }
.epk-cartview-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.epk-cartview-morelink { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--epk-muted); }

/* ------------------------------ AI panel ------------------------------- */

.epk-ai {
	margin-top: 20px; background: var(--epk-paper); border: 1.5px dashed var(--epk-orange);
	border-radius: var(--epk-radius); padding: 14px 16px;
}
.epk-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; color: var(--epk-navy); font-size: 14.5px; }
.epk-ai-head .epk-ai-spark { font-size: 18px; }
.epk-ai-sub { margin: 0 0 10px; font-size: 12.5px; color: var(--epk-muted); }
.epk-ai-row { display: flex; gap: 8px; flex-wrap: wrap; }
.epk-ai-input {
	flex: 1; min-width: 220px; border: 1.5px solid var(--epk-line); border-radius: 10px;
	padding: 10px 12px; font-family: inherit; font-size: 13px; background: var(--epk-cream);
	color: var(--epk-ink); resize: none; min-height: 44px;
}
.epk-ai-btn {
	border: 0; border-radius: 10px; background: var(--epk-navy); color: #fff;
	font-size: 13.5px; font-weight: 700; padding: 10px 18px; transition: opacity .15s;
}
.epk-ai-btn:hover { opacity: .9; }
.epk-ai-btn:disabled { opacity: .6; cursor: default; }
.epk-ai-msg { background: var(--epk-pist-soft); color: #3e6427; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; line-height: 1.9; }

/* AI progress theater */
.epk-ai-progress { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.epk-ai-stage { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--epk-muted); opacity: .45; transition: opacity .3s; }
.epk-ai-stage.is-active, .epk-ai-stage.is-done { opacity: 1; }
.epk-ai-stage-mark {
	width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
	border: 2px solid var(--epk-line); background: var(--epk-paper); position: relative; transition: all .3s;
}
.epk-ai-stage.is-active .epk-ai-stage-mark { border-color: var(--epk-orange); }
.epk-ai-stage.is-done { color: var(--epk-pist); }
.epk-ai-stage.is-done .epk-ai-stage-mark { border-color: var(--epk-pist); background: var(--epk-pist); }
.epk-ai-stage.is-done .epk-ai-stage-mark::after {
	content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 11px; font-weight: 700;
}
.epk-ai-stage.is-active { color: var(--epk-navy); font-weight: 600; }
.epk-ai-dots { display: none; gap: 3px; margin-inline-start: 2px; }
.epk-ai-stage.is-active .epk-ai-dots { display: inline-flex; }
.epk-ai-dots i {
	width: 5px; height: 5px; border-radius: 50%; background: var(--epk-orange);
	animation: epk-dot 1s infinite ease-in-out;
}
.epk-ai-dots i:nth-child(2) { animation-delay: .18s; }
.epk-ai-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes epk-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* ------------------------------ Skeleton ------------------------------- */

.epk-skel-row { height: 22px; width: 40%; border-radius: 8px; margin-bottom: 16px; }
.epk-skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.epk-skel-card { height: 210px; border-radius: var(--epk-radius); }
.epk-skel-row, .epk-skel-card {
	background: linear-gradient(90deg, #f1ebe0 25%, #f8f3ea 50%, #f1ebe0 75%);
	background-size: 200% 100%; animation: epk-shimmer 1.2s infinite linear;
}
@keyframes epk-shimmer { to { background-position: -200% 0; } }

.epk-noscript { padding: 24px; text-align: center; }

/* --------------------------- Cart page bits ---------------------------- */

.epk-cart-badge {
	display: inline-block; background: var(--epk-orange-soft, #fdeadd); color: #c25312;
	border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; margin-inline-start: 6px;
}
.epk-qty-locked { font-weight: 700; }

/* ----------------------------- Motion pref ----------------------------- */

@media (prefers-reduced-motion: reduce) {
	.epk *, .epk *::before, .epk *::after { animation: none !important; transition: none !important; }
}
