/* Feed · cart and checkout: white sheets on a sun-yellow field, big tap targets, a sticky bar on phones. */
.order { padding: 8px 16px 32px; }
.order__wrap { display: grid; gap: 14px; max-width: 1120px; margin-inline: auto; }
.order__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.order__t { font: 800 clamp(36px, 10vw, 56px)/1 var(--f-d); letter-spacing: -.04em; outline: none; }
.order__sub { font-size: 17px; font-weight: 500; }
:root[lang="ar"] .order__t { line-height: 1.3; }
.card2 { padding: 18px 16px; border-radius: var(--r-m); display: flex; flex-direction: column; gap: 12px; }
.card2 h2 { font: 800 22px/1.1 var(--f-d); letter-spacing: -.02em; }
.card2 :focus-visible, .sheet :focus-visible { outline-color: #2448d8; }

/* cart lines */
.lines { display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "art info price" "ctrl ctrl ctrl"; gap: 10px 12px; padding: 12px; border-radius: var(--r-m); }
.line.is-new { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.02); } }
.line__art { grid-area: art; width: 84px; height: 84px; border-radius: 16px; background: var(--field); overflow: hidden; }
.line__art img, .ckl__art img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.line__art img.is-on, .ckl__art img.is-on { opacity: 1; }
.line__info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line__n { font: 800 18px/1.15 var(--f-d); letter-spacing: -.015em; }
.line__n a, .ckl__name { display: inline-block; padding-block: 12px; margin-block: -12px; text-decoration: none; }
.line__n a:hover { text-decoration: underline; }
.line__by { font-size: 15px; color: var(--muted); }
.line__spec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; margin-top: 2px; }
.line__col { display: inline-flex; align-items: center; gap: 6px; }
.line__sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(23, 18, 28, .3); }
.line__price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.line__price .pr { flex-direction: column; align-items: flex-end; gap: 0; }
.line__price .pr__was { color: var(--muted); font-size: 13px; }
.line__each { font-size: 13px; color: var(--muted); }
.line__ctrl { grid-area: ctrl; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper .ico { width: 20px; height: 20px; }
.line__rm { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 999px; background: #f3f1f6; font-weight: 700; }
.line__rm .ico { width: 20px; height: 20px; }

/* summary */
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1.5px solid var(--line); }
.rows dt small { display: block; font-size: 13px; color: var(--muted); }
.rows dd { font-weight: 600; text-align: end; }
.rows .is-save dd { color: #0b7a4e; }
.rows .is-total { border-bottom: 0; font-size: 19px; }
.rows .is-total dt, .rows .is-total dd { font: 800 20px/1.2 var(--f-d); }
.sum__note { font-size: 15px; color: var(--muted); }
.sum__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sum__trust { display: grid; gap: 10px; font-size: 14px; }
.sum__trust li, .next li { display: flex; gap: 10px; align-items: flex-start; }
.next ol { display: grid; gap: 12px; }
.next li > span { display: flex; flex-direction: column; }
.next li span span { font-size: 14px; color: var(--muted); }
.rates { font-size: 13px; color: var(--muted); }

/* the phone bar */
.cbar {
  position: fixed; z-index: 30; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + var(--sab)); background: var(--paper); color: var(--ink); box-shadow: 0 -8px 24px rgba(23, 18, 28, .2);
}
.cbar__t { display: flex; flex-direction: column; }
.cbar__l { font-size: 13px; color: var(--muted); }
.cbar__t b { font: 800 20px/1.1 var(--f-d); }
.cbar .btn { margin-inline-start: auto; }
.has-cbar { --toast-lift: 76px; }
.has-cbar .footmin { padding-bottom: calc(100px + var(--sab)); }

/* empty */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 1120px; margin-inline: auto; }
.empty__feed { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 46%); gap: 12px; overflow-x: auto; width: calc(100% + 32px); margin-inline: -16px; padding: 4px 16px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.empty__feed .card { box-shadow: 0 0 0 2px rgba(23, 18, 28, .15); }

/* checkout form */
.err { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-weight: 600; outline: none; }
.ck-h { display: flex; align-items: center; gap: 10px; }
.ck-n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #ffd23f; font: 800 16px/1 var(--f-d); }
.ck-help { font-size: 15px; color: var(--muted); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld__label { font-weight: 700; font-size: 15px; }
.fld__opt { font-weight: 500; color: var(--muted); }
.fld__in {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid #c9c3d0; border-radius: 16px; background: var(--paper); font-size: 17px;
}
.fld__in:focus { outline: 3px solid #2448d8; outline-offset: 1px; border-color: var(--ink); }
.fld__ta { min-height: 80px; resize: vertical; }
.fld__box { display: flex; align-items: stretch; }
.fld__pre { display: grid; place-items: center; padding: 0 12px; border: 2px solid #c9c3d0; border-inline-end: 0; border-radius: 16px 0 0 16px; background: #f3f1f6; font-weight: 700; }
.fld__box .fld__in { border-radius: 0 16px 16px 0; }
.fld__sel { position: relative; }
.fld__sel select { appearance: none; padding-inline-end: 44px; }
.fld__sel .ico { position: absolute; inset-inline-end: 14px; top: 50%; margin-top: -11px; pointer-events: none; }
.fld__help { font-size: 15px; color: var(--muted); }
.fld__err { display: flex; gap: 6px; align-items: center; color: #b0103a; font-weight: 600; font-size: 14px; }
.fld__err .ico { width: 18px; height: 18px; }
.fld.is-err .fld__in, .fld.is-err .fld__pre { border-color: #b0103a; }
.ck-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.ck-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.ck-check a { font-weight: 700; }
.pod { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.ck-lines { display: flex; flex-direction: column; gap: 10px; }
.ckl { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ckl__art { width: 56px; height: 56px; border-radius: 12px; background: var(--field); overflow: hidden; }
.ckl__txt { display: flex; flex-direction: column; min-width: 0; }
.ckl__name { font-weight: 700; }
.ckl__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ckl__price .pr { flex-direction: column; align-items: flex-end; gap: 0; }
.ckl__price .pr__was { font-size: 12.5px; color: var(--muted); }

/* confirmation */
.done { display: grid; gap: 12px; max-width: 1120px; margin-inline: auto; }
.done__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #c4f236; }
.done__ico .ico { width: 30px; height: 30px; }
.done__num { display: flex; flex-direction: column; }
.done__num b { font: 800 34px/1.1 var(--f-d); letter-spacing: -.02em; }
.done__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
address { font-style: normal; line-height: 1.6; }

@media (min-width: 1024px) {
  .order { padding: 16px 40px 56px; }
  .order__wrap { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 20px; }
  .sum { position: sticky; top: 20px; }
  .cbar { display: none; }
  .has-cbar { --toast-lift: 0px; }
  .has-cbar .footmin { padding-bottom: 28px; }
  .done { grid-template-columns: 1fr 1fr; }
  .done__hero, .done > .next { grid-column: 1 / -1; }
  .empty__feed { grid-auto-columns: 220px; width: 100%; margin: 0; padding-inline: 0; }
  .line { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "art info price" "art ctrl ctrl"; }
  .line__art { width: 96px; height: 96px; }
}
