/* Blondie's design refresh: red, cream and white with a fun surf feel.
   Adds polish only. Layout, copy and colours from the original design stay. */

:root {
	--bl-red: #bc2434;
	--bl-red-dark: #961c2a;
	--bl-cream: #f4f3eb;
	--bl-ink: #2a1a1a;
	--bl-radius: 20px;
	--bl-shadow: 0 6px 18px rgba(188, 36, 52, 0.12);
	--bl-shadow-hover: 0 16px 32px rgba(188, 36, 52, 0.24);
}

html { scroll-behavior: smooth; }
::selection { background: var(--bl-red); color: #fff; }

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.elementor-button:focus-visible {
	outline: 3px solid var(--bl-red);
	outline-offset: 3px;
}

/* ---------- Home page ---------- */

/* Balanced headline lines */
.elementor-widget-heading .elementor-heading-title { text-wrap: balance; }

/* "made-to-order" gets a playful tilt, like a hand-painted surf sign */
.elementor-element-d5b4e98 .elementor-heading-title {
	display: inline-block;
	transform: rotate(-3deg);
}

/* Buttons: lift and tilt on hover, keep the existing shape and shadow */
.elementor-widget-button .elementor-button {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.elementor-widget-button .elementor-button:hover {
	transform: translateY(-3px) rotate(-1.5deg);
}

/* Burger carousel: white cards that lift, with clear red captions */
.carousel-links .swiper-slide-inner {
	background: #fff;
	border-radius: var(--bl-radius);
	overflow: hidden;
	box-shadow: var(--bl-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.carousel-links .swiper-slide:hover .swiper-slide-inner {
	transform: translateY(-6px);
	box-shadow: var(--bl-shadow-hover);
}
.carousel-links .swiper-slide-image {
	transition: transform 0.4s ease;
}
.carousel-links .swiper-slide:hover .swiper-slide-image {
	transform: scale(1.06);
}
.carousel-links .elementor-image-carousel-caption {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	color: var(--bl-red);
	padding: 12px 10px 16px;
}

/* ---------- Menu / shop page ---------- */

body.woocommerce-shop,
body.tax-product_cat,
body.post-type-archive-product {
	background-color: var(--bl-cream) !important;
}
body.woocommerce-shop .site-content,
body.tax-product_cat .site-content {
	background: transparent;
}

/* Sort dropdown: hidden on the menu page */
.woocommerce-ordering {
	display: none !important;
}

/* Breadcrumb: a soft white pill instead of plain text */
.woocommerce-breadcrumb {
	display: inline-block;
	margin: 0 0 24px;
	padding: 10px 22px;
	font-family: "Poppins", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--bl-ink);
	background: #fff;
	border-radius: 999px;
	box-shadow: var(--bl-shadow);
}
.woocommerce-breadcrumb a {
	color: var(--bl-red);
	text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
	text-decoration: underline;
}

/* Clean, even grid: 4 columns on desktop, 3 on tablet, 2 on phones */
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
	margin: 0 0 40px !important;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}

/* Product cards */
.woocommerce ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border-radius: var(--bl-radius);
	overflow: hidden;
	box-shadow: var(--bl-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: var(--bl-shadow-hover);
}

/* Big, even photos */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: block;
	width: 100%;
}
.woocommerce ul.products li.product .loop-image-wrap {
	position: relative;
	overflow: hidden;
	background: var(--bl-cream);
}
/* The product photos are a small burger in the middle of a big white canvas,
   so zoom in on the burger itself (it sits just below the centre). */
.woocommerce ul.products li.product .loop-image-wrap img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transform: scale(3);
	transform-origin: 50% 52%;
	transition: transform 0.4s ease;
}
.woocommerce ul.products li.product:hover .loop-image-wrap img {
	transform: scale(3.1);
}

/* Name and price: easy to read at a glance */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 16px 16px 6px;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--bl-ink);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}
.woocommerce ul.products li.product .price {
	display: block;
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 800;
	font-size: 1.3rem;
	color: var(--bl-red);
}
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price bdi {
	color: inherit;
}

/* "View Product" button */
.woocommerce ul.products li.product .loop-button-wrap .button {
	background: var(--bl-red);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	padding: 10px 22px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.woocommerce ul.products li.product .loop-button-wrap .button:hover {
	background: var(--bl-red-dark);
	transform: translateY(-2px);
}
.woocommerce ul.products li.product > .loop-button-wrap:empty {
	display: none;
}

/* ---------- About Us and Contact: match the home page ---------- */

body.page-id-84,
body.page-id-86 {
	background-color: var(--bl-cream) !important;
}
body.page-id-84 .elementor-heading-title,
body.page-id-86 .elementor-heading-title {
	font-family: "Poppins", sans-serif;
	font-weight: 800;
	color: var(--bl-red);
	text-align: center;
	text-wrap: balance;
}
body.page-id-84 .elementor-widget-text-editor,
body.page-id-86 .elementor-widget-text-editor {
	font-family: "Poppins", sans-serif;
	color: var(--bl-ink);
	line-height: 1.7;
}
/* Tilted "Who we are" heading, like "made-to-order" on the home page */
body.page-id-84 .elementor-element-8a880c9 .elementor-heading-title {
	display: inline-block;
	transform: rotate(-3deg);
}
/* Photos as rounded cards (the thin divider lines stay flat) */
body.page-id-84 .elementor-widget-image img:not([src*="line-blondies"]) {
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow-hover);
}
/* FAQ items as white cards */
body.page-id-86 .e-n-accordion-item {
	margin-bottom: 12px;
	padding: 4px 18px;
	background: #fff;
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow);
}
/* Map: square, with a red-tinted frame */
body.page-id-86 .elementor-widget-google_maps .elementor-custom-embed {
	height: auto;
}
body.page-id-86 .elementor-widget-google_maps iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border: 0;
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow-hover);
}

/* ---------- WhatsApp order button (home and contact) ---------- */

.bl-whatsapp-order {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px 12px 16px;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: #25d366;
	border-radius: 999px;
	box-shadow: var(--bl-shadow-hover);
	text-decoration: none;
	transition: transform 0.2s ease;
}
.bl-whatsapp-order:hover {
	transform: translateY(-3px);
	color: #fff;
}
.bl-whatsapp-order svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

/* ---------- Home page now carries About Us and Contact ---------- */

.bl-home-section {
	scroll-margin-top: 90px;
}
.elementor-84 .elementor-heading-title,
.elementor-86 .elementor-heading-title {
	font-family: "Poppins", sans-serif;
	font-weight: 800;
	color: var(--bl-red);
	text-align: center;
	text-wrap: balance;
}
.elementor-84 .elementor-widget-text-editor,
.elementor-86 .elementor-widget-text-editor {
	font-family: "Poppins", sans-serif;
	color: var(--bl-ink);
	line-height: 1.7;
}
.elementor-84 .elementor-element-8a880c9 .elementor-heading-title {
	display: inline-block;
	transform: rotate(-3deg);
}
.elementor-84 .elementor-widget-image img:not([src*="line-blondies"]) {
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow-hover);
}
.elementor-86 .e-n-accordion-item {
	margin-bottom: 12px;
	padding: 4px 18px;
	background: #fff;
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow);
}
.elementor-86 .elementor-widget-google_maps .elementor-custom-embed {
	height: auto;
}
.elementor-86 .elementor-widget-google_maps iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border: 0;
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow-hover);
}

/* ---------- Modern look, whole site ---------- */

body {
	font-family: "Poppins", sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Header: only the Menu link stays; frosted bar that sticks to the top */
.menu-item-405,
.menu-item-407,
.menu-item-408 {
	display: none !important;
}
.ehfb-mobile_offcanvas .emoza-dropdown-link {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bl-red);
}
/* Header hidden at the top of the page; slides in once the visitor scrolls down
   (the class is added by assets/js/blondies-header.js) */
header.ehfb {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	transform: translateY(-100%);
	transition: transform 0.3s ease;
	z-index: 900;
	background: rgba(244, 243, 235, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(188, 36, 52, 0.12), 0 8px 24px rgba(42, 26, 26, 0.05);
}
body.bl-header-visible header.ehfb {
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	header.ehfb {
		transition: none;
	}
}
header.ehfb .emoza-dropdown-link {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bl-red);
}

/* Headings: tighter and bolder */
h1, h2, h3 {
	letter-spacing: -0.02em;
}
.elementor-widget-heading .elementor-heading-title {
	line-height: 1.05;
}

/* Buttons: modern pills */
.elementor-widget-button .elementor-button,
.woocommerce a.button,
.woocommerce button.button {
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding-left: 28px;
	padding-right: 28px;
}

/* Soft rounded corners on content images */
.elementor-widget-image img:not([src*="line-blondies"]):not([src$=".svg"]) {
	border-radius: var(--bl-radius);
}

/* Thin brand divider lines: lighter touch */
.elementor-widget-image img[src*="line-blondies"] {
	opacity: 0.9;
}

/* Footer: quiet and centred */
.ehfb-footer .emoza-credits,
footer.ehfb .emoza-credits {
	text-align: center;
	font-size: 0.8rem;
	opacity: 0.7;
}

/* Product detail page: main photo zoomed 3x inside its square frame */
.woocommerce-product-gallery__image {
	overflow: hidden;
	position: relative;
	aspect-ratio: 1 / 1;
	background: #fff;
}
.woocommerce-product-gallery__image a {
	display: block;
	height: 100%;
}
.woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(3);
	transform-origin: 50% 52%;
}

/* Product detail page: no "Category" line and no Description tab */
.single-product .product_meta,
.single-product .woocommerce-tabs {
	display: none !important;
}

/* About Us and Contact on the home page: their checkered strip had a -100px
   top margin meant for the stand-alone pages, which pulled it up over the
   section above. Keep it in normal flow here. */
.bl-home-section .elementor-element-c24233e,
.bl-home-section .elementor-element-782e98d {
	margin-top: 0 !important;
}

/* Header: no search (desktop and phone); on phones also no hamburger or account icon */
.ehfb-component-search,
.header-search-form {
	display: none !important;
}
.ehfb-mobile .ehfb-component-woo_icons,
.ehfb-component-mobile_hamburger {
	display: none !important;
}

/* "Find us on insta" button */
.bl-insta-button .elementor-button {
	background: var(--bl-red);
	color: #fff;
	border-radius: 999px;
}

/* Header logo: sized to sit neatly in the header bar */
header.ehfb .custom-logo {
	display: block;
	width: auto;
	height: 56px;
	margin: 0 auto;
}

/* ---------- Screen sizes ---------- */

@media (max-width: 1024px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		margin: 12px 10px 4px;
		font-size: 0.95rem;
	}
	.woocommerce ul.products li.product .price {
		font-size: 1.15rem;
	}
}

/* Phones and small tablets: same look, sized for smaller screens */
@media (max-width: 768px) {
	header.ehfb .custom-logo {
		height: 44px;
	}
	.woocommerce-breadcrumb {
		display: block;
		padding: 9px 16px;
		font-size: 0.75rem;
		border-radius: 18px;
	}
	.bl-whatsapp-order {
		right: 14px;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		gap: 8px;
		padding: 10px 16px 10px 12px;
		font-size: 0.9rem;
	}
	.bl-whatsapp-order svg {
		width: 22px;
		height: 22px;
	}
	.bl-home-section {
		scroll-margin-top: 70px;
	}
	.elementor-84 .elementor-heading-title,
	.elementor-86 .elementor-heading-title {
		line-height: 1.1;
	}
	.elementor-86 .e-n-accordion-item {
		padding: 2px 14px;
	}
}

@media (max-width: 380px) {
	.bl-whatsapp-order span {
		font-size: 0.82rem;
	}
	.woocommerce ul.products {
		gap: 10px;
	}
}

/* Leave room at the bottom of the home and contact pages for the floating button */
@media (max-width: 768px) {
	body.home .site-footer,
	body.home footer.ehfb {
		padding-bottom: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.elementor-widget-button .elementor-button:hover,
	.woocommerce ul.products li.product:hover,
	.carousel-links .swiper-slide:hover .swiper-slide-inner {
		transform: none;
	}
}
