/* Online objednávka – doplňky k CSS šablony RAF House (assets/main-*.css) */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1 0 auto;
}

a {
	cursor: pointer;
}

.text-link {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

/* Tlačítka */

.btn:disabled,
.btn[aria-disabled='true'] {
	opacity: 0.4;
	cursor: not-allowed;
	box-shadow: none;
}

.btn--primary:disabled:hover {
	background-color: var(--color-green);
}

.btn--small {
	height: 44px;
	padding: 12px 22px;
	font-size: 14px;
}

.btn--block {
	width: 100%;
}

.btn--added,
.btn--added:hover {
	background-color: var(--color-army);
	color: var(--color-beige);
}

.btn__icon--back {
	transform: rotate(180deg);
}

.btn__icon--cart {
	width: 18px;
	height: 18px;
}

/* Hlavička */

.order-header {
	border-bottom: 1px solid rgba(24, 38, 25, 0.1);
}

.order-header .header__main-inner {
	gap: 24px;
}

@media (min-width: 64rem) {
	.order-header .header__main-inner {
		height: 104px;
		justify-content: space-between;
	}
}

.order-header__title {
	display: none;
	padding-left: 24px;
	border-left: 1px dashed rgba(24, 38, 25, 0.4);
	font-size: var(--text-bold);
	line-height: var(--text-bold--line-height);
	font-weight: 700;
	text-transform: uppercase;
}

@media (min-width: 48rem) {
	.order-header__title {
		display: block;
	}
}

.order-header__brand {
	display: flex;
	align-items: center;
	gap: 24px;
}

.order-header__meta {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-left: auto;
}

.order-header__info {
	display: none;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

@media (min-width: 64rem) {
	.order-header__info {
		display: flex;
	}
}

.header__status-dot--closed {
	background-color: var(--color-red);
}

.order-header__back {
	display: none;
}

@media (min-width: 40rem) {
	.order-header__back {
		display: inline-flex;
	}
}

/* Hero pruh */

.order-hero .rezervace-hero__inner,
.order-page .rezervace-hero__inner {
	padding-inline: 16px;
}

.order-hero .rezervace-hero__inner {
	padding-block: 40px;
}

@media (min-width: 64rem) {
	.order-hero .rezervace-hero__inner {
		padding-block: 56px;
	}
}

.order-hero .rezervace-hero__text {
	min-height: 0;
}

.order-hero .rezervace-hero__title,
.order-page .rezervace-hero__title {
	margin-top: 0;
}

.order-hero__note {
	margin-top: 16px;
	max-width: 640px;
	font-size: var(--text-basic);
	line-height: var(--text-basic--line-height);
}

/* Načítání */

.order-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	min-height: 60vh;
	padding: 64px 16px;
	text-align: center;
}

.order-loading__title {
	font-size: var(--text-m-h5);
	line-height: var(--text-m-h5--line-height);
	font-weight: 700;
	text-transform: uppercase;
}

@media (min-width: 64rem) {
	.order-loading__title {
		font-size: var(--text-h5);
		line-height: var(--text-h5--line-height);
	}
}

/* Rozložení kroku 1 */

.order-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding-block: 32px 64px;
}

@media (min-width: 64rem) {
	.order-layout {
		grid-template-columns: 200px minmax(0, 1fr) 360px;
		gap: 40px;
		padding-block: 56px 96px;
	}
}

/* Kategorie */

.order-categories {
	position: sticky;
	top: 0;
	z-index: 20;
	margin-inline: -16px;
	padding: 12px 16px;
	background-color: var(--color-white);
	border-bottom: 1px solid rgba(24, 38, 25, 0.1);
}

.order-categories__title {
	display: none;
}

.order-categories__list {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scrollbar-width: none;
}

.order-categories__list::-webkit-scrollbar {
	display: none;
}

.order-categories__link {
	position: relative;
	display: block;
	padding: 6px 0;
	font-size: var(--text-basic);
	line-height: var(--text-basic--line-height);
	white-space: nowrap;
	color: var(--color-green);
	text-decoration: underline;
}

.order-categories__link:hover {
	color: var(--color-army);
}

.order-categories__link--active {
	font-weight: 600;
	text-decoration: none;
}

@media (min-width: 64rem) {
	.order-categories {
		top: 24px;
		align-self: start;
		margin-inline: 0;
		padding: 0;
		border-bottom: 0;
		background: none;
	}

	.order-categories__title {
		display: block;
		margin-bottom: 20px;
		font-size: var(--text-h5);
		line-height: var(--text-h5--line-height);
		font-weight: 700;
		text-transform: uppercase;
	}

	.order-categories__list {
		flex-direction: column;
		gap: 12px;
		overflow: visible;
	}

	.order-categories__link {
		padding: 4px 0 4px 16px;
		white-space: normal;
		font-size: var(--text-kotvy);
		line-height: var(--text-kotvy--line-height);
	}

	.order-categories__link:before {
		content: '';
		position: absolute;
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 3px;
		height: 24px;
		background-color: var(--color-army);
		opacity: 0;
	}

	.order-categories__link--active:before,
	.order-categories__link:hover:before {
		opacity: 1;
	}
}

/* Produkty */

.order-products {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.order-category .menu-category__title {
	--category-color: var(--color-army);
	margin-bottom: 24px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(24, 38, 25, 0.12);
	border-radius: 12px;
	background-color: var(--color-white);
	transition: box-shadow 0.2s ease;
}

.product-card:hover {
	box-shadow: 2px 14px 26px #0a0e0a1a;
}

.product-card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background-color: var(--color-beige);
}

.product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px 20px 0;
}

.product-card__description {
	opacity: 0.8;
}

.product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding: 16px 20px 20px;
	border-top: 1px dashed rgba(24, 38, 25, 0.15);
}

.product-card__price {
	font-size: var(--text-bold);
	line-height: var(--text-bold--line-height);
	font-weight: 800;
	white-space: nowrap;
}

/* Košík */

.order-cart {
	align-self: start;
}

@media (min-width: 64rem) {
	.order-cart {
		position: sticky;
		top: 24px;
	}
}

.order-cart.menu-board__card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px 24px;
}

@media (min-width: 64rem) {
	.order-cart.menu-board__card {
		padding: 40px 32px;
	}
}

.order-cart__title {
	font-size: var(--text-m-h5);
	line-height: var(--text-m-h5--line-height);
	font-weight: 700;
	text-transform: uppercase;
}

@media (min-width: 64rem) {
	.order-cart__title {
		font-size: var(--text-h5);
		line-height: var(--text-h5--line-height);
	}
}

.order-cart__empty {
	opacity: 0.8;
}

.order-cart__hours {
	font-size: var(--text-small);
	line-height: var(--text-small--line-height);
	opacity: 0.8;
}

.cart-list {
	display: flex;
	flex-direction: column;
}

.cart-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
}

.cart-item + .cart-item {
	border-top: 1px dashed rgba(24, 38, 25, 0.15);
}

.cart-item__qty {
	flex: none;
	min-width: 28px;
	font-weight: 700;
}

.cart-item__name {
	flex: 1 1 auto;
	min-width: 0;
}

.cart-item--box .cart-item__name {
	opacity: 0.7;
}

.cart-item__price {
	flex: none;
	font-weight: 600;
	white-space: nowrap;
}

.cart-item__controls {
	display: flex;
	flex: none;
	gap: 6px;
	width: 70px;
	justify-content: flex-end;
}

.qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(24, 38, 25, 0.35);
	border-radius: 50%;
	background-color: var(--color-white);
	color: var(--color-green);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.qty-btn:hover {
	border-color: var(--color-green);
	background-color: var(--color-beige);
}

.qty-btn svg {
	width: 12px;
	height: 12px;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 2px solid var(--color-green);
	font-size: var(--text-bold);
	line-height: var(--text-bold--line-height);
	font-weight: 800;
	text-transform: uppercase;
}

/* Plovoucí košík (mobil) */

.cart-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--color-green);
	color: var(--color-beige);
	box-shadow: 2px 14px 26px #0a0e0a40;
}

.cart-fab svg {
	width: 26px;
	height: 26px;
}

.cart-fab__count {
	position: absolute;
	top: -4px;
	right: -4px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	border-radius: 13px;
	background-color: var(--color-red);
	color: var(--color-white);
	font-size: var(--text-small);
	font-weight: 700;
}

@media (min-width: 64rem) {
	.cart-fab {
		display: none;
	}
}

/* Kroky objednávky */

.order-steps {
	display: flex;
	align-items: flex-start;
}

.order-steps__item {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	font-size: var(--text-small);
	line-height: 18px;
}

.order-steps__item + .order-steps__item:before {
	content: '';
	position: absolute;
	top: 16px;
	right: calc(50% + 22px);
	width: calc(100% - 44px);
	border-top: 1px dashed rgba(24, 38, 25, 0.4);
}

.order-steps__item--done + .order-steps__item--done:before {
	border-top: 2px solid var(--color-green);
}

.order-steps__marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--color-green);
	border-radius: 50%;
	background-color: var(--color-white);
	font-weight: 700;
}

.order-steps__item--done .order-steps__marker {
	background-color: var(--color-green);
	color: var(--color-beige);
}

.order-steps__item--current .order-steps__label {
	font-weight: 600;
}

/* Kroky 2–4 */

.order-page .rezervace-hero__text {
	min-height: 0;
}

.order-page--centered .rezervace-hero__inner {
	justify-content: center;
}

@media (min-width: 64rem) {
	.order-page--centered .rezervace-form {
		margin-top: 0;
	}
}

@media (min-width: 64rem) {
	.order-page .rezervace-hero__inner {
		padding-bottom: 96px;
	}

	.order-page .rezervace-hero__text {
		justify-content: flex-start;
		padding-top: 105px;
	}
}

.order-page .rezervace-hero__inner {
	padding-block: 48px 64px;
}

.order-page .rezervace-form,
.order-page .rezervace-confirmation {
	gap: 20px;
}

@media (max-width: 63.99rem) {
	.order-page .rezervace-form,
	.order-page .rezervace-confirmation {
		padding: 32px 20px;
	}
}

.order-page .rezervace-hero__contact-phone a,
.order-page .rezervace-hero__contact-email a {
	color: inherit;
}

.order-page .rezervace-hero__contact {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-top: 32px;
}

.order-form__title {
	font-size: var(--text-m-h5);
	line-height: var(--text-m-h5--line-height);
	font-weight: 700;
	text-transform: uppercase;
}

@media (min-width: 64rem) {
	.order-form__title {
		font-size: var(--text-h5);
		line-height: var(--text-h5--line-height);
	}
}

.order-pickup {
	padding: 16px 20px;
	background-color: var(--color-beige);
	font-size: var(--text-basic);
	line-height: var(--text-basic--line-height);
}

.rezervace-field__label-row .order-field__error {
	text-align: right;
}

.order-field__error {
	font-size: var(--text-small);
	line-height: 18px;
	color: var(--color-red);
}

.rezervace-field__input.is-invalid {
	border-color: var(--color-red);
}

.rezervace-checkbox--invalid .rezervace-checkbox__box {
	border-color: var(--color-red);
}

.rezervace-checkbox__input:checked + .rezervace-checkbox__box {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff7ee' stroke-width='1.6'/%3E%3C/svg%3E");
	background-size: 16px;
	background-position: center;
	background-repeat: no-repeat;
}

.rezervace-checkbox a {
	text-decoration: underline;
}

.rezervace-checkbox {
	align-items: flex-start;
}

.order-required {
	font-size: var(--text-small);
	line-height: var(--text-small--line-height);
	opacity: 0.8;
}

.time-picker {
	display: flex;
	align-items: center;
	gap: 12px;
}

.time-picker .rezervace-field__control {
	flex: 1 1 0;
}

.time-picker__separator {
	font-size: var(--text-bold);
	font-weight: 700;
}

.order-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}

.order-actions .btn {
	flex: 1 1 auto;
}

/* Souhrn objednávky */

.order-summary {
	display: flex;
	flex-direction: column;
}

.order-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
}

.order-summary__row + .order-summary__row {
	border-top: 1px dashed rgba(24, 38, 25, 0.15);
}

.order-summary__label {
	flex: none;
	opacity: 0.8;
}

.order-summary__value {
	font-weight: 600;
	text-align: right;
	overflow-wrap: anywhere;
}

.order-subtitle {
	margin-top: 8px;
	font-size: var(--text-bold);
	line-height: var(--text-bold--line-height);
	font-weight: 700;
	text-transform: uppercase;
}

.order-notice {
	padding: 12px 16px;
	border-left: 3px solid var(--color-red);
	background-color: #e62c380d;
}

.order-notice strong {
	color: var(--color-red);
}

.order-page .rezervace-confirmation a:not(.btn) {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.order-page .rezervace-confirmation__cta {
	align-self: flex-start;
}

.order-error-list {
	padding-left: 20px;
	list-style: disc;
}

.order-error-list li + li {
	margin-top: 8px;
}

/* Patička */

.order-footer {
	border-top: 1px solid rgba(24, 38, 25, 0.1);
}

.order-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-block: 40px 16px;
}

.order-footer__logo {
	display: block;
	width: 110px;
	height: auto;
}

.order-footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
}

.order-footer .footer__copyright {
	font-size: var(--text-small);
	opacity: 0.8;
}
