/* ============================================================
   Košík a objednávka (Order:cart, shipping, summary, done)
   ============================================================ */

.checkout-page {
	padding: 32px 0 72px;
}

.checkout-page h1 {
	font-size: 2rem;
}


/* ---- Progress ---- */
.progress {
	margin-bottom: 24px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.progress__step,
.progress__step a {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--text-muted);
}

.progress__step:not(:last-child)::after {
	content: '';
	width: 36px;
	height: 2px;
	border-radius: 2px;
	background: var(--border);
}

.progress__dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bg-light);
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 800;
}

.progress__step.is-current {
	color: var(--text);
}

.progress__step.is-done a {
	color: var(--green);
}

.progress__step.is-current .progress__dot,
.progress__step.is-done .progress__dot {
	background: var(--green);
	color: #fff;
}


/* ---- Layout ---- */
.checkout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
	gap: 24px;
	align-items: start;
}

.checkout__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.checkout__stack {
	gap: 20px;
}

.checkout__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--border-subtle);
}

.back-link {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
}

.checkout .btn--green {
	min-height: 48px;
	padding: 0 22px;
	font-size: 1rem;
}

@media (max-width: 900px) {
	.checkout {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* ---- Summary box ---- */
.summary {
	position: sticky;
	top: var(--header-offset);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.summary h2 {
	margin-bottom: 4px;
	font-size: 1.25rem;
}

.summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: var(--text-2);
}

.summary__total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border-subtle);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.375rem;
}

.summary__vat {
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-2);
	cursor: pointer;
}

.agree input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--green);
}

.agree a {
	font-weight: 700;
	text-decoration: underline;
}

.summary:has(.agree input:not(:checked)) .summary__cta {
	opacity: 0.5;
	pointer-events: none;
}

@media (max-width: 900px) {
	.summary {
		position: static;
	}
}


/* ---- Cart ---- */
.added-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 14px 16px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg);
}

.added-note > i {
	flex-shrink: 0;
	font-size: 26px;
	color: var(--green);
}

.added-note__text {
	flex: 1;
	min-width: 220px;
}

.added-note__title {
	font-weight: 800;
}

.added-note p {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--text-2);
}

.added-note p a {
	font-weight: 700;
	text-decoration: underline;
}

.ship-bar {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px;
	border-radius: var(--radius-lg);
	background: var(--bg-light);
}

.ship-bar__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--green);
}

.ship-bar__label i {
	font-size: 20px;
}

.ship-bar__track {
	height: 8px;
	overflow: hidden;
	border-radius: var(--radius-pill);
	background: #fff;
}

.ship-bar__fill {
	height: 100%;
	border-radius: var(--radius-pill);
	background: var(--green);
}

.cart-empty {
	padding: 40px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--text-muted);
	font-size: 1.0625rem;
}

.cart-empty i {
	font-size: 44px;
	color: var(--text-faint);
}

.cart-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--border-subtle);
}

.cart-row__img {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: var(--radius-md);
}

.cart-row__info {
	flex: 1;
	min-width: 160px;
}

.cart-row__name {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.0625rem;
	color: var(--text);
}

.cart-row__meta {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.cart-row__remove {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--brick-hover);
	font-weight: 700;
	font-size: 0.8125rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}

.cart-row__total {
	min-width: 90px;
	text-align: right;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.125rem;
	white-space: nowrap;
}


/* ---- Shipping & payment ---- */
.options,
.contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.options h2,
.contact h2 {
	font-size: 1.375rem;
}

.option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
	cursor: pointer;
	transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.option:has(:checked) {
	border-color: var(--green);
	background: var(--bg);
}

.option:has(:focus-visible) {
	outline: 3px solid rgba(47, 107, 67, 0.45);
	outline-offset: 2px;
}

.option__radio {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border: 2px solid var(--border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.option__radio::after {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.option:has(:checked) .option__radio {
	border-color: var(--green);
}

.option:has(:checked) .option__radio::after {
	background: var(--green);
}

.option > i {
	flex-shrink: 0;
	font-size: 24px;
	color: var(--green);
}

.option__text {
	flex: 1;
	min-width: 0;
}

.option__label {
	display: block;
	font-weight: 700;
}

.option__note {
	display: block;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.option__price {
	font-weight: 800;
	white-space: nowrap;
}

.contact {
	gap: 14px;
}

.contact__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--text-2);
}

.field input,
.field textarea {
	padding: 12px 14px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	background: #fff;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
	outline: none;
}

.field textarea {
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	border-color: var(--green);
}

.field ::placeholder {
	color: var(--text-faint);
}


/* ---- Summary page ---- */
.recap-items {
	display: flex;
	flex-direction: column;
}

.recap__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.recap__head a {
	font-weight: 700;
	font-size: 0.875rem;
}

.recap-items .recap__head {
	margin-bottom: 8px;
}

.recap-items h2 {
	font-size: 1.25rem;
}

.recap-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid var(--border-subtle);
}

.recap-item__img {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: var(--radius-md);
}

.recap-item__info {
	flex: 1;
	min-width: 0;
}

.recap-item__name {
	font-weight: 700;
}

.recap-item__meta {
	font-size: 0.875rem;
	color: var(--text-muted);
}

.recap-item__total {
	font-family: var(--font-display);
	font-weight: 800;
	white-space: nowrap;
}

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

.recap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.recap h2 {
	font-size: 1.125rem;
}

.recap__name {
	font-weight: 700;
}

.recap p {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--text-2);
}

.recap__method {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.recap__method i {
	font-size: 22px;
	color: var(--green);
}


/* ---- Done ---- */
.done-page {
	padding: 64px var(--gutter) 88px;
}

.done {
	max-width: 620px;
	margin: 0 auto;
	padding: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.done__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--bg-light);
	color: var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 44px;
}

.done h1 {
	font-size: 2rem;
}

.done p {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--text-2);
	text-wrap: pretty;
}

.done__back {
	margin-top: 8px;
	min-height: 50px;
	padding: 0 26px;
	font-size: 1rem;
	box-shadow: none;
}

@media (max-width: 480px) {
	.done {
		padding: 32px 20px;
	}
}
