/* Buttons, one system for the whole site.
   Primary: deep cocoa pill, cream text, warms to gold on hover. Soft: outlined pill that fills with cream. Compact, never chunky. */
:root {
	--bl-btn-bg: #eae2d3; /* the sand of the category chips */
	--bl-btn-bg-hover: #e0d4bd;
	--bl-btn-ink: var(--bl-brand);
	--bl-btn-line: #cebea0;
	--bl-btn-h: 44px;
	--bl-btn-pad: 28px;
}

/* ---------------------------------------------------------------- primary */
.single_add_to_cart_button,
body.woocommerce div.product form.cart .single_add_to_cart_button.button,
#place_order,
body .woocommerce button.button.alt,
body .woocommerce a.button.alt,
body .woocommerce #respond input#submit.alt,
.bl-mini__buttons a.checkout,
.bl-lk__add,
.bl-signin__btn,
.bl-auth__btn,
.bl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--bl-btn-h);
	margin: 0;
	padding: 0 var(--bl-btn-pad);
	border: 1px solid var(--bl-btn-bg);
	border-radius: 9999px;
	background: var(--bl-btn-bg);
	box-shadow: none;
	color: var(--bl-btn-ink);
	font: 400 12.5px/1 var(--bl-sans);
	letter-spacing: 0.08em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.single_add_to_cart_button:hover,
body.woocommerce div.product form.cart .single_add_to_cart_button.button:hover,
body.woocommerce div.product form.cart .single_add_to_cart_button.button:focus-visible,
#place_order:hover,
#place_order:focus-visible,
body .woocommerce button.button.alt:hover,
body .woocommerce a.button.alt:hover,
.bl-mini__buttons a.checkout:hover,
.bl-lk__add:hover:not(:disabled),
.bl-signin__btn:hover,
.bl-auth__btn:hover:not(:disabled),
.bl-btn:hover {
	border-color: var(--bl-btn-bg-hover);
	background: var(--bl-btn-bg-hover);
	box-shadow: 0 10px 22px -12px rgba(79, 64, 34, 0.35);
	color: var(--bl-btn-ink);
	transform: translateY(-1px);
}

.single_add_to_cart_button:active,
#place_order:active,
.bl-lk__add:active,
.bl-btn:active {
	box-shadow: none;
	transform: none;
}

.single_add_to_cart_button:focus-visible,
#place_order:focus-visible,
.bl-btn:focus-visible {
	outline: 2px solid var(--bl-brand-2);
	outline-offset: 3px;
}

/* not ready yet (no size chosen, no look picked): an outline, not a washed-out fill */
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled,
.single_add_to_cart_button.wc-variation-selection-needed,
body.woocommerce div.product form.cart .single_add_to_cart_button.button.disabled,
body.woocommerce div.product form.cart .single_add_to_cart_button.button:disabled,
body.woocommerce div.product form.cart .single_add_to_cart_button.button.wc-variation-selection-needed,
body.woocommerce div.product form.cart .single_add_to_cart_button.button.disabled:hover,
.bl-lk__add:disabled,
.bl-auth__btn:disabled {
	border-color: var(--bl-brand-3);
	background: transparent;
	box-shadow: none;
	color: var(--bl-brand-2);
	opacity: 1;
	transform: none;
	cursor: not-allowed;
}

.single_add_to_cart_button.loading,
#place_order.processing {
	opacity: 0.7;
}

.single_add_to_cart_button.added::after {
	content: none;
}

/* sizes that come with the page layout */
body .bl-pdp__atc .single_add_to_cart_button {
	flex: 1 1 auto;
	max-width: 320px;
}

.bl-signin__btn {
	width: 100%;
}

#place_order {
	width: 100%;
	min-height: 52px;
}

.bl-lk__add {
	min-height: 48px;
}

/* ---------------------------------------------------------------- soft (secondary) */
.bl-pill,
.bl-mini__buttons a.button:not(.checkout),
.woocommerce-account .woocommerce-button,
.woocommerce-account a.button,
.woocommerce-account button.button:not(.alt),
body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button,
.bl-page__content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--bl-brand-3);
	border-radius: 9999px;
	background: transparent;
	box-shadow: none;
	color: var(--bl-brand);
	font: 400 12px/1 var(--bl-sans);
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.bl-pill:hover,
.bl-pill:focus-visible,
.bl-mini__buttons a.button:not(.checkout):hover,
.woocommerce-account .woocommerce-button:hover,
.woocommerce-account a.button:hover,
.woocommerce-account button.button:not(.alt):hover,
body .woocommerce-message .button:hover,
body .woocommerce-info .button:hover,
body .woocommerce-error .button:hover,
.bl-page__content .wp-block-button__link:hover {
	border-color: var(--bl-brand-2);
	background: var(--bl-brand-hover);
	color: var(--bl-brand);
}

/* in the mini cart the two buttons stack, full width */
.bl-mini__buttons {
	display: grid;
	gap: 10px;
	margin: 0;
}

.bl-mini__buttons .button,
.bl-mini__buttons a.checkout {
	width: 100%;
}

p.bl-mini__buttons {
	text-align: center;
}

/* on photography: the hero button is the Figma cream pill, promo and video buttons are quiet outlines */
.bl-hero2__btn {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 16px;
	border-radius: 9999px;
	background: #eae2d3;
	color: var(--bl-brand);
	font: 400 12px/1 var(--bl-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

a:hover > .bl-hero2__btn,
a:hover > .bl-hero2__text .bl-hero2__btn,
.bl-hero2__btn:hover {
	background: #fff;
}

.bl-vp__cta {
	border-color: #eae2d3;
	color: #dcd0b9;
	letter-spacing: 0.08em;
	font-weight: 400;
}

/* soft pills are the Figma cream pill: filled, quiet */
.bl-pill,
.bl-pill--soft {
	border-color: #eae2d3;
	background: #eae2d3;
	color: var(--bl-brand);
}

.bl-pill:hover,
.bl-pill--soft:hover,
.bl-pill:focus-visible {
	border-color: #e0d4bd;
	background: #e0d4bd;
	color: var(--bl-brand);
}

.bl-f2__news-msg {
	flex: 1 1 100%;
	margin: 0;
	color: var(--bl-brand-2);
	font: 400 13px/1.4 var(--bl-sans);
}

.bl-f2__news-msg:empty {
	display: none;
}

/* loading state: our moon blinks instead of WooCommerce's spinning gear */
.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after,
.woocommerce #respond input#submit.loading::after,
.woocommerce input.button.loading::after,
.single_add_to_cart_button.loading::after,
#place_order.processing::after {
	content: '' !important;
	position: absolute;
	top: 50%;
	right: 22px;
	width: 11px;
	height: 15px;
	margin: -7px 0 0;
	font: inherit;
	background: currentColor;
	-webkit-mask: url('../img/moon.svg') center / contain no-repeat;
	mask: url('../img/moon.svg') center / contain no-repeat;
	animation: bl-moon-blink 0.9s ease-in-out infinite !important;
}

@keyframes bl-moon-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.12; }
}

/* loaded last: the backing colour the multiply-blended photos blend against */
body .bl-pcard .bl-pcard__media, body li.bl-card .bl-card__media, body .bl-head__img { background-color: var(--bl-bg) !important; }

/* Safari (iPhone and Mac) ignores mix-blend-mode inside an element that clips (overflow:hidden) or isolates itself,
   so the photo frames neither clip nor isolate: the photos blend straight into the page colour, in every browser */
body li.bl-card .bl-card__media,
body .bl-pcard .bl-pcard__media,
body .bl-head__img {
	overflow: visible !important;
	isolation: auto !important;
	background: none !important;
}
@media (max-width: 1359px) {
	body .bl-pcard .bl-pcard__img:not([src*='-bl.webp']), body li.bl-card .bl-card__img:not([src*='-bl.webp']), body .bl-head__img img:not([src*='-bl.webp']) { -webkit-transform: none; transform: none; will-change: auto; }
}
body li.bl-card .bl-card__img { filter: none; }
body .bl-gal__link, body .bl-lb__stage, body .bl-lb__thumb, body .bl-mini__thumb, body .bl-sp__thumb, body .bl-lkp__thumb, body .bl-set__thumb, body .bl-rev__thumb {
	overflow: visible !important;
	isolation: auto !important;
	background: none !important;
}
body .bl-lb__stage { overflow: visible !important; }

/* scrolling strips are their own layer on iOS, so they carry the page colour the photos blend against */
body .bl-gal__track, body .bl-slider__track, body .bl-head__tiles, body .bl-season__row, body .bl-lb__thumbs,
body .bl-cart-drawer__scroll, body .bl-cart-drawer__body, body .bl-sp__body { background-color: var(--bl-bg); }

/* on iOS a scroller paints its own background on a separate layer, so the colour the photos blend against sits on the items inside the strip */
body .bl-head__tile, body .bl-gal__item, body .bl-slider__track > li, body .bl-slider__track > .bl-pcard, body .bl-season__row > *, body .bl-pcard:not(.bl-pcard--look), body li.bl-card { background-color: var(--bl-bg); }
body .bl-head__tiles, body .bl-gal__track, body .bl-slider__track { background-attachment: local; }

/* "darken" instead of "multiply": the photo's off-white backdrop becomes exactly the page colour, so no box is left around it */
body .bl-card__img, body .bl-pcard .bl-pcard__img, body .bl-head__img img, body .bl-gal__img, body .bl-lb .bl-lb__img, body .bl-lb__thumb img,
body .bl-mini__thumb img, body .bl-rev__thumb img, body .bl-sp__thumb img, body .bl-lkp__thumb img, body .bl-set__thumb img { mix-blend-mode: darken; }

/* no zoom on the photos: a transform makes Safari drop the blend (white box) and the photo jumps */
body .bl-card:hover .bl-card__img:not([src*='-bl.webp']), body .bl-head__tile a:hover .bl-head__img img:not([src*='-bl.webp']), body .bl-pcard:hover .bl-pcard__img:not([src*='-bl.webp']), body .bl-card .bl-card__img:not([src*='-bl.webp']) { transform: none !important; }
body .bl-card, body .bl-pcard, body .bl-head__tile a { transform: none !important; }

/* solid, always: buttons never get a shadow or a lift on hover or focus */
button:hover, button:focus, button:focus-visible, .button:hover, .button:focus, .button:focus-visible,
a.button:hover, input[type='submit']:hover, .bl-pill:hover, .bl-btn:hover, .bl-acct__btn:hover,
.single_add_to_cart_button:hover, .single_add_to_cart_button:focus, #place_order:hover, #place_order:focus,
.bl-hero2__btn:hover, a:hover > .bl-hero2__btn { box-shadow: none !important; transform: none !important; }

/* the filter row only scrolls on phones (the popovers on desktop would be clipped by a scroll container) */
@media (max-width: 767px) {
	body .bl-filters__set { overflow-y: hidden; overscroll-behavior-y: auto; touch-action: pan-x pan-y pinch-zoom; }
}

/* sideways strips scroll sideways only: a vertical swipe or wheel over them always moves the page */
body .bl-slider__track, body .bl-head__tiles, body .bl-season__row, body .bl-lb__thumbs, body .bl-nm__info {
	overflow-y: hidden;
	overscroll-behavior-y: auto;
	touch-action: pan-x pan-y pinch-zoom;
}
@media (max-width: 959px) {
	body .bl-gal__track { overflow-y: hidden; overscroll-behavior-y: auto; touch-action: pan-x pan-y pinch-zoom; }
}

/* category rail: every picture sits in the same square, so every title lands on the same line */
body .bl-head__img { position: relative; aspect-ratio: 1; min-height: 0; }
body .bl-head__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* hover "zoom": a transform on the GPU, so the photo grows smoothly instead of re-flowing every frame (animating padding made it tremble).
   Only on the transparent twins (-bl.webp), which need no blend; blended photos stay still because a transform breaks the blend in Safari. */
body li.bl-card .bl-card__img[src*='-bl.webp'], body .bl-pcard .bl-pcard__img[src*='-bl.webp'], body .bl-head__img img[src*='-bl.webp'] {
	transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s ease !important;
	will-change: transform;
	backface-visibility: hidden;
	mix-blend-mode: normal !important; /* already transparent: no blend, so a transform is safe in Safari */
}
@media (hover: hover) {
	body li.bl-card:hover .bl-card__img[src*='-bl.webp'], body .bl-pcard:hover .bl-pcard__img[src*='-bl.webp'] { transform: scale(1.035) !important; }
	body .bl-head__tile a:hover .bl-head__img img[src*='-bl.webp'] { transform: scale(1.05) !important; }
}

/* ---- hover motion: a breath, not a zoom. Photos that cover their frame grow 2% over a long, soft ease;
   cut-out product photos (blended) grow through padding by about 2%. Nothing on buttons. */
body .bl-ovl__img,
body .bl-promos__img,
body .bl-ed__img,
body .bl-lka__link img,
body .bl-ig2__shot--video .bl-ig2__img { transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.8s ease, opacity 0.8s ease; }

body .bl-ovl:hover .bl-ovl__img,
body .bl-promos__link:hover .bl-promos__img,
body .bl-ed:hover .bl-ed__img,
body .bl-lka__link:hover img,
body .bl-ig2__shot--video:hover .bl-ig2__img,
body .bl-ig2__shot--video:focus-visible .bl-ig2__img { transform: scale(1.02); filter: none; }

body .bl-ig2__shot--video:hover .bl-ig2__play,
body .bl-ig2__shot--video:focus-visible .bl-ig2__play,
body .bl-vp-card__add:hover,
body .bl-spot:hover .bl-spot__n,
body .bl-spot:focus-visible .bl-spot__n { transform: none; }

@media (prefers-reduced-motion: reduce) {
	body .bl-ovl__img, body .bl-promos__img, body .bl-ed__img, body .bl-lka__link img, body .bl-ig2__shot--video .bl-ig2__img { transition: none; }
	body li.bl-card .bl-card__imglink, body .bl-pcard .bl-pcard__img, body .bl-head__img img { transition: none; }
}

/* ---- product page: nothing in the buy row changes size while the page and the Stripe script finish loading.
   The row no longer stretches the add button to its tallest neighbour, and Stripe's own (empty, not yet paired)
   express container takes no height: it used to start at 50px and settle at 43px, shifting everything below. */
body .bl-pdp__atc .variations_button,
body .bl-pdp__atc form.cart:not(.variations_form) { align-items: flex-start; }
body .bl-pdp__atc .single_add_to_cart_button { align-self: center; height: 50px; box-sizing: border-box; }
body .bl-pdp__atc .wc-stripe-product-checkout-container { height: 0; min-height: 0; margin: 0; padding: 0; overflow: hidden; }

/* ---- sliders roll freely: no snapping to the item grid, no smooth-scroll fighting the finger or the drag.
   (the product gallery and the lightbox are slideshows, one picture per step, and keep their snap) */
.bl-slider__track,
.bl-head__tiles,
.bl-season__row,
.bl-look2--v3 .bl-look2__grid,
.bl-vp__products {
	scroll-snap-type: none !important;
	scroll-behavior: auto !important;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.bl-slider__track > *,
.bl-head__tile,
.bl-vp__products > *,
.bl-look2--v3 .bl-look2__grid > li {
	scroll-snap-align: none !important;
}

/* ---- phones and touch: the sub-category rail has no hover effect (a tap would leave it stuck in the hover state) */
@media (hover: none), (max-width: 959px) {
	body .bl-head__tile a:hover .bl-head__name { color: inherit; }
}


/* ---- Apple Pay / Google Pay on the product page: Stripe draws the real buttons (logo only, 50px, pill). Nothing here may hide, shrink to zero,
   fade or cover them: Stripe only draws a wallet into a box that has a real size and is fully visible. They sit after "add to cart" next to the label;
   the label appears only once a wallet really exists (JS adds .has-ready). When this browser has no wallet Stripe leaves a few pixels, no more. */
body .bl-pdp__atc .woocommerce-variation-add-to-cart,
body .bl-pdp__atc form.cart:not(.variations_form):not(.grouped_form):not(.bundle_form) { flex-wrap: wrap; align-items: center; }
body .bl-pdp__atc .single_add_to_cart_button { flex: 1 1 220px; }
html.bl-wallet body .bl-pdp__atc .wc-stripe-product-checkout-container { display: flex; flex: 0 0 auto; width: auto; height: auto; min-height: 0; align-items: center; gap: 10px; margin: 0; padding: 0; overflow: visible; }
html.bl-wallet body .bl-pdp__atc .wc-stripe-product-checkout-container.has-ready { margin: 0 0 0 6px; }
html.bl-wallet .bl-pdp__atc .wc-stripe-product-checkout-container.has-ready::before { content: 'Πλήρωσε με'; flex: none; color: var(--bl-brand-2); font: 400 12px/1.2 var(--bl-sans); letter-spacing: 0.04em; white-space: nowrap; }
.bl-pdp__atc .wc_stripe_product_payment_methods { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bl-pdp__atc .wc_stripe_product_payment_methods li { flex: 0 0 100px; width: 100px; margin: 0 !important; padding: 0; list-style: none; overflow: hidden; border-radius: 9999px; }
/* Stripe draws its own white buttons (black or coloured logos, Google's with a grey ring) and its frame cannot be styled, so three layers sit on top (clicks pass through):
   1. a backdrop filter turns the button into pure white + dark logo (the ring becomes white), 2. multiply paints the white sand, 3. lighten paints the dark logo in the brand colour. */
.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready { position: relative; isolation: isolate; background: none; clip-path: inset(2px round 9999px); } /* the 2px edge hides Google's dark ring: 44px frame, 40px pill */
.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready::before,
.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready::after,
.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready .payment-box::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready::before { z-index: 1; -webkit-backdrop-filter: grayscale(1) brightness(0.65) contrast(20); backdrop-filter: grayscale(1) brightness(0.65) contrast(20); }
.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready .payment-box::after { z-index: 2; background: #eae2d3; mix-blend-mode: multiply; transition: background-color 0.2s ease; }
.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready::after { z-index: 3; background: #856d3e; mix-blend-mode: lighten; }
.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready:hover .payment-box::after { background: #e0d4bd; }

.bl-pdp__atc .wc_stripe_product_payment_methods li.is-ready { height: 44px; }
.bl-pdp__atc .wc_stripe_product_payment_methods .payment-box { margin: 0; padding: 0; background: none; }
.bl-pdp__atc .wc_stripe_product_payment_methods .wc-stripe-express-skeleton { display: none; }
@media (max-width: 767px) {
	html.bl-wallet body .bl-pdp__atc .wc-stripe-product-checkout-container { flex: 1 1 100%; width: 100%; margin: 6px 0 0; }
	.bl-pdp__atc .wc_stripe_product_payment_methods { flex: 1 1 auto; }
	.bl-pdp__atc .wc_stripe_product_payment_methods li { flex: 1 1 0; width: auto; max-width: none; }
}
