/* ==========================================================================
   UpgradeZone — strona koszyka
   Tokeny (--uz-*) dziedziczone z uz-cart-modal.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Układ
   -------------------------------------------------------------------------- */
.uz-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 0 64px;
}

.uz-cart__main { min-width: 0; }

/* --------------------------------------------------------------------------
   Nagłówek
   -------------------------------------------------------------------------- */
.uz-cart__head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--uz-line);
}

.uz-cart__title {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--uz-text);
}

.uz-cart__count {
	margin: 0;
	font-size: 13px;
	color: var(--uz-muted);
}

/* --------------------------------------------------------------------------
   Pasek darmowej dostawy
   -------------------------------------------------------------------------- */
.uz-freeship {
	margin-bottom: 28px;
	padding: 16px 18px;
	background: var(--uz-surface);
	border: 1px solid var(--uz-line);
	border-radius: 10px;
}

.uz-freeship__text {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--uz-muted);
}
.uz-freeship__text strong { color: var(--uz-text); font-weight: 700; }

.uz-freeship__bar {
	height: 5px;
	background: rgba(255, 255, 255, .08);
	border-radius: 99px;
	overflow: hidden;
}

.uz-freeship__fill {
	display: block;
	height: 100%;
	background: var(--uz-accent);
	border-radius: 99px;
	transition: width .4s var(--uz-ease);
}

.uz-freeship.is-complete .uz-freeship__fill { background: var(--uz-ok); }

/* --------------------------------------------------------------------------
   Lista pozycji
   -------------------------------------------------------------------------- */
.uz-cart__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.uz-cart-item {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto auto 32px;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--uz-line);
	transition: opacity .18s;
}
.uz-cart-item:first-child { padding-top: 0; }
.uz-cart-item.is-busy { opacity: .45; pointer-events: none; }

/* Miniatura */
.uz-cart-item__media {
	width: 104px;
	height: 76px;
	background: var(--uz-surface);
	border-radius: 8px;
	overflow: hidden;
}
.uz-cart-item__media a { display: block; width: 100%; height: 100%; }
.uz-cart-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Opis */
.uz-cart-item__info { min-width: 0; }

.uz-cart-item__name {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.uz-cart-item__name a { color: var(--uz-text); text-decoration: none; }
.uz-cart-item__name a:hover { color: var(--uz-accent); }

.uz-cart-item__meta {
	font-size: 12px;
	color: var(--uz-muted);
	line-height: 1.5;
}
.uz-cart-item__meta dl,
.uz-cart-item__meta dt,
.uz-cart-item__meta dd,
.uz-cart-item__meta p {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
}
.uz-cart-item__meta dt::after { content: " "; }

.uz-cart-item__unit {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--uz-muted);
}

/* Ilość */
.uz-cart-item__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--uz-line);
	border-radius: 999px;
	overflow: hidden;
}

.uz-qty__btn {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--uz-muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background .16s, color .16s;
}
.uz-qty__btn:hover { background: rgba(255, 255, 255, .07); color: var(--uz-text); }

.uz-qty__input {
	width: 34px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--uz-text);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}
.uz-qty__input:focus { outline: none; }

/* Kwota pozycji */
.uz-cart-item__total {
	min-width: 88px;
	text-align: right;
	font-size: 15px;
	font-weight: 800;
	color: var(--uz-text);
}

/* Usuwanie */
.uz-cart-item__remove {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	padding: 0;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--uz-line);
	border-radius: 8px;
	color: var(--uz-muted);
	cursor: pointer;
	transition: background .18s, color .18s, border-color .18s;
}
.uz-cart-item__remove:hover {
	background: rgba(239, 68, 68, .14);
	border-color: rgba(239, 68, 68, .4);
	color: #ef4444;
}
.uz-cart-item__remove svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   Powrót do sklepu
   -------------------------------------------------------------------------- */
.uz-cart__continue {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--uz-muted);
	text-decoration: none;
	transition: color .18s;
}
.uz-cart__continue:hover { color: var(--uz-text); }
.uz-cart__continue svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Podsumowanie
   -------------------------------------------------------------------------- */
.uz-cart__summary { position: sticky; top: 24px; }

.uz-summary {
	padding: 26px 24px;
	background: var(--uz-surface);
	border: 1px solid var(--uz-line);
	border-radius: 12px;
}

.uz-summary__title {
	margin: 0 0 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--uz-muted);
}

.uz-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	font-size: 14px;
	color: var(--uz-text);
}
.uz-summary__row--muted { color: var(--uz-muted); font-size: 13px; }

.uz-summary__row--total {
	margin-top: 10px;
	padding-top: 18px;
	border-top: 1px solid var(--uz-line);
	font-size: 15px;
	font-weight: 700;
}
.uz-summary__row--total span:last-child {
	font-size: 22px;
	font-weight: 800;
}

.uz-summary__checkout { margin-top: 20px; }

.uz-summary__trust {
	margin: 20px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--uz-line);
	list-style: none;
}
.uz-summary__trust li {
	position: relative;
	margin: 0 0 7px;
	padding-left: 20px;
	font-size: 12px;
	color: var(--uz-muted);
}
.uz-summary__trust li:last-child { margin-bottom: 0; }
.uz-summary__trust li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 6px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--uz-accent);
}

/* --------------------------------------------------------------------------
   Polecane produkty
   -------------------------------------------------------------------------- */
.uz-recommended {
	max-width: 1180px;
	margin: 0 auto;
	padding: 44px 0 72px;
	border-top: 1px solid var(--uz-line);
}

.uz-recommended__title {
	margin: 0 0 24px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--uz-muted);
}

.uz-recommended__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 20px;
}

.uz-rec-card { display: block; }

.uz-rec-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.uz-rec-card__img {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--uz-surface);
	border: 1px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 12px;
	transition: border-color .25s var(--uz-ease), transform .25s var(--uz-ease);
}
.uz-rec-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s var(--uz-ease);
}
.uz-rec-card__link:hover .uz-rec-card__img {
	border-color: var(--uz-line);
	transform: translateY(-3px);
}
.uz-rec-card__link:hover .uz-rec-card__img img { transform: scale(1.04); }

.uz-rec-card__name {
	margin: 0 0 5px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--uz-text);
	transition: color .18s;
}
.uz-rec-card__link:hover .uz-rec-card__name { color: var(--uz-accent); }

/* Cena zostaje stała — to informacja, nie ozdoba. */
.uz-rec-card__price {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--uz-text);
}
.uz-rec-card__price .woocommerce-Price-currencySymbol {
	font-size: 12px;
	font-weight: 700;
	color: var(--uz-muted);
}


/* Szybkie dodanie */
.uz-rec-card__add {
	width: 100%;
	margin-top: 12px;
	padding: 11px 14px;
	background: transparent;
	border: 1px solid var(--uz-line);
	border-radius: 999px;
	color: var(--uz-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .18s, color .18s, border-color .18s;
}
.uz-rec-card__add:hover:not(:disabled) {
	background: var(--uz-text);
	border-color: var(--uz-text);
	color: #0d0d0f;
}
.uz-rec-card__add:disabled { cursor: default; }

.uz-rec-card__add.is-loading {
	position: relative;
	color: transparent;
}
.uz-rec-card__add.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid rgba(255, 255, 255, .28);
	border-top-color: var(--uz-text);
	border-radius: 50%;
	animation: uzSpin .6s linear infinite;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.uz-cart {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.uz-cart__summary { position: static; }
}

/* --------------------------------------------------------------------------
   Telefon
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.uz-cart { padding-bottom: 40px; }

	.uz-cart__title { font-size: 24px; }

	.uz-cart-item {
		grid-template-columns: 84px minmax(0, 1fr) 30px;
		grid-template-areas:
			"media info remove"
			"media qty  total";
		gap: 8px 14px;
		padding: 18px 0;
	}
	.uz-cart-item__media { grid-area: media; width: 84px; height: 62px; }
	.uz-cart-item__info  { grid-area: info; }
	.uz-cart-item__qty   { grid-area: qty; justify-self: start; }
	.uz-cart-item__total { grid-area: total; text-align: right; min-width: 0; }
	.uz-cart-item__remove{ grid-area: remove; align-self: start; }

	.uz-cart-item__unit { display: none; }

	.uz-qty__btn { width: 32px; height: 32px; }
	.uz-qty__input { width: 30px; height: 32px; }

	.uz-recommended__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ==========================================================================
   Pusty koszyk
   ========================================================================== */
.uz-empty {
	max-width: 520px;
	margin: 0 auto;
	padding: 56px 24px 48px;
	text-align: center;
}

.uz-empty__icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 26px;
	display: grid;
	place-items: center;
	background: var(--uz-surface);
	border: 1px solid var(--uz-line);
	border-radius: 50%;
}
.uz-empty__icon svg {
	width: 36px;
	height: 36px;
	fill: none;
	stroke: var(--uz-muted);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.uz-empty__title {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--uz-text);
}

.uz-empty__text {
	margin: 0 0 30px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--uz-muted);
}

.uz-empty__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.uz-empty__actions .uz-btn { width: auto; min-width: 190px; }

@media (max-width: 600px) {
	.uz-empty { padding: 40px 8px 36px; }
	.uz-empty__title { font-size: 21px; }
	.uz-empty__actions .uz-btn { width: 100%; }
}