/* Loved Products Showcase — Styles */

.lps-wrapper {
	--lps-cols: 4;
	--lps-gap: 24px;
	position: relative;
	width: 100%;
}

.lps-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 32px;
	gap: 20px;
	flex-wrap: wrap;
}

.lps-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 34px;
	letter-spacing: 6px;
	margin: 0 0 8px 0;
	font-weight: 400;
	text-transform: uppercase;
}

.lps-subtitle {
	font-size: 14px;
	margin: 0;
	color: #9a9186;
}

.lps-arrows {
	display: flex;
	gap: 10px;
}

.lps-arrow {
	width: 42px;
	height: 42px;
	border: 1px solid #1a1a1a;
	background: transparent;
	color: #1a1a1a;
	cursor: pointer;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.lps-arrow:hover {
	background-color: #1a1a1a;
	color: #fff;
}

/* Viewport / track / grid */
.lps-viewport {
	overflow: hidden;
	width: 100%;
}

.lps-grid {
	display: grid;
	grid-template-columns: repeat(var(--lps-cols), 1fr);
	gap: var(--lps-gap);
}

.lps-track {
	display: flex;
	gap: var(--lps-gap);
	transition: transform 0.5s ease;
	will-change: transform;
	cursor: grab;
	user-select: none;
}

.lps-track.lps-dragging {
	cursor: grabbing;
	transition: none;
}

.lps-track.lps-dragging .lps-media-link {
	pointer-events: none;
}

.lps-track .lps-card {
	flex: 0 0 calc((100% - (var(--lps-cols) - 1) * var(--lps-gap)) / var(--lps-cols));
}

/* Continuous marquee */
.lps-marquee-viewport {
	overflow: hidden;
	width: 100%;
}

.lps-marquee-track {
	display: flex;
	width: max-content;
	will-change: transform;
	transform: translateX(0);
}

.lps-marquee-sequence {
	display: flex;
	gap: var(--lps-gap);
	flex-shrink: 0;
	padding-right: var(--lps-gap);
}

.lps-marquee-sequence .lps-card {
	width: calc((90vw - (var(--lps-cols) - 1) * var(--lps-gap)) / var(--lps-cols));
	max-width: 340px;
	flex-shrink: 0;
}

/* Card */
.lps-card {
	position: relative;
	opacity: 1;
}

.lps-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 3/4;
	min-height: 320px;
	background-color: #e7e2da;
	overflow: hidden;
	border-radius: 0;
}

@supports (aspect-ratio: 3/4) {
	.lps-card-media { min-height: 0; }
}

.lps-img,
.lps-img-placeholder {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center top;
	max-width: none !important;
}

.lps-media-link {
	position: absolute;
	inset: 0;
	display: block;
	z-index: 1;
	cursor: pointer;
}

.lps-img-main {
	opacity: 1;
	transition: opacity 0.5s ease, transform 0.6s ease;
	z-index: 1;
}

.lps-img-hover {
	opacity: 0;
	transition: opacity 0.5s ease, transform 0.6s ease;
	z-index: 2;
}

.lps-card:hover .lps-img-main {
	transform: scale(1.04);
}

.lps-wrapper[data-hover-gallery="true"] .lps-card:hover .lps-img-hover {
	opacity: 1;
	transform: scale(1.04);
}

.lps-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #ece7de, #ece7de 10px, #e4ddd0 10px, #e4ddd0 20px);
}

.lps-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 5;
	background-color: #1a1a1a;
	color: #fff;
	font-size: 10px;
	letter-spacing: 1.5px;
	font-weight: 700;
	padding: 5px 10px;
}

.lps-wishlist {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background-color: #fff;
	color: #1a1a1a;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, color 0.25s ease;
}

.lps-wishlist:hover {
	transform: scale(1.1);
}

.lps-wishlist.active {
	color: #ff4d6d;
}

/* Hover action buttons */
.lps-hover-actions {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	display: flex;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.lps-card:hover .lps-hover-actions {
	transform: translateY(0);
	opacity: 1;
}

.lps-hover-btn {
	flex: 1;
	border: none;
	cursor: pointer;
	padding: 14px 10px;
	font-size: 11px;
	letter-spacing: 1.5px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.lps-btn-quickview {
	background-color: #ffffff;
	color: #1a1a1a;
}

.lps-btn-quickview:hover {
	background-color: #f2ede6;
}

.lps-btn-addtobag {
	background-color: #1a1a1a;
	color: #ffffff;
}

.lps-btn-addtobag:hover {
	background-color: #c19a6b;
	color: #fff;
}

/* Card info */
.lps-card-info {
	padding-top: 16px;
}

.lps-brand {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: #c19a6b;
	font-weight: 600;
	margin-bottom: 6px;
}

.lps-product-title-link {
	text-decoration: none;
}

.lps-product-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 18px;
	font-style: italic;
	color: #2d3b4e;
	margin: 0 0 8px 0;
	font-weight: 400;
	transition: color 0.3s ease;
}

.lps-price-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.lps-price {
	font-size: 14px;
	color: #5a5248;
}

.lps-price-strike {
	text-decoration: line-through;
	opacity: 0.6;
}

.lps-sale-price {
	font-size: 14px;
	color: #c1443b;
	font-weight: 700;
}

/* Price HTML (from WooCommerce get_price_html / manual sale price) */
.lps-price-html {
	font-size: 14px;
	color: #5a5248;
	display: flex;
	align-items: center;
	gap: 10px;
}

.lps-price-html del {
	text-decoration: line-through;
	opacity: 0.6;
	font-size: 0.95em;
}

.lps-price-html ins {
	text-decoration: none;
	color: #c1443b;
	font-weight: 700;
}

.lps-price-html .woocommerce-Price-amount {
	font-size: inherit;
}

.lps-empty-state {
	padding: 60px 20px;
	text-align: center;
	color: #9a9186;
	font-size: 14px;
	border: 1px dashed #d8d1c4;
}

/* Entrance animations */
.lps-wrapper[data-entrance="true"] .lps-card {
	opacity: 0;
}

.lps-wrapper[data-entrance="true"] .lps-card.lps-in-view {
	animation-name: lpsFadeUp;
	animation-timing-function: ease;
	animation-fill-mode: forwards;
}

.lps-wrapper[data-entrance-type="zoom-in"][data-entrance="true"] .lps-card.lps-in-view {
	animation-name: lpsZoomIn;
}

.lps-wrapper[data-entrance-type="slide-in"][data-entrance="true"] .lps-card.lps-in-view {
	animation-name: lpsSlideIn;
}

@keyframes lpsFadeUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes lpsZoomIn {
	from { opacity: 0; transform: scale(0.88); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes lpsSlideIn {
	from { opacity: 0; transform: translateX(-40px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* Quick View popup */
.lps-qv-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lps-qv-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #000;
	opacity: 0.65;
	z-index: 0;
}

.lps-qv-overlay.lps-qv-active {
	display: flex;
}

.lps-qv-modal {
	position: relative;
	z-index: 1;
	background: #fff;
	max-width: 860px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	border-radius: 4px;
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.lps-qv-overlay.lps-qv-active .lps-qv-modal {
	transform: translateY(0);
	opacity: 1;
}

.lps-qv-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #1a1a1a;
	z-index: 2;
	width: 32px;
	height: 32px;
}

.lps-qv-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.lps-qv-image-col {
	background-color: #e7e2da;
	min-height: 380px;
	position: relative;
}

.lps-qv-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lps-qv-info-col {
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.lps-qv-brand {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: #c19a6b;
	font-weight: 600;
	margin-bottom: 10px;
}

.lps-qv-title {
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 26px;
	margin: 0 0 14px 0;
	color: #1a1a1a;
}

.lps-qv-price-row {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 18px;
	color: #1a1a1a;
}

.lps-qv-sale-price {
	color: #c1443b;
	font-weight: 700;
}

.lps-qv-desc {
	font-size: 14px;
	line-height: 1.7;
	color: #6b6459;
	margin-bottom: 26px;
}

.lps-qv-fulllink {
	display: inline-block;
	align-self: flex-start;
	padding: 14px 28px;
	background-color: #1a1a1a;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 1.5px;
	font-weight: 700;
	transition: background-color 0.3s ease;
}

.lps-qv-fulllink:hover {
	background-color: #c19a6b;
}

/* Responsive */
@media (max-width: 991px) {
	.lps-wrapper { --lps-cols: 2; }
	.lps-qv-body { grid-template-columns: 1fr; }
	.lps-qv-image-col { min-height: 260px; }
}

@media (max-width: 600px) {
	.lps-wrapper { --lps-cols: 1; }
	.lps-title { font-size: 24px; letter-spacing: 3px; }
	.lps-qv-info-col { padding: 28px 24px; }
}
