@charset "UTF-8";
/* ==========================================================================
   dp-cart.css — вікно кошика (common/cart.tpl). Кольори й розміри — з dp-ui.css (:root).
   Комп'ютер: панель праворуч на всю висоту. Телефон (до 767px): шторка знизу.
   Шапка й підсумок стоять на місці, прокручується лише список товарів.
   ========================================================================== */

/* --- сама панель ------------------------------------------------------------ */
html body #cart.btn-group > ul.dropdown-menu.dp-cart {
	position: fixed !important;
	top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
	z-index: 100041 !important;
	display: flex !important;
	flex-direction: column;
	float: none !important;
	width: 440px !important; min-width: 0 !important; max-width: 100vw !important;
	height: 100% !important; max-height: none !important;
	margin: 0 !important; padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	border-radius: var(--dp-radius-card) 0 0 var(--dp-radius-card) !important;
	background: var(--dp-surface) !important;
	box-shadow: var(--dp-shadow-drawer) !important;
	font-family: inherit;
	color: var(--dp-ink);
	text-align: left;
	list-style: none;
	visibility: hidden;
	transform: translateX(104%);
	transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
	animation: none !important;
}
html body #cart.btn-group.open > ul.dropdown-menu.dp-cart {
	visibility: visible;
	transform: none;
	transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
html body #cart.dp-cart-noanim > ul.dropdown-menu.dp-cart { transition: none !important; }
html body #cart > ul.dropdown-menu.dp-cart::before,
html body #cart > ul.dropdown-menu.dp-cart::after { display: none !important; content: none !important; }

/* затемнення під панеллю; клік по ньому закриває кошик (Bootstrap: клік поза меню) */
html body #cart.btn-group::before {
	content: '';
	position: fixed; top: 0; right: 0; bottom: 0; left: 0;
	z-index: 100040;
	background: var(--dp-overlay);
	opacity: 0; visibility: hidden;
	transition: opacity .25s ease, visibility 0s linear .25s;
}
html body #cart.btn-group.open::before { opacity: 1; visibility: visible; transition: opacity .25s ease; }
/* поки вікно відкрите, шапка (і з нею кошик) — над усім, що має свій z-index */
html.dp-cart-open .theme-compact, html.dp-cart-open header { z-index: 100040 !important; }
html.dp-cart-open, html.dp-cart-open body { overflow: hidden !important; }
html.dp-cart-open #scroller, html.dp-cart-open #dp-toast, html.dp-cart-open #ts-mw-id, html.dp-cart-open #dp-ab { display: none !important; }
/* «прозорий шар» Bootstrap для тач-пристроїв не потрібен: є власне затемнення */
html body #cart .dropdown-backdrop { display: none !important; }

/* кнопки всередині вікна: без браузерних рамок і тіней (на телефонах вони малювали сіре кільце й чорну рамку) */
html body #cart .dp-cart button {
	-webkit-appearance: none !important; appearance: none !important;
	border: 0 !important; outline: 0 !important; box-shadow: none !important;
	text-shadow: none !important; -webkit-tap-highlight-color: transparent;
}
html body #cart .dp-cart button:focus-visible { outline: 2px solid var(--dp-primary) !important; outline-offset: 2px !important; }

/* вміст: один li.cart на всю висоту */
html body #cart .dp-cart > li.dp-cart__panel {
	display: flex; flex-direction: column;
	flex: 1 1 auto; min-height: 0;
	margin: 0; padding: 0; border: 0; background: none;
}
html body #cart .dp-cart > li.theme-cart-block:not(.dp-empty) { flex: 0 0 auto; padding: 0 20px 16px; }

/* --- шапка -------------------------------------------------------------------- */
html body #cart .dp-cart .dp-cart__head {
	display: flex; align-items: center; gap: 12px;
	flex: 0 0 auto;
	padding: 22px 20px 16px 24px;
}
html body #cart .dp-cart .dp-cart__title { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--dp-ink); }
html body #cart .dp-cart .dp-cart__pill {
	display: inline-flex; align-items: center;
	height: 28px; padding: 0 12px;
	border-radius: var(--dp-radius-pill);
	background: var(--dp-soft); color: var(--dp-primary);
	font-size: 13px; font-weight: 700; white-space: nowrap;
}
html body #cart .dp-cart .minicart-close {
	position: static !important; transform: none !important;
	margin: 0 0 0 auto !important;
	width: 40px !important; height: 40px !important; min-width: 40px !important;
	border-radius: 50% !important;
	background-color: var(--dp-soft) !important;
}

/* «Товар додано до кошика» — тільки одразу після «Купити» */
html body #cart .dp-cart .dp-cart__added {
	display: none;
	flex: 0 0 auto;
	margin: 0; padding: 12px 24px;
	background: var(--dp-success-bg); color: var(--dp-success);
	font-size: 14.5px; font-weight: 700;
	border-top: 1px solid rgba(46, 125, 79, .12);
	border-bottom: 1px solid rgba(46, 125, 79, .12);
}
html body #cart.dp-cart-added .dp-cart .dp-cart__added { display: block; animation: dpCartAdded .35s ease; }
@keyframes dpCartAdded { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- список товарів --------------------------------------------------------- */
html body #cart .dp-cart .dp-cart__items {
	flex: 1 1 auto; min-height: 0;
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	padding: 6px 20px 12px 24px;
	border-top: 1px solid var(--dp-line);
}
html body #cart .dp-cart .dp-cart__items::-webkit-scrollbar { width: 6px; }
html body #cart .dp-cart .dp-cart__items::-webkit-scrollbar-thumb { background: var(--dp-line); border-radius: 3px; }

html body #cart .dp-cart .dp-ci {
	position: relative;
	display: grid; grid-template-columns: 76px 1fr; gap: 14px;
	padding: 16px 34px 16px 0;
	border-bottom: 1px solid var(--dp-line);
}
html body #cart .dp-cart .dp-ci:last-child { border-bottom: 0; }
html body #cart .dp-cart .dp-ci__img {
	display: flex; align-items: center; justify-content: center;
	width: 76px; height: 76px;
	border-radius: 16px; background: var(--dp-soft);
	overflow: hidden; color: var(--dp-primary);
}
html body #cart .dp-cart .dp-ci__img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; border: 0; background: none; mix-blend-mode: multiply; }
html body #cart .dp-cart .dp-ci__img--gift svg { width: 30px; height: 30px; }
html body #cart .dp-cart .dp-ci__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html body #cart .dp-cart .dp-ci__name {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	color: var(--dp-ink) !important;
	font-size: 15px !important; font-weight: 600 !important; line-height: 1.35 !important;
	text-decoration: none !important;
}
html body #cart .dp-cart a.dp-ci__name:hover { color: var(--dp-primary) !important; }
html body #cart .dp-cart .dp-cart-supply {
	display: inline-flex; align-items: center; gap: 5px;
	margin-top: 4px; padding: 3px 8px; border-radius: 6px;
	background: #fff7ed; border: 1px solid #fed7aa;
	color: #b45309 !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.3 !important;
	align-self: flex-start;
}
html body #cart .dp-cart .dp-cart-supply svg { width: 13px; height: 13px; flex: 0 0 13px; color: #d97706; }
html body #cart .dp-cart .dp-cart-supply--supply {
	background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8 !important;
}
html body #cart .dp-cart .dp-cart-supply--supply svg { color: #2563eb; }

html body #cart .dp-cart .dp-cart__preorder-notice {
	display: flex; align-items: flex-start; gap: 8px;
	margin: 0 0 12px; padding: 10px 12px;
	background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
	color: #92400e; font-size: 12px; line-height: 1.4; font-weight: 500;
}
html body #cart .dp-cart .dp-cart__preorder-notice svg {
	width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; color: #d97706;
}
html body #cart .dp-cart .dp-ci__opt { color: var(--dp-muted); font-size: 12.5px; line-height: 1.35; }
html body #cart .dp-cart .dp-ci__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
html body #cart .dp-cart .dp-ci__price { color: var(--dp-ink); font-size: 17px; font-weight: 800; white-space: nowrap; }
html body #cart .dp-cart .dp-ci__qty { color: var(--dp-muted); font-size: 14px; }
html body #cart .dp-cart .dp-ci__del {
	position: absolute; top: 14px; right: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; padding: 0;
	border: 0; border-radius: 50%; background: transparent;
	color: #b3a9bd; cursor: pointer;
	transition: color .15s ease, background-color .15s ease;
}
html body #cart .dp-cart .dp-ci__del svg { width: 19px; height: 19px; }
html body #cart .dp-cart .dp-ci__del:hover, html body #cart .dp-cart .dp-ci__del:focus { color: var(--dp-danger); background: #fbecea; outline: 0; }

/* степер: «− 1 +» у контурній пігулці */
html body #cart .dp-cart .qty-stepper {
	display: inline-flex; align-items: center;
	height: 36px; margin: 0; padding: 0 4px;
	border: 1px solid var(--dp-line); border-radius: var(--dp-radius-pill);
	background: var(--dp-surface); overflow: visible;
}
html body #cart .dp-cart .qty-stepper .qty-btn {
	width: 30px; height: 30px; padding: 0;
	border: 0; border-radius: 50%; background: transparent;
	color: var(--dp-primary) !important; font-size: 18px; font-weight: 600; line-height: 1;
	cursor: pointer; transition: background-color .15s ease;
}
html body #cart .dp-cart .qty-stepper .qty-btn:hover { background: var(--dp-soft); }
html body #cart .dp-cart .qty-stepper .qty-input {
	width: 34px; height: 30px; padding: 0;
	border: 0; background: transparent;
	text-align: center; color: var(--dp-ink); font-size: 15px; font-weight: 700;
}
html body #cart .dp-cart .qty-stepper .qty-input:focus { outline: none; }

/* --- підсумок і кнопки ------------------------------------------------------ */
html body #cart .dp-cart .dp-cart__foot {
	flex: 0 0 auto;
	padding: 18px 24px calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--dp-line);
	background: var(--dp-surface);
	box-shadow: 0 -12px 24px -16px rgba(36, 26, 48, .18);
}
html body #cart .dp-cart .dp-cart__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; color: var(--dp-muted); font-size: 14px; }
html body #cart .dp-cart .dp-cart__total b { color: var(--dp-ink); font-weight: 700; white-space: nowrap; }
html body #cart .dp-cart .dp-cart__total--grand { margin: 2px 0 2px; color: var(--dp-ink); font-size: 16px; }
html body #cart .dp-cart .dp-cart__total--grand b { color: var(--dp-primary); font-size: 26px; font-weight: 800; }
html body #cart .dp-cart .dp-cart__note { margin: 0 0 14px; color: var(--dp-muted); font-size: 13px; line-height: 1.4; }
html body #cart .dp-cart .cart-button { margin: 0 !important; }
html body #cart .dp-cart .cart-button .btn-primary { width: 100% !important; }
html body #cart .dp-cart .dp-cart__continue {
	display: block !important; width: 100% !important;
	height: auto !important; margin: 10px 0 0 !important; padding: 8px !important;
	border: 0 !important; border-radius: var(--dp-radius-pill) !important;
	background: none !important; color: var(--dp-primary) !important;
	font-family: inherit !important; font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.3 !important;
	text-align: center !important; cursor: pointer;
}
html body #cart .dp-cart .dp-cart__continue:hover { background: transparent !important; text-decoration: underline !important; }

/* --- порожній кошик (малюнок і тексти ті самі) ------------------------------- */
html body #cart .dp-cart > li.dp-empty {
	position: relative; display: flex; flex-direction: column; justify-content: center;
	flex: 1 1 auto; padding: 32px 28px !important;
	color: var(--dp-ink) !important; font-weight: 400 !important; text-align: center;
}
html body #cart .dp-cart > li.dp-empty::before, html body #cart .dp-cart > li.dp-empty::after { display: none !important; content: none !important; }
html body #cart .dp-cart .dp-empty .dp-empty__x { position: absolute !important; top: 20px !important; right: 20px !important; margin: 0 !important; }
html body #cart .dp-cart .dp-empty__art svg { display: block; margin: 0 auto 10px; overflow: visible; }
html body #cart .dp-cart .dp-empty__z text { opacity: 0; animation: dpZ 2.4s ease-in-out infinite; }
html body #cart .dp-cart .dp-empty__z text:nth-child(2) { animation-delay: .5s; }
html body #cart .dp-cart .dp-empty__z text:nth-child(3) { animation-delay: 1s; }
@keyframes dpZ { 0% { opacity: 0; transform: translate(0, 6px); } 30%, 70% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -8px); } }
html body #cart .dp-cart .dp-empty__title { margin: 0 0 6px; color: var(--dp-ink); font-size: 21px; font-weight: 800; line-height: 1.25; }
html body #cart .dp-cart .dp-empty__text { margin: 0 0 22px; color: var(--dp-muted); font-size: 15px; line-height: 1.45; }
html body #cart .dp-cart .dp-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
html body #cart .dp-cart .dp-empty__links a {
	display: inline-flex !important; align-items: center; justify-content: center;
	flex: 1 1 0; height: var(--dp-btn-md); padding: 0 16px;
	border-radius: var(--dp-radius-pill);
	background: var(--dp-soft); color: var(--dp-primary) !important;
	font-size: 14.5px !important; font-weight: 600 !important; line-height: 1 !important; text-decoration: none !important;
	transition: background-color .15s ease;
}
html body #cart .dp-cart .dp-empty__links a:hover { background: var(--dp-soft-hover); }
html body #cart .dp-cart .dp-empty__links a.dp-empty__btn { flex: 1 1 100%; height: var(--dp-btn-lg); background: var(--dp-primary); color: var(--dp-on-primary) !important; font-size: 16px !important; }
html body #cart .dp-cart .dp-empty__links a.dp-empty__btn:hover { background: var(--dp-primary-hover); }

/* --- телефон: шторка знизу ----------------------------------------------------- */
@media (max-width: 767px) {
	html body #cart.btn-group > ul.dropdown-menu.dp-cart {
		top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
		width: 100% !important; height: auto !important; max-height: 88vh !important;
		border-radius: var(--dp-radius-card) var(--dp-radius-card) 0 0 !important;
		box-shadow: 0 -14px 44px rgba(24, 12, 36, .26) !important;
		transform: translateY(104%);
	}
	html body #cart.btn-group > ul.dropdown-menu.dp-cart::before {
		content: '' !important; display: block !important;
		position: absolute; top: 8px; left: 50%;
		width: 44px; height: 5px; margin-left: -22px;
		border-radius: 3px; background: var(--dp-line);
	}
	html body #cart .dp-cart .dp-cart__head { padding: 22px 16px 12px 20px; }
	html body #cart .dp-cart .dp-cart__title { font-size: 21px; }
	html body #cart .dp-cart .dp-cart__added { padding: 11px 20px; }
	html body #cart .dp-cart .dp-cart__items { padding: 4px 16px 8px 20px; }
	html body #cart .dp-cart .dp-ci { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 30px 14px 0; }
	html body #cart .dp-cart .dp-ci__img { width: 64px; height: 64px; border-radius: 14px; }
	html body #cart .dp-cart .dp-cart__foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
	html body #cart .dp-cart .dp-cart__total--grand b { font-size: 22px; }
	html body #cart .dp-cart .dp-cart__note { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	html body #cart.btn-group > ul.dropdown-menu.dp-cart, html body #cart.btn-group::before { transition: none !important; }
	html body #cart .dp-cart .dp-empty__z text { animation: none; opacity: 1; }
}

/* щойно доданий товар — сливова рамка і світлий фон (клас ставить dp-cart.js) */
/* рамка з відступом усередину і такими ж полями назовні — вміст рядка не зсувається, нічого не обрізано */
html body #cart .dp-ci.dp-ci--new { margin-left: -10px !important; margin-right: -10px !important; padding-left: 10px !important; padding-right: 10px !important; background: var(--dp-soft) !important; box-shadow: 0 0 0 2px var(--dp-primary) inset !important; border-radius: 16px !important; border-bottom-color: transparent !important; }
