/* Customer flow UI — scoped to `.app-shell`; storefront and admin stay isolated. */

/* هر قاعدهٔ display در این فایل از قاعدهٔ [hidden] مرورگر قوی‌تر است، پس
   عنصری که با hidden پنهان شده بود همچنان دیده می‌شد: خانه‌های کد بدون
   جاوااسکریپت، و دکمهٔ «ورود» وقتی خانه‌ها خودشان کد را می‌سنجند. یک قاعدهٔ
   سراسری این را برای همیشه می‌بندد. */
body.app-shell [hidden] { display: none !important; }
body.app-shell {
  --flow-red: #bd2935;
  --flow-red-deep: #971f2a;
  --flow-red-soft: #fff0ef;
  --flow-red-faint: #fff8f7;
  --flow-ink: #292526;
  --flow-ink-soft: #5e5756;
  --flow-muted: #8d8582;
  --flow-faint: #aea6a3;
  --flow-canvas: #faf9f8;
  --flow-paper: #ffffff;
  --flow-paper-soft: #fdfbfa;
  --flow-line: #ebe6e3;
  --flow-line-strong: #ded5d1;
  --flow-green: #2f8059;
  --flow-green-soft: #eaf6ee;
  --flow-yellow: #a66f15;
  --flow-yellow-soft: #fff5dc;
  --flow-shadow: 0 18px 54px rgba(62, 35, 31, .08);
  --flow-shadow-soft: 0 7px 22px rgba(62, 35, 31, .045);
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--flow-ink);
  background:
    radial-gradient(circle at 93% 2%, rgba(244, 210, 205, .26), transparent 20rem),
    radial-gradient(circle at 4% 48%, rgba(244, 229, 219, .24), transparent 25rem),
    var(--flow-canvas);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  transition: background-color .22s ease, color .22s ease;
}

.app-shell *, .app-shell *::before, .app-shell *::after { box-sizing: border-box; }
.app-shell button, .app-shell input, .app-shell textarea { font: inherit; }
.app-shell a, .app-shell button { -webkit-tap-highlight-color: transparent; }
.app-shell a:focus-visible, .app-shell button:focus-visible, .app-shell input:focus-visible, .app-shell textarea:focus-visible { outline: 3px solid rgba(189, 41, 53, .25); outline-offset: 3px; }
.flow-main { min-height: 38vh; }

/* Header */
.flow-header { position: relative; z-index: 20; border-bottom: 1px solid var(--flow-line); background: color-mix(in srgb, var(--flow-canvas) 87%, transparent); backdrop-filter: blur(14px); }
.flow-header__inner { display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 48px)); min-height: 74px; margin: 0 auto; gap: 22px; }
.flow-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--flow-ink); text-decoration: none; }
.flow-brand__mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--flow-red); filter: drop-shadow(0 5px 8px rgba(189, 41, 53, .16)); }
.flow-brand__mark svg { width: 100%; height: 100%; }
.flow-brand__copy { display: grid; gap: 2px; line-height: 1; }
.flow-brand__copy strong { font-size: 15px; font-weight: 800; letter-spacing: -.035em; }
.flow-brand__copy small { direction: ltr; color: var(--flow-red); font-family: "DM Sans", Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1.45px; }
.flow-header__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.theme-toggle, .flow-cart-link, .flow-logout button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--flow-line); border-radius: 11px; color: var(--flow-ink-soft); background: var(--flow-paper); cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease; }
.theme-toggle { gap: 6px; min-width: 39px; height: 39px; padding: 0 10px; }.theme-toggle span { font-size: 10px; font-weight: 800; }.theme-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }.theme-icon--moon { display: none; }
 
.theme-toggle:hover, .flow-cart-link:hover, .flow-logout button:hover { border-color: color-mix(in srgb, var(--flow-red) 38%, var(--flow-line)); color: var(--flow-red); background: var(--flow-red-faint); transform: translateY(-1px); }
.flow-cart-link { position: relative; width: 40px; height: 39px; color: var(--flow-ink); text-decoration: none; }.flow-cart-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.flow-cart-link b { position: absolute; top: -6px; left: -6px; display: grid; min-width: 18px; height: 18px; place-items: center; border: 2px solid var(--flow-canvas); border-radius: 99px; color: #fff; background: var(--flow-red); font-family: "DM Sans", sans-serif; font-size: 9px; line-height: 1; }
.flow-logout { margin: 0; }.flow-logout button { height: 39px; padding: 0 11px; font-size: 11px; font-weight: 700; }

/* Shared elements */
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--flow-red); font-size: 11px; font-weight: 800; letter-spacing: .01em; }.eyebrow > span { width: 6px; height: 6px; border-radius: 99px; background: var(--flow-red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-red) 11%, transparent); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 47px; border: 0; border-radius: 13px; padding: 0 18px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
.primary-button { color: #fff; background: var(--flow-red); box-shadow: 0 12px 25px color-mix(in srgb, var(--flow-red) 23%, transparent); }.primary-button:hover:not(:disabled) { color: #fff; background: var(--flow-red-deep); box-shadow: 0 15px 30px color-mix(in srgb, var(--flow-red) 30%, transparent); transform: translateY(-2px); }.primary-button:disabled { cursor: not-allowed; opacity: .43; box-shadow: none; }.primary-button > b { font-size: 17px; font-weight: 500; }
.secondary-button { border: 1px solid var(--flow-line-strong); color: var(--flow-ink-soft); background: var(--flow-paper); }.secondary-button:hover { border-color: color-mix(in srgb, var(--flow-red) 35%, var(--flow-line)); color: var(--flow-red); background: var(--flow-red-faint); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--flow-muted); font-size: 12px; font-weight: 750; text-decoration: none; transition: color .18s ease, gap .18s ease; }.text-link:hover { gap: 10px; color: var(--flow-red); }
.form-input { width: 100%; min-height: 47px; border: 1px solid var(--flow-line-strong); border-radius: 12px; outline: none; color: var(--flow-ink); background: var(--flow-paper); padding: 0 13px; font: inherit; font-size: 13px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }.form-input::placeholder { color: var(--flow-faint); }.form-input:focus { border-color: color-mix(in srgb, var(--flow-red) 52%, var(--flow-line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-red) 11%, transparent); }.form-input:disabled { color: var(--flow-muted); background: var(--flow-paper-soft); cursor: not-allowed; }textarea.form-input { min-height: 93px; padding: 12px 13px; resize: vertical; }
.field-error { display: block; margin-top: 6px; color: var(--flow-red); font-size: 10px; font-weight: 650; }.form-alert { border: 1px solid color-mix(in srgb, var(--flow-red) 28%, var(--flow-line)); border-radius: 13px; color: var(--flow-red); background: var(--flow-red-faint); padding: 11px 13px; font-size: 12px; }
.toast-stack { position: fixed; z-index: 70; top: 16px; left: 16px; display: grid; gap: 8px; }.toast { max-width: 340px; border: 1px solid color-mix(in srgb, var(--flow-green) 25%, var(--flow-line)); border-radius: 13px; color: var(--flow-green); background: var(--flow-paper); box-shadow: var(--flow-shadow); padding: 12px 14px; font-size: 12px; font-weight: 650; }
.toast-error { border-color: color-mix(in srgb, var(--flow-red) 30%, var(--flow-line)); color: var(--flow-red); }

/* Footer */
.store-footer { margin-top: 38px; border-top: 1px solid var(--flow-line); color: var(--flow-ink-soft); background: var(--flow-paper); }.store-footer__inner { display: grid; grid-template-columns: 1.25fr .7fr 1fr; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 35px 0 29px; gap: 42px; }.footer-brand__title { display: flex; align-items: center; gap: 10px; }.footer-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 13px; color: #fff; background: var(--flow-red); font-family: "DM Sans", sans-serif; font-size: 15px; font-weight: 700; box-shadow: 0 8px 17px color-mix(in srgb, var(--flow-red) 22%, transparent); }.footer-brand__title span:last-child { display: grid; gap: 3px; }.footer-brand b { color: var(--flow-ink); font-size: 13px; }.footer-brand small { direction: ltr; color: var(--flow-red); font-family: "DM Sans", sans-serif; font-size: 7px; font-weight: 700; letter-spacing: 1.2px; }.footer-brand > p { max-width: 270px; margin: 13px 0 11px; color: var(--flow-muted); font-size: 11px; line-height: 1.95; }.domain-link { color: var(--flow-red); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; text-decoration: none; }.domain-link span { margin-right: 4px; }
.footer-section h2 { margin: 3px 0 13px; color: var(--flow-ink); font-size: 12px; }.footer-section > a { display: block; width: fit-content; margin: 0 0 7px; color: var(--flow-muted); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 11px; text-decoration: none; transition: color .18s ease; }.footer-section > a:hover { color: var(--flow-red); }.footer-location > p { margin: 0 0 12px; color: var(--flow-muted); font-size: 11px; line-height: 1.9; }.footer-map-actions { display: flex; flex-wrap: wrap; gap: 7px; }.footer-map-actions a { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--flow-line-strong); border-radius: 9px; color: var(--flow-ink-soft); background: var(--flow-paper-soft); padding: 7px 8px; font-size: 9px; font-weight: 750; text-decoration: none; transition: color .18s ease, border-color .18s ease; }.footer-map-actions a:hover { border-color: color-mix(in srgb, var(--flow-red) 42%, var(--flow-line)); color: var(--flow-red); }.store-footer__bottom { display: flex; align-items: center; justify-content: space-between; width: min(1240px, calc(100% - 48px)); min-height: 49px; margin: 0 auto; border-top: 1px solid var(--flow-line); color: var(--flow-faint); font-size: 9px; }

/* Authentication */
.auth-page { display: grid; min-height: calc(100vh - 74px); grid-template-columns: minmax(290px, .93fr) minmax(440px, 1.07fr); border-bottom: 1px solid var(--flow-line); }.auth-visual { position: relative; display: grid; min-height: 570px; place-items: center; overflow: hidden; color: var(--flow-ink); background: linear-gradient(135deg, color-mix(in srgb, var(--flow-red-soft) 77%, var(--flow-paper)) 0%, var(--flow-paper) 67%); }.auth-visual--compact { background: linear-gradient(135deg, var(--flow-red-faint), var(--flow-paper)); }.auth-visual__grain { position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(color-mix(in srgb, var(--flow-red) 18%, transparent) .6px, transparent .6px); background-size: 14px 14px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.38), transparent 60%); }.auth-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--flow-red) 17%, transparent); border-radius: 50%; }.auth-orbit--one { width: 390px; height: 390px; }.auth-orbit--two { width: 570px; height: 570px; border-style: dashed; opacity: .75; }.auth-seal { position: relative; z-index: 1; display: grid; width: 212px; height: 212px; place-items: center; align-content: center; gap: 10px; border: 11px solid color-mix(in srgb, var(--flow-paper) 77%, transparent); border-radius: 50%; background: var(--flow-paper); box-shadow: var(--flow-shadow); }.auth-seal__mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 17px; color: #fff; background: var(--flow-red); font-family: "DM Sans", sans-serif; font-size: 21px; font-weight: 700; }.auth-seal strong { color: var(--flow-ink); font-size: 16px; }.auth-seal small { direction: ltr; color: var(--flow-red); font-family: "DM Sans", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }.auth-visual__note { position: absolute; bottom: 44px; display: flex; align-items: center; gap: 9px; border: 1px solid color-mix(in srgb, var(--flow-paper) 80%, transparent); border-radius: 13px; background: color-mix(in srgb, var(--flow-paper) 78%, transparent); padding: 10px 12px; box-shadow: var(--flow-shadow-soft); backdrop-filter: blur(8px); }.auth-visual__note > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--flow-green); background: var(--flow-green-soft); font-size: 11px; }.auth-visual__note p { margin: 0; color: var(--flow-muted); font-size: 10px; line-height: 1.7; }.auth-visual__note b { color: var(--flow-ink-soft); }.auth-card-wrap { display: grid; place-items: center; padding: 48px; background: var(--flow-canvas); }.auth-card { width: min(100%, 420px); }.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 44px; color: var(--flow-muted); font-size: 11px; font-weight: 700; text-decoration: none; transition: color .18s ease, gap .18s ease; }.back-link:hover { gap: 10px; color: var(--flow-red); }.auth-card h1 { margin: 0 0 10px; color: var(--flow-ink); font-size: clamp(25px, 3vw, 32px); letter-spacing: -.06em; }.helper { margin: 0; color: var(--flow-muted); font-size: 13px; line-height: 1.95; }.stack-form { display: grid; gap: 9px; margin-top: 28px; }.stack-form > label, .full-field, .field-grid > label, .address-form label { display: grid; gap: 7px; color: var(--flow-ink-soft); font-size: 11px; font-weight: 750; }.auth-form .primary-button { margin-top: 8px; }.full-width { width: 100%; }.phone-input-wrap { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--flow-line-strong); border-radius: 12px; background: var(--flow-paper); transition: border-color .18s ease, box-shadow .18s ease; }.phone-input-wrap:focus-within { border-color: color-mix(in srgb, var(--flow-red) 52%, var(--flow-line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-red) 11%, transparent); }.phone-input-wrap > span { padding: 0 12px; border-left: 1px solid var(--flow-line); color: var(--flow-muted); direction: ltr; font-family: "DM Sans", sans-serif; font-size: 12px; }.phone-input-wrap .form-input { border: 0; box-shadow: none; }.otp-input { direction: ltr; height: 55px; font-family: "DM Sans", monospace; font-size: 22px; font-weight: 700; letter-spacing: .48em; text-align: center; }.demo-code { display: flex; align-items: center; gap: 7px; margin: 18px 0 -6px; border: 1px solid color-mix(in srgb, var(--flow-yellow) 29%, var(--flow-line)); border-radius: 11px; color: var(--flow-yellow); background: var(--flow-yellow-soft); padding: 10px 11px; font-size: 11px; }.demo-code b { margin-right: auto; font-family: "DM Sans", sans-serif; }.auth-trust { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--flow-muted); font-size: 10px; }.auth-trust > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: var(--flow-green); background: var(--flow-green-soft); }.auth-trust p, .form-footnote { margin: 0; }.form-footnote { margin-top: 15px; color: var(--flow-faint); font-size: 10px; line-height: 1.85; }.resend-form { margin-top: 19px; }.resend-form p { margin: 0; color: var(--flow-muted); font-size: 11px; }.resend-form button { border: 0; color: var(--flow-red); background: transparent; padding: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; }

/* Page heading + steps */
.checkout-page, .cart-page, .profile-page { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 39px 0 49px; }.flow-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }.flow-page-heading h1 { margin: 0; color: var(--flow-ink); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.065em; }.flow-page-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--flow-muted); font-size: 12px; }.checkout-steps { display: flex; align-items: center; max-width: 550px; margin: 0 0 27px; padding: 0; list-style: none; }.checkout-steps li { position: relative; display: flex; flex: 1; align-items: center; gap: 7px; color: var(--flow-faint); font-size: 10px; }.checkout-steps li:not(:last-child)::after { position: absolute; top: 50%; right: 85px; left: 5px; height: 1px; background: var(--flow-line-strong); content: ""; }.checkout-steps li > span { position: relative; z-index: 1; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--flow-line-strong); border-radius: 50%; color: var(--flow-faint); background: var(--flow-canvas); font-size: 10px; font-weight: 800; }.checkout-steps li b { font-weight: 700; white-space: nowrap; }.checkout-steps li.is-done, .checkout-steps li.is-active { color: var(--flow-ink-soft); }.checkout-steps li.is-done > span { border-color: var(--flow-green); color: #fff; background: var(--flow-green); }.checkout-steps li.is-active > span { border-color: var(--flow-red); color: #fff; background: var(--flow-red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-red) 10%, transparent); }.checkout-steps li.is-done::after { background: var(--flow-green); }

/* Cart */
.cart-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; align-items: start; gap: 22px; }.cart-table-card, .cart-summary-card, .flow-card, .order-aside-card, .profile-card, .addresses-section { border: 1px solid var(--flow-line); border-radius: 20px; background: var(--flow-paper); box-shadow: var(--flow-shadow-soft); }.cart-table-card { overflow: hidden; }.cart-table-card__head { display: flex; align-items: center; justify-content: space-between; padding: 21px 22px; border-bottom: 1px solid var(--flow-line); }.cart-table-card__head h2, .cart-summary-card h2, .flow-card h2, .order-aside-card h2, .profile-card h2, .section-heading h2 { margin: 0; color: var(--flow-ink); font-size: 16px; }.cart-table-card__head p { margin: 5px 0 0; color: var(--flow-muted); font-size: 10px; }.cart-count-pill { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 10px; color: var(--flow-red); background: var(--flow-red-soft); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; }.cart-line-item { display: grid; grid-template-columns: 59px minmax(150px, 1fr) auto auto auto 28px; align-items: center; gap: 16px; padding: 17px 22px; border-bottom: 1px solid var(--flow-line); }.cart-line-item__media { display: grid; width: 59px; height: 59px; place-items: center; overflow: hidden; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #f3aaa4, var(--flow-red)); font-size: 21px; font-weight: 800; }.cart-line-item__media img { width: 100%; height: 100%; object-fit: cover; }.cart-line-item__copy { min-width: 0; }.cart-line-item__copy > span { color: var(--flow-red); font-size: 9px; font-weight: 750; }.cart-line-item__copy h3 { overflow: hidden; margin: 4px 0 3px; color: var(--flow-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.cart-line-item__copy p { margin: 0; color: var(--flow-muted); font-size: 10px; }.cart-line-item__price, .cart-line-item__total { display: grid; gap: 4px; min-width: 88px; }.cart-line-item__price > span, .cart-line-item__total > span { color: var(--flow-faint); font-size: 9px; }.cart-line-item__price b, .cart-line-item__total b { color: var(--flow-ink-soft); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 11px; white-space: nowrap; }.cart-line-item__total b { color: var(--flow-red); font-weight: 800; }.cart-line-item small { font-family: Vazirmatn, sans-serif; font-size: 8px; font-weight: 500; }.cart-quantity { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--flow-line-strong); border-radius: 10px; background: var(--flow-paper-soft); }.cart-quantity button { display: grid; width: 27px; height: 30px; place-items: center; border: 0; color: var(--flow-ink-soft); background: transparent; cursor: pointer; font-size: 16px; transition: color .18s ease, background .18s ease; }.cart-quantity button:hover { color: var(--flow-red); background: var(--flow-red-soft); }.cart-quantity span { width: 22px; color: var(--flow-ink); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; text-align: center; }.cart-remove { margin: 0; }.cart-remove button { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 8px; color: var(--flow-faint); background: transparent; cursor: pointer; font-size: 18px; transition: color .18s ease, background .18s ease; }.cart-remove button:hover { color: var(--flow-red); background: var(--flow-red-soft); }.cart-table-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 22px; color: var(--flow-muted); background: var(--flow-paper-soft); font-size: 10px; }.cart-table-card__foot i { display: inline-grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; color: var(--flow-green); background: var(--flow-green-soft); font-size: 9px; font-style: normal; }.cart-table-card__foot a { color: var(--flow-red); font-size: 10px; font-weight: 800; text-decoration: none; }.cart-summary-card { position: sticky; top: 15px; padding: 21px; }.cart-summary-card__top { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--flow-line); }.cart-summary-card__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; color: var(--flow-red); background: var(--flow-red-soft); font-size: 20px; }.cart-summary-card__top p { margin: 0 0 3px; color: var(--flow-muted); font-size: 9px; }.cart-summary-card__rows { display: grid; gap: 11px; padding: 17px 0; border-bottom: 1px solid var(--flow-line); }.cart-summary-card__rows > div, .order-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--flow-muted); font-size: 11px; }.cart-summary-card__rows b, .order-summary b { color: var(--flow-ink-soft); font-size: 10px; }.cart-summary-card__total { display: grid; gap: 7px; padding: 17px 0; }.cart-summary-card__total span { color: var(--flow-ink-soft); font-size: 11px; font-weight: 750; }.cart-summary-card__total strong { color: var(--flow-red); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 21px; }.cart-summary-card__total em { font-family: Vazirmatn, sans-serif; font-size: 9px; font-style: normal; font-weight: 600; }.cart-continue-button { width: 100%; }.secure-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 12px 0 0; color: var(--flow-faint); font-size: 9px; }.secure-note > span { color: var(--flow-green); font-size: 12px; }.empty-cart-card { display: grid; min-height: 360px; place-items: center; align-content: center; max-width: 600px; margin: 10px auto 0; border: 1px solid var(--flow-line); border-radius: 24px; background: var(--flow-paper); box-shadow: var(--flow-shadow-soft); padding: 34px; text-align: center; }.empty-cart-card__icon { display: grid; width: 65px; height: 65px; place-items: center; margin-bottom: 18px; border-radius: 23px; color: var(--flow-red); background: var(--flow-red-soft); }.empty-cart-card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }.empty-cart-card h2 { margin: 0 0 8px; color: var(--flow-ink); font-size: 19px; }.empty-cart-card > p:not(.eyebrow) { max-width: 330px; margin: 0 0 19px; color: var(--flow-muted); font-size: 12px; line-height: 1.9; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; align-items: start; gap: 22px; }.checkout-main { display: grid; gap: 15px; }.flow-card { padding: 22px; }.flow-card__head { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }.flow-card__head p { margin: 4px 0 0; color: var(--flow-muted); font-size: 10px; }.step-number { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--flow-red); background: var(--flow-red-soft); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; }.choice-grid { display: grid; gap: 10px; }.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }.choice-card { position: relative; display: flex; min-height: 80px; align-items: center; gap: 10px; border: 1px solid var(--flow-line-strong); border-radius: 15px; background: var(--flow-paper); padding: 12px 31px 12px 11px; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease; }.choice-card:hover { border-color: color-mix(in srgb, var(--flow-red) 37%, var(--flow-line)); transform: translateY(-1px); }.choice-card input { position: absolute; opacity: 0; pointer-events: none; }.choice-card.is-selected { border-color: color-mix(in srgb, var(--flow-red) 65%, var(--flow-line)); background: var(--flow-red-faint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flow-red) 8%, transparent); }.choice-card > i { position: absolute; top: 13px; left: 12px; width: 15px; height: 15px; border: 1px solid var(--flow-line-strong); border-radius: 50%; }.choice-card.is-selected > i { border: 5px solid var(--flow-red); }.choice-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--flow-ink-soft); background: var(--flow-paper-soft); }.choice-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }.choice-card.is-selected .choice-icon { color: var(--flow-red); background: var(--flow-red-soft); }.choice-card b, .choice-card small { display: block; }.choice-card b { color: var(--flow-ink); font-size: 12px; }.choice-card small { margin-top: 4px; color: var(--flow-muted); font-size: 9px; line-height: 1.6; }.pickup-note, .payment-safety { display: flex; align-items: center; gap: 7px; margin-top: 12px; border-radius: 10px; color: var(--flow-green); background: var(--flow-green-soft); padding: 10px 11px; font-size: 10px; }.pickup-note > span, .payment-safety > span { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--flow-green); font-size: 9px; }.pickup-note p { margin: 0; }.delivery-fields { overflow: hidden; max-height: 310px; opacity: 1; transition: max-height .25s ease, opacity .17s ease, margin .17s ease; }.delivery-fields.is-hidden, .pickup-note.is-hidden { max-height: 0; margin-top: 0; opacity: 0; pointer-events: none; }.field-grid { display: grid; gap: 13px; }.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; }.full-field { margin-top: 13px; }.full-field em, .field-grid em { margin-right: 4px; color: var(--flow-faint); font-size: 9px; font-style: normal; font-weight: 500; }.address-title { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--flow-ink-soft); font-size: 10px; font-weight: 750; }.address-title__pin { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: var(--flow-red); background: var(--flow-red-soft); font-size: 13px; }.checkout-side { position: sticky; top: 15px; }.order-aside-card { overflow: hidden; padding: 20px; }.order-aside-card__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--flow-line); }.order-aside-card__head p { margin: 0 0 3px; color: var(--flow-muted); font-size: 9px; }.order-aside-card__head a { color: var(--flow-red); font-size: 10px; font-weight: 800; text-decoration: none; }.compact-cart-items { display: grid; max-height: 250px; overflow-y: auto; }.compact-cart-item { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--flow-line); }.compact-cart-item__image { display: grid; width: 35px; height: 35px; place-items: center; overflow: hidden; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #f1a39d, var(--flow-red)); font-size: 13px; font-weight: 800; }.compact-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }.compact-cart-item > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }.compact-cart-item b { overflow: hidden; color: var(--flow-ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.compact-cart-item small { color: var(--flow-faint); font-size: 9px; }.compact-cart-item strong { color: var(--flow-red); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 10px; }.order-summary { display: grid; gap: 10px; padding: 15px 0 0; }.order-summary .is-muted { opacity: .42; }.order-summary .total-row { margin-top: 2px; padding-top: 11px; border-top: 1px solid var(--flow-line); color: var(--flow-ink-soft); font-size: 11px; font-weight: 700; }.order-summary .total-row strong { color: var(--flow-red); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 16px; }.order-summary .total-row em { font-family: Vazirmatn, sans-serif; font-size: 8px; font-style: normal; }.pay-button { width: 100%; margin-top: 17px; }.help-aside { margin-top: 11px; border: 1px solid color-mix(in srgb, var(--flow-red) 16%, var(--flow-line)); border-radius: 15px; background: var(--flow-red-faint); padding: 14px; }.help-aside b { color: var(--flow-ink); font-size: 10px; }.help-aside p { margin: 4px 0 5px; color: var(--flow-muted); font-size: 9px; }.help-aside a { color: var(--flow-red); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 11px; font-weight: 800; text-decoration: none; }

.quick-add { margin-top: 11px; border: 1px solid var(--flow-line); border-radius: 15px; background: var(--flow-paper); padding: 14px; box-shadow: var(--flow-shadow-soft); }.quick-add__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.quick-add__head > div { display: grid; gap: 2px; }.quick-add__head b { color: var(--flow-ink); font-size: 10px; }.quick-add__head small { color: var(--flow-faint); font-size: 8px; }.quick-add__head > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 8px; color: var(--flow-red); background: var(--flow-red-soft); font-size: 15px; }.quick-add__input { display: flex; align-items: center; gap: 6px; border: 1px solid var(--flow-line-strong); border-radius: 10px; color: var(--flow-faint); background: var(--flow-paper-soft); padding: 0 9px; }.quick-add__input:focus-within { border-color: color-mix(in srgb, var(--flow-red) 50%, var(--flow-line)); }.quick-add__input svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }.quick-add__input input { width: 100%; height: 35px; border: 0; outline: 0; color: var(--flow-ink); background: transparent; font: inherit; font-size: 10px; }.quick-add__input input::placeholder { color: var(--flow-faint); }.quick-add__results { display: grid; max-height: 183px; margin-top: 7px; overflow-y: auto; }.quick-add-product { display: grid; grid-template-columns: 28px minmax(0, 1fr) 25px; align-items: center; gap: 8px; border-bottom: 1px solid var(--flow-line); padding: 8px 0; }.quick-add-product:last-child { border-bottom: 0; }.quick-add-product__mark { display: grid; width: 28px; height: 28px; place-items: center; overflow: hidden; border-radius: 9px; color: #fff; background: linear-gradient(145deg, #ee9b95, var(--flow-red)); font-size: 11px; font-weight: 800; }.quick-add-product__copy { display: grid; min-width: 0; gap: 2px; }.quick-add-product__copy b { overflow: hidden; color: var(--flow-ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.quick-add-product__copy small { overflow: hidden; color: var(--flow-faint); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.quick-add-product button { display: grid; width: 25px; height: 25px; place-items: center; border: 0; border-radius: 8px; color: var(--flow-red); background: var(--flow-red-soft); cursor: pointer; font-size: 17px; line-height: 1; transition: color .18s ease, background .18s ease; }.quick-add-product button:hover { color: #fff; background: var(--flow-red); }.quick-add-product button:disabled { opacity: .55; cursor: wait; }.search-empty { margin: 8px 0; color: var(--flow-muted); font-size: 10px; text-align: center; }

/* Payment + result */
.payment-page, .success-page { display: grid; min-height: calc(100vh - 74px); place-items: center; padding: 42px 20px; }.payment-card, .success-card { position: relative; width: min(100%, 474px); overflow: hidden; border: 1px solid var(--flow-line); border-radius: 24px; background: var(--flow-paper); box-shadow: var(--flow-shadow); padding: 32px; text-align: center; }.payment-card::before { position: absolute; top: -96px; right: -80px; width: 200px; height: 200px; border-radius: 50%; background: color-mix(in srgb, var(--flow-red) 9%, transparent); content: ""; }.payment-card__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }.demo-pill { display: inline-flex; border-radius: 99px; color: var(--flow-yellow); background: var(--flow-yellow-soft); padding: 5px 9px; font-size: 9px; font-weight: 800; }.payment-lock { color: var(--flow-green); font-size: 9px; font-weight: 750; }.payment-logo { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 auto 20px; }.payment-logo > span { display: grid; min-width: 65px; height: 29px; place-items: center; border-radius: 9px; color: #fff; background: var(--flow-red); font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .8px; }.payment-logo i { height: 20px; border-right: 1px solid var(--flow-line-strong); }.payment-logo b { color: var(--flow-ink); font-size: 11px; }.payment-card h1, .success-card h1 { position: relative; margin: 0 0 9px; color: var(--flow-ink); font-size: 24px; letter-spacing: -.055em; }.payment-card > p:not(.eyebrow), .success-card > p:not(.eyebrow) { position: relative; margin: 0; color: var(--flow-muted); font-size: 12px; line-height: 2; }.payment-order-ref { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 21px; border: 1px dashed var(--flow-line-strong); border-radius: 12px; color: var(--flow-muted); background: var(--flow-paper-soft); padding: 10px 12px; font-size: 10px; }.payment-order-ref b { color: var(--flow-ink-soft); font-family: "DM Sans", sans-serif; font-size: 11px; }.payment-amount { position: relative; display: grid; gap: 7px; margin: 12px 0 19px; border-radius: 15px; background: var(--flow-red-faint); padding: 17px; }.payment-amount span { color: var(--flow-muted); font-size: 10px; }.payment-amount strong { color: var(--flow-red); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 23px; }.payment-amount em { font-family: Vazirmatn, sans-serif; font-size: 9px; font-style: normal; }.payment-guarantees { display: flex; justify-content: center; gap: 13px; margin-top: 14px; color: var(--flow-faint); font-size: 9px; }.payment-back { margin-top: 21px; justify-content: center; }.success-card { padding: 38px 34px; }.success-icon { position: relative; display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 18px; border-radius: 22px; color: var(--flow-green); background: var(--flow-green-soft); box-shadow: 0 9px 18px color-mix(in srgb, var(--flow-green) 11%, transparent); font-size: 29px; font-weight: 700; }.success-confetti i { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--flow-red); transform: rotate(30deg); }.success-confetti i:nth-child(1) { top: 46px; right: 72px; }.success-confetti i:nth-child(2) { top: 76px; left: 64px; width: 5px; height: 5px; background: var(--flow-green); }.success-confetti i:nth-child(3) { top: 37px; left: 109px; width: 4px; height: 4px; background: var(--flow-yellow); }.success-confetti i:nth-child(4) { top: 117px; right: 41px; width: 4px; height: 4px; background: var(--flow-green); }.success-confetti i:nth-child(5) { top: 125px; left: 36px; width: 4px; height: 4px; background: var(--flow-red); }.success-order-code { display: grid; gap: 5px; margin: 22px 0 14px; border: 1px dashed color-mix(in srgb, var(--flow-red) 25%, var(--flow-line)); border-radius: 13px; background: var(--flow-paper-soft); padding: 13px; }.success-order-code span { color: var(--flow-muted); font-size: 9px; }.success-order-code b { color: var(--flow-ink); font-family: "DM Sans", monospace; font-size: 15px; letter-spacing: .04em; }.success-order-code small { color: var(--flow-faint); font-size: 9px; }.success-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }.success-summary span { display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; color: var(--flow-muted); background: var(--flow-paper-soft); padding: 6px 7px; font-size: 9px; }.success-summary i { color: var(--flow-green); font-style: normal; }.success-next { margin-top: 18px; border-radius: 12px; color: var(--flow-ink-soft); background: var(--flow-red-faint); padding: 11px; text-align: right; }.success-next > span { color: var(--flow-red); font-size: 9px; font-weight: 800; }.success-next p { margin: 3px 0 0; color: var(--flow-muted); font-size: 10px; line-height: 1.8; }.success-actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }.success-actions .text-link { font-size: 10px; }

/* Profile */
.profile-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 19px 21px; border: 1px solid var(--flow-line); border-radius: 20px; background: linear-gradient(135deg, var(--flow-paper) 0%, var(--flow-red-faint) 100%); box-shadow: var(--flow-shadow-soft); }.profile-avatar { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 18px; color: var(--flow-red); background: var(--flow-red-soft); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 20px; font-weight: 800; }.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }.profile-avatar--large { width: 68px; height: 68px; border-radius: 22px; font-size: 26px; }.profile-hero__copy { min-width: 0; }.profile-hero__copy h1 { margin: 0; color: var(--flow-ink); font-size: 24px; letter-spacing: -.055em; }.profile-hero__copy > p:not(.eyebrow) { margin: 7px 0 0; color: var(--flow-muted); font-size: 12px; }.profile-hero__action { margin-right: auto; }.profile-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }.profile-stat-grid article { display: flex; align-items: center; gap: 10px; border: 1px solid var(--flow-line); border-radius: 15px; background: var(--flow-paper); padding: 12px 14px; box-shadow: var(--flow-shadow-soft); }.profile-stat-grid__icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--flow-red); background: var(--flow-red-soft); font-size: 17px; }.profile-stat-grid article:nth-child(3) .profile-stat-grid__icon { color: var(--flow-green); background: var(--flow-green-soft); }.profile-stat-grid article > div { display: grid; gap: 2px; }.profile-stat-grid b { color: var(--flow-ink); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 15px; }.profile-stat-grid small { color: var(--flow-muted); font-size: 10px; }.profile-layout { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: 16px; }.profile-card, .addresses-section { padding: 21px; }.profile-card__head { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }.profile-card__head .eyebrow { margin-bottom: 5px; font-size: 10px; }.profile-card__head > span { flex: 0 0 auto; border-radius: 99px; color: var(--flow-muted); background: var(--flow-paper-soft); padding: 5px 7px; font-size: 9px; }.profile-form { margin-top: 0; }.profile-avatar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }.avatar-upload { position: relative; display: grid; gap: 4px; overflow: hidden; color: var(--flow-red); cursor: pointer; font-size: 11px; font-weight: 800; }.avatar-upload small { color: var(--flow-faint); font-size: 9px; font-weight: 500; }.avatar-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }.locked-input { position: relative; display: block; }.locked-input > i { position: absolute; z-index: 1; top: 50%; right: 12px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: var(--flow-green); background: var(--flow-green-soft); font-size: 9px; font-style: normal; transform: translateY(-50%); }.locked-input .form-input { padding-right: 37px; }.profile-card .secondary-button { width: fit-content; margin-top: 5px; }.profile-orders { display: grid; }.profile-order { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--flow-line); color: inherit; padding: 12px 0; text-decoration: none; transition: padding .18s ease, background .18s ease; }.profile-order:first-child { border-top: 0; }.profile-order:hover { margin: 0 -7px; border-radius: 11px; background: var(--flow-paper-soft); padding-right: 7px; padding-left: 7px; }.profile-order__date { display: grid; width: 36px; height: 36px; place-items: center; align-content: center; border-radius: 10px; color: var(--flow-red); background: var(--flow-red-soft); line-height: 1.1; }.profile-order__date b { font-family: "DM Sans", sans-serif; font-size: 13px; }.profile-order__date small { font-size: 8px; }.profile-order__details { display: grid; min-width: 0; gap: 3px; }.profile-order__details b { overflow: hidden; color: var(--flow-ink-soft); font-family: "DM Sans", monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.profile-order__details small { color: var(--flow-muted); font-size: 10px; }.profile-order__side { display: grid; justify-items: end; gap: 4px; }.profile-order em { border-radius: 99px; color: var(--flow-red); background: var(--flow-red-soft); padding: 4px 6px; font-size: 9px; font-style: normal; white-space: nowrap; }.profile-order em.status-paid, .profile-order em.status-completed, .profile-order em.status-ready { color: var(--flow-green); background: var(--flow-green-soft); }.profile-order__side > i { color: var(--flow-faint); font-size: 12px; font-style: normal; }.empty-inline { color: var(--flow-muted); font-size: 12px; text-align: center; padding: 25px 0; }.empty-inline--orders { display: grid; place-items: center; gap: 5px; }.empty-inline--orders > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--flow-red); background: var(--flow-red-soft); font-size: 17px; }.empty-inline--orders b { color: var(--flow-ink-soft); font-size: 12px; }.empty-inline--orders p { margin: 0; color: var(--flow-faint); font-size: 10px; }.empty-inline--orders a { color: var(--flow-red); font-size: 11px; font-weight: 800; text-decoration: none; }.addresses-section { margin-top: 16px; }.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }.section-heading .eyebrow { margin-bottom: 5px; font-size: 10px; }.section-heading > div > p:not(.eyebrow) { margin: 5px 0 0; color: var(--flow-muted); font-size: 11px; }.address-form { display: grid; gap: 13px; margin-bottom: 17px; border: 1px solid var(--flow-line); border-radius: 15px; background: var(--flow-paper-soft); padding: 16px; }.address-form__grid { grid-template-columns: .8fr 1.7fr repeat(3, .58fr); align-items: start; }.address-form .wide-field { grid-column: auto; }.address-form__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.default-check { display: flex !important; align-items: center; gap: 6px; color: var(--flow-muted) !important; font-size: 11px !important; }.check-input { accent-color: var(--flow-red); }.address-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }.address-card { position: relative; min-height: 165px; border: 1px solid var(--flow-line); border-radius: 14px; background: var(--flow-paper); padding: 14px; }.address-card--default { border-color: color-mix(in srgb, var(--flow-red) 38%, var(--flow-line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--flow-red) 5%, transparent); }.address-card__head { display: flex; align-items: center; gap: 6px; }.address-label { color: var(--flow-ink); font-size: 12px; font-weight: 800; }.default-tag { border-radius: 99px; color: var(--flow-red); background: var(--flow-red-soft); padding: 3px 6px; font-size: 9px; font-weight: 800; }.address-card > p { min-height: 42px; margin: 10px 0 3px; color: var(--flow-muted); font-size: 11px; line-height: 1.85; }.address-card > small { color: var(--flow-faint); font-size: 9px; }.address-card form { position: absolute; right: 14px; bottom: 12px; }.address-card button { border: 0; color: var(--flow-faint); background: transparent; padding: 0; cursor: pointer; font: inherit; font-size: 10px; transition: color .18s ease; }.address-card button:hover { color: var(--flow-red); }.empty-address { display: grid; min-height: 130px; place-items: center; align-content: center; grid-column: 1 / -1; gap: 4px; border: 1px dashed var(--flow-line-strong); border-radius: 14px; color: var(--flow-muted); text-align: center; }.empty-address > span { color: var(--flow-red); font-size: 22px; }.empty-address b { color: var(--flow-ink-soft); font-size: 12px; }.empty-address p { margin: 0; color: var(--flow-faint); font-size: 10px; }.profile-help { display: flex; align-items: center; gap: 10px; margin-top: 15px; border: 1px solid color-mix(in srgb, var(--flow-red) 15%, var(--flow-line)); border-radius: 15px; color: var(--flow-ink-soft); background: var(--flow-red-faint); padding: 13px 15px; }.profile-help > span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--flow-red); background: var(--flow-red-soft); font-size: 15px; font-weight: 800; }.profile-help div { display: grid; gap: 3px; }.profile-help b { font-size: 11px; }.profile-help p { margin: 0; color: var(--flow-muted); font-size: 10px; }.profile-help p a { color: var(--flow-red); font-family: "DM Sans", Vazirmatn, sans-serif; text-decoration: none; }.profile-help > a { margin-right: auto; color: var(--flow-red); font-size: 11px; font-weight: 800; text-decoration: none; }

/* Slightly roomier type on customer screens, especially contact and address details. */
.app-shell .stack-form > label, .app-shell .full-field, .app-shell .field-grid > label, .app-shell .address-form label { font-size: 12px; }
.footer-brand b { font-size: 15px; }.footer-brand small { font-size: 8px; }.footer-brand > p { font-size: 12px; }.domain-link { font-size: 12px; }.footer-section h2 { font-size: 14px; }.footer-section > a { font-size: 13px; }.footer-location > p { font-size: 12px; }.footer-map-actions a { font-size: 11px; }.store-footer__bottom { font-size: 10px; }

/* Address entry is intentionally a focused dialog instead of a persistent form. */
body.app-shell.modal-open { overflow: hidden; }
.address-modal[hidden] { display: none; }.address-modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }.address-modal.is-open { opacity: 1; pointer-events: auto; }.address-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(27, 19, 20, .46); cursor: default; backdrop-filter: blur(9px); }.address-modal__dialog { position: relative; width: min(100%, 720px); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid var(--flow-line); border-radius: 22px; color: var(--flow-ink); background: var(--flow-paper); box-shadow: 0 26px 80px rgba(25, 12, 13, .28); padding: 25px; transform: translateY(10px) scale(.985); transition: transform .2s ease; }.address-modal.is-open .address-modal__dialog { transform: translateY(0) scale(1); }.address-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }.address-modal__head .eyebrow { margin-bottom: 6px; }.address-modal__head h2 { margin: 0; color: var(--flow-ink); font-size: 20px; letter-spacing: -.045em; }.address-modal__head > div > p:not(.eyebrow) { margin: 6px 0 0; color: var(--flow-muted); font-size: 12px; line-height: 1.9; }.address-modal__close { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border: 1px solid var(--flow-line); border-radius: 12px; color: var(--flow-ink-soft); background: var(--flow-paper-soft); cursor: pointer; font-size: 25px; line-height: 1; transition: color .18s ease, border-color .18s ease, background .18s ease; }.address-modal__close:hover { border-color: color-mix(in srgb, var(--flow-red) 36%, var(--flow-line)); color: var(--flow-red); background: var(--flow-red-faint); }.address-form--modal { margin: 0; border-color: var(--flow-line); background: var(--flow-paper-soft); padding: 18px; }.address-form--modal .address-form__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.address-form--modal .wide-field { grid-column: span 2; }.address-form--modal .form-input { min-height: 50px; font-size: 14px; }.address-form--modal textarea.form-input { min-height: 104px; }.address-form--modal .address-form__bottom { margin-top: 2px; }.address-form--modal .default-check { font-size: 12px !important; }

@media (max-width: 640px) { .address-modal { align-items: end; padding: 12px; }.address-modal__dialog { max-height: calc(100dvh - 24px); border-radius: 20px; padding: 19px 16px; }.address-modal__head { gap: 10px; margin-bottom: 15px; }.address-modal__head h2 { font-size: 18px; }.address-modal__head > div > p:not(.eyebrow) { font-size: 11px; }.address-form--modal { padding: 14px; }.address-form--modal .address-form__grid, .address-form--modal .wide-field { grid-template-columns: 1fr; grid-column: auto; }.address-form--modal .address-form__bottom { align-items: stretch; flex-direction: column; }.address-form--modal .address-form__bottom .primary-button { width: 100%; } }

/* Error pages */
.empty-state { display: grid; min-height: calc(100vh - 74px); place-items: center; align-content: center; padding: 40px 20px; text-align: center; }.empty-state__number { position: relative; margin-bottom: -11px; color: color-mix(in srgb, var(--flow-red) 12%, var(--flow-canvas)); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: clamp(82px, 16vw, 154px); font-weight: 800; letter-spacing: -.11em; line-height: 1; user-select: none; }.empty-state h1 { margin: 0 0 8px; color: var(--flow-ink); font-size: 25px; letter-spacing: -.05em; }.empty-state > p:not(.eyebrow) { max-width: 350px; margin: 0 0 19px; color: var(--flow-muted); font-size: 12px; line-height: 1.9; }.empty-state__actions { display: flex; align-items: center; gap: 16px; }

@media (max-width: 980px) {
  .flow-header__inner, .checkout-page, .cart-page, .profile-page, .store-footer__inner, .store-footer__bottom { width: min(100% - 34px, 760px); }
  .cart-page__layout, .checkout-layout { grid-template-columns: 1fr; }.cart-summary-card, .checkout-side { position: static; }.cart-summary-card { max-width: 510px; }.checkout-side { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 11px; }.help-aside { margin: 0; }.cart-line-item { grid-template-columns: 59px minmax(140px, 1fr) auto auto 28px; }.cart-line-item__price { display: none; }
  .profile-layout { grid-template-columns: 1fr; }.address-form__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.address-form .wide-field { grid-column: span 2; }.store-footer__inner { grid-template-columns: 1.2fr 1fr; }.footer-location { grid-column: 1 / -1; }
  .auth-page { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-card-wrap { min-height: calc(100vh - 74px); }
}

@media (max-width: 640px) {
  .flow-header__inner { width: calc(100% - 28px); min-height: 66px; gap: 10px; }.flow-brand__mark { width: 35px; height: 35px; }.flow-brand__copy strong { font-size: 13px; }.flow-header__actions { gap: 6px; }.theme-toggle { width: 36px; min-width: 36px; padding: 0; }.theme-toggle span, .flow-logout { display: none; }.flow-cart-link { width: 36px; height: 36px; }
  .checkout-page, .cart-page, .profile-page { width: calc(100% - 28px); padding: 27px 0 33px; }.flow-page-heading { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 18px; }.flow-page-heading h1 { font-size: 25px; }.checkout-steps { max-width: 100%; margin-bottom: 19px; }.checkout-steps li { gap: 5px; font-size: 8px; }.checkout-steps li:not(:last-child)::after { right: 65px; }.checkout-steps li > span { width: 21px; height: 21px; font-size: 8px; }
  .cart-table-card, .cart-summary-card, .flow-card, .order-aside-card, .profile-card, .addresses-section, .profile-hero { border-radius: 16px; }.cart-table-card__head, .flow-card, .order-aside-card, .profile-card, .addresses-section { padding: 16px; }.cart-line-item { grid-template-columns: 48px minmax(0, 1fr) auto 24px; gap: 9px; padding: 14px 16px; }.cart-line-item__media { width: 48px; height: 48px; border-radius: 13px; }.cart-line-item__total { min-width: auto; }.cart-line-item__total > span { display: none; }.cart-line-item__total b { font-size: 9px; }.cart-line-item__total small { display: none; }.cart-quantity { grid-column: 2 / 4; width: max-content; margin-top: -7px; }.cart-remove { grid-column: 4; grid-row: 1 / span 2; align-self: center; }.cart-table-card__foot { align-items: start; flex-direction: column; padding: 13px 16px; }
  .checkout-side { grid-template-columns: 1fr; }.choice-grid.two, .field-grid.two, .field-grid.three { grid-template-columns: 1fr; }.choice-card { min-height: 70px; }.flow-card__head h2 { font-size: 14px; }.delivery-fields { max-height: 410px; }.help-aside { margin-top: 10px; }.cart-summary-card { padding: 17px; }
  .payment-page, .success-page { min-height: calc(100vh - 66px); padding: 26px 14px; }.payment-card, .success-card { border-radius: 19px; padding: 25px 19px; }.success-actions { flex-direction: column; gap: 15px; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; padding: 16px; }.profile-avatar--large { width: 54px; height: 54px; border-radius: 18px; font-size: 20px; }.profile-hero__copy h1 { font-size: 20px; }.profile-hero__action { width: 100%; margin: 4px 0 0; }.profile-stat-grid { gap: 8px; }.profile-stat-grid article { gap: 7px; padding: 10px 8px; }.profile-stat-grid__icon { width: 28px; height: 28px; border-radius: 9px; font-size: 14px; }.profile-stat-grid b { font-size: 11px; }.profile-stat-grid small { font-size: 8px; }.profile-card__head { align-items: start; }.profile-card__head > span { font-size: 7px; }.section-heading { align-items: start; flex-direction: column; }.section-heading .secondary-button { width: 100%; }.address-form__grid, .address-form .wide-field { grid-template-columns: 1fr; grid-column: auto; }.address-form__bottom { align-items: stretch; flex-direction: column; }.address-form__bottom .primary-button { width: 100%; }.address-grid { grid-template-columns: 1fr; }.profile-help { align-items: start; flex-wrap: wrap; }.profile-help > a { width: 100%; margin-right: 39px; }
  .store-footer { margin-top: 21px; }.store-footer__inner, .store-footer__bottom { width: calc(100% - 32px); }.store-footer__inner { grid-template-columns: 1fr; gap: 24px; padding: 27px 0 23px; }.footer-location { grid-column: auto; }.store-footer__bottom { align-items: start; flex-direction: column; gap: 4px; padding: 13px 0; line-height: 1.7; }
  .toast-stack { top: 10px; right: 10px; left: 10px; }.toast { max-width: none; }.auth-card-wrap { padding: 29px 20px; }.back-link { margin-bottom: 33px; }.auth-card h1 { font-size: 26px; }
}

/* Customer-flow polish: clear touch targets, familiar SVG icons and a compact app-like rhythm. */
.flow-account-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 39px; border: 1px solid var(--flow-line); border-radius: 11px; color: var(--flow-ink-soft); background: var(--flow-paper); padding: 0 10px; font-size: 11px; font-weight: 800; text-decoration: none; transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease; }
.flow-account-link svg, .flow-logout button svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-account-link:hover, .flow-logout button:hover { border-color: color-mix(in srgb, var(--flow-red) 40%, var(--flow-line)); color: var(--flow-red); background: var(--flow-red-faint); transform: translateY(-1px); }
.flow-logout button { gap: 6px; }

.profile-hero { position: relative; overflow: hidden; min-height: 112px; }.profile-hero::after { position: absolute; left: -34px; bottom: -67px; width: 170px; height: 170px; border: 1px solid color-mix(in srgb, var(--flow-red) 13%, transparent); border-radius: 50%; content: ""; pointer-events: none; }.profile-hero__copy { position: relative; z-index: 1; }.profile-hero__actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-right: auto; }.profile-hero__action, .profile-hero__cart { margin: 0; white-space: nowrap; }.profile-hero__cart svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-stat-grid > .profile-stat-card { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid var(--flow-line); border-radius: 15px; color: inherit; background: var(--flow-paper); box-shadow: var(--flow-shadow-soft); padding: 12px 14px; text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }.profile-stat-grid > .profile-stat-card:hover { border-color: color-mix(in srgb, var(--flow-red) 30%, var(--flow-line)); box-shadow: var(--flow-shadow); transform: translateY(-2px); }.profile-stat-grid__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.profile-stat-grid__icon--cart { color: var(--flow-green); background: var(--flow-green-soft); }.profile-stat-card > div { display: grid; min-width: 0; gap: 2px; }.profile-stat-card > i { margin-right: auto; color: var(--flow-faint); font-size: 13px; font-style: normal; transition: color .18s ease, transform .18s ease; }.profile-stat-card:hover > i { color: var(--flow-red); transform: translateX(-2px); }
.profile-card { scroll-margin-top: 20px; }.profile-card__head > span { white-space: nowrap; }.profile-order { min-height: 61px; }.profile-order__details small [dir="ltr"] { font-family: "DM Sans", Vazirmatn, sans-serif; font-variant-numeric: tabular-nums; }.address-add-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }.address-card__delete { display: block; }.address-card__delete button { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; border-radius: 8px; padding: 0 5px; }.address-card__delete button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.address-card__delete button:hover { color: var(--flow-red); background: var(--flow-red-faint); }.profile-help__icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--flow-red); background: var(--flow-red-soft); }.profile-help__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.profile-help > .profile-help__icon { font-size: 0; }

.cart-line-item { transition: background .18s ease; }.cart-line-item:hover { background: var(--flow-paper-soft); }.cart-line-item__copy p { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }.cart-stock-note { color: var(--flow-faint); font-size: 9px; white-space: nowrap; }.cart-quantity output { display: grid; width: 25px; place-items: center; color: var(--flow-ink); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; text-align: center; }.cart-quantity button:disabled { color: var(--flow-faint); background: var(--flow-paper-soft); cursor: not-allowed; opacity: .58; }.cart-remove button { width: auto; min-width: 29px; gap: 3px; padding: 0 5px; font-size: 10px; font-weight: 750; }.cart-remove button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.cart-summary-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.cart-summary-card__rows b small, .order-summary b small { font-family: Vazirmatn, sans-serif; font-size: 8px; font-weight: 600; }.secure-note > span { display: grid; place-items: center; }.secure-note > span svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.compact-cart-item strong { display: inline-flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }.compact-cart-item strong small { font-family: Vazirmatn, sans-serif; font-size: 7px; font-weight: 600; }.quick-add-product button > span { display: block; line-height: 1; }.quick-add-product button.is-added { color: #fff; background: var(--flow-green); }.quick-add-product button.is-at-limit { color: var(--flow-faint); background: var(--flow-paper-soft); cursor: not-allowed; }.quick-add-product.is-updating { opacity: .66; }

@media (max-width: 640px) {
  .flow-header__actions { gap: 5px; }.flow-account-link, .flow-logout button { width: 36px; min-width: 36px; height: 36px; padding: 0; }.flow-account-link span, .flow-logout button span { display: none; }.flow-logout { display: block; }
  .profile-hero { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }.profile-hero__copy .eyebrow { margin-bottom: 5px; }.profile-hero__copy > p:not(.eyebrow) { margin-top: 4px; font-size: 11px; line-height: 1.75; }.profile-hero__actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); width: 100%; gap: 8px; margin: 3px 0 0; }.profile-hero__actions .primary-button, .profile-hero__actions .secondary-button { width: 100%; min-height: 44px; padding: 0 10px; font-size: 12px; }.profile-stat-grid { gap: 7px; }.profile-stat-grid > .profile-stat-card { gap: 6px; min-width: 0; padding: 10px 8px; }.profile-stat-grid__icon { width: 29px; height: 29px; border-radius: 9px; }.profile-stat-grid__icon svg { width: 15px; height: 15px; }.profile-stat-card > i { display: none; }.profile-stat-grid b { font-size: 12px; }.profile-stat-grid small { font-size: 9px; line-height: 1.4; }.profile-card__head > span { font-size: 8px; }.profile-order { grid-template-columns: 35px minmax(0, 1fr) auto; padding: 13px 0; }.profile-order__details small { font-size: 10px; }.profile-order__side > i { display: none; }.address-add-button { min-height: 47px; }.address-card { min-height: 158px; }.address-card > p { font-size: 12px; }.address-card__delete button { min-height: 31px; padding: 0 7px; font-size: 11px; }.profile-help > .profile-help__icon { width: 32px; height: 32px; }.profile-help b { font-size: 12px; }.profile-help p { font-size: 11px; }
  .cart-line-item { grid-template-columns: 48px minmax(0, 1fr) auto 30px; }.cart-line-item__copy h3 { font-size: 12px; }.cart-line-item__copy p { font-size: 10px; }.cart-stock-note { font-size: 8px; }.cart-quantity { min-height: 33px; }.cart-quantity button { width: 31px; height: 32px; }.cart-quantity output { width: 27px; font-size: 12px; }.cart-remove button { min-width: 29px; height: 31px; padding: 0; }.cart-remove button span { display: none; }.cart-summary-card__total strong { font-size: 22px; }
  .choice-card { min-height: 75px; padding: 12px 34px 12px 12px; }.choice-card b { font-size: 13px; }.choice-card small { font-size: 10px; }.order-aside-card__head h2 { font-size: 15px; }.compact-cart-item { grid-template-columns: 37px minmax(0, 1fr) auto; }.compact-cart-item strong { font-size: 11px; }.quick-add { padding: 15px; }.quick-add__head b { font-size: 12px; }.quick-add__head small { font-size: 9px; }.quick-add__input input { height: 41px; font-size: 12px; }.quick-add-product { grid-template-columns: 31px minmax(0, 1fr) 31px; padding: 9px 0; }.quick-add-product__mark { width: 31px; height: 31px; }.quick-add-product__copy b { font-size: 11px; }.quick-add-product__copy small { font-size: 9px; }.quick-add-product button { width: 31px; height: 31px; }
}

@media (max-width: 370px) {
  .flow-brand__copy small { display: none; }.flow-brand__copy strong { font-size: 12px; }.flow-header__inner { gap: 6px; }.flow-header__actions { gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell *, .app-shell *::before, .app-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Premium order flow ------------------------------------------------------
   These final rules intentionally override the compact legacy flow above.
   They keep every server action intact while making state and progress easier
   to understand on both touch screens and desktop displays. */
.cart-line-item__media,
.cart-line-item__copy h3 a,
.compact-cart-item b a,
.quick-add-product__mark,
.quick-add-product__copy a { color: inherit; text-decoration: none; }
.cart-line-item__media { transition: transform .2s ease, box-shadow .2s ease; }
.cart-line-item__media:hover { box-shadow: 0 9px 20px color-mix(in srgb, var(--flow-red) 16%, transparent); transform: translateY(-2px) rotate(-1deg); }
.cart-line-item__copy h3 a:hover,
.compact-cart-item b a:hover,
.quick-add-product__copy a:hover { color: var(--flow-red); }
.cart-summary-card__total > small { color: var(--flow-faint); font-size: 9px; line-height: 1.7; }

.checkout-steps { position: relative; }
.checkout-steps li > span { transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.checkout-steps li.is-active > span { animation: flow-step-pulse 2.6s ease-in-out infinite; }
.choice-card:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--flow-red) 22%, transparent); outline-offset: 3px; }
.choice-card.is-selected { transform: translateY(-1px); }
.choice-card.is-selected > i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--flow-red) 10%, transparent); }
.payment-safety p { margin: 0; line-height: 1.7; }
.payment-safety p b { color: var(--flow-ink-soft); }
.flow-card { position: relative; overflow: hidden; }
.flow-card::after { position: absolute; top: 0; right: 0; width: 3px; height: 0; border-radius: 99px; background: linear-gradient(var(--flow-red), color-mix(in srgb, var(--flow-red) 30%, transparent)); content: ""; transition: height .3s ease; }
.flow-card:focus-within::after { height: 100%; }
.checkout-main .form-input[aria-invalid="true"],
.checkout-main .form-input:invalid:not(:placeholder-shown) { border-color: color-mix(in srgb, var(--flow-red) 60%, var(--flow-line)); }
.order-summary [data-order-total] { display: inline-flex; align-items: baseline; gap: 3px; }
.order-summary [data-order-total].is-updating { animation: flow-total-pop .32s cubic-bezier(.2,.8,.2,1); }
.button-loader { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; }
.primary-button.is-loading { cursor: wait; pointer-events: none; }
.primary-button.is-loading .button-loader { display: inline-block; animation: flow-spin .72s linear infinite; }
.primary-button.is-loading > b { display: none; }
.pay-button { min-height: 50px; }

.payment-mini-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 24px; padding: 0; list-style: none; }
.payment-mini-steps li { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--flow-faint); font-size: 8px; font-weight: 750; }
.payment-mini-steps li:not(:last-child)::after { position: absolute; z-index: -1; top: 11px; right: 58%; width: 84%; height: 1px; background: var(--flow-line-strong); content: ""; }
.payment-mini-steps li > span { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--flow-line-strong); border-radius: 50%; color: var(--flow-faint); background: var(--flow-paper); font-family: "DM Sans", Vazirmatn, sans-serif; font-size: 8px; }
.payment-mini-steps li.is-done { color: var(--flow-green); }
.payment-mini-steps li.is-done > span { border-color: var(--flow-green); color: #fff; background: var(--flow-green); }
.payment-mini-steps li.is-done::after { background: var(--flow-green); }
.payment-mini-steps li.is-active { color: var(--flow-red); }
.payment-mini-steps li.is-active > span { border-color: var(--flow-red); color: #fff; background: var(--flow-red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-red) 10%, transparent); }
.payment-submit { min-height: 51px; }
.success-icon { isolation: isolate; }
.success-icon::after { position: absolute; z-index: -1; inset: -8px; border: 1px solid color-mix(in srgb, var(--flow-green) 23%, transparent); border-radius: 27px; content: ""; }

@media (prefers-reduced-motion: no-preference) {
  .cart-line-item { animation: flow-item-in .38s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--item-index, 0) * 45ms); }
  .checkout-main .flow-card { animation: flow-card-in .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--flow-index, 0) * 70ms); }
  .payment-card { animation: flow-card-in .48s cubic-bezier(.2,.8,.2,1) both; }
  .success-card { animation: flow-success-in .55s cubic-bezier(.16,.88,.24,1) both; }
  .success-icon { animation: flow-check-in .62s .12s cubic-bezier(.16,.9,.25,1.25) both; }
  .success-icon::after { animation: flow-check-ring .85s .25s ease-out both; }
  .success-confetti i { animation: flow-confetti 1.6s .2s ease-in-out infinite alternate; }
  .success-confetti i:nth-child(2), .success-confetti i:nth-child(4) { animation-delay: .42s; }
  .success-confetti i:nth-child(3), .success-confetti i:nth-child(5) { animation-delay: .66s; }
}

@keyframes flow-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flow-item-in { from { opacity: 0; transform: translateX(7px); } to { opacity: 1; transform: translateX(0); } }
@keyframes flow-step-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-red) 10%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--flow-red) 3%, transparent); } }
@keyframes flow-total-pop { 50% { transform: scale(1.055); color: var(--flow-green); } }
@keyframes flow-spin { to { transform: rotate(1turn); } }
@keyframes flow-success-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes flow-check-in { from { opacity: 0; transform: scale(.62) rotate(-9deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes flow-check-ring { from { opacity: .85; transform: scale(.7); } to { opacity: 0; transform: scale(1.35); } }
@keyframes flow-confetti { from { transform: translateY(0) rotate(18deg); } to { transform: translateY(5px) rotate(48deg); } }

@media (max-width: 640px) {
  .payment-mini-steps { margin-bottom: 20px; }
  .payment-mini-steps li:not(:last-child)::after { width: 78%; }
  .cart-summary-card__total > small { font-size: 10px; }
  .payment-guarantees { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-steps li.is-active > span,
  .primary-button.is-loading .button-loader,
  .success-confetti i,
  .success-icon,
  .success-icon::after { animation: none !important; }
}

/* ══ کد تأیید، خانه‌خانه ══════════════════════════════════════════════
   کاربر گفت یک اینپوت بلند نمی‌خواهد و نمی‌خواهد بعدش دکمهٔ تأیید بزند.
   شش خانه، و خانهٔ آخر که پر شد خودش می‌سنجد. */
.otp-boxes { position: relative; display: flex; width: 100%; min-width: 0; gap: 9px; direction: ltr; margin-top: 4px; }
.otp-box {
  /* پهنا صفر و flex-basis صفر: عرض واقعی را تقسیم فضا می‌دهد، نه پهنای
     ذاتی اینپوت. بدون این، ستون به اندازهٔ شش اینپوت بیست‌حرفی باز می‌شود. */
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 58px;
  border: 1px solid var(--flow-line-strong);
  border-radius: 13px;
  background: var(--flow-paper);
  color: var(--flow-ink);
  font-family: "DM Sans", monospace;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.otp-box:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--flow-red) 55%, var(--flow-line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-red) 12%, transparent);
  transform: translateY(-1px);
}
.otp-boxes.is-checking .otp-box { border-color: color-mix(in srgb, var(--flow-red) 40%, var(--flow-line)); animation: otp-pulse 1s ease-in-out infinite; }
.otp-boxes.is-checking .otp-box:nth-child(2) { animation-delay: .08s; }
.otp-boxes.is-checking .otp-box:nth-child(3) { animation-delay: .16s; }
.otp-boxes.is-checking .otp-box:nth-child(4) { animation-delay: .24s; }
.otp-boxes.is-checking .otp-box:nth-child(5) { animation-delay: .32s; }
.otp-boxes.is-checking .otp-box:nth-child(6) { animation-delay: .40s; }
@keyframes otp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .48; }
}
.otp-boxes.is-good .otp-box {
  border-color: color-mix(in srgb, var(--flow-green) 60%, var(--flow-line));
  background: var(--flow-green-soft);
  color: var(--flow-green);
}
.otp-boxes.is-wrong { animation: otp-shake .42s cubic-bezier(.36, .07, .19, .97); }
.otp-boxes.is-wrong .otp-box { border-color: color-mix(in srgb, var(--flow-red) 62%, var(--flow-line)); }
@keyframes otp-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}
/* نشان کوچک وضعیت، گوشهٔ خانه‌ها */
.otp-state { position: absolute; inset-inline-end: -4px; inset-block-start: -10px; font-size: 11px; }
.otp-boxes.is-good .otp-state::after { content: "✓"; color: var(--flow-green); font-weight: 800; }
.otp-boxes.is-checking .otp-state::after { content: "…"; color: var(--flow-muted); }

@media (max-width: 480px) {
  .otp-boxes { gap: 6px; }
  .otp-box { height: 50px; font-size: 20px; border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .otp-boxes.is-checking .otp-box, .otp-boxes.is-wrong { animation: none; }
}

/* ══ حساب کاربری، مینمال ══════════════════════════════════════════════
   کاربر گفت پروفایل را «خیلی مینمال‌تر و ساده‌تر، تمیز و حرفه‌ای» بکنم.
   پس تزیین برداشته شد: یک سربرگ، سه عدد، و بقیه همان کارت‌های کار. */
.profile-page--min { max-width: 1080px; margin: 0 auto; padding: 34px 20px 60px; }

.pmin-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--flow-line);
}
.pmin-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--flow-red-soft);
  color: var(--flow-red);
  font-size: 22px;
  font-weight: 800;
}
.pmin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pmin-who { min-width: 0; }
.pmin-who h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; color: var(--flow-ink); }
.pmin-who p { margin: 3px 0 0; color: var(--flow-muted); font-family: "DM Sans", sans-serif; font-size: 12px; }
.pmin-actions { margin-inline-start: auto; display: flex; gap: 8px; }
.pmin-ghost, .pmin-solid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.pmin-ghost { border: 1px solid var(--flow-line-strong); color: var(--flow-ink-soft); background: var(--flow-paper); }
.pmin-ghost:hover { border-color: var(--flow-red); color: var(--flow-red); }
.pmin-ghost b {
  min-width: 20px;
  border-radius: 999px;
  background: var(--flow-red-soft);
  color: var(--flow-red);
  padding: 1px 6px;
  font-size: 11px;
  text-align: center;
}
.pmin-solid { border: 1px solid var(--flow-red); background: var(--flow-red); color: #fff; }
.pmin-logout { margin: 0; display: flex; }
.pmin-ghost--out { flex: 1; justify-content: center; color: var(--flow-red); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pmin-ghost--out svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pmin-solid:hover { background: color-mix(in srgb, var(--flow-red) 86%, #000); }

.pmin-facts { display: flex; gap: 30px; padding: 18px 0 26px; }
.pmin-facts a { text-decoration: none; color: inherit; display: grid; gap: 2px; }
.pmin-facts b { font-size: 26px; font-weight: 800; color: var(--flow-ink); letter-spacing: -.04em; }
.pmin-facts span { font-size: 11.5px; color: var(--flow-muted); font-weight: 700; }
.pmin-facts a:hover b { color: var(--flow-red); }

.pmin-help { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--flow-line); }
.pmin-help p { margin: 0; color: var(--flow-muted); font-size: 12px; }
.pmin-help a { color: var(--flow-red); font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  .pmin-head { flex-wrap: wrap; }
  .pmin-actions { width: 100%; margin-inline-start: 0; }
  .pmin-actions a, .pmin-logout { flex: 1; justify-content: center; }
  .pmin-facts { justify-content: space-between; gap: 12px; }
}

/* ══ ورود ═════════════════════════════════════════════════════════════
   دو ستون: راست حال‌وهوای مغازه، چپ خودِ کار. روی موبایل ستون تصویری
   جمع می‌شود -- کسی که با گوشی می‌آید عجله دارد. */
.signin {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(380px, 1.12fr);
  min-height: calc(100vh - 74px);
  border-bottom: 1px solid var(--flow-line);
}

.signin__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 60px);
  color: #fff;
  background: linear-gradient(150deg, #c6333d 0%, #a51d2d 52%, #7a1119 100%);
}
.signin__glow {
  position: absolute;
  inset-block-start: -30%;
  inset-inline-end: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 62%);
}
.signin__brand { position: relative; z-index: 1; }
.signin__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(6px);
}
.signin__mark svg { width: 34px; height: 34px; }
.signin__brand strong { display: block; font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.signin__brand small { display: block; margin-top: 4px; font-family: "DM Sans", sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px; color: rgba(255, 255, 255, .72); }

.signin__points { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.signin__points li {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}
.signin__points b { display: block; font-size: 13.5px; font-weight: 800; }
.signin__points span { display: block; margin-top: 3px; font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.signin__foot { position: relative; z-index: 1; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .66); }

.signin__panel { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); place-items: center; padding: clamp(26px, 4vw, 56px); background: var(--flow-canvas); }
.signin__form { width: min(100%, 420px); min-width: 0; }
.signin__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 34px;
  color: var(--flow-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: gap .18s ease, color .18s ease;
}
.signin__back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signin__back:hover { gap: 11px; color: var(--flow-red); }
.signin__eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--flow-red); font-size: 11px; font-weight: 800; }
.signin__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.signin__form h1 { margin: 12px 0 0; font-size: clamp(24px, 2.6vw, 33px); font-weight: 900; letter-spacing: -.05em; color: var(--flow-ink); }
.signin__hint { margin: 12px 0 0; font-size: 13px; line-height: 2.1; color: var(--flow-muted); }

.signin__fields { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 28px; }
.signin__fields > label { font-size: 11.5px; font-weight: 800; color: var(--flow-ink-soft); }
.signin__phone {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid var(--flow-line-strong);
  border-radius: 14px;
  background: var(--flow-paper);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.signin__phone:focus-within {
  border-color: var(--flow-red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-red) 11%, transparent);
}
.signin__phone.has-error { border-color: color-mix(in srgb, var(--flow-red) 65%, var(--flow-line)); }
.signin__code {
  padding: 0 14px;
  border-inline-end: 1px solid var(--flow-line);
  color: var(--flow-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 56px;
}
.signin__phone .form-input,
.signin__phone input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--flow-ink);
  font-family: "DM Sans", monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
  direction: ltr;
  text-align: left;
  padding-inline: 14px 44px;
  outline: none;
}
.signin__phone-icon {
  position: absolute;
  inset-inline-end: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--flow-faint);
  stroke-width: 1.7;
  pointer-events: none;
}
.signin__error { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--flow-red); }
.signin__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--flow-red);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.signin__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signin__go:hover {
  background: color-mix(in srgb, var(--flow-red) 88%, #000);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--flow-red) 26%, transparent);
}
.signin__trust {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--flow-green-soft);
}
.signin__trust > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #fff; color: var(--flow-green); font-size: 12px; }
/* نشان‌ها SVG‌اند، نه نویسهٔ ⌁: آن نویسه در بیشتر فونت‌ها مربع خالی بود. */
.signin__trust > span svg,
.signin__demo > span svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.signin__demo > span { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 6px; background: color-mix(in srgb, var(--flow-yellow, #b8862b) 16%, transparent); }
.signin__trust p { margin: 0; font-size: 11px; color: var(--flow-green); font-weight: 700; }
.signin__terms { margin: 14px 0 0; font-size: 10.5px; line-height: 1.9; color: var(--flow-faint); }

@media (max-width: 880px) {
  .signin { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .signin__stage { display: none; }
  .signin__panel { min-width: 0; min-height: calc(100vh - 74px); padding: 26px 20px; }
}

/* ── صفحهٔ کد: هم‌خانوادهٔ صفحهٔ ورود ────────────────────────────────── */
.signin__phone-shown {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--flow-red-faint, #fdf2f3);
  color: var(--flow-red);
  font-family: "DM Sans", monospace;
  font-weight: 700;
  letter-spacing: .04em;
}
.signin__demo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--flow-yellow, #b8862b) 30%, var(--flow-line));
  border-radius: 11px;
  background: var(--flow-yellow-soft, #fdf8ec);
  color: var(--flow-yellow, #8a6b1f);
  font-size: 11.5px;
}
.signin__demo b { margin-inline-start: auto; font-family: "DM Sans", monospace; font-size: 14px; }
.signin__resend { margin-top: 20px; }
.signin__resend p { margin: 0; font-size: 11.5px; color: var(--flow-muted); }
.signin__resend button {
  border: 0;
  background: transparent;
  color: var(--flow-red);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}
.signin__resend button:hover { text-decoration: underline; }
/* جعبه‌های کد داخل ستون ورود، پهنای کامل بگیرند. */
.signin__fields .otp-boxes { margin-top: 2px; }
.signin__fields .otp-box { height: 60px; font-size: 25px; border-radius: 14px; }
/* «گوشت امین شعبهٔ دیگری ندارد» -- وسط نوار پایین پاورقی، قرمز امین. */
.store-footer__bottom { flex-wrap: wrap; gap: 4px 14px; }
.store-footer__bottom b { color: var(--flow-red); font-weight: 800; }
