/* ==========================================================================
   FINAL POLISH — Smooth, Clean, Professional
   ========================================================================== */

/* ============================================
   SCROLL TO TOP
   ============================================ */
.mcs-scroll-top {
	position: fixed;
	bottom: 100px;
	right: 24px;
	z-index: 8999;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 10px 30px rgba(22, 20, 15, 0.2);
	padding: 0;
}

.mcs-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mcs-scroll-top:hover {
	background: #b8935c;
	transform: translateY(-4px);
	box-shadow: 0 15px 40px rgba(184, 147, 92, 0.35);
}

.mcs-scroll-top svg {
	display: block;
}

/* ============================================
   IMAGE OPTIMIZATION
   ============================================ */
img {
	max-width: 100%;
	height: auto;
}

img[loading="lazy"] {
	opacity: 0;
	transition: opacity 0.4s ease;
}

img.is-loaded,
img[loading="lazy"].is-loaded {
	opacity: 1;
}

/* Prevent layout shift */
.ely-prod__thumb img,
.mcs-prod__thumb img,
.ely-bpost__thumb img,
.mcs-search__card-thumb img,
.ely-vcard__bg {
	background-color: #f2ede3;
}

/* ============================================
   STICKY ADD TO CART (SINGLE PRODUCT)
   ============================================ */
.mcs-sticky-cart {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	background: #fff;
	border-top: 1px solid #e8e1d2;
	box-shadow: 0 -8px 30px rgba(22, 20, 15, 0.1);
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mcs-sticky-cart.is-visible {
	transform: translateY(0);
}

.mcs-sticky-cart__inner {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 20px;
}

.mcs-sticky-cart__thumb {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	overflow: hidden;
	border: 1px solid #e8e1d2;
	background: #faf7f0;
}

.mcs-sticky-cart__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mcs-sticky-cart__info {
	flex: 1;
	min-width: 0;
}

.mcs-sticky-cart__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 15px;
	font-weight: 500;
	color: #1a1a1a;
	margin: 0 0 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mcs-sticky-cart__price {
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
}

.mcs-sticky-cart__btn {
	padding: 12px 28px;
	background: #1a1a1a;
	color: #fff;
	border: 1px solid #1a1a1a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s;
	font-family: inherit;
	white-space: nowrap;
}

.mcs-sticky-cart__btn:hover {
	background: #b8935c;
	border-color: #b8935c;
}

/* ============================================
   SMOOTH SCROLL & BETTER FONTS
   ============================================ */
html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body {
	overflow-x: hidden;
}

/* Better focus states */
*:focus-visible {
	outline: 2px solid #b8935c;
	outline-offset: 2px;
}

button:focus,
a:focus {
	outline-offset: 2px;
}

/* Selection */
::selection {
	background: #b8935c;
	color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
	.mcs-scroll-top {
		bottom: 80px;
		right: 16px;
		width: 44px;
		height: 44px;
	}

	.mcs-sticky-cart {
		padding: 12px 16px;
		gap: 12px;
	}

	.mcs-sticky-cart__thumb {
		width: 40px;
		height: 40px;
	}

	.mcs-sticky-cart__title {
		font-size: 13px;
	}

	.mcs-sticky-cart__btn {
		padding: 10px 18px;
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	img[loading="lazy"] { opacity: 1; }
}