/* ═══════════════════════════════════════════════
   BESTIL MAD — Wolt/Just Eat inspired redesign
   ═══════════════════════════════════════════════ */

/* ─── Page spacing ─── */
.bestilmad-page {
	padding-top: calc(111px + 24px);
	padding-bottom: 100px;
}

/* ─── Hero ─── */
.bm-hero {
	margin: 0 0 28px;
	color: #000;
}
.bm-hero-title {
	font-family: 'Jost', sans-serif;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--ss-heading);
}
.bm-hero-sub {
	font-size: 15px;
	color: #666;
	margin: 0;
}

/* ─── Layout ─── */
.menu-container {
	display: flex;
	position: relative;
	color: #000;
	gap: 28px;
}

/* ─── Category sidebar (desktop) ─── */
.sidebar-left {
	width: 220px;
	flex-shrink: 0;
}
.cat-nav {
	position: sticky;
	top: calc(111px + 24px);
}
.cat-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.cat-nav ul li {
	margin-bottom: 2px;
}
.cat-nav ul li a.menu-link {
	display: block;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	border-radius: 8px;
	border-left: 3px solid transparent;
	transition: all .15s ease;
}
.cat-nav ul li a.menu-link:hover {
	color: #000;
	background: #f5f5f5;
}
.cat-nav ul li a.menu-link.active {
	color: var(--ss-accent-dark);
	background: rgba(212, 120, 156, .08);
	border-left-color: var(--ss-accent);
	font-weight: 600;
}

/* ─── Main content ─── */
.main-content {
	flex: 1;
	min-width: 0;
}

/* ─── Category headings ─── */
.cat-heading {
	font-family: 'Jost', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--ss-heading);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid #eee;
}
.menu-category + .menu-category {
	margin-top: 36px;
}

/* ─── Menu item card ─── */
.menu-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border: 1px solid #eee;
	border-radius: 12px;
	background: #fff;
	transition: box-shadow .2s ease, border-color .2s ease;
	gap: 16px;
}
.menu-item + .menu-item {
	margin-top: 10px;
}
.menu-item:hover {
	border-color: #ddd;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Item content */
.menu-content {
	flex: 1;
	min-width: 0;
}
.menu-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--ss-heading);
	margin: 0 0 2px;
	line-height: 1.3;
}
.menu-num {
	color: var(--ss-accent);
	font-weight: 700;
}
.menu-description {
	font-size: 13px;
	color: #888;
	margin: 0 0 4px;
	line-height: 1.4;
}
.menu-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--ss-heading);
	margin: 0;
}

/* ─── Quantity group ─── */
.menu-action {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.qty-group {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fafafa;
	height: 42px;
}
.qty-btn {
	width: 38px;
	height: 42px;
	border: none;
	background: transparent;
	font-size: 18px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, color .15s;
	-webkit-user-select: none;
	user-select: none;
}
.qty-btn:hover {
	background: #eee;
	color: #000;
}
.qty-btn:active {
	background: #ddd;
}
input.menu-quantity {
	width: 36px;
	height: 42px;
	border: none;
	border-left: 1px solid #eee;
	border-right: 1px solid #eee;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	background: #fff;
	-moz-appearance: textfield;
	outline: none;
}
input.menu-quantity::-webkit-outer-spin-button,
input.menu-quantity::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Tilføj button */

/* ─── Cart sidebar (desktop) ─── */
.sidebar-right {
	width: 300px;
	flex-shrink: 0;
}
.sidebar-right .cart {
	position: sticky;
	top: calc(111px + 24px);
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 20px;
	background: #fff;
	box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

/* Cart header */
.cart-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}
.cart-header h3 {
	font-family: 'Jost', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--ss-heading);
	margin: 0;
}
.cart-badge {
	background: var(--ss-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	min-width: 22px;
	height: 22px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
}

/* Cart items */
.cart-items {
	font-size: 13px;
	max-height: 320px;
	overflow-y: auto;
}
.cart-empty {
	text-align: center;
	color: #bbb;
	font-size: 14px;
	padding: 24px 0;
	margin: 0;
}
.single-menu {
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}
.single-menu:last-child {
	border-bottom: none;
}
.single-menu .menu-header {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}
.single-menu .item-title {
	flex: 1;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	line-height: 1.4;
	min-width: 0;
	word-break: break-word;
}
.single-menu .price {
	font-size: 13px;
	font-weight: 600;
	color: var(--ss-heading);
	white-space: nowrap;
	flex-shrink: 0;
}
.single-menu .menu-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.cart-qty-group {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fafafa;
}
.cart-qty-btn {
	width: 30px;
	height: 30px;
	border: none;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
	-webkit-user-select: none;
	user-select: none;
}
.cart-qty-btn:hover {
	background: #eee;
}
.cart-qty-val {
	width: 30px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	border-left: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
	line-height: 30px;
}
.btn-delete-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border: none;
	background: transparent;
	color: #bbb;
	font-size: 12px;
	cursor: pointer;
	border-radius: 6px;
	transition: color .15s, background .15s;
	white-space: nowrap;
}
.btn-delete-item:hover {
	color: #e53935;
	background: rgba(229, 57, 53, .08);
}
.btn-delete-item svg {
	pointer-events: none;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* Cart totals */
.cart-totals {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 2px solid #eee;
	font-size: 16px;
	color: var(--ss-heading);
}
.cart-totals span:first-child {
	font-weight: 500;
}

/* ─── Bestil nu CTA (deep green) ─── */
.btn-bestil,
.btn-bestil-mobile {
	width: 100%;
	padding: 14px 24px;
	margin-top: 16px;
	background: #22C55E;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s, transform .1s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.btn-bestil:hover:not([disabled]),
.btn-bestil-mobile:hover:not([disabled]) {
	background: #16A34A;
}
.btn-bestil:active:not([disabled]),
.btn-bestil-mobile:active:not([disabled]) {
	transform: scale(.98);
}
.btn-bestil[disabled],
.btn-bestil-mobile[disabled] {
	background: #ccc;
	cursor: not-allowed;
}
.btn-bestil svg {
	flex-shrink: 0;
}
.btn-clear-cart {
	width: 100%;
	padding: 10px 24px;
	margin-top: 8px;
	background: transparent;
	color: #999;
	border: 1px solid #ddd;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all .2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.btn-clear-cart:hover {
	color: #c0392b;
	border-color: #c0392b;
	background: #fdf2f2;
}
.btn-clear-cart:active {
	transform: scale(.98);
}

/* ─── Modal ─── */
.modal {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	z-index: 9999;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100%;
	height: 100%;
}
.modal .modal-inner {
	position: relative;
	background: #fff;
	border-radius: 20px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: 440px;
	max-width: calc(100% - 32px);
	color: #000;
	padding: 0;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	box-shadow: 0 12px 48px rgba(0,0,0,.2);
}
.modal .btn-close-modal {
	position: sticky;
	top: 14px;
	align-self: flex-end;
	margin: 14px 14px -36px 0;
	flex-shrink: 0;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: #f0f0f0;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	transition: background .15s;
}
.modal .btn-close-modal:hover {
	background: #e0e0e0;
}

/* Modal top */
.modal-top {
	text-align: center;
	padding: 28px 28px 20px;
	border-bottom: 1px solid #eee;
}
.modal-logo {
	border-radius: 12px;
	margin-bottom: 12px;
}
.modal-top h3 {
	font-family: 'Jost', sans-serif;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--ss-heading);
}
.modal-total {
	font-size: 15px;
	color: #666;
}
.modal-total strong {
	color: var(--ss-heading);
}

/* Form sections */
#order-form {
	padding: 20px 28px 28px;
}
.form-section {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}
.form-section:last-of-type {
	border-bottom: none;
	margin-bottom: 8px;
	padding-bottom: 8px;
}
.form-row {
	display: flex;
	gap: 12px;
}
.form-row > .form-group {
	flex: 1;
	margin-bottom: 0;
}
.form-group {
	margin-bottom: 14px;
	position: relative;
}
.form-group:last-child {
	margin-bottom: 0;
}

/* Form controls */
.page-template-page-bestilmad .form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin-bottom: 5px;
	position: static;
	pointer-events: auto;
	clip: unset;
	clip-path: none;
	width: auto;
	height: auto;
	padding: 0;
	white-space: normal;
	opacity: 1;
}
.page-template-page-bestilmad input.form-control,
.page-template-page-bestilmad select.form-control,
.page-template-page-bestilmad textarea.form-control {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: #fafafa !important;
	border: 1px solid #ddd !important;
	border-radius: 10px !important;
	color: #333 !important;
	font-size: 15px !important;
	width: 100% !important;
	padding: 11px 14px !important;
	transition: border-color .2s, box-shadow .2s !important;
	outline: none !important;
	height: auto !important;
	line-height: normal !important;
	box-sizing: border-box !important;
}
.page-template-page-bestilmad input.form-control:focus,
.page-template-page-bestilmad select.form-control:focus,
.page-template-page-bestilmad textarea.form-control:focus {
	border-color: var(--ss-accent) !important;
	box-shadow: 0 0 0 3px rgba(212, 120, 156, .12) !important;
	background: #fff !important;
}
.page-template-page-bestilmad select.form-control {
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	padding-right: 36px !important;
}
.page-template-page-bestilmad select.form-control option {
	color: #333;
}
.page-template-page-bestilmad textarea.form-control {
	resize: vertical;
	min-height: 80px;
}

/* Remove old floating label overrides */
.page-template-page-bestilmad .form-group label.form-label.active,
.page-template-page-bestilmad .form-group label.form-label[for="pickup-time"],
.page-template-page-bestilmad .form-group label.form-label[for="pickup-date"] {
	font-size: 13px;
	margin-top: 0;
	padding: 0 !important;
	position: static;
}

/* Submit button */
#submit-button {
	width: 100%;
	padding: 15px 24px;
	background: #22C55E;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s, transform .1s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
#submit-button:hover {
	background: #16A34A;
}
#submit-button:active {
	transform: scale(.98);
}

/* Loader */
#loader {
	text-align: center;
	padding: 16px;
	color: #666;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.loader-spinner {
	width: 20px; height: 20px;
	border: 3px solid #eee;
	border-top-color: #22C55E;
	border-radius: 50%;
	animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Closed message */
#closed-message {
	text-align: center;
	margin: 8px 0;
	padding: 10px;
	background: #fff3f3;
	border-radius: 8px;
	color: #c62828;
	font-size: 14px;
	font-weight: 500;
}

/* Overlay */
.overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	backdrop-filter: blur(4px);
	z-index: 1;
}
.hidden { display: none !important; }
body.mobile-cart-open {
	overflow: hidden;
	touch-action: none;
}

/* ─── Modal info ─── */
.modal-info {
	margin-top: 10px;
	font-size: 12px;
	color: #999;
	line-height: 1.6;
}
.modal-info p {
	margin: 2px 0;
}

/* ─── Form validation ─── */
.form-error {
	color: #e53935;
	font-size: 13px;
	margin-top: 6px;
	padding: 6px 10px;
	background: #fff5f5;
	border-radius: 6px;
	border: 1px solid #ffcdd2;
}

/* ─── Order confirmation ─── */
.confirmation-content {
	text-align: center;
	padding: 48px 28px 36px;
}
.confirmation-icon {
	margin-bottom: 20px;
}
.confirmation-content h3 {
	font-family: 'Jost', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--ss-heading);
	margin: 0 0 8px;
}
.confirmation-content p {
	font-size: 15px;
	color: #666;
	margin: 0 0 28px;
	line-height: 1.5;
}
.confirmation-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.btn-new-order {
	width: 100%;
	padding: 14px 24px;
	background: #22C55E;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s;
}
.btn-new-order:hover {
	background: #16A34A;
}
.btn-go-home {
	display: block;
	text-align: center;
	padding: 12px 24px;
	color: #666;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 10px;
	transition: background .15s, color .15s;
}
.btn-go-home:hover {
	background: #f5f5f5;
	color: #333;
}

/* ─── Addon Modal (Tilvalg) ─── */
.addon-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.addon-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.5);
	backdrop-filter: blur(4px);
}
.addon-modal-inner {
	position: relative;
	background: #fff;
	border-radius: 20px;
	width: 420px;
	max-width: calc(100% - 32px);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 28px;
	box-shadow: 0 12px 48px rgba(0,0,0,.2);
	z-index: 2;
}
.addon-modal-inner .btn-close-modal {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f0f0f0;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
}
.addon-modal-inner .btn-close-modal:hover {
	background: #e0e0e0;
}
.addon-modal-title {
	font-family: 'Jost', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--ss-heading);
	margin: 0 0 4px;
	padding-right: 40px;
}
.addon-modal-price {
	font-size: 14px;
	color: #888;
	margin: 0 0 20px;
}

/* Addon checkboxes */
.addon-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
}
.addon-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #eee;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	user-select: none;
}
.addon-option:hover {
	border-color: #ddd;
	background: #fafafa;
}
.addon-option input[type="checkbox"] {
	display: none;
}
.addon-check {
	width: 22px;
	height: 22px;
	border: 2px solid #ddd;
	border-radius: 6px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .15s;
}
.addon-option input:checked ~ .addon-check {
	background: #22C55E;
	border-color: #22C55E;
}
.addon-option input:checked ~ .addon-check::after {
	content: '';
	display: block;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-top: -2px;
}
.addon-option input:checked ~ .addon-name {
	font-weight: 600;
}
.addon-name {
	flex: 1;
	font-size: 14px;
	color: #333;
	font-weight: 500;
}
.addon-price {
	font-size: 13px;
	font-weight: 600;
	color: #22C55E;
	white-space: nowrap;
}

/* Addon notes */
.addon-notes-group {
	margin-bottom: 20px;
}
.addon-notes-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin-bottom: 6px;
}
.addon-notes-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 10px;
	font-size: 14px;
	color: #333;
	background: #fafafa;
	resize: vertical;
	outline: none;
	transition: border-color .2s;
	box-sizing: border-box;
}
.addon-notes-group textarea:focus {
	border-color: var(--ss-accent);
	background: #fff;
}
.addon-confirm {
	width: 100%;
	padding: 14px 24px;
	background: #22C55E;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.addon-confirm:hover {
	background: #16A34A;
}
.addon-confirm:active {
	transform: scale(.98);
}

/* Cart extras & notes display */
.cart-extras {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 4px;
}
.cart-extra-item {
	font-size: 11px;
	color: #22C55E;
	font-weight: 500;
}
.cart-notes {
	margin-bottom: 6px;
}
.cart-notes em {
	font-size: 11px;
	color: #999;
	font-style: italic;
}

/* Mandatory item styling */
.mandatory-item {
	opacity: .7;
	padding: 8px 0;
}
.mandatory-item .item-title {
	font-size: 12px;
	color: #999;
}
.mandatory-item .price {
	font-size: 12px;
	color: #999;
}

/* Flatpickr overrides */
.numInputWrapper span.arrowUp,
.numInputWrapper span.arrowDown {
	display: none !important;
}
.flatpickr-time { overflow: unset; }
input[type="time" i]::-webkit-calendar-picker-indicator { margin-top: -15px; }

/* ─── Mobile category bar ─── */
.mobile-categories {
	display: none;
}

/* ─── Mobile cart footer ─── */
#cart-footer {
	display: none;
}
#mobile-cart {
	display: none;
}


/* ═══════════════════════════════════════════════
   Responsive — Tablet (≤ 1150px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1150px) {
	/* Hide desktop sidebar right */
	#cart-sidebar { display: none; }

	/* Expand main content */
	.main-content { flex: 1; }

	/* Mobile cart footer */
	#cart-footer {
		display: block;
		position: fixed;
		bottom: 0; left: 0;
		width: 100%;
		background: #fff;
		z-index: 992;
		box-shadow: 0 -2px 16px rgba(0,0,0,.1);
		padding: 12px 16px;
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}
	.cart-footer-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		max-width: 600px;
		margin: 0 auto;
	}
	.cart-footer-view {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 10px 18px;
		background: #22C55E;
		border: none;
		border-radius: 10px;
		font-size: 14px;
		font-weight: 700;
		color: #fff;
		cursor: pointer;
		transition: background .15s;
	}
	.cart-footer-view:hover { background: #16A34A; }
	.cart-footer-view svg { flex-shrink: 0; color: rgba(255,255,255,.85); }
	.cart-footer-total {
		font-size: 16px;
		font-weight: 700;
		color: var(--ss-heading);
	}

	/* Mobile cart slide-up — full height */
	#mobile-cart {
		display: flex;
		flex-direction: column;
		position: fixed;
		left: 0; top: 0;
		width: 100%;
		height: 100dvh;
		background: #fff;
		z-index: 1001;
		padding: 0;
		border-radius: 0;
		box-shadow: 0 0 40px rgba(0,0,0,.2);
		opacity: 0;
		visibility: hidden;
		transform: translateY(100%);
		transition: all .3s ease;
		color: #000;
		overscroll-behavior: contain;
	}
	#mobile-cart.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	#mobile-cart .btn-close-modal {
		position: sticky;
		top: 0;
		align-self: flex-end;
		margin: 14px 14px 0 0;
		flex-shrink: 0;
		width: 32px; height: 32px;
		border-radius: 50%;
		background: #f0f0f0;
		border: none;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 3;
	}
	#mobile-cart h3 {
		font-family: 'Jost', sans-serif;
		font-size: 18px;
		font-weight: 700;
		margin: -18px 0 0 20px;
		padding: 0 0 14px;
		flex-shrink: 0;
	}
	#mobile-cart .cart-items {
		flex: 1;
		overflow-y: auto;
		padding: 0 20px;
		max-height: none;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	#mobile-cart .cart-totals {
		flex-shrink: 0;
		margin: 0;
		padding: 14px 20px 0;
		border-top: 2px solid #eee;
	}
	#mobile-cart .btn-bestil-mobile {
		flex-shrink: 0;
		margin: 12px 20px;
		margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		width: calc(100% - 40px);
		padding: 14px 20px;
		font-size: 15px;
	}

	/* Bottom padding for mobile footer */
	.bestilmad-page { padding-bottom: 100px; }
}


/* ═══════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
	.bestilmad-page { padding-top: calc(80px + 16px); }

	.bm-hero {
		margin-bottom: 16px;
		padding: 0 16px;
	}
	.bm-hero-title { font-size: 26px; }
	.bm-hero-sub { font-size: 13px; }

	/* Hide desktop sidebar */
	.sidebar-left { display: none; }

	/* Show mobile categories */
	.mobile-categories {
		display: flex;
		position: sticky;
		top: 80px;
		z-index: 100;
		background: #fff;
		border-bottom: 1px solid #eee;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 0 12px;
		gap: 4px;
		margin-bottom: 16px;
	}
	.mobile-categories::-webkit-scrollbar { display: none; }
	.mobile-cat-link {
		display: inline-flex;
		align-items: center;
		padding: 10px 14px;
		font-size: 13px;
		font-weight: 500;
		color: #666;
		text-decoration: none;
		white-space: nowrap;
		border-bottom: 2px solid transparent;
		transition: color .15s, border-color .15s;
		flex-shrink: 0;
	}
	.mobile-cat-link:hover,
	.mobile-cat-link.active {
		color: var(--ss-accent-dark);
		border-bottom-color: var(--ss-accent);
	}

	/* Layout */
	.menu-container {
		padding: 0 12px;
		flex-direction: column;
		gap: 0;
	}
	.main-content { width: 100%; }

	/* Compact items — single row: content | price | qty */
	.menu-item {
		padding: 10px 12px;
		border-radius: 10px;
		gap: 10px;
	}
	.menu-item + .menu-item {
		margin-top: 6px;
	}
	.menu-content { flex: 1; min-width: 0; }
	.menu-title { font-size: 13px; margin: 0; }
	.menu-description { font-size: 11px; margin: 0 0 2px; }
	.menu-price { font-size: 13px; margin: 0; white-space: nowrap; }
	.menu-action { gap: 8px; }
	.qty-group { height: 32px; border-radius: 8px; }
	.qty-btn { width: 30px; height: 32px; font-size: 15px; }
	input.menu-quantity { width: 28px; height: 32px; font-size: 13px; }
	/* Category headings */
	.cat-heading { font-size: 20px; margin-bottom: 10px; }
	.menu-category + .menu-category { margin-top: 28px; }

	/* Modal */
	.modal .modal-inner {
		width: calc(100% - 24px);
		max-width: calc(100% - 24px);
		border-radius: 20px;
		max-height: calc(100vh - 24px);
	}
	.modal-top { padding: 24px 20px 16px; }
	#order-form { padding: 16px 20px 20px; }
	.form-row { flex-direction: column; gap: 0; }
	.form-row > .form-group { margin-bottom: 14px; }
	.form-row > .form-group:last-child { margin-bottom: 0; }

	/* Addon modal mobile */
	.addon-modal-inner {
		width: calc(100% - 24px);
		max-width: calc(100% - 24px);
		padding: 24px 20px;
		max-height: calc(100vh - 24px);
	}
	.addon-modal-title { font-size: 16px; }
	.addon-option { padding: 10px 12px; }
	.addon-name { font-size: 13px; }
	.addon-price { font-size: 12px; }
}


/* ═══════════════════════════════════════════════
   Responsive — Small mobile (≤ 480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
	.bestilmad-page { padding-top: calc(70px + 12px); }
	.mobile-categories { top: 70px; }

	.bm-hero-title { font-size: 22px; }
	.bm-hero-sub { font-size: 12px; }
}
