/* Estore storefront v2 — split "cover + content column" layout
   (Ordable / Kinder House style). Desktop: a fixed content column on the
   reading side, the store cover/gallery fills the rest. Mobile: cover on
   top, content below. Direction comes from <html dir>. */

:root {
    --brand: #0099cc;
    --brand-ink: #0086b3;
    --accent: #f59e0b;
    --ink: #202936;
    --muted: #647084;
    --soft: #48566b;
    --bg: #f8fafc;
    --card: #ffffff;
    --line: #e0e5ec;
    --radius: 14px;
    --pane: clamp(420px, 41.6vw, 640px);
    --font: 'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); background: var(--card); color: var(--ink);
    -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── shell ───────────────────────────────────────────────────────────── */
.ks-shell { display: flex; min-height: 100vh; align-items: stretch; }
.ks-pane {
    width: var(--pane); flex: 0 0 var(--pane); min-width: 0;
    background: var(--card); position: relative; z-index: 2;
    box-shadow: 0 0 0 1px var(--line);
    padding-bottom: 110px; /* room for the review-order bar */
}
.ks-cover {
    flex: 1 1 auto; min-width: 0; position: sticky; top: 0; height: 100vh;
    background: linear-gradient(135deg, var(--brand), #0b2239);
    overflow: hidden;
}
.ks-cover .slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity .9s ease;
}
.ks-cover .slide.on { opacity: 1; }
.ks-cover .ks-cover-empty {
    position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 30px;
}
.ks-cover .ks-cover-empty img { width: 120px; height: 120px; border-radius: 28px; object-fit: contain; background: #fff; margin: 0 auto 16px; }
.ks-cover .ks-cover-empty h2 { margin: 0; font-size: 34px; }
.ks-cover .ks-cover-empty p { margin: 6px 0 0; opacity: .85; }
.ks-dots { position: absolute; bottom: 18px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.ks-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s; }
.ks-dots button.on { width: 22px; background: #fff; }

/* ── top bar inside the pane ─────────────────────────────────────────── */
.ks-top {
    position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 60px;
}
.ks-top .ks-top-title { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ks-icon-btn {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink);
    position: relative; font-size: 18px; transition: border-color .15s;
}
.ks-icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.ks-icon-btn svg { width: 20px; height: 20px; }
.es-cart-count {
    position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800;
    display: grid; place-items: center; border: 2px solid #fff;
}
.ks-lang { font-size: 13px; font-weight: 800; width: auto; padding: 0 12px; border-radius: 99px; gap: 6px; display: inline-flex; align-items: center; flex: 0 0 auto; }
.ks-lang-code { font-size: 15px; font-weight: 800; letter-spacing: .5px; line-height: 1; }

.es-announce { background: var(--brand); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 14px; }

/* mobile-only cover (desktop shows .ks-cover beside the pane) */
.ks-mcover { display: none; position: relative; height: clamp(220px, 66vw, 320px); overflow: hidden; background: linear-gradient(135deg, var(--brand), #0b2239); }
.ks-mcover .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s; }
.ks-mcover .slide.on { opacity: 1; }

/* ── store identity (logo + name + slogan + facts) ───────────────────── */
.sf-store-identity {
    display: flex; align-items: center; gap: 14px; padding: 18px 16px;
    background: #fff; border-bottom: 1px solid var(--line); text-align: start; color: var(--ink);
}
.sf-store-identity__logo { width: 60px; height: 60px; border-radius: 14px; object-fit: contain; flex-shrink: 0; border: 1px solid var(--line); background: #fff; }
.sf-store-identity__mark { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 24px; font-weight: 800; }
.sf-store-identity__copy { flex: 1 1; min-width: 0; }
.sf-store-identity h1 { font-size: 19px; font-weight: 800; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.sf-store-identity__slogan { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 2px 0 0; }
.sf-store-identity__facts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.sf-store-identity__facts span { display: inline-flex; align-items: center; gap: 4px; }
.sf-store-identity__go { width: 34px; height: 34px; border-radius: 50%; background: #f2f4f7; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; align-self: center; transition: background .15s, color .15s; }
.sf-store-identity__go:hover { background: var(--brand); color: #fff; }

/* delivery / pickup mode tabs */
.ks-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 4px; }
.ks-mode a {
    border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 10px; text-align: center;
    font-weight: 800; font-size: 14px; color: var(--soft); background: #fff;
}
.ks-mode a.on { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, #fff); }

/* promo card (e.g. "Book a visit") */
.sf-promo-card {
    display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 14px;
    border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.sf-promo-card__icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, #fff); font-size: 20px; }
.sf-promo-card__copy { flex: 1 1; min-width: 0; }
.sf-promo-card__copy strong { display: block; font-size: 15px; }
.sf-promo-card__copy small { color: var(--muted); font-size: 12px; }
.sf-promo-card__go { font-weight: 800; color: var(--brand); white-space: nowrap; font-size: 14px; }

/* search */
.ks-search { padding: 14px 16px 0; }
.ks-search input {
    width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
    padding: 0 44px 0 14px; font-size: 15px; color: var(--ink); outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23647084' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] .ks-search input { padding: 0 44px 0 14px; background-position: right 14px center; }
[dir="ltr"] .ks-search input { padding: 0 14px 0 44px; background-position: left 14px center; }
.ks-search input:focus { border-color: var(--brand); background-color: #fff; }

/* sticky category chips */
.ks-cats {
    position: sticky; top: 60px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line);
    display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; margin-top: 12px;
}
.ks-cats::-webkit-scrollbar { display: none; }
.ks-cats a {
    flex: 0 0 auto; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line);
    font-size: 13px; font-weight: 700; color: var(--soft); background: #fff; white-space: nowrap;
}
.ks-cats a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* category sections + 2-column product grid */
.sf-bubble-section { padding: 16px 16px 4px; scroll-margin-top: 130px; }
.sf-bubble-section__title { margin: 0 0 12px; font-size: 19px; font-weight: 800; line-height: 1.5; }
.sf-bubble-section__title small { font-size: 12px; color: var(--muted); font-weight: 600; margin-inline-start: 6px; }
.sf-bubble-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.sf-product-card {
    display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; overflow: hidden; transition: box-shadow .16s, border-color .16s; color: var(--ink);
}
.sf-product-card:hover { box-shadow: 0 3px 12px rgba(23,37,54,.06); }
.sf-product-card__img { position: relative; display: block; aspect-ratio: 4 / 5; background: #f1f4f8; overflow: hidden; }
.sf-product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sf-product-card__badge {
    position: absolute; top: 8px; inset-inline-start: 8px; padding: 3px 9px; border-radius: 99px;
    font-size: 11px; font-weight: 800; background: rgba(255,255,255,.95); color: var(--soft);
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.sf-product-card__badge.out { color: #dc2626; }
.sf-product-card__badge.book { color: var(--brand); }
.sf-product-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.sf-product-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.5; }
.sf-product-card__description { color: #596678; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.5; margin: 0; overflow: hidden; }
.sf-product-card__price { font-size: 14px; font-weight: 800; margin-top: auto; padding-top: 4px; }
.sf-product-card__action { margin-top: 8px; }
.sf-product-card__action .es-card-cta { display: block; }

/* card action: full-width "Add to cart" → becomes a stepper when in cart */
.es-add {
    width: 100%; min-height: 40px; border-radius: 10px; border: 1.5px solid var(--brand);
    background: #fff; color: var(--brand); font-weight: 800; font-size: 13.5px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px;
}
.es-add:hover { background: var(--brand); color: #fff; }
.es-add:disabled { border-color: var(--line); color: #94a3b8; background: #f8fafc; cursor: not-allowed; }
.es-mini-stepper {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: var(--brand); border-radius: 10px; padding: 3px; min-height: 40px;
}
.es-mini-stepper button { width: 34px; height: 34px; border: none; border-radius: 8px; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; font-size: 17px; font-weight: 800; }
.es-mini-stepper button:hover { background: rgba(255,255,255,.32); }
.es-mini-stepper span { color: #fff; font-weight: 800; font-size: 15px; }

.es-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.es-empty .big { font-size: 44px; margin-bottom: 8px; }

/* ── review-order bar (bottom of the pane) ───────────────────────────── */
.es-cartbar {
    position: fixed; bottom: 14px; inset-inline-start: 14px; width: calc(var(--pane) - 28px); z-index: 60;
    border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--brand); color: #fff; padding: 14px 18px; border-radius: 14px;
    font-family: inherit; font-size: 15px; font-weight: 800;
    box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--brand) 80%, #000);
}
.es-cartbar-count { background: rgba(255,255,255,.22); min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; }
.es-cartbar-total { font-size: 14px; }

/* ── generic page blocks ─────────────────────────────────────────────── */
.ks-page { padding: 18px 16px 24px; }
.ks-page h1 { font-size: 22px; margin: 0 0 16px; }
.es-panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; margin-bottom: 14px; }
.es-panel h3 { margin: 0 0 12px; font-size: 16px; }
.es-field { margin-bottom: 12px; }
.es-field label { display: block; font-size: 13px; font-weight: 700; color: var(--soft); margin-bottom: 6px; }
.es-input, .es-select, .es-textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
    padding: 12px 14px; font-size: 15px; outline: none; min-height: 48px;
}
.es-textarea { min-height: 84px; resize: vertical; }
.es-input:focus, .es-select:focus, .es-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.es-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.es-grid2 > .full { grid-column: 1 / -1; }
.es-check-row { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.es-check-row input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; }

.es-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    min-height: 52px; border: 0; border-radius: 14px; background: var(--brand); color: #fff;
    font-weight: 800; font-size: 16px; cursor: pointer; padding: 12px 20px; text-align: center;
}
.es-btn:hover { filter: brightness(.95); }
.es-btn:disabled { opacity: .55; cursor: not-allowed; }
.es-btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.es-btn.sm { min-height: 42px; width: auto; display: inline-flex; font-size: 14px; }
.es-btn.is-disabled { opacity: .5; pointer-events: none; }

.es-flash, .es-error, .es-hint { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.es-flash { background: #ecfeff; color: #155e75; }
.es-error { background: #fef2f2; color: #b91c1c; }
.es-hint { background: #fffbeb; color: #92400e; }

/* separate-order (visit booking) notice + badge */
.es-book-note {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
    padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 700; line-height: 1.7;
    background: color-mix(in srgb, var(--brand) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, #fff);
    color: var(--ink);
}
.es-book-note .bn-ic {
    flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center;
    border-radius: 10px; background: color-mix(in srgb, var(--brand) 16%, #fff); font-size: 15px;
}
.es-book-note.is-mixed { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.es-book-note.is-mixed .bn-ic { background: #fef3c7; }
.es-sep-badge {
    display: inline-block; margin-top: 4px; margin-inline-start: 6px; padding: 3px 10px;
    border-radius: 8px; border: 1.5px dashed color-mix(in srgb, var(--brand) 35%, #fff);
    color: var(--brand-ink); font-size: 11.5px; font-weight: 800; vertical-align: middle;
}

/* product page */
.ks-pdp-img { aspect-ratio: 1 / 1; background: #f1f4f8; overflow: hidden; }
.ks-pdp-img img { width: 100%; height: 100%; object-fit: cover; }
.ks-pdp { padding: 16px 16px 24px; }
.ks-pdp h1 { font-size: 22px; line-height: 1.5; margin: 0; }
.ks-pdp .es-card-cat { font-size: 12px; color: var(--muted); font-weight: 700; }
.es-pdp-price { font-size: 20px; font-weight: 800; color: var(--brand); margin: 6px 0 12px; }
.es-pdp-desc { color: #596678; line-height: 1.8; font-size: 14px; margin: 8px 0 14px; }
.es-stock { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.es-stock.ok { color: #15803d; }
.es-stock.no { color: #dc2626; }
.es-meta { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin: 12px 0; }
.es-meta .row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.es-meta .row:last-child { border-bottom: 0; }
.es-meta .k { color: var(--muted); }
.es-meta .v { font-weight: 700; }
.ks-section-label { font-size: 15px; font-weight: 800; margin: 16px 0 8px; }
.ks-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; }
.ks-sticky-add { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; border-top: 1px solid var(--line); z-index: 5; }

/* qty control */
.es-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.es-qty button { width: 38px; height: 38px; border: 0; background: #fff; cursor: pointer; font-size: 18px; font-weight: 800; color: var(--ink); }
.es-qty button:hover { background: var(--bg); }
.es-qty input, .es-qty span { width: 44px; text-align: center; border: 0; font-size: 15px; font-weight: 800; outline: none; background: transparent; }
.es-qty.es-qty-sm button { width: 30px; height: 30px; font-size: 15px; }
.es-qty.es-qty-sm input { width: 34px; font-size: 14px; }
.es-qty-fixed { font-weight: 800; color: var(--muted); padding: 0 6px; }

/* cart lines */
.es-line { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.es-line--extra { padding: 8px 0 8px 14px; margin-inline-start: 30px; border-inline-start: 2px solid var(--line); border-bottom-color: transparent; font-size: 13px; }


.es-line--extra .es-line-name { font-size: 13.5px; font-weight: 700; }
.es-extra-badge { width: 26px; height: 26px; border-radius: 8px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.es-line:last-child { border-bottom: 0; }
.es-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.es-line-info { flex: 1 1 140px; min-width: 0; }
.es-line-name { font-weight: 800; font-size: 15px; }
.es-line-meta { font-size: 12px; color: var(--muted); }
.es-line-price { font-size: 14px; font-weight: 700; margin-top: 2px; }
.es-line-error { color: #dc2626; font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.es-line.has-error { background: #fff7f7; border-radius: 12px; padding-inline: 8px; }
.es-line-remove { border: 0; background: none; color: #dc2626; font-weight: 700; cursor: pointer; font-size: 13px; padding: 6px 0; }
.es-line-extra {
    display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 8px;
    background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand-ink); font-size: 12.5px; font-weight: 700;
}
.es-line-note { flex: 1 1 100%; }
.es-line-note input { width: 100%; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; background: var(--bg); outline: none; }
.es-line-note input:focus { border-style: solid; border-color: var(--brand); background: #fff; }
.es-note-tag { display: block; margin-top: 4px; font-size: 12px; color: var(--soft); background: var(--bg); border-radius: 8px; padding: 4px 8px; }

/* summary */
.es-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.es-summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 17px; font-weight: 800; }
.es-sum-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.es-sum-line img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.es-sum-info { min-width: 0; }
.es-sum-name { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-sum-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.es-sum-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.es-sum-total { font-weight: 800; font-size: 14px; white-space: nowrap; }
.es-sum-remove { width: 30px; height: 30px; border-radius: 8px; border: none; cursor: pointer; background: #fef2f2; color: #dc2626; font-size: 13px; font-weight: 700; }

/* fulfilment / payment choices */
.es-choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.es-choice { position: relative; }
.es-choice input { position: absolute; opacity: 0; }
.es-choice span {
    display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; text-align: center;
    font-weight: 800; font-size: 14px; cursor: pointer; position: relative; background: #fff;
}
.es-choice span small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.es-choice input:checked + span { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.es-choice span.off { background: #f1f5f9; color: #94a3b8; border-style: dashed; cursor: not-allowed; }
.es-off-badge { position: absolute; top: 6px; inset-inline-start: 6px; font-style: normal; font-size: 10px; font-weight: 800; background: #cbd5e1; color: #475569; padding: 2px 7px; border-radius: 99px; }
.es-addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }

/* tracking steps */
.es-steps { display: flex; margin: 18px 0; }
.es-step { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); position: relative; font-weight: 700; }
.es-step::before { content: ''; width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 6px; display: block; background: var(--line); position: relative; z-index: 2; }
.es-step::after { content: ''; position: absolute; top: 11px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); z-index: 1; }
.es-step:first-child::after { display: none; }
.es-step.done { color: var(--brand); }
.es-step.done::before, .es-step.done::after { background: var(--brand); }
.es-check { width: 80px; height: 80px; border-radius: 50%; margin: 10px auto 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); font-size: 38px; font-weight: 800; }
.es-order-num { display: inline-block; margin: 14px 0; padding: 8px 16px; border-radius: 10px; background: var(--bg); font-weight: 800; }

/* drawer */
.es-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; }
.es-overlay.open { opacity: 1; pointer-events: auto; }
.es-drawer {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 100; width: min(var(--pane), 100vw);
    background: #fff; display: none; flex-direction: column; box-shadow: 0 0 32px rgba(15,23,42,.18);
}
.es-drawer.open { display: flex; animation: esIn .22s ease; }
@keyframes esIn { from { opacity: .3; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.es-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 17px; }
.es-drawer-close { border: none; background: var(--bg); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--muted); }
.es-drawer-body { flex: 1; overflow-y: auto; padding: 4px 16px; }
.es-drawer-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }

/* footer inside the pane */
.ks-foot { padding: 22px 16px 10px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); margin-top: 20px; }
.ks-foot .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; font-weight: 700; color: var(--soft); }

/* toast */
.es-toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
    max-width: min(92vw, 420px); text-align: center; transition: opacity .2s, transform .2s;
}
.es-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── mobile: cover on top, full-width pane ───────────────────────────── */
@media (max-width: 900px) {
    :root { --pane: 100vw; }
    .ks-shell { display: block; }
    .ks-pane { width: 100%; box-shadow: none; }
    .ks-cover { display: none; }
    .ks-mcover { display: block; }
    .es-cartbar { inset-inline: 12px; width: auto; bottom: 12px; }
    .es-drawer { width: 100vw; }
}
@media (max-width: 380px) {
    .sf-bubble-products { gap: 10px; }
    .es-addr-grid, .es-grid2 { grid-template-columns: minmax(0, 1fr); }
}
