/*
 * Eduana brand look. Colour rule: text is chocolate or --ed-rosa-texto on a
 * light background, or white on --ed-rosa-texto / chocolate. --ed-rosa
 * (#f05a94) is for backgrounds, borders, fills and shadows only, never text and
 * never behind text.
 */

@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Dancing Script";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/dancing-script-latin-700-normal.woff2") format("woff2");
}

:root {
	--ed-choco: #692920;
	--ed-rosa: #f05a94;
	--ed-rosa-texto: #c0306a;
	--ed-rosa-claro: #f9c0cc;
	--ed-rosa-medio: #f599b4;
	--ed-creme: #ffeccd;
	--ed-caramelo: #d9a58c;
	--ed-azul: #c7eafb;
	--ed-cinza: #d1d3d4;
	--ed-fonte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ed-fonte-destaque: "Dancing Script", cursive;
}

/* Base: Nunito everywhere, chocolate text. */
body,
button,
input,
select,
textarea,
.site-header .site-search,
.main-navigation ul li a {
	font-family: var(--ed-fonte);
}

body,
.site,
.site-content,
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.entry-content,
.woocommerce-Price-amount {
	color: var(--ed-choco);
}

body {
	background-color: #fff;
}

a {
	color: var(--ed-rosa-texto);
}

a:hover,
a:focus {
	color: var(--ed-choco);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.widget-title,
.woocommerce-loop-product__title {
	font-family: var(--ed-fonte);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ed-choco);
}

.ed-accent {
	font-family: var(--ed-fonte-destaque);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ed-rosa-texto);
}

/* Header: logo, menu and cart. */
.site-header {
	background-color: #fff;
	color: var(--ed-choco);
	border-bottom: 4px solid var(--ed-rosa);
	padding-top: 1em;
	padding-bottom: 0;
}

.site-header .ed-branding {
	width: auto;
	margin-bottom: 1em;
}

.site-header .ed-logo-link {
	display: inline-block;
	line-height: 0;
}

.ed-logo {
	display: block;
	height: auto;
}

.site-header .ed-logo {
	width: clamp(180px, 24vw, 300px);
}

.ed-footer-logo {
	text-align: center;
	margin-bottom: 1.5em;
}

.ed-footer-logo .ed-logo-link {
	display: inline-block;
	line-height: 0;
}

.ed-footer-logo .ed-logo {
	width: clamp(200px, 40vw, 360px);
	margin: 0 auto;
}

.site-header a:not(.button),
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a,
.site-header-cart .cart-contents {
	color: var(--ed-choco);
	font-weight: 700;
}

.site-header a:not(.button):hover,
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover,
.main-navigation ul li.current-menu-item > a,
.site-header-cart .cart-contents:hover {
	color: var(--ed-rosa-texto);
}

/* Storefront fades the item count to 50%, which drops it below 4.5:1. */
.site-header-cart .cart-contents .count {
	opacity: 1;
}

.main-navigation ul ul,
.site-header-cart .widget_shopping_cart {
	background-color: var(--ed-creme);
	color: var(--ed-choco);
}

.main-navigation ul ul a {
	color: var(--ed-choco);
}

.menu-toggle,
.menu-toggle:hover,
.site-header .menu-toggle,
.main-navigation .menu-toggle {
	background-color: transparent;
	color: var(--ed-choco);
	border-color: var(--ed-choco);
	border-radius: 999px;
}

.storefront-handheld-footer-bar,
.storefront-handheld-footer-bar ul li > a {
	background-color: var(--ed-creme);
	color: var(--ed-choco);
	border-color: var(--ed-rosa);
}

.site-header .site-search .widget_product_search input[type="search"] {
	border: 2px solid var(--ed-rosa-medio);
	color: var(--ed-choco);
	background-color: #fff;
}

/* Buttons: white on --ed-rosa-texto. */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #payment #place_order,
.wc-block-components-button:not(.is-link) {
	background-color: var(--ed-rosa-texto);
	color: #fff;
	border-color: var(--ed-rosa-texto);
	font-family: var(--ed-fonte);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 999px;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #payment #place_order:hover,
.wc-block-components-button:not(.is-link):hover {
	background-color: var(--ed-choco);
	color: #fff;
	border-color: var(--ed-choco);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--ed-choco);
	outline-offset: 2px;
}

/* Prices and sale badge. */
.price,
.price .amount,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--ed-rosa-texto);
	font-weight: 800;
}

/* Storefront/WooCommerce fade del with opacity; keep it solid for contrast. */
.price del,
.price del .amount {
	color: var(--ed-choco);
	font-weight: 400;
	opacity: 1;
}

.price ins {
	background: transparent;
	color: var(--ed-rosa-texto);
}

.woocommerce span.onsale,
.onsale {
	background-color: var(--ed-rosa-texto);
	color: #fff;
	border: 0;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Cart, checkout and notices. */
.woocommerce-cart table.cart th,
.woocommerce-checkout #order_review th,
.woocommerce table.shop_table th {
	color: var(--ed-choco);
}

.woocommerce-checkout #payment,
.woocommerce-checkout #payment div.payment_box {
	background-color: var(--ed-creme);
	color: var(--ed-choco);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--ed-creme);
}

.woocommerce-message,
.woocommerce-info {
	background-color: var(--ed-azul);
	color: var(--ed-choco);
	border-top-color: var(--ed-rosa);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	color: var(--ed-choco);
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: var(--ed-choco);
	text-decoration: underline;
}

.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
	background-color: var(--ed-rosa-texto);
	color: #fff;
	text-decoration: none;
}

.woocommerce-error {
	background-color: var(--ed-rosa-claro);
	color: var(--ed-choco);
	border-top-color: var(--ed-rosa-texto);
}

/* Footer. */
.site-footer {
	background-color: var(--ed-creme);
	color: var(--ed-choco);
	border-top: 4px solid var(--ed-rosa);
}

.site-footer a:not(.button),
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .widget-title {
	color: var(--ed-choco);
}

.site-footer a:not(.button):hover {
	color: var(--ed-rosa-texto);
}

.site-info {
	color: var(--ed-choco);
}

/* Pickup block under the footer logo: chocolate on cream; the WhatsApp link is white on --ed-rosa-texto. */
.ed-footer-store {
	margin: 0 auto 1.5em;
	max-width: 32rem;
	text-align: center;
	color: var(--ed-choco);
}

.site-footer .ed-footer-store__title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	color: var(--ed-choco);
}

.ed-footer-store p,
.ed-footer-store ul {
	margin: 0 0 0.75rem;
}

.ed-footer-hours {
	list-style: none;
	padding: 0;
}

.site-footer .ed-footer-store a.ed-footer-whatsapp {
	display: inline-block;
	padding: 0.7em 1.4em;
	border-radius: 2em;
	background-color: var(--ed-rosa-texto);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.site-footer .ed-footer-store a.ed-footer-whatsapp:hover,
.site-footer .ed-footer-store a.ed-footer-whatsapp:focus {
	background-color: var(--ed-choco);
	color: #fff;
}

/* Home page. Mobile first: photo above the text, categories scroll sideways, 2 product columns. */
.ed-section-title {
	margin: 0 0 1rem;
	text-align: center;
	font-size: 1.1rem;
}

.ed-section-title .ed-accent {
	font-size: 1.9em;
	line-height: 1;
}

.ed-hero {
	display: flex;
	flex-direction: column;
	margin: 0 0 2.5rem;
	background-color: var(--ed-creme);
	color: var(--ed-choco);
}

.ed-hero__photo {
	margin: 0;
	line-height: 0;
}

/* <picture> adds no box: the image stays a direct child of the photo panel. */
.ed-hero__photo picture {
	display: contents;
}

.ed-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2.5 / 1;
	object-fit: cover;
}

.ed-hero__panel {
	padding: 1.25rem 1rem 1.5rem;
	text-align: center;
	background-color: var(--ed-creme);
}

.ed-hero__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	line-height: 1.25;
	color: var(--ed-choco);
}

.ed-hero__sub {
	margin: 0 0 1rem;
	font-weight: 700;
	color: var(--ed-choco);
}

.ed-hero .woocommerce-product-search {
	position: relative;
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
	margin: 0 auto;
}

.ed-hero .woocommerce-product-search::before {
	content: none;
}

.ed-hero .woocommerce-product-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.7rem 0.9rem;
	border: 2px solid var(--ed-choco);
	border-radius: 999px;
	background-color: #fff;
	color: var(--ed-choco);
}

.ed-hero .woocommerce-product-search input[type="search"]::placeholder {
	color: var(--ed-choco);
	opacity: 0.8;
}

.ed-hero .woocommerce-product-search button[type="submit"] {
	position: static;
	flex: 0 0 auto;
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.7rem 1rem;
	overflow: visible;
	font-size: 0.9rem;
	border: 0;
	border-radius: 999px;
	background-color: var(--ed-rosa-texto);
	color: #fff;
	font-weight: 800;
}

.ed-hero .woocommerce-product-search button[type="submit"]:hover,
.ed-hero .woocommerce-product-search button[type="submit"]:focus {
	background-color: var(--ed-choco);
	color: #fff;
}

.ed-hero--sem-foto .ed-hero__panel {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

/* Category circles. */
.ed-categories {
	margin: 0 0 2.5rem;
}

.ed-cats {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0.25rem 1rem 0.75rem;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x proximity;
}

.ed-cats__item {
	flex: 0 0 5.5rem;
	margin: 0;
	scroll-snap-align: start;
}

.ed-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--ed-choco);
}

.ed-cat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 5rem;
	height: 5rem;
	border: 3px solid var(--ed-rosa-claro);
	border-radius: 50%;
	background-color: var(--ed-creme);
}

.ed-cat__icon svg {
	display: block;
	width: 3.4rem;
	height: 3.4rem;
}

.ed-cat:hover .ed-cat__icon,
.ed-cat:focus .ed-cat__icon {
	border-color: var(--ed-rosa);
}

.ed-cat__name {
	display: -webkit-box;
	max-width: 100%;
	overflow: hidden;
	overflow-wrap: anywhere;
	hyphens: auto;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ed-cat:hover .ed-cat__name,
.ed-cat:focus .ed-cat__name {
	color: var(--ed-rosa-texto);
}

/* Products on sale: a grid, not Storefront's floats. */
.ed-promo {
	margin: 0 0 2.5rem;
}

.ed-promo ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
}

.ed-promo ul.products::before,
.ed-promo ul.products::after {
	content: none;
	display: none;
}

/* !important: Storefront sizes li.product by column count with higher specificity. */
.ed-promo ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.ed-promo ul.products li.product .button {
	display: block;
	padding: 0.6rem 0.5rem;
	font-size: 0.8rem;
	line-height: 1.2;
	text-align: center;
}

/* The editable band. Headings and links inherit the card colour (white or chocolate). */
.ed-week {
	margin: 0 0 2.5rem;
}

.ed-week .wp-block-columns {
	gap: 1rem;
	margin: 0;
}

.ed-week .ed-week-card {
	height: 100%;
	box-sizing: border-box;
	padding: 1.25rem 1.5rem;
	border-radius: 0.5rem;
}

.ed-week .ed-week-card :is(h1, h2, h3, h4, h5, h6, p, li, a) {
	color: inherit;
	text-align: left;
}

.ed-week .ed-week-card :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.1rem;
}

.ed-week .ed-week-card a {
	text-decoration: underline;
}

/* A button block keeps its own colours: the rule above would make its text the
   card colour on Storefront's light grey. White on chocolate is 10.8:1. */
.ed-week .ed-week-card .wp-block-button__link {
	background-color: var(--ed-choco);
	color: #fff;
	text-decoration: none;
}

.ed-week .ed-week-card > :first-child {
	margin-top: 0;
}

.ed-week .ed-week-card > :last-child {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.ed-section-title {
		font-size: 1.3rem;
	}

	.ed-hero {
		flex-direction: row;
		align-items: stretch;
	}

	.ed-hero__photo {
		order: 2;
		flex: 0 0 50%;
		min-height: 20rem;
		position: relative;
	}

	/* Out of flow, so an uncropped portrait photo cannot stretch the hero: the
	   panel sets the height and object-fit crops the photo to it. */
	.ed-hero__photo .ed-hero__img {
		position: absolute;
		top: 0;
		left: 0;
		height: 100%;
		aspect-ratio: auto;
	}

	.ed-hero__panel {
		order: 1;
		flex: 1 1 50%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 2rem 2.5rem;
		text-align: left;
	}

	.ed-hero .woocommerce-product-search {
		margin: 0;
	}

	.ed-hero__title {
		font-size: 1.9rem;
	}

	.ed-hero--sem-foto .ed-hero__panel {
		align-items: center;
		text-align: center;
	}

	.ed-hero--sem-foto .woocommerce-product-search {
		margin: 0 auto;
	}

	.ed-cats {
		flex-wrap: wrap;
		justify-content: center;
		overflow: visible;
	}

	.ed-promo ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Product page title: Storefront's h1 is 2.6em (42 px), four lines on a phone. */
.single-product div.product .product_title {
	font-size: 1.5rem;
	line-height: 1.2;
	letter-spacing: 0.03em;
}

@media (min-width: 768px) {
	.single-product div.product .product_title {
		font-size: 2.25rem;
	}
}

/* Storefront fades the sticky bar's price to .5 (2.8:1 on white). */
.storefront-sticky-add-to-cart__content-price {
	opacity: 1;
	color: var(--ed-choco);
}

/* Cart block: the +/- buttons are faded to .6 of currentColor (3.6:1). */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: var(--ed-choco);
	opacity: 1;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	opacity: 0.6;
}
