/* =====================================================================
   Кошик Dreamly (редизайн): кошик і оформлення; після заявки — перехід на /order-confirmed.
   Спільний для головної й сторінки книги. Класи з префіксом dc-, щоб не зачепити стилі сторінок.
   Основа — «Чиста шторка». Кошик зафіксовано (картки внизу над сумою), оформлення — варіант 5 (фото-полароїд). Крок — .s-cart / .s-form / .s-done.
   Кольори й форми — як на сторінках: оранжевий #E77500, Manrope, пігулки, персикові плашки, тепла тінь.
   ===================================================================== */
.dc-back, .dc-panel {
  --dc-brand: #E77500;
  --dc-brand-hover: #C6650B;
  --dc-brand-ink: #A8550A;
  --dc-ink: #211E1A;
  --dc-text: #57514A;
  --dc-soft: #756F67;
  --dc-line: #EAE6E0;
  --dc-line-strong: #E3DED7;
  --dc-peach: #FFF4EE;
  --dc-peach-2: #FFE8D9;
  --dc-n50: #FBFAF9;
  --dc-n100: #F6F5F3;
  --dc-err: #B4362B;
  --dc-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --dc-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dc-sh: 0 10px 28px rgba(168, 85, 10, 0.10), 0 1px 3px rgba(80, 60, 40, 0.06);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--dc-ink);
  -webkit-font-smoothing: antialiased;
}
.dc-panel * { box-sizing: border-box; }
:where(.dc-panel) :where(button, input) { font: inherit; } /* :where — нульова вага, інакше перебиває жирність/розмір кнопок (тонкий текст в «Оформити замовлення») */
.dc-panel :focus-visible { outline: 3px solid var(--dc-ink); outline-offset: 2px; }
.dc-panel h2, .dc-panel h3, .dc-panel p { margin: 0; }

/* відкрили кошик — сторінка під ним не смикається вбік, коли зникає смуга прокрутки (Windows) */
html { scrollbar-gutter: stable; }

/* ---------- Значок кількості на «Кошику» в шапці ---------- */
.dc-badge {
  display: none; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px;
  border-radius: 999px; background: #E77500; color: #fff;
  font: 800 12.5px/1 'Manrope', sans-serif;
}
.dc-badge.on { display: inline-grid; }
.dc-bump { animation: dcBump 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes dcBump { 30% { transform: scale(1.12); } 60% { transform: scale(0.96); } }

/* ---------- Затемнення ---------- */
.dc-back {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(33, 30, 26, 0.38);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--dc-ease);
}
.dc-back.on { opacity: 1; pointer-events: auto; }

/* =====================================================================
   Каркас: шторка праворуч (ПК) / знизу (телефон)
   ===================================================================== */
.dc-panel {
  position: fixed; z-index: 91;
  top: 12px; right: 12px; bottom: 12px;
  width: 440px; max-width: calc(100% - 24px);
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(33, 30, 26, 0.22);
  overflow: hidden;
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  transition: transform 0.5s var(--dc-expo), opacity 0.3s var(--dc-ease), visibility 0s linear 0.5s;
}
.dc-panel.on { transform: none; visibility: visible; transition: transform 0.5s var(--dc-expo), opacity 0.3s var(--dc-ease), visibility 0s; }
.dc-grab { display: none; }

.dc-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px 24px; }
/* лінія між шапкою (← Оформлення ✕ / Кошик ✕) і вмістом (власник 08.11) */
.s-cart:not(.empty) .dc-head, .s-form .dc-head { border-bottom: 1px solid var(--dc-line); }
.s-form .dc-body { padding-top: 18px; }
.s-cart:not(.empty) .dc-it:first-child { padding-top: 14px; }
.dc-title { flex: 1; min-width: 0; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.dc-ib {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: var(--dc-n100); color: var(--dc-ink); cursor: pointer;
  transition: background-color 0.2s var(--dc-ease);
}
@media (hover: hover) { .dc-ib:hover { background: var(--dc-peach-2); } } /* лише з мишкою: на телефоні :hover «залипає» після натиску */
.dc-ib svg { width: 18px; height: 18px; }
.dc-hb { margin-left: -8px; }

.dc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 24px; }
.dc-foot { flex: none; padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dc-line); }
.dc-body > * { animation: dcIn 0.45s var(--dc-expo) backwards; } /* backwards: після появи без transform — інакше список країн на телефоні «прилипає» до блоку */
@keyframes dcIn { from { opacity: 0; transform: translateY(8px); } }
/* зміна вигляду (кошик ↔ оформлення, порожній кошик): старий вміст коротко згасає, новий проявляється (09.11) */
.dc-head, .dc-body, .dc-foot { transition: opacity 0.22s var(--dc-ease); }
.dc-panel.dc-swap .dc-head, .dc-panel.dc-swap .dc-body, .dc-panel.dc-swap .dc-foot { opacity: 0; transition-duration: 0.12s; }
.dc-fade { animation: dcFade 0.3s var(--dc-ease); }
@keyframes dcFade { from { opacity: 0; } }
@keyframes dcClUp { from { transform: translateY(100%); } }
@keyframes dcClDown { to { transform: translateY(100%); } }

/* ---------- Книги ---------- */
.dc-list { list-style: none; margin: 0; padding: 0; }
.dc-it { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--dc-line); }
.dc-it:first-child { padding-top: 6px; }
.dc-it.out, .dc-r-row.out { animation: dcOut 0.24s var(--dc-ease) forwards; }
@keyframes dcOut { to { opacity: 0; transform: translateX(24px); } }
.dc-th { flex: none; display: block; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--dc-peach); }
.dc-in { flex: 1; min-width: 0; }
.dc-tt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dc-tt b { font-size: 16px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.dc-pr { flex: none; font-size: 15.5px; font-weight: 800; white-space: nowrap; }
.dc-in small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--dc-soft); }
.dc-ctl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.dc-qty { display: inline-flex; align-items: center; height: 34px; padding: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--dc-line-strong); }
.dc-qty button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dc-ink); cursor: pointer; }
@media (hover: hover) { .dc-qty button:hover { background: var(--dc-peach-2); } }
.dc-qty button:active { background: var(--dc-peach-2); }
.dc-qty button svg { width: 13px; height: 13px; }
.dc-qty output { min-width: 24px; text-align: center; font-size: 15px; font-weight: 800; }
.dc-del { padding: 6px 0; border: 0; background: none; color: var(--dc-soft); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dc-line-strong); cursor: pointer; }
@media (hover: hover) { .dc-del:hover { color: var(--dc-err); } }

.dc-lnk { margin-left: auto; padding: 4px 0; border: 0; background: none; color: var(--dc-brand-ink); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.dc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--dc-text); }
.dc-total strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--dc-ink); }

/* ---------- Кнопки ---------- */
.dc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; height: 58px; padding: 0 8px 0 26px;
  border: 0; border-radius: 999px;
  background: var(--dc-brand); color: #fff;
  font-size: 17px; font-weight: 800; cursor: pointer;
  transition: background-color 0.18s var(--dc-ease), transform 0.18s var(--dc-ease);
}
@media (hover: hover) { .dc-btn:hover { background: var(--dc-brand-hover); } }
.dc-btn:active { transform: scale(0.98); }
.dc-btn .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--dc-brand); font-style: normal; transition: transform 0.25s var(--dc-ease); }
@media (hover: hover) { .dc-btn:hover .ic { transform: translateX(3px); } }
.dc-btn .ic svg { width: 18px; height: 18px; }
.dc-btn[disabled] { background: #F3A866; box-shadow: none; cursor: default; }
.dc-btn.c { justify-content: center; padding: 0 26px; }

/* ---------- Поля ---------- */
.dc-f { margin-bottom: 14px; }
.dc-f label { display: block; margin: 0 0 7px 2px; font-size: 14px; font-weight: 800; }
.dc-inp {
  display: flex; align-items: center; height: 54px; border-radius: 16px;
  background: var(--dc-n50); box-shadow: inset 0 0 0 1.5px var(--dc-line-strong);
  transition: box-shadow 0.2s var(--dc-ease), background-color 0.2s var(--dc-ease);
}
.dc-inp:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--dc-brand), 0 0 0 4px rgba(231, 117, 0, 0.12); }
.dc-inp input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: transparent; color: var(--dc-ink); font-size: 16.5px; font-weight: 600; outline: none; }
.dc-inp input:focus-visible { outline: none; }
/* автозаповнення Chrome фарбує поле блакитним — лишаємо наш фон */
.dc-inp input:-webkit-autofill, .dc-inp input:-webkit-autofill:hover, .dc-inp input:-webkit-autofill:focus { -webkit-text-fill-color: var(--dc-ink); -webkit-box-shadow: 0 0 0 1000px transparent inset; box-shadow: 0 0 0 1000px transparent inset; transition: background-color 600000s 0s, color 600000s 0s; }
.dc-inp input::placeholder { color: #A39C93; font-weight: 500; }
.dc-f.bad .dc-inp { box-shadow: inset 0 0 0 2px var(--dc-err); background: #FFF8F7; }
/* підказка про помилку виїжджає плавно — поле й шторка не стрибають (09.11) */
.dc-err {
  display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0;
  margin: 0 0 0 2px !important; font-size: 13.5px; font-weight: 700; color: var(--dc-err);
  transition: grid-template-rows 0.28s var(--dc-ease), margin-top 0.28s var(--dc-ease), opacity 0.2s var(--dc-ease), visibility 0s linear 0.28s;
}
.dc-err > span { min-height: 0; overflow: hidden; }
.dc-f.bad .dc-err { grid-template-rows: 1fr; visibility: visible; opacity: 1; margin-top: 6px !important; transition-delay: 0s; }


/* ---------- Порожній кошик ---------- */
/* порожній кошик — по центру вільного місця (власник 08.11) */
.dc-panel.empty .dc-body { display: flex; flex-direction: column; }
.dc-empty { margin: auto 0; padding: 20px 6px; text-align: center; }
/* віяло обкладинок, як у «Як замовити» на головній: квадратні книги на персиковій плямі, без руху (обрано 09.11) */
.dc-empty-art { position: relative; width: 236px; height: 176px; margin: 0 auto 16px; }
.dc-empty-art::before { content: ""; position: absolute; inset: 4% 7%; border-radius: 58% 42% 55% 45% / 50% 56% 44% 50%; background: var(--dc-peach); transform: rotate(-4deg); }
.dc-empty h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.dc-empty p { margin: 8px auto 0 !important; max-width: 300px; font-size: 15px; line-height: 1.5; color: var(--dc-text); }
/* кнопка «Обрати книгу» — у самому низу, без лінії над нею */
.dc-panel.empty .dc-foot { border-top: 0; }
.dc-fan { position: relative; display: block; width: 100%; height: 100%; }
.dc-fan img { position: absolute; top: 20%; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--dc-peach); box-shadow: 0 12px 26px rgba(33, 30, 26, 0.16), 0 2px 4px rgba(33, 30, 26, 0.08); }
.dc-fan img:nth-child(1) { left: 12%; top: 26%; transform: rotate(-11deg); }
.dc-fan img:nth-child(2) { left: 30%; z-index: 1; }
.dc-fan img:nth-child(3) { right: 12%; top: 26%; transform: rotate(11deg); }

/* =====================================================================
   Кошик · пропозиція внизу, над сумою — ЗАФІКСОВАНО 08.11: світлий персиковий прямокутник,
   картки з тінню, правий край згасає, стрілки ← →; натиск на всю картку додає книгу.
   ===================================================================== */
/* лінія — між пропозицією і сумою (власник 08.11), а не над пропозицією */
.s-cart .dc-foot { border-top: 0; }
.dc-sumbox { margin: 0 -24px; padding: 14px 24px 0; border-top: 1px solid var(--dc-line); }

/* фон — світлий персиковий, як у плашках оформлення (власник 08.11: темніший #FFE8D9 «занадто персиковий») */
.dc-up { position: relative; margin: 0 0 14px; padding: 13px 0 2px; border-radius: 18px; background: var(--dc-peach); overflow: hidden; }
/* правий край згасає — накладкою, не маскою: маска на стрічці, що гортається, на iPhone «ховала» книги */
.dc-up::after { content: ""; position: absolute; right: 0; top: 44px; bottom: 0; width: 44px; background: linear-gradient(90deg, rgba(255, 244, 238, 0), var(--dc-peach) 85%); pointer-events: none; }
.dc-up-t { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; min-height: 30px; font-size: 14.5px; color: var(--dc-text); }
.dc-up-t > svg { flex: none; width: 20px; height: 20px; color: var(--dc-brand); }
.dc-up-t b { color: var(--dc-ink); }
.dc-up.free .dc-up-t, .dc-up.free .dc-up-t b { color: var(--dc-brand-ink); }
.dc-nav { display: flex; gap: 6px; margin-left: auto; }
.dc-nav button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--dc-ink); cursor: pointer; box-shadow: 0 1px 4px rgba(33, 30, 26, 0.12); }
@media (hover: hover) { .dc-nav button:hover { background: var(--dc-brand); color: #fff; } }
.dc-nav button:active { transform: scale(0.94); }
.dc-nav svg { width: 14px; height: 14px; }
/* проміжок = відступу збоку; правий край згасає — видно, що далі є ще */
.dc-rail { display: flex; gap: 12px; padding: 12px; scroll-padding: 0 44px 0 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
/* остання книга доходить лише до правого краю — далі порожнього місця нема */
.dc-rail::after { content: ""; flex: none; width: 20px; }
.dc-card.last { scroll-snap-align: end; } /* остання видима картка = кінець стрічки, далі не «пролітає» (клас ставить cart.js) */
.dc-card[hidden] { display: none; } /* книга вже в кошику — її картку ховаємо, а не перебудовуємо стрічку */
.dc-nav button:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.dc-rail::-webkit-scrollbar { display: none; }
.dc-card {
  flex: none; display: flex; align-items: center; gap: 14px; width: 200px; padding: 6px 10px 6px 6px;
  scroll-snap-align: start; border: 0; border-radius: 16px; background: #fff; color: var(--dc-ink); text-align: left; cursor: pointer;
  box-shadow: 0 6px 16px rgba(168, 85, 10, 0.16);
  transition: transform 0.18s var(--dc-ease), box-shadow 0.2s var(--dc-ease);
}
/* наведення — картка лише піднімається (без рамки); натиск — легке стискання */
@media (hover: hover) { .dc-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(168, 85, 10, 0.18); } }
.dc-card:active { transform: scale(0.97); }
.dc-ci { position: relative; flex: none; width: 52px; height: 52px; }
.dc-ci img { display: block; width: 100%; height: 100%; border-radius: 11px; object-fit: cover; background: var(--dc-peach); }
.dc-plus { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--dc-brand); color: #fff; box-shadow: 0 3px 8px rgba(33, 30, 26, 0.22); } /* «+» статичний */
.dc-plus svg { width: 13px; height: 13px; }
.dc-ct { flex: 1; min-width: 0; }
.dc-ct b { display: block; font-size: 13.5px; line-height: 1.25; font-weight: 800; }
.dc-ct small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dc-soft); }

/* =====================================================================
   Оформлення (08.11): крок 1 «Ваші контакти», одразу під ним крок 2 «Після заявки — напишіть нам».
   Тексту мало, головне — фото дитини й значки месенджерів (обрано варіант 5).
   ===================================================================== */
.dc-num-t { display: flex; align-items: center; gap: 10px; margin-bottom: 14px !important; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.dc-num-t i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dc-brand); color: #fff; font-style: normal; font-size: 14px; }
.dc-num.off { margin-top: 8px; }
.dc-num.off .dc-num-t i { background: var(--dc-peach-2); color: var(--dc-brand-ink); }
.dc-s2 { padding: 14px 16px; border-radius: 18px; background: var(--dc-peach); }
.dc-s2 p { font-size: 14.5px; line-height: 1.6; color: var(--dc-text); }
.dc-s2 b { color: var(--dc-ink); }
/* значки трохи менші (власник 08.11: було 34 px) */
/* крок 2: фото-полароїд + значки (обрано 08.11) */
.dc-s2.pic { display: flex; align-items: center; gap: 24px; }
.dc-pic { position: relative; flex: none; width: 62px; padding: 4px 4px 11px; background: #fff; border-radius: 4px; box-shadow: 0 6px 16px rgba(120, 70, 20, 0.16); transform: rotate(-4deg); }
.dc-pic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.dc-pic i { position: absolute; right: -9px; bottom: -7px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--dc-brand); color: #fff; box-shadow: 0 3px 8px rgba(231, 117, 0, 0.35); transform: rotate(4deg); }
.dc-pic i svg { width: 13px; height: 13px; }
.dc-pic-t { flex: 1; min-width: 0; }

/* =====================================================================
   Телефон з вибором країни (як на бойовому, у нашому стилі + пошук)
   ===================================================================== */
.dc-phf { position: relative; z-index: 3; }
/* крок 1 зверху кроку 2, щоб відкритий список країн не ховався під ним */
.dc-body > .dc-num:first-child { position: relative; z-index: 2; }
.dc-ccb { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-left: 7px; padding: 0 10px 0 9px; border: 0; border-radius: 12px; background: #fff; color: var(--dc-ink); font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 1px 3px rgba(80, 60, 40, 0.14); transition: background-color 0.2s var(--dc-ease); }
.dc-ccb[aria-expanded="true"] { background: var(--dc-peach); }
@media (hover: hover) { .dc-ccb:hover { background: var(--dc-peach); } }
.dc-fl { font-size: 19px; line-height: 1; }
.dc-ccb svg { width: 14px; height: 14px; color: var(--dc-soft); transition: transform 0.2s var(--dc-ease); }
.dc-ccb[aria-expanded="true"] svg { transform: rotate(180deg); }
.dc-ccb + input { padding-left: 12px; }
.dc-cl { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(33, 30, 26, 0.18), 0 0 0 1px var(--dc-line); animation: dcIn 0.25s var(--dc-expo) both; }
.dc-cl[hidden], .dc-cl [hidden] { display: none !important; }
.dc-cl.out { animation: dcClOut 0.18s var(--dc-ease) forwards; } /* закриття списку теж плавне (09.11) */
@keyframes dcClOut { to { opacity: 0; transform: translateY(6px); } }
.dc-cl-h { display: none; }
.dc-f label.dc-cs { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; margin-bottom: 6px; border-radius: 12px; background: var(--dc-n50); box-shadow: inset 0 0 0 1.5px var(--dc-line); cursor: text; }
.dc-f label.dc-cs:focus-within { box-shadow: inset 0 0 0 2px var(--dc-brand); background: #fff; }
.dc-cs svg { flex: none; display: block; width: 16px; height: 16px; color: #A39C93; }
.dc-cs input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 500; line-height: normal; color: var(--dc-ink); outline: none; -webkit-appearance: none; appearance: none; }
.dc-cs input::placeholder { color: #A39C93; font-weight: 500; }
.dc-cs input::-webkit-search-cancel-button { -webkit-appearance: none; }
.dc-cs input:focus-visible { outline: none; }
.dc-cl ul { list-style: none; margin: 0; padding: 0; max-height: 236px; overflow-y: auto; overscroll-behavior: contain; }
.dc-cap { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #A39C93; }
.dc-cl [data-q] { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 15px; cursor: pointer; }
@media (hover: hover) { .dc-cl [data-q]:hover { background: var(--dc-peach); } }
.dc-cl [data-q] .dc-fl { width: 24px; text-align: center; }
.dc-cn { flex: 1; }
.dc-cd { color: var(--dc-soft); font-size: 14px; font-weight: 700; }
.dc-cl [data-q] i { display: grid; place-items: center; width: 18px; color: var(--dc-brand); visibility: hidden; }
.dc-cl [data-q] i svg { width: 15px; height: 15px; }
.dc-cl [aria-selected="true"] { font-weight: 800; }
.dc-cl [aria-selected="true"] i { visibility: visible; }
.dc-none { padding: 14px 10px; font-size: 14px; color: var(--dc-soft); text-align: center; }

/* =====================================================================
   Телефон
   ===================================================================== */
@media (max-width: 720px) {
  /* шторка знизу, висота за вмістом */
  .dc-panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: 100%; max-width: none;
    max-height: calc(100% - 28px);
    border-radius: 26px 26px 0 0;
    transform: translateY(100%);
  }
  .dc-grab { display: block; position: absolute; z-index: 4; left: 50%; top: 7px; width: 42px; height: 5px; margin-left: -21px; border-radius: 9px; background: rgba(33, 30, 26, 0.16); }
  .dc-head { padding: 20px 14px 12px 20px; }
  .dc-title { font-size: 21px; }
  .dc-body { padding: 4px 20px 20px; }
  .dc-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .dc-btn { height: 56px; }
  .dc-th { width: 68px; height: 68px; }

  .dc-sumbox { margin: 0 -20px; padding: 14px 20px 0; }
  /* порожній кошик: не нижче 60% екрана, але й не обрізає текст — росте під вміст (власник 09.11) */
  .dc-panel.empty { min-height: 60%; }
  /* список країн — на всю шторку під заголовком, не злипається з сумою й кнопкою */
  .dc-body > .dc-num:first-child, .dc-phf { position: static; }
  .dc-cl { position: absolute; z-index: 6; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; box-shadow: none; }
  .dc-cl { animation: dcClUp 0.42s var(--dc-expo) backwards; } /* телефон: шар одразу непрозорий і виїжджає знизу — форма крізь нього не просвічує */
  .dc-cl.out { animation: dcClDown 0.28s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
  .dc-cl-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px 4px !important; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
  .dc-cl ul { flex: 1; max-height: none; }
  .dc-up { margin: 0 0 12px; }
}
/* 10.11: дуже низький екран (старий iPhone SE, ~454 px): без стрічки інших книг, щоб було видно книгу в кошику; рядок про безкоштовну доставку лишається */
@media (max-width: 720px) and (max-height: 500px) {
  .dc-rail, .dc-nav, .dc-up::after { display: none; }
  .dc-up { padding-bottom: 13px; }
}
/* 10.11: 320 px — «Оформити замовлення» в один рядок */
@media (max-width: 340px) {
  .dc-btn { font-size: 15.5px; padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-panel, .dc-back, .dc-body > *, .dc-head, .dc-body, .dc-foot, .dc-err, .dc-fade, .dc-cl { transition: none !important; animation: none !important; }
}
