/* LEVELS — vysuvaci kosik (2e / 2f) + stranka /kosik/ */

.lv-cart-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 16, 14, .6);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
	z-index: 95;
}
.lv-cart-backdrop.is-open { opacity: 1; visibility: visible; }

.lv-cart-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 520px;
	max-width: 100%;
	background: var(--lv-bg);
	border-left: 1px solid var(--lv-line-2);
	display: flex;
	flex-direction: column;
	z-index: 96;
	transform: translateX(100%);
	transition: transform .25s ease;
}
.lv-cart-panel.is-open { transform: translateX(0); }

.lv-cart-panel__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 28px 32px;
	border-bottom: 1px solid var(--lv-line);
	flex: none;
}
.lv-cart-panel__title { font-family: var(--lv-display); font-size: 32px; text-transform: uppercase; line-height: 1; }
.lv-cart-panel__close {
	background: none;
	border: 0;
	color: var(--lv-text);
	font: 600 13px var(--lv-body);
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	padding: 0;
}
.lv-cart-panel__close:hover { color: var(--lv-accent); }

.lv-cart-progress {
	padding: 16px 32px;
	background: var(--lv-olive);
	color: var(--lv-olive-text);
	font-size: 14px;
	flex: none;
}
.lv-cart-progress__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lv-cart-progress__bar { height: 3px; background: rgba(241, 242, 230, .25); }
.lv-cart-progress__fill { height: 3px; background: var(--lv-accent); max-width: 100%; }

.lv-cart-panel__body {
	flex: 1;
	overflow-y: auto;
	padding: 8px 32px 24px;
	display: flex;
	flex-direction: column;
}

.lv-cart-panel__foot {
	padding: 24px 32px 32px;
	border-top: 1px solid var(--lv-line-2);
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: none;
}
.lv-cart-panel__line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--lv-muted); }
.lv-cart-panel__total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 22px;
	font-weight: 500;
	color: var(--lv-text);
	padding-top: 10px;
	border-top: 1px solid var(--lv-line);
}
.lv-cart-panel__note { text-align: center; font-size: 12px; color: var(--lv-dim); }

/* Polozky mini-kosika */
.lv-mini-cart { list-style: none; margin: 0; padding: 0; }
.lv-mini-cart__item {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 20px;
	padding: 24px 0;
	border-bottom: 1px solid var(--lv-line);
	list-style: none;
}
.lv-mini-cart__media { aspect-ratio: 4 / 5; background: var(--lv-ph-sm); border: 1px solid rgba(230, 228, 220, .12); position: relative; overflow: hidden; }
.lv-mini-cart__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-mini-cart__body { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.lv-mini-cart__cat {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lv-accent);
	margin-bottom: 6px;
}
.lv-mini-cart__name { font-family: var(--lv-display); font-size: 26px; line-height: 1; text-transform: uppercase; }
.lv-mini-cart__variant { font-size: 13px; color: var(--lv-muted); margin-top: 6px; }
.lv-mini-cart__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lv-mini-cart__qty {
	display: flex;
	align-items: center;
	border: 1px solid rgba(230, 228, 220, .3);
	border-radius: 999px;
	overflow: hidden;
}
.lv-mini-cart__qty button {
	width: 36px;
	height: 36px;
	background: none;
	border: 0;
	color: var(--lv-text);
	font-size: 18px;
	cursor: pointer;
	padding: 0;
	border-radius: 0;
	line-height: 1;
	letter-spacing: 0;
}
.lv-mini-cart__qty button:hover { color: var(--lv-accent); background: none; }
.lv-mini-cart__qty span { min-width: 20px; text-align: center; font-size: 14px; }
.lv-mini-cart__total { font-size: 17px; font-weight: 500; }
.lv-mini-cart__remove { font-size: 12px; color: var(--lv-dim); background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: .06em; text-transform: uppercase; }
.lv-mini-cart__remove:hover { color: var(--lv-accent); background: none; }
.lv-mini-cart__empty { padding: 48px 0; font-size: 17px; color: var(--lv-muted); text-align: center; }

.lv-cart-panel.is-busy { opacity: .6; pointer-events: none; }

@media (max-width: 767px) {
	.lv-cart-panel { width: 100%; border-left: 0; }
	.lv-cart-panel__head { padding: 20px var(--lv-pad); }
	.lv-cart-panel__title { font-size: 26px; }
	.lv-cart-progress { padding: 12px var(--lv-pad); font-size: 13px; }
	.lv-cart-panel__body { padding: 0 var(--lv-pad); }
	.lv-cart-panel__foot { padding: 16px var(--lv-pad) 24px; gap: 10px; }
	.lv-cart-panel__total { font-size: 20px; border-top: 0; padding-top: 0; }
	.lv-mini-cart__item { grid-template-columns: 76px 1fr; gap: 14px; padding: 18px 0; }
	.lv-mini-cart__cat { font-size: 10px; margin-bottom: 4px; }
	.lv-mini-cart__name { font-size: 22px; }
	.lv-mini-cart__variant { font-size: 12px; margin-top: 4px; }
	.lv-mini-cart__qty button { width: 34px; height: 34px; font-size: 16px; }
	.lv-mini-cart__total { font-size: 15px; }
}

/* ---- Standardna stranka kosika /kosik/ ---- */
.lv-page-cart { padding: 56px var(--lv-pad) 96px; }
.lv-page-cart__title { font-size: 88px; margin: 0 0 40px; }

.woocommerce table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	margin: 0 0 32px;
	border-radius: 0;
}
.woocommerce table.shop_table th {
	text-align: left;
	font: 600 12px var(--lv-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lv-text);
	padding: 0 12px 16px 0;
	border-bottom: 1px solid var(--lv-line-2);
}
.woocommerce table.shop_table td {
	padding: 20px 12px 20px 0;
	border-top: 0;
	border-bottom: 1px solid var(--lv-line);
	color: var(--lv-muted);
	vertical-align: middle;
}
.woocommerce table.shop_table td.product-name a { color: var(--lv-text); font-weight: 600; }
.woocommerce table.shop_table img { width: 80px; }
.woocommerce table.cart td.actions { border-bottom: 0; }
.woocommerce a.remove {
	color: var(--lv-dim) !important;
	font-size: 20px;
	line-height: 1;
	width: auto;
	height: auto;
	background: none !important;
}
.woocommerce a.remove:hover { color: var(--lv-accent) !important; }
/* Blocksy vklada do odkazu svoju SVG ikonu, ktorej rozmer riadi
   --theme-icon-size z jeho woo kontajnera. Ten na nasich sablonach nie je,
   takze ikona vysla 0x0 a odstranenie polozky sa nedalo trafit. */
.woocommerce a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	min-height: 24px;
}
.woocommerce a.remove svg,
.woocommerce a.remove .ct-icon {
	display: block;
	width: 13px;
	height: 13px;
	fill: currentColor;
}
.woocommerce .cart-collaterals { display: flex; justify-content: flex-end; }
.woocommerce .cart_totals {
	width: 100%;
	max-width: 480px;
	border: 1px solid var(--lv-line-2);
	padding: 32px;
}
.woocommerce .cart_totals h2 { font-size: 28px; margin: 0 0 20px; }
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td { border: 0; padding: 8px 0; font-size: 15px; }
.woocommerce .cart_totals .order-total th, .woocommerce .cart_totals .order-total td {
	font-size: 22px;
	color: var(--lv-text);
	border-top: 1px solid var(--lv-line);
	padding-top: 16px;
}
.woocommerce .wc-proceed-to-checkout { padding: 20px 0 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; width: 100%; padding: 20px; }
.woocommerce .quantity input.qty {
	width: 80px;
	padding: 10px;
	text-align: center;
}
.woocommerce .coupon { display: flex; gap: 10px; flex-wrap: wrap; }
.woocommerce .coupon input.input-text { width: auto; min-width: 200px; padding: 14px 16px; }
.woocommerce-cart-form { margin-bottom: 32px; }

@media (max-width: 767px) {
	.lv-page-cart { padding: 32px var(--lv-pad) 56px; }
	.lv-page-cart__title { font-size: 48px; margin-bottom: 24px; }
	.woocommerce table.shop_table thead { display: none; }
	.woocommerce table.shop_table tbody tr {
		display: grid;
		grid-template-columns: 80px 1fr;
		gap: 4px 16px;
		padding: 16px 0;
		border-bottom: 1px solid var(--lv-line);
	}
	.woocommerce table.shop_table td { border: 0; padding: 2px 0; display: block; }
	.woocommerce table.shop_table td.product-remove { grid-column: 2; text-align: right; }
	.woocommerce table.shop_table td.product-thumbnail { grid-row: 1 / span 4; }
	.woocommerce .cart_totals { padding: 20px; }
	.woocommerce .cart-collaterals { display: block; }
}

.lv-cart-panel__inner { display: contents; }

/* Mnozstvo v tabulke kosika ma obopinat obsah, nie rozliezt sa na cely stlpec. */
.woocommerce td.product-quantity .lv-qty,
.woocommerce td.product-quantity .quantity {
	width: fit-content;
	max-width: 100%;
}
