/* ============ Escusemua — Página de Menú (Tienda) ============ */

.fd-shop-wrap {
	--fd-paper: #FAF6EE;
	--fd-ink: #2E2013;
	--fd-ink-soft: #6B5A48;
	--fd-rose: #B85C64;
	--fd-gold: #D9A441;
	--fd-line: #E4D6BC;
	--fd-white: #FFFEFA;

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

.fd-shop-sidebar {
	width: 230px;
	flex-shrink: 0;
	position: sticky;
	top: 90px;
}

.fd-cat-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fd-cat-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--fd-ink-soft);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background .15s ease, color .15s ease;
}

.fd-cat-item:hover {
	background: var(--fd-paper);
	color: var(--fd-ink);
}

.fd-cat-item.active {
	background: #F0E3CB;
	border-color: var(--fd-line);
	color: var(--fd-ink);
	font-weight: 600;
}

.fd-cat-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fd-sidebar-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px dashed var(--fd-line);
	color: var(--fd-rose);
	font-weight: 600;
	font-size: 0.92rem;
}

.fd-sidebar-note .fd-cat-icon {
	color: var(--fd-ink);
	width: 24px;
	height: 24px;
}

.fd-shop-main {
	flex: 1;
	min-width: 0;
}

.fd-shop-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.fd-shop-heading h1 {
	font-family: 'Fraunces', serif;
	font-weight: 700;
	font-size: 2rem;
	margin: 0 0 4px;
	color: var(--fd-ink);
}

.fd-shop-heading p {
	margin: 0;
	color: var(--fd-ink-soft);
	font-size: 1rem;
}

.fd-shop-main .woocommerce-ordering {
	margin: 0 0 24px auto;
	display: block;
	width: fit-content;
}

.fd-shop-main .woocommerce-ordering select {
	border: 1px solid var(--fd-line);
	border-radius: 8px;
	padding: 10px 34px 10px 14px;
	font-family: 'Inter', sans-serif;
	font-size: 0.92rem;
	color: var(--fd-ink);
	background-color: var(--fd-white);
}

.fd-shop-main ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.75rem;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

.fd-shop-main ul.products li.product {
	background: var(--fd-white);
	border: 1px solid var(--fd-line);
	border-radius: 14px;
	overflow: hidden;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left !important;
	position: relative;
	transition: box-shadow .15s ease, transform .15s ease;
}

.fd-shop-main ul.products li.product:hover {
	box-shadow: 0 8px 22px rgba(46, 32, 19, 0.08);
	transform: translateY(-2px);
}

.fd-shop-main ul.products li.product a.woocommerce-loop-product__link {
	display: block;
}

.fd-shop-main ul.products li.product img {
	width: 100%;
	aspect-ratio: 1 / 0.82;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.fd-shop-main ul.products li.product .woocommerce-loop-product__title {
	font-family: 'Fraunces', serif;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--fd-ink);
	margin: 14px 16px 4px;
	padding: 0;
}

.fd-shop-main ul.products li.product .price {
	display: block;
	margin: 0 16px 14px;
	font-weight: 700;
	color: var(--fd-gold);
	font-size: 1rem;
}

.fd-shop-main ul.products li.product .price del {
	color: var(--fd-ink-soft);
	opacity: 0.7;
	font-weight: 400;
	margin-right: 6px;
}

.fd-shop-main ul.products li.product a.add_to_cart_button,
.fd-shop-main ul.products li.product a.added_to_cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 16px 16px;
	padding: 10px 14px;
	background: var(--fd-ink);
	color: var(--fd-white) !important;
	border-radius: 9px;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none !important;
	width: calc(100% - 32px);
}

.fd-shop-main ul.products li.product a.add_to_cart_button::before {
	content: "\1F6D2";
	font-size: 0.9em;
}

.fd-shop-main ul.products li.product a.add_to_cart_button:hover {
	background: #1c130b;
}

.fd-shop-main ul.products li.product a.added_to_cart {
	margin-top: 8px;
	background: var(--fd-white);
	color: var(--fd-ink) !important;
	border: 1.5px solid var(--fd-line);
}

.fd-shop-main nav.woocommerce-pagination {
	margin-top: 32px;
}

.fd-shop-main nav.woocommerce-pagination ul {
	border: none !important;
	gap: 6px;
	display: flex;
}

.fd-shop-main nav.woocommerce-pagination ul li {
	border: none !important;
}

.fd-shop-main nav.woocommerce-pagination ul li a,
.fd-shop-main nav.woocommerce-pagination ul li span {
	border: 1px solid var(--fd-line) !important;
	border-radius: 8px !important;
	color: var(--fd-ink) !important;
}

.fd-shop-main nav.woocommerce-pagination ul li span.current {
	background: var(--fd-ink) !important;
	color: var(--fd-white) !important;
}

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

@media (max-width: 860px) {
	.fd-shop-wrap {
		flex-direction: column;
	}
	.fd-shop-sidebar {
		width: 100%;
		position: static;
	}
	.fd-cat-list {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.fd-cat-item {
		flex: 0 0 auto;
	}
	.fd-sidebar-note {
		display: none;
	}
	.fd-shop-main ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.fd-shop-main ul.products {
		grid-template-columns: 1fr;
	}
}
