/* EzdossFood 1.8.0 — Photo cards. Shared styles live in assets/css/frontend.css. */

.ezdf-layout-cards { gap: 32px; }
.ezdf-layout-cards .ezdf-menu-column { padding: 0; background: transparent; }

/* ── Category chips + search, stuck to the top while the menu scrolls ── */
.ezdf-cards-bar {
	position: sticky;
	top: calc(var(--ezdf-hb-h, 0px) + var(--ezdf-ab-h, 0px));
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	margin-bottom: 8px;
	background: var(--ezdf-cards-bar-bg, #fff);
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.ezdf-cards-chips {
	display: flex;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ezdf-cards-chips::-webkit-scrollbar { display: none; }
.ezdossfood-wrap .ezdf-chip {
	flex: 0 0 auto;
	padding: 8px 16px;
	border-radius: 999px;
	background: #f1f1f1;
	color: #1a1a1a;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.ezdossfood-wrap .ezdf-chip:hover { background: #e6e6e6; color: #1a1a1a; }
.ezdossfood-wrap .ezdf-chip.is-on { background: #111; color: #fff; }
.ezdf-cards-bar .ezdf-search-row { flex: 0 0 240px; margin: 0; }
.ezdf-cards-bar .ezdf-menu-search {
	width: 100%;
	border: 1px solid #d9d9d9;
	border-radius: 999px;
	padding: 9px 16px;
	font: inherit;
	font-size: 14px;
	background: #fff;
}
.ezdf-cards-bar .ezdf-search-empty { position: absolute; left: 0; top: 100%; margin: 6px 0 0; font-weight: 600; }
.ezdf-searching .ezdf-cards-chips .ezdf-chip { opacity: .45; pointer-events: none; }

/* ── Sections and cards ── */
.ezdf-cards-sec { padding-top: 26px; scroll-margin-top: calc(var(--ezdf-hb-h, 0px) + var(--ezdf-ab-h, 0px) + 72px); }
.ezdossfood-wrap .ezdf-cards-title { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; line-height: 1.1; letter-spacing: -.3px; color: inherit; }
.ezdf-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.ezdf-card {
	display: flex;
	gap: 14px;
	padding: 14px;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #e4e4e4;
	border-radius: 16px;
	min-height: 140px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ezdf-card:hover { border-color: #bdbdbd; box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.ezdf-card.is-out { opacity: .55; cursor: default; }
.ezdf-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ezdossfood-wrap .ezdf-card-name { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; color: #1a1a1a; }
.ezdf-card-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #5c5c5c;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ezdf-card-price { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15px; }
.ezdf-card-price del { opacity: .55; font-weight: 400; }
.ezdf-card-side { position: relative; flex: 0 0 auto; width: 112px; align-self: flex-start; }
.ezdf-card:not(.has-img) .ezdf-card-side { width: 40px; align-self: flex-end; }
.ezdf-card-img { display: block; width: 112px; height: 112px; object-fit: cover; border-radius: 12px; background: #eee; }
.ezdossfood-wrap .ezdf-card-add {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ezdf-primary, #E8433C);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}
.ezdf-card:not(.has-img) .ezdf-card-add { position: static; }
.ezdossfood-wrap .ezdf-card-add:disabled { background: #999; cursor: default; }

/* Order panel beside the menu, under the sticky bars. */
.ezdf-layout-cards .ezdf-cart-column { top: calc(16px + var(--ezdf-hb-h, 0px) + var(--ezdf-ab-h, 0px)); }

@media (max-width: 1000px) {
	.ezdf-cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ezdf-cards-bar { flex-direction: column-reverse; align-items: stretch; gap: 10px; padding: 10px 0; }
	.ezdf-cards-bar .ezdf-search-row { flex: 0 0 auto; }
	.ezdf-card { min-height: 0; padding: 12px; gap: 12px; }
	.ezdf-card-side { width: 96px; }
	.ezdf-card-img { width: 96px; height: 96px; }
	.ezdossfood-wrap .ezdf-card-name { font-size: 16px; }
	.ezdf-card-desc { font-size: 13px; }
}

/* 1.8.3: more sections than fit — arrows at the ends, the mouse wheel and
   dragging move the chip row on a computer (phones swipe it). */
.ezdf-cards-chipwrap { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.ezdf-cards-chipwrap .ezdf-cards-chips { flex: 1 1 auto; cursor: grab; }
.ezdf-cards-chipwrap .ezdf-cards-chips.is-dragging { cursor: grabbing; user-select: none; }
.ezdf-cards-chipwrap .ezdf-cards-chips.is-dragging .ezdf-chip { pointer-events: none; }
.ezdossfood-wrap .ezdf-chips-arrow {
	position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
	display: none; width: 34px; height: 34px; padding: 0; margin: 0;
	border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #111;
	font-size: 22px; line-height: 30px; text-align: center; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.ezdossfood-wrap .ezdf-chips-arrow:hover { background: #111; color: #fff; }
.ezdf-chips-arrow.is-prev { left: 0; }
.ezdf-chips-arrow.is-next { right: 0; }
.ezdf-cards-chipwrap.has-prev .ezdf-chips-arrow.is-prev,
.ezdf-cards-chipwrap.has-next .ezdf-chips-arrow.is-next { display: block; }
/* Fade the chips under the arrows. */
.ezdf-cards-chipwrap.has-prev::before,
.ezdf-cards-chipwrap.has-next::after { content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 1; pointer-events: none; }
.ezdf-cards-chipwrap.has-prev::before { left: 0; background: linear-gradient(90deg, var(--ezdf-cards-bar-bg, #fff) 40%, rgba(255,255,255,0)); }
.ezdf-cards-chipwrap.has-next::after { right: 0; background: linear-gradient(270deg, var(--ezdf-cards-bar-bg, #fff) 40%, rgba(255,255,255,0)); }
@media (hover: none) {
	.ezdossfood-wrap .ezdf-chips-arrow { display: none !important; }
}
