/* EzdossFood front-end styles. All colors/fonts come from CSS custom
   properties set inline per active theme (see class-ezdf-theme-manager.php).
   Deliberately NOT redeclared here: this selector previously hardcoded the
   "Red (Default)" theme's own values directly on `.ezdossfood-wrap`, which
   has the exact same selector/specificity as the active theme's inline
   override — so it only "worked" by relying on the inline block loading
   later in the page's <head>. Any CSS optimization/combine plugin that
   reorders or merges stylesheets can flip that order and silently revert
   every site back to red regardless of which theme is actually active.
   Each var(--ezdf-*, fallback) below still degrades gracefully to the Red
   defaults in the rare case the inline override never printed at all, but
   nothing here can outright override a real active theme anymore. */

.ezdossfood-wrap {
	font-family: var(--ezdf-font, Poppins, sans-serif);
	color: var(--ezdf-text, #222222);
}

.ezdossfood-wrap * {
	box-sizing: border-box;
}

.ezdf-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.ezdf-menu-column {
	flex: 1 1 640px;
	min-width: 280px;
	background: var(--ezdf-container-bg, transparent);
	border-radius: var(--ezdf-radius, 6px);
	padding: 16px;
}

.ezdf-cart-column {
	flex: 0 0 320px;
	min-width: 280px;
	position: sticky;
	top: 16px;
	background: var(--ezdf-container-bg, transparent);
	border-radius: var(--ezdf-radius, 6px);
	padding: 16px;
}

/* ---------- Buttons ---------- */
.ezdf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: var(--ezdf-radius, 6px);
	padding: 8px 18px;
	font-family: var(--ezdf-font, Poppins, sans-serif);
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}
.ezdf-btn:hover {
	opacity: 0.88;
}
.ezdf-btn-select,
.ezdf-btn-solid {
	background: var(--ezdf-button, #F2C94C);
	color: var(--ezdf-button-text, #FFFFFF);
}
.ezdf-btn-outline {
	background: transparent;
	color: var(--ezdf-primary, #E8433C);
	border: 1px solid var(--ezdf-primary, #E8433C);
}

/* ---------- Accordion ---------- */
.ezdf-accordion-item {
	margin-bottom: 12px;
	border-radius: var(--ezdf-radius, 6px);
	overflow: hidden;
}
.ezdf-accordion-header {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--ezdf-section-bg, #E8433C);
	color: var(--ezdf-section-text, #fff);
	border: none;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--ezdf-font, Poppins, sans-serif);
	cursor: pointer;
	text-align: left;
}
.ezdf-accordion-cat-img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}
.ezdf-accordion-title {
	flex: 1;
}
.ezdf-accordion-caret {
	transition: transform 0.2s ease;
}
.ezdf-accordion-item.is-open .ezdf-accordion-caret {
	transform: rotate(180deg);
}
.ezdf-accordion-body {
	display: none;
	background: var(--ezdf-bg, #fff);
	padding: 20px;
}
.ezdf-accordion-item.is-open .ezdf-accordion-body {
	display: block;
}

/* ---------- Product row (accordion + tabs) ---------- */
.ezdf-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.ezdf-product-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ezdf-product-img {
	width: 56px;
	height: 56px;
	border-radius: var(--ezdf-radius, 6px);
	object-fit: cover;
	flex-shrink: 0;
}
.ezdf-product-info {
	flex: 1;
	min-width: 0;
}
.ezdf-product-name {
	font-weight: 600;
	font-size: 14px;
}
.ezdf-product-price {
	font-weight: 700;
	color: var(--ezdf-accent, #E8433C);
	white-space: nowrap;
	font-size: 13px;
}

/* ---------- Grid template ---------- */
.ezdf-grid-category {
	margin-bottom: 28px;
}
.ezdf-grid-category-title {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ezdf-section-bg, #E8433C);
	color: var(--ezdf-section-text, #fff);
	padding: 12px 16px;
	border-radius: var(--ezdf-radius, 6px);
	margin-bottom: 12px;
}
.ezdf-grid-cat-img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
}
.ezdf-grid-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}
.ezdf-grid-card {
	border: 1px solid #eee;
	border-radius: var(--ezdf-radius, 6px);
	padding: 12px;
	text-align: center;
}
.ezdf-grid-card-img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: var(--ezdf-radius, 6px);
	margin-bottom: 8px;
}
.ezdf-grid-card-name {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}
.ezdf-grid-card-price {
	color: var(--ezdf-accent, #E8433C);
	font-weight: 700;
	margin-bottom: 8px;
}

/* ---------- List template ---------- */
.ezdf-list-category {
	margin-bottom: 24px;
}
.ezdf-list-category-title {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ezdf-section-bg, #E8433C);
	color: var(--ezdf-section-text, #fff);
	padding: 12px 16px;
	border-radius: var(--ezdf-radius, 6px);
	margin-bottom: 12px;
}
.ezdf-list-cat-img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
}
.ezdf-list-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}
.ezdf-list-row-img {
	width: 48px;
	height: 48px;
	border-radius: var(--ezdf-radius, 6px);
	object-fit: cover;
}
.ezdf-list-row-name {
	flex: 1;
	font-weight: 600;
	font-size: 14px;
}
.ezdf-list-row-price {
	color: var(--ezdf-accent, #E8433C);
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Tabs template ---------- */
.ezdf-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
.ezdf-tab-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--ezdf-primary, #E8433C);
	background: transparent;
	color: var(--ezdf-primary, #E8433C);
	padding: 8px 16px;
	border-radius: var(--ezdf-radius, 6px);
	cursor: pointer;
	font-family: var(--ezdf-font, Poppins, sans-serif);
	font-weight: 600;
}
.ezdf-tab-btn.is-active {
	background: var(--ezdf-section-bg, #E8433C);
	border-color: var(--ezdf-section-bg, #E8433C);
	color: var(--ezdf-section-text, #fff);
}
.ezdf-tab-cat-img {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
}
.ezdf-tab-panel {
	display: none;
}
.ezdf-tab-panel.is-active {
	display: block;
}

/* ---------- Cart panel ---------- */
.ezdf-cart-panel {
	border: 1px solid #eee;
	border-radius: var(--ezdf-radius, 6px);
	overflow: hidden;
	background: var(--ezdf-bg, #fff);
}
.ezdf-cart-header {
	background: var(--ezdf-section-bg, #E8433C);
	color: var(--ezdf-section-text, #fff);
	font-weight: 700;
	padding: 14px 18px;
}
.ezdf-cart-items {
	padding: 14px 18px;
	max-height: 360px;
	overflow-y: auto;
}
.ezdf-cart-empty {
	font-size: 13px;
	color: #888;
}
.ezdf-cart-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f2f2f2;
	position: relative;
}
.ezdf-cart-item-img {
	width: 44px;
	height: 44px;
	border-radius: var(--ezdf-radius, 6px);
	object-fit: cover;
}
.ezdf-cart-item-info {
	flex: 1;
	min-width: 0;
}
.ezdf-cart-item-name {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}
.ezdf-cart-item-qty {
	display: flex;
	align-items: center;
	gap: 6px;
}
.ezdf-qty-btn {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: none;
	background: var(--ezdf-primary, #E8433C);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
}
.ezdf-qty-value {
	font-size: 13px;
	min-width: 16px;
	text-align: center;
}
.ezdf-cart-item-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--ezdf-accent, #E8433C);
	white-space: nowrap;
}
.ezdf-cart-item-remove {
	background: none;
	border: none;
	color: var(--ezdf-primary, #E8433C);
	font-size: 16px;
	cursor: pointer;
	line-height: 1;
}
.ezdf-cart-totals {
	padding: 14px 18px;
	border-top: 1px solid #f0f0f0;
}
.ezdf-cart-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 4px 0;
}
.ezdf-cart-total {
	font-weight: 700;
	font-size: 15px;
	margin-top: 4px;
}
.ezdf-cart-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 18px;
}
.ezdf-cart-actions .ezdf-btn {
	width: 100%;
}

/* ---------- Product Modal ---------- */
.ezdf-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 100000;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 60px 20px;
}
.ezdf-modal-overlay.is-open {
	display: flex;
}
body.ezdf-modal-open {
	overflow: hidden;
}
.ezdf-modal-box {
	background: var(--ezdf-bg, #fff);
	border-radius: var(--ezdf-radius, 6px);
	width: 100%;
	max-width: 780px;
	overflow: hidden;
	font-family: var(--ezdf-font, Poppins, sans-serif);
	color: var(--ezdf-text, #222222);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.ezdf-modal-header {
	background: var(--ezdf-primary, #E8433C);
	padding: 14px 18px;
	display: flex;
	justify-content: flex-end;
}
.ezdf-modal-close {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.ezdf-modal-body {
	display: flex;
	gap: 28px;
	padding: 28px;
	flex-wrap: wrap;
}
.ezdf-modal-image-col {
	flex: 0 0 260px;
}
.ezdf-modal-image-col img {
	width: 100%;
	border-radius: var(--ezdf-radius, 6px);
	object-fit: cover;
}
.ezdf-modal-info-col {
	flex: 1 1 300px;
	min-width: 240px;
}
.ezdf-modal-title {
	margin: 0 0 8px;
	font-size: 24px;
}
.ezdf-modal-price {
	color: var(--ezdf-accent, #E8433C);
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 14px;
}
.ezdf-modal-description {
	font-size: 14px;
	color: #555;
	margin-bottom: 16px;
}
.ezdf-modal-variations {
	margin-bottom: 16px;
}
.ezdf-modal-body--no-image .ezdf-modal-info-col {
	flex: 1 1 100%;
}
.ezdf-modal-addons {
	margin-bottom: 16px;
}
.ezdf-modal-addon-group {
	margin-bottom: 14px;
}
.ezdf-modal-addon-group-title {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 6px;
}
.ezdf-modal-addon-required {
	font-weight: 400;
	font-style: italic;
	color: var(--ezdf-accent, #E8433C);
	font-size: 12px;
}
.ezdf-modal-addon-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	padding: 6px 0;
	cursor: pointer;
}
.ezdf-modal-addon-option input {
	accent-color: var(--ezdf-primary, #E8433C);
}
.ezdf-modal-addon-price {
	color: #777;
	font-size: 13px;
}
.ezdf-modal-addon-required-note {
	color: var(--ezdf-accent, #E8433C);
	font-size: 12px;
	margin: 2px 0 0;
}
.ezdf-modal-addon-bucket {
	margin: 6px 0 0 4px;
	padding-left: 10px;
	border-left: 2px solid #eee;
}
.ezdf-modal-addon-bucket-title {
	font-size: 12px;
	font-weight: 600;
	color: #777;
	margin: 4px 0;
}
.ezdf-modal-attribute-row {
	margin-bottom: 10px;
}
.ezdf-modal-attribute-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}
.ezdf-modal-attribute-row select {
	width: 100%;
	padding: 8px;
	border-radius: var(--ezdf-radius, 6px);
	border: 1px solid #ddd;
}
.ezdf-modal-notes {
	width: 100%;
	min-height: 70px;
	border: 1px solid #ddd;
	border-radius: var(--ezdf-radius, 6px);
	padding: 10px 12px;
	font-family: var(--ezdf-font, Poppins, sans-serif);
	font-size: 14px;
	resize: vertical;
	margin-bottom: 18px;
}
.ezdf-modal-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.ezdf-modal-qty {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f5f5f5;
	border-radius: var(--ezdf-radius, 6px);
	padding: 8px 14px;
}
.ezdf-modal-qty-value {
	font-weight: 600;
	min-width: 16px;
	text-align: center;
}
.ezdf-modal-add-to-cart {
	flex: 1;
	background: var(--ezdf-primary, #E8433C);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 12px 24px;
}
.ezdf-modal-add-to-cart:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.ezdf-modal-outofstock {
	color: #b32d2e;
	font-size: 13px;
	margin-top: 10px;
}

@media (max-width: 600px) {
	.ezdf-modal-body {
		flex-direction: column;
	}
	.ezdf-modal-image-col {
		flex: 0 0 auto;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
	.ezdf-layout {
		flex-direction: column;
	}
	.ezdf-cart-column {
		position: static;
		width: 100%;
	}
}
