/* ============ Escusemua — Widget de pedido en 4 pasos ============ */

.fd-order-flow {
	--fd-paper: #FAF6EE;
	--fd-paper-warm: #F0E3CB;
	--fd-ink: #2E2013;
	--fd-ink-soft: #6B5A48;
	--fd-rose: #B85C64;
	--fd-rose-dark: #984A52;
	--fd-sage: #75845C;
	--fd-gold: #D9A441;
	--fd-line: #E4D6BC;
	--fd-white: #FFFEFA;

	font-family: 'Inter', sans-serif;
	color: var(--fd-ink);
	max-width: 1280px;
	margin: 2rem auto;
	padding: 0 1.5rem;
}

/* Blindaje contra los estilos por defecto del tema en botones,
   enlaces e imágenes dentro del widget. */
.fd-order-flow *,
.fd-order-flow *::before,
.fd-order-flow *::after {
	box-sizing: border-box;
}

.fd-order-flow button {
	font-family: inherit;
	line-height: inherit;
	box-shadow: none;
}

.fd-order-flow img {
	max-width: none;
}

.fd-flow-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: stretch;
}

.fd-flow-col {
	background: var(--fd-white);
	border: 1px solid var(--fd-line);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
}

.fd-flow-col-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fd-line);
}

.fd-flow-badge {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--fd-ink);
	color: var(--fd-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 700;
	flex-shrink: 0;
}

.fd-flow-col-head h3 {
	font-family: 'Fraunces', serif;
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

.fd-flow-empty {
	color: var(--fd-ink-soft);
	font-size: 0.9rem;
	margin: 0;
}

.fd-flow-foot-note {
	font-size: 0.76rem;
	color: var(--fd-ink-soft);
	margin: 0;
}

/* ---------- Columna 1: menú ---------- */
.fd-flow-menu-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.fd-flow-menu-title h4 {
	font-family: 'Fraunces', serif;
	font-size: 1.05rem;
	margin: 0;
}

.fd-flow-menu-title span {
	font-size: 0.78rem;
	color: var(--fd-ink-soft);
}

.fd-pill {
	display: inline-block;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	background: var(--fd-ink) !important;
	color: var(--fd-white) !important;
	padding: 4px 10px;
	border-radius: 100px;
	white-space: nowrap;
	border: none !important;
}

.fd-pill-closed {
	background: var(--fd-rose-dark) !important;
}

.fd-dish-list {
	display: flex;
	flex-direction: column;
}

.fd-dish-row {
	display: flex !important;
	align-items: flex-start !important;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--fd-line);
}

.fd-dish-row:last-child {
	border-bottom: none;
}

.fd-dish-thumb {
	display: block !important;
	width: 60px !important;
	height: 60px !important;
	max-width: 60px !important;
	max-height: 60px !important;
	min-width: 60px !important;
	flex: 0 0 60px !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background: var(--fd-paper-warm);
}

.fd-dish-thumb img {
	display: block !important;
	width: 60px !important;
	height: 60px !important;
	max-width: 60px !important;
	max-height: 60px !important;
	object-fit: cover !important;
	border-radius: 10px !important;
	margin: 0 !important;
}

.fd-dish-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fd-dish-info-top {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.fd-dish-info-top strong {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--fd-ink) !important;
}

.fd-dish-info-top .price,
.fd-dish-info-top .price * {
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	white-space: nowrap;
	color: var(--fd-gold) !important;
}

.fd-dish-desc {
	display: block;
	font-size: 0.78rem;
	color: var(--fd-ink-soft) !important;
}

.fd-btn-outline-sm {
	align-self: flex-start;
	margin-top: 2px;
	background: var(--fd-white) !important;
	color: var(--fd-ink) !important;
	border: 1.5px solid var(--fd-line) !important;
	border-radius: 7px !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 5px 14px;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
}

.fd-btn-outline-sm:hover,
.fd-btn-outline-sm:focus {
	border-color: var(--fd-ink) !important;
	background: var(--fd-paper) !important;
}

.fd-btn-outline-sm:disabled {
	opacity: 0.6;
	cursor: default;
}

/* ---------- Columna 2: personaliza ---------- */
.fd-personalize-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
}

.fd-add-to-order-btn {
	margin-top: auto;
}

.fd-personalize-product {
	display: flex;
	gap: 10px;
	align-items: center;
}

.fd-personalize-product strong {
	display: block;
	font-size: 0.95rem;
}

.fd-price-preview {
	font-size: 0.85rem;
	color: var(--fd-gold);
	font-weight: 600;
}

.fd-variation-attributes {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fd-attribute-row label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--fd-ink-soft);
	margin-bottom: 4px;
}

.fd-attribute-row select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--fd-line);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 0.88rem;
	background: var(--fd-white);
	color: var(--fd-ink);
}

.fd-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--fd-ink-soft);
}

.fd-default-ingredients {
	padding-bottom: 10px;
	border-bottom: 1px dashed var(--fd-line);
}

.fd-default-ingredients ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.fd-default-ingredients li {
	list-style: disc;
	font-size: 0.85rem;
	color: var(--fd-ink-soft);
}

.fd-ingredient-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.88rem;
	padding: 6px 0;
	cursor: pointer;
}

.fd-ingredient-row input {
	width: 16px;
	height: 16px;
	accent-color: var(--fd-sage);
	flex-shrink: 0;
}

.fd-ingredient-row .name {
	flex: 1;
}

.fd-ingredient-row .delta {
	color: var(--fd-sage);
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
}

.fd-ingredient-row .delta.zero {
	color: var(--fd-ink-soft);
	font-weight: 500;
}

.fd-note-field label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--fd-ink-soft);
	margin-bottom: 6px;
}

.fd-note-field textarea {
	width: 100%;
	border: 1px solid var(--fd-line);
	border-radius: 8px;
	padding: 8px 10px;
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	resize: vertical;
}

.fd-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.fd-qty-row label {
	font-size: 0.85rem;
	color: var(--fd-ink-soft);
}

.fd-qty-input {
	width: 70px;
	padding: 8px 10px;
	border: 1px solid var(--fd-line);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
}

.fd-total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 10px;
	border-top: 1px solid var(--fd-line);
}

.fd-total-row span {
	font-size: 0.85rem;
	color: var(--fd-ink-soft);
}

.fd-total-preview {
	font-family: 'Fraunces', serif;
	font-size: 1.1rem;
	font-weight: 700;
}

.fd-add-error {
	color: var(--fd-rose-dark);
	font-size: 0.8rem;
	margin: -6px 0 0;
}

/* ---------- Botones ---------- */
.fd-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border-radius: 9px !important;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer;
	width: 100%;
}

.fd-btn-primary {
	background: var(--fd-ink) !important;
	color: var(--fd-white) !important;
}

.fd-btn-primary:hover,
.fd-btn-primary:focus {
	background: #1c130b !important;
	color: var(--fd-white) !important;
}

.fd-btn-primary:disabled {
	opacity: 0.7;
	cursor: default;
}

.fd-btn-outline {
	background: transparent !important;
	color: var(--fd-ink) !important;
	border: 1.5px solid var(--fd-ink) !important;
	margin-top: auto;
}

.fd-btn-outline:hover,
.fd-btn-outline:focus {
	background: var(--fd-ink) !important;
	color: var(--fd-white) !important;
}

/* ---------- Columna 3: entrega ---------- */
.fd-flow-question {
	font-size: 0.92rem;
	font-weight: 600;
	margin: 0;
}

.fd-address-card {
	border: 1.5px solid var(--fd-line);
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.fd-address-card.selected {
	border-color: var(--fd-ink);
	background: var(--fd-paper-warm);
}

.fd-address-card strong {
	font-size: 0.88rem;
	display: block;
}

.fd-address-card p {
	margin: 3px 0 0;
	font-size: 0.8rem;
	color: var(--fd-ink-soft);
}

.fd-edit-link {
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--fd-rose-dark);
	margin-left: auto;
	white-space: nowrap;
}

.fd-notice-box {
	background: var(--fd-paper-warm);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 0.82rem;
	color: var(--fd-ink-soft);
}

.fd-notice-box a {
	color: var(--fd-rose-dark);
	font-weight: 600;
}

/* ---------- Columna 4: revisa tu pedido ---------- */
.fd-review-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fd-review-item {
	display: flex;
	gap: 10px;
}

.fd-review-item-info {
	flex: 1;
}

.fd-review-item-info-top {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.fd-review-item-info-top strong {
	font-size: 0.9rem;
}

.fd-review-ingredients {
	margin: 5px 0 0;
	padding-left: 16px;
	font-size: 0.78rem;
	color: var(--fd-ink-soft);
}

.fd-review-ingredients li {
	list-style: disc;
}

.fd-review-note {
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: var(--fd-ink-soft);
}

.fd-review-qty {
	display: block;
	margin-top: 4px;
	font-size: 0.78rem;
	color: var(--fd-ink-soft);
}

.fd-review-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
}

.fd-review-item-bottom .fd-review-qty {
	margin-top: 0;
}

.fd-remove-item {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 28px !important;
	height: 28px !important;
	flex-shrink: 0;
	background: none !important;
	border: 1px solid var(--fd-line) !important;
	border-radius: 7px !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	cursor: pointer;
}

.fd-remove-item:hover,
.fd-remove-item:focus {
	background: #FBEAEA !important;
	border-color: var(--fd-rose-dark) !important;
}

.fd-remove-item:disabled {
	opacity: 0.5;
	cursor: default;
}

.fd-remove-icon {
	width: 15px !important;
	height: 15px !important;
	fill: none !important;
	stroke: var(--fd-rose-dark) !important;
	stroke-width: 1.8 !important;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.fd-totals {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--fd-line);
	font-size: 0.88rem;
	color: var(--fd-ink-soft);
}

.fd-totals .row {
	display: flex;
	justify-content: space-between;
}

.fd-totals .row.grand {
	color: var(--fd-ink);
	font-weight: 700;
	font-size: 1rem;
	font-family: 'Fraunces', serif;
	padding-top: 6px;
	border-top: 1px dashed var(--fd-line);
}

.fd-cod-box {
	background: var(--fd-paper-warm);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 0.8rem;
	color: var(--fd-ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.fd-flow-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.fd-flow-grid {
		grid-template-columns: 1fr;
	}
}

/* ============ Modo catálogo (sin carrito) ============ */

.fd-catalog {
	--fd-paper: #FAF6EE;
	--fd-paper-warm: #F0E3CB;
	--fd-ink: #2E2013;
	--fd-ink-soft: #6B5A48;
	--fd-gold: #D9A441;
	--fd-line: #E4D6BC;
	--fd-white: #FFFEFA;

	font-family: 'Inter', sans-serif;
	color: var(--fd-ink);
	max-width: 1280px;
	margin: 2rem auto;
	padding: 0 1.5rem;
}

.fd-catalog-head {
	margin-bottom: 28px;
}

.fd-catalog-head h2 {
	font-family: 'Fraunces', serif;
	font-weight: 700;
	font-size: 2rem;
	margin: 0 0 4px;
}

.fd-catalog-head p {
	margin: 0;
	color: var(--fd-ink-soft);
}

.fd-catalog-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.75rem;
}

.fd-catalog-card {
	background: var(--fd-white);
	border: 1px solid var(--fd-line);
	border-radius: 14px;
	overflow: hidden;
}

.fd-catalog-thumb img {
	width: 100%;
	aspect-ratio: 1 / 0.82;
	object-fit: cover;
	display: block;
}

.fd-catalog-info {
	padding: 14px 16px 18px;
}

.fd-catalog-info-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.fd-catalog-info-top strong {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.05rem;
}

.fd-catalog-price {
	font-weight: 700;
	color: var(--fd-gold);
	font-size: 0.95rem;
	white-space: nowrap;
}

.fd-catalog-desc {
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: var(--fd-ink-soft);
}

.fd-catalog-ingredients {
	margin: 10px 0 0;
	padding-left: 18px;
}

.fd-catalog-ingredients li {
	list-style: disc;
	font-size: 0.82rem;
	color: var(--fd-ink-soft);
}

@media (max-width: 1100px) {
	.fd-catalog-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 780px) {
	.fd-catalog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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