/**
 * EligeTu — Luxury polish (micro-details)
 */

/* ==========================================================================
   1. Selection
   ========================================================================== */

::selection {
	background: rgba(243, 136, 157, 0.25);
	color: var(--et-black);
}

::-moz-selection {
	background: rgba(243, 136, 157, 0.25);
	color: var(--et-black);
}

/* ==========================================================================
   2. Scrollbar (WebKit)
   ========================================================================== */

::-webkit-scrollbar {
	width: 4px;
	height: 4px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--et-border, #eae0e2);
	border-radius: 2px;
}

/* ==========================================================================
   3. Focus states
   ========================================================================== */

*:focus {
	outline: none;
}

*:focus-visible {
	outline: 2px solid var(--et-primary);
	outline-offset: 3px;
}

/* ==========================================================================
   4. Page transitions
   ========================================================================== */

body.page-entering #page {
	opacity: 0;
	transform: translateY(8px);
}

body.page-loaded #page {
	opacity: 1;
	transform: none;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
	body.page-entering #page,
	body.page-loaded #page {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ==========================================================================
   5. Image blur-up
   ========================================================================== */

img.eligetu-img-blur:not(.loaded),
.eligetu-product-card__img:not(.loaded),
.eligetu-gallery__main-img:not(.loaded),
.eligetu-cart-item__img:not(.loaded) {
	filter: blur(8px);
	transition: filter 0.4s ease;
}

img.eligetu-img-blur.loaded,
.eligetu-product-card__img.loaded,
.eligetu-gallery__main-img.loaded,
.eligetu-cart-item__img.loaded {
	filter: none;
}

/* Checkout summary thumbs — never blur (AJAX refresh would leave them stuck) */
.eligetu-order-summary__img,
.eligetu-order-summary img {
	filter: none !important;
}

/* ==========================================================================
   6. WooCommerce notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info {
	background: var(--et-primary-light) !important;
	border-top-color: var(--et-primary) !important;
	color: var(--et-text-1) !important;
	font-family: var(--et-sans) !important;
	font-size: 13px !important;
	border-radius: 0 !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--et-primary) !important;
}

.woocommerce-error {
	border-radius: 0 !important;
	font-family: var(--et-sans, "Jost", sans-serif) !important;
	font-size: 13px !important;
	background: #ffffff !important;
	border-top-color: #b42318 !important;
	color: #1a1a1a !important;
}

.woocommerce-error::before {
	color: #b42318 !important;
}

.woocommerce-error li,
.woocommerce-error a {
	color: #1a1a1a !important;
}

/* ==========================================================================
   7. WooCommerce link & button defaults
   ========================================================================== */

.woocommerce a {
	color: var(--et-text-1, #1a1a1a);
	transition: color 0.25s ease;
}

.woocommerce a:hover {
	color: var(--et-primary);
}

.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #respond input#submit {
	border-radius: 0 !important;
	font-family: var(--et-sans, "Jost", sans-serif) !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
}

/* ==========================================================================
   8. Sticky add-to-cart bar (desktop)
   ========================================================================== */

.eligetu-sticky-atc {
	position: fixed;
	bottom: 0;
	top: auto;
	left: 0;
	right: 0;
	z-index: 95;
	height: auto;
	min-height: 72px;
	overflow: visible;
	background: #ffffff;
	border-top: 1px solid var(--et-border, #eae0e2);
	border-bottom: none;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.35s ease, opacity 0.35s ease;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.eligetu-sticky-atc.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.eligetu-sticky-atc__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--et-max-width, 1440px);
	min-height: 72px;
	height: auto;
	margin: 0 auto;
	padding: 12px var(--et-gutter, 40px);
	box-sizing: border-box;
}

.eligetu-sticky-atc__product {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.eligetu-sticky-atc__thumb {
	width: 44px;
	height: 44px;
	object-fit: contain;
	background: #ffffff;
	flex-shrink: 0;
}

.eligetu-sticky-atc__name {
	margin: 0;
	font-family: var(--et-serif, "Playfair Display", serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--et-text-1, #1a1a1a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eligetu-sticky-atc__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.eligetu-sticky-atc__price {
	font-family: var(--et-sans, "Jost", sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: var(--et-text-1, #1a1a1a);
	white-space: nowrap;
}

.eligetu-sticky-atc__price .amount,
.eligetu-sticky-atc__price bdi {
	font-weight: 600;
}

.eligetu-sticky-atc__btn,
button.eligetu-sticky-atc__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 180px !important;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	padding: 0 20px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: var(--et-primary, #F3889D) !important;
	color: #ffffff !important;
	font-family: var(--et-sans, "Jost", sans-serif) !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	overflow: visible !important;
	cursor: pointer !important;
	transition: background 0.3s ease !important;
}

.eligetu-sticky-atc__btn:hover,
button.eligetu-sticky-atc__btn:hover,
.eligetu-sticky-atc__btn:focus,
button.eligetu-sticky-atc__btn:focus {
	background: var(--et-black, #1a1a1a) !important;
	color: #ffffff !important;
}

@media (max-width: 1023px) {
	.eligetu-sticky-atc {
		display: none !important;
	}
}

/* ==========================================================================
   9. Empty cart
   ========================================================================== */

.eligetu-empty-cart {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 64px 24px 80px;
}

.eligetu-empty-cart__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 28px;
	color: var(--et-gold, #c9a96e);
}

.eligetu-empty-cart__title {
	margin: 0 0 12px;
	font-family: var(--et-serif, "Playfair Display", serif);
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
	color: var(--et-text-1, #1a1a1a);
}

.eligetu-empty-cart__text {
	margin: 0 0 28px;
	font-family: var(--et-sans, "Jost", sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--et-text-2, #7a6b6d);
}

.eligetu-empty-cart__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 32px;
	background: var(--et-primary, #F3889D);
	color: #ffffff;
	font-family: var(--et-sans, "Jost", sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.3s ease;
}

.eligetu-empty-cart__btn:hover {
	background: var(--et-black, #1a1a1a);
	color: #ffffff;
}

.eligetu-cart-page .cart-empty,
.eligetu-cart-page .return-to-shop {
	display: none;
}

/* ==========================================================================
   10. 404 page
   ========================================================================== */

.eligetu-error-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 80px var(--et-gutter, 40px);
	text-align: center;
}

.eligetu-error-page__code {
	margin: 0;
	font-family: var(--et-serif, "Playfair Display", serif);
	font-size: clamp(72px, 18vw, 120px);
	font-weight: 300;
	line-height: 1;
	color: var(--et-gold, #c9a96e);
}

.eligetu-error-page__title {
	margin: 16px 0 12px;
	font-family: var(--et-serif, "Playfair Display", serif);
	font-size: 24px;
	font-weight: 300;
	line-height: 1.3;
	color: var(--et-text-1, #1a1a1a);
}

.eligetu-error-page__text {
	margin: 0 0 32px;
	max-width: 420px;
	font-family: var(--et-sans, "Jost", sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--et-text-2, #7a6b6d);
}

.eligetu-error-page__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 32px;
	background: var(--et-primary, #F3889D);
	color: #ffffff;
	font-family: var(--et-sans, "Jost", sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.3s ease;
}

.eligetu-error-page__btn:hover {
	background: var(--et-black, #1a1a1a);
	color: #ffffff;
}

.error404 .entry-header {
	display: none;
}
