.shop-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .8rem 1rem;
	border-radius: var(--radius);
	font-weight: 700;
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.shop-status .dot {
	width: .7rem;
	height: .7rem;
	border-radius: 50%;
	flex: none;
	background: var(--muted);
}

.shop-status.open {
	color: #1c7a34;
}

.shop-status.open .dot {
	background: #1fa04a;
	box-shadow: 0 0 0 4px rgba(31, 160, 74, .18);
}

.shop-status.closed {
	color: var(--red);
}

.shop-status.closed .dot {
	background: var(--red);
	box-shadow: 0 0 0 4px rgba(184, 0, 0, .15);
}

.shop-status .wait {
	color: var(--muted);
	font-weight: 400;
}

.cat-nav {
	position: sticky;
	top: calc(var(--header-h, 56px) + .4rem);
	z-index: 20;
	display: flex;
	gap: .3rem;
	overflow-x: auto;
	scrollbar-width: none;
	padding: .4rem;
	margin: 1rem 0 1.5rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.cat-nav::-webkit-scrollbar {
	display: none;
}

.cat-nav a {
	flex: none;
	text-decoration: none;
	font-weight: 700;
	font-size: .92rem;
	color: var(--muted);
	background: transparent;
	border: 0;
	border-radius: 999px;
	padding: .4rem .95rem;
	white-space: nowrap;
	transition: background .15s, color .15s;
}

.cat-nav a:hover {
	color: var(--red);
	background: #fff4de;
}

.cat-nav a.active {
	background: var(--red);
	color: #fff;
}

.cat-section {
	scroll-margin-top: calc(var(--header-h, 56px) + 3.75rem);
	padding-block: 0;
	margin-bottom: 1.5rem;
}

.cat-section > h2 {
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--red);
	font-size: 1.35rem;
	margin: 0 0 .35rem;
	padding-bottom: .4rem;
	border-bottom: 3px solid var(--amber);
}

.cat-section > .cat-desc {
	color: var(--muted);
	margin: 0 0 1.1rem;
}

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

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.product-card .pimg {
	aspect-ratio: 16 / 10;
	background: #f3ead7 center / cover no-repeat;
}

.product-card .pbody {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	padding: 1rem 1.1rem;
	flex: 1;
}

.product-card .pname {
	font-weight: 700;
}

.product-card .pdesc {
	color: var(--muted);
	font-size: .92rem;
	flex: 1;
}

.product-card .pfoot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: .5rem;
}

.product-card .pprice {
	color: var(--red);
	font-weight: 700;
	white-space: nowrap;
}

.product-card.unavailable {
	opacity: .6;
}

.product-card .sold-out {
	color: var(--muted);
	font-size: .9rem;
	font-weight: 700;
}

.btn-add {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	cursor: pointer;
	background: var(--amber);
	color: var(--ink);
	border: 0;
	font-weight: 700;
	padding: .5rem .9rem;
	border-radius: 999px;
	font-size: .95rem;
	font-family: inherit;
}

.btn-add:hover {
	background: var(--amber-dark);
}

.btn-add:disabled {
	background: var(--line);
	color: var(--muted);
	cursor: not-allowed;
}

.cart-fab {
	position: fixed;
	right: 1.1rem;
	bottom: 1.1rem;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	cursor: pointer;
	background: var(--red);
	color: #fff;
	border: 0;
	font-family: inherit;
	font-weight: 700;
	padding: .8rem 1.15rem;
	border-radius: 999px;
	box-shadow: 0 10px 26px rgba(120, 0, 0, .35);
}

.cart-fab:hover {
	background: var(--red-dark);
}

.cart-fab .cart-count {
	min-width: 1.4rem;
	height: 1.4rem;
	padding: 0 .35rem;
	border-radius: 999px;
	background: var(--amber);
	color: var(--ink);
	font-size: .85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cart-fab[hidden] {
	display: none;
}

.shop-msg {
	color: var(--muted);
	padding: 1.5rem 0;
}

.shop-msg.error {
	color: var(--red);
	font-weight: 700;
}

.toast-wrap {
	position: fixed;
	left: 50%;
	bottom: 5.5rem;
	transform: translateX(-50%);
	z-index: 70;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	align-items: center;
	pointer-events: none;
}

.toast {
	background: var(--ink);
	color: #fff;
	padding: .6rem 1rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: .95rem;
	box-shadow: var(--shadow);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s, transform .2s;
}

.toast.show {
	opacity: 1;
	transform: translateY(0);
}

.modal-overlay,
.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(25, 15, 5, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}

.modal-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.modal-overlay.show,
.drawer-overlay.show {
	opacity: 1;
	visibility: visible;
}

.modal-box {
	position: relative;
	background: var(--surface);
	border-radius: var(--radius);
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.5rem 1.5rem 1.25rem;
	box-shadow: 0 20px 50px rgba(60, 30, 5, .3);
	transform: translateY(10px);
	transition: transform .2s;
}

.modal-overlay.show .modal-box {
	transform: translateY(0);
}

.modal-close,
.drawer-close {
	position: absolute;
	top: .5rem;
	right: .6rem;
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 1.8rem;
	line-height: 1;
	color: var(--muted);
	padding: .2rem .5rem;
	border-radius: 8px;
}

.modal-close:hover,
.drawer-close:hover {
	color: var(--red);
	background: var(--cream);
}

.modal-title {
	margin: 0 1.5rem .35rem 0;
	color: var(--red);
	font-size: 1.3rem;
}

.modal-title .modal-base {
	color: var(--muted);
	font-weight: 400;
	font-size: 1rem;
}

.modal-desc {
	color: var(--muted);
	margin: 0 0 1rem;
}

.opt-group {
	border: 0;
	padding: 0;
	margin: 0 0 1rem;
}

.opt-group legend {
	font-weight: 700;
	padding: 0;
	margin-bottom: .25rem;
}

.opt-value {
	display: flex;
	align-items: center;
	gap: .6rem;
	cursor: pointer;
	padding: .5rem 0;
	border-bottom: 1px dashed var(--line);
}

.opt-value input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--red);
	flex: none;
}

.opt-value .opt-name {
	flex: 1;
}

.opt-value .opt-delta {
	color: var(--red);
	font-weight: 700;
	font-size: .92rem;
}

.opt-qty {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 1rem 0 1.25rem;
}

.opt-qty-label {
	font-weight: 700;
	margin-right: auto;
}

.qty {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
}

.qty-btn {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
	color: var(--red);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
}

.qty-btn:hover {
	border-color: var(--amber);
}

.qty-input {
	width: 3rem;
	text-align: center;
	padding: .35rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
}

.modal-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.modal-total {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--red);
}

.modal-add {
	padding: .7rem 1.2rem;
}

.drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: min(430px, 100%);
	background: var(--cream);
	display: flex;
	flex-direction: column;
	box-shadow: -12px 0 40px rgba(60, 30, 5, .25);
	transform: translateX(100%);
	transition: transform .25s ease;
}

.drawer-overlay.show .drawer {
	transform: translateX(0);
}

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: var(--red);
	color: #fff;
}

.drawer-head h2 {
	margin: 0;
	font-size: 1.25rem;
}

.drawer-head .drawer-close {
	position: static;
	color: #fff;
}

.drawer-head .drawer-close:hover {
	background: rgba(255, 255, 255, .15);
	color: #fff;
}

.drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 1.1rem 1.25rem 1.5rem;
}

.drawer-empty {
	color: var(--muted);
	text-align: center;
	padding: 2.5rem 0;
}

.cart-items {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.cart-item {
	display: flex;
	gap: .75rem;
	justify-content: space-between;
	align-items: flex-start;
	padding: .85rem 0;
	border-bottom: 1px solid var(--line);
}

.ci-main {
	min-width: 0;
}

.ci-name {
	font-weight: 700;
	display: block;
}

.ci-opts {
	color: var(--muted);
	font-size: .88rem;
}

.ci-controls {
	display: flex;
	align-items: center;
	gap: .6rem;
	flex: none;
}

.ci-price {
	font-weight: 700;
	color: var(--red);
	white-space: nowrap;
	min-width: 4.5rem;
	text-align: right;
}

.ci-remove {
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--muted);
	padding: .25rem;
	border-radius: 8px;
}

.ci-remove:hover {
	color: var(--red);
	background: var(--surface);
}

.cart-total {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 1.15rem;
	padding: .75rem 0 0;
}

.cart-total span:last-child {
	color: var(--red);
}

.checkout {
	margin-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .9rem;
}

.wait-msg {
	padding: .7rem .9rem;
	border-radius: 10px;
	font-weight: 700;
	font-size: .92rem;
	text-align: center;
}

.wait-msg.ok {
	background: #e6f6ea;
	color: #1c7a34;
}

.wait-msg.warn {
	background: #fff2d9;
	color: #9a6600;
}

.wait-msg.danger,
.wait-msg.closed {
	background: #fde3e3;
	color: var(--red);
}

.co-field {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	font-weight: 700;
}

.co-field input {
	padding: .65rem .8rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
}

.co-field input:focus-visible {
	outline: 2px solid var(--amber);
	border-color: var(--amber);
}

.co-agb {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	font-size: .9rem;
}

.co-agb input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: .1rem;
	accent-color: var(--red);
	flex: none;
}

.co-note {
	margin: 0;
	color: var(--muted);
	font-size: .88rem;
}

.btn-order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: var(--red);
	color: #fff;
	border: 0;
	font-family: inherit;
	font-weight: 700;
	padding: .85rem 1.2rem;
	border-radius: 999px;
	font-size: 1.05rem;
	cursor: pointer;
}

.btn-order:hover {
	background: var(--red-dark);
}

.btn-order:disabled {
	background: var(--line);
	color: var(--muted);
	cursor: not-allowed;
}

.btn-ghost {
	background: none;
	border: 0;
	color: var(--red);
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	padding: .6rem;
}

.btn-ghost:hover {
	text-decoration: underline;
}

.order-confirm {
	text-align: center;
	padding: 1rem 0;
}

.order-confirm h3 {
	color: var(--red);
	margin: 0 0 1rem;
}

.code-row {
	display: flex;
	gap: .5rem;
	justify-content: center;
	margin: .75rem 0 1rem;
	flex-wrap: wrap;
}

.code-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	height: 3rem;
	padding: 0 .6rem;
	background: var(--surface);
	border: 2px solid var(--amber);
	border-radius: 10px;
	box-shadow: var(--shadow);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--red);
	text-transform: uppercase;
}

.confirm-due {
	font-size: 1.05rem;
}

.confirm-note {
	color: var(--muted);
	font-size: .9rem;
}

.confirm-actions {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: 1.25rem;
}

.code-entry {
	display: flex;
	gap: .6rem;
	align-items: center;
	flex-wrap: wrap;
	margin: 1.25rem 0 1.5rem;
}

.code-input {
	width: 3.2rem;
	height: 3.6rem;
	text-align: center;
	text-transform: uppercase;
	font-size: 1.7rem;
	font-weight: 700;
	color: var(--red);
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	font-family: inherit;
}

.code-input:focus-visible {
	outline: 0;
	border-color: var(--amber);
}

.code-entry .btn-order {
	height: 3.6rem;
}

.status-result {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.status-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.status-label {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--red);
}

.status-code {
	color: var(--muted);
}

.status-code strong {
	color: var(--ink);
	letter-spacing: .05em;
}

.progress-bar {
	height: .7rem;
	background: var(--line);
	border-radius: 999px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	width: 0;
	background: var(--amber);
	border-radius: 999px;
	transition: width .4s ease;
}

.status-steps {
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	margin: 1.25rem 0 0;
	padding: 0;
}

.status-steps .step {
	flex: 1;
	text-align: center;
	font-size: .82rem;
	color: var(--muted);
	position: relative;
}

.status-steps .step-dot {
	display: block;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	margin: 0 auto .4rem;
	background: var(--line);
	border: 2px solid var(--line);
}

.status-steps .step.done .step-dot {
	background: var(--amber);
	border-color: var(--amber);
}

.status-steps .step.active .step-dot {
	background: var(--red);
	border-color: var(--red);
	box-shadow: 0 0 0 4px rgba(184, 0, 0, .15);
}

.status-steps .step.active {
	color: var(--red);
	font-weight: 700;
}

.status-steps .step.done {
	color: var(--ink);
}

.status-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	margin-top: 1.5rem;
}

.status-meta > div {
	display: flex;
	flex-direction: column;
}

.status-meta .label {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
}

.status-meta > div > span:last-child {
	font-weight: 700;
	font-size: 1.1rem;
}