/* ==========================================================================
   TradeDay — public ordering page
   ========================================================================== */

.tradeday-menu {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.25rem 7rem; /* bottom padding clears the sticky cart bar */
}

.tradeday-menu__header { text-align: center; margin-bottom: 2rem; }
.tradeday-menu__header h1 { font-size: clamp(2rem, 6vw, 3.5rem); color: var(--td-chili); }
.tradeday-menu__tagline { color: var(--td-steel); font-size: 1.1rem; margin: 0; }
.tradeday-menu__notice {
	text-align: center;
	color: var(--td-steel);
	padding: 3rem 1rem;
	font-size: 1.1rem;
}

.tradeday-menu__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.tradeday-menu-item {
	background: #fff;
	border: 1px solid var(--td-border);
	border-radius: var(--td-radius-md);
	overflow: hidden;
	box-shadow: var(--td-shadow);
	display: flex;
	flex-direction: column;
}
.tradeday-menu-item[data-sold-out="1"] { opacity: 0.55; }

.tradeday-menu-item__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.tradeday-menu-item__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.tradeday-menu-item__name { font-size: 1.3rem; margin-bottom: 0.25em; }
.tradeday-menu-item__desc { color: var(--td-steel); font-size: 0.92rem; margin: 0 0 1rem; flex: 1; }

.tradeday-menu-item__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.9rem;
	border-top: 2px dashed var(--td-border); /* the ticket tear-line, every card carries it */
}
.tradeday-menu-item__price {
	font-family: var(--td-font-mono);
	font-weight: 500;
	font-size: 1.1rem;
}
.tradeday-menu-item__price::before { content: '$'; opacity: 0.6; }
.tradeday-menu-item__sold-out {
	font-family: var(--td-font-mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--td-chili);
}

/* ---- sticky cart ---- */
.tradeday-cart {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: var(--td-ink);
	color: var(--td-paper);
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
	z-index: 20;
}
.tradeday-cart__summary { display: flex; flex-direction: column; font-family: var(--td-font-mono); }
#tradeday-cart-count { font-size: 0.8rem; opacity: 0.75; }
.tradeday-cart__total { font-size: 1.3rem; font-weight: 500; }
.tradeday-cart__total::before { content: '$'; opacity: 0.6; }

/* ---- checkout dialog content ---- */
.tradeday-cart-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.tradeday-cart-list li {
	display: flex;
	justify-content: space-between;
	font-family: var(--td-font-mono);
	font-size: 0.95rem;
	padding: 0.4em 0;
	border-bottom: 1px dashed var(--td-border);
}

#checkout-error {
	color: var(--td-chili);
	font-size: 0.9rem;
	min-height: 1.2em;
}

.tradeday-order-number {
	font-family: var(--td-font-mono);
	font-size: 2rem;
	font-weight: 500;
	color: var(--td-chili);
	text-align: center;
	margin: 0.5em 0;
}

@media (max-width: 480px) {
	.tradeday-menu__grid { grid-template-columns: 1fr; }
}
