/**
 * Fragranz Fables - Product Card Styles
 * Luxury editorial perfume card with gold accents, crisp serif titles, and smooth hover
 */

.ff-product-card {
	position: relative;
	background-color: #FFFFFF;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.ff-product-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

/* ==================================================
   PRODUCT IMAGE CONTAINER
   ================================================== */
.ff-product-image-wrap {
	position: relative;
	width: 100%;
	padding-top: 125%; /* Clean luxury aspect ratio */
	background-color: #F8F5EE;
	overflow: hidden;
	margin-bottom: 16px;
	border-radius: var(--ff-radius-sm);
}

.ff-product-image-link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.ff-product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
	display: block;
}

.ff-product-image-primary {
	opacity: 1;
}

.ff-product-image-hover {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 2;
}

/* Card Hover */
.ff-product-card:hover .ff-product-image-primary {
	transform: scale(1.04);
}

.ff-product-card.has-hover-image:hover .ff-product-image-hover {
	opacity: 1;
	transform: scale(1.04);
}

/* ==================================================
   BADGES (SALE, SOLD OUT)
   ================================================== */
.ff-product-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	font-family: var(--ff-font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	padding: 4px 10px;
	text-transform: uppercase;
	border-radius: var(--ff-radius-sm);
	pointer-events: none;
}

.ff-badge-sale {
	background-color: var(--ff-gold);
	color: #FFFFFF;
}

.ff-badge-out-of-stock {
	background-color: var(--ff-dark);
	color: #FFFFFF;
}

/* ==================================================
   WISHLIST HEART ICON (Top Right - ICON ONLY)
   ================================================== */
.ff-product-wishlist-action {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
}

.ff-shop-wishlist-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ff-shop-wishlist-wrapper .yith-wcwl-add-to-wishlist,
.ff-shop-wishlist-wrapper .yith-add-to-wishlist-button-block {
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Wishlist Button (Both Fallback and YITH anchors) */
.ff-shop-wishlist-btn,
.ff-shop-wishlist-wrapper a,
.ff-shop-wishlist-wrapper .yith-wcwl-add-button a,
.ff-shop-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse a,
.ff-shop-wishlist-wrapper .yith-wcwl-wishlistexistsbrowse a {
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	border-radius: 50% !important;
	background-color: rgba(255, 255, 255, 0.94) !important;
	backdrop-filter: blur(4px) !important;
	border: 1px solid rgba(222, 214, 200, 0.8) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	color: var(--ff-dark) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	transition: var(--ff-transition) !important;
	text-decoration: none !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	font-size: 0 !important; /* STRICTLY HIDES TEXT LIKE "Add to wishlist" */
	overflow: hidden !important;
	position: relative !important;
}

.ff-shop-wishlist-btn:hover,
.ff-shop-wishlist-wrapper a:hover {
	background-color: #FFFFFF !important;
	color: var(--ff-gold) !important;
	border-color: var(--ff-gold) !important;
	transform: scale(1.08) !important;
}

/* STRICTLY HIDE ANY TEXT SPAN OR FEEDBACK INSIDE WISHLIST */
.ff-shop-wishlist-wrapper a span,
.ff-shop-wishlist-wrapper a label,
.ff-shop-wishlist-wrapper .feedback,
.ff-shop-wishlist-wrapper .separator,
.ff-shop-wishlist-wrapper .yith-wcwl-tooltip,
.ff-shop-wishlist-wrapper .ajax-loading {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	font-size: 0 !important;
	width: 0 !important;
	height: 0 !important;
	line-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Ensure ONLY the heart icon is crisp, visible and centered */
.ff-shop-wishlist-wrapper a i,
.ff-shop-wishlist-wrapper a svg,
.ff-shop-wishlist-wrapper a .yith-wcwl-icon,
.ff-shop-wishlist-wrapper a [class*="icon"],
.ff-shop-wishlist-wrapper a [class*="fa-"] {
	font-size: 16px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
}

/* Active / Added states */
.ff-shop-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse a,
.ff-shop-wishlist-wrapper .yith-wcwl-wishlistexistsbrowse a,
.ff-shop-wishlist-btn.is-active {
	color: var(--ff-gold) !important;
	border-color: var(--ff-gold) !important;
}

.ff-shop-wishlist-btn.is-active svg {
	fill: var(--ff-gold) !important;
	stroke: var(--ff-gold) !important;
}

/* ==================================================
   PRODUCT DETAILS
   ================================================== */
.ff-product-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex-grow: 1;
	width: 100%;
}

/* TITLE: Locked with min-height for uniform row alignment */
.ff-product-title {
	font-family: var(--ff-font-serif);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--ff-dark);
	margin: 0 0 6px 0;
	line-height: 1.3;
	text-transform: uppercase;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.ff-product-title a {
	color: var(--ff-dark);
	text-decoration: none;
	transition: var(--ff-transition);
}

.ff-product-title a:hover {
	color: var(--ff-gold);
}

/* SUBTITLE / CONCENTRATION */
.ff-product-subtitle {
	font-family: var(--ff-font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--ff-muted);
	margin-bottom: 6px;
	text-transform: uppercase;
}

/* RATING & REVIEWS */
.ff-product-rating-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-bottom: 8px;
	font-size: 12px;
	line-height: 1;
}

.ff-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--ff-gold);
}

.ff-star-full,
.ff-star-half {
	color: var(--ff-gold);
}

.ff-star-empty {
	color: #D5CEBF;
}

.ff-review-count {
	font-family: var(--ff-font-sans);
	font-size: 12px;
	color: var(--ff-muted);
	letter-spacing: 0.02em;
}

/* PRICE */
.ff-product-price {
	font-family: var(--ff-font-sans);
	font-size: 16px;
	font-weight: 600;
	color: var(--ff-dark);
	margin-bottom: 14px;
	letter-spacing: 0.03em;
}

.ff-product-price del {
	color: var(--ff-muted);
	font-weight: 400;
	margin-right: 8px;
	font-size: 14px;
}

.ff-product-price ins {
	text-decoration: none;
	color: var(--ff-dark);
	font-weight: 600;
}

/* ADD TO CART BUTTON (Locked to bottom) */
.ff-product-action {
	width: 100%;
	margin-top: auto;
}

.ff-btn-add-to-cart {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	background-color: var(--ff-gold);
	border: 1px solid var(--ff-gold);
	border-radius: var(--ff-radius-sm);
	color: #FFFFFF;
	font-family: var(--ff-font-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	outline: none;
	transition: var(--ff-transition);
	position: relative;
	overflow: hidden;
}

.ff-btn-add-to-cart:hover {
	background-color: var(--ff-dark);
	border-color: var(--ff-dark);
	color: #FFFFFF;
}

.ff-btn-add-to-cart:focus {
	box-shadow: 0 0 0 3px var(--ff-gold-subtle);
}

.ff-btn-add-to-cart.is-loading {
	pointer-events: none;
	opacity: 0.85;
}

.ff-btn-add-to-cart.is-loading .ff-cart-icon {
	animation: ff-spin 0.75s linear infinite;
}

.ff-btn-add-to-cart.is-added {
	background-color: #2e7d32;
	border-color: #2e7d32;
	color: #FFFFFF;
}

.ff-btn-add-to-cart.is-disabled {
	background-color: #E8E4DC;
	border-color: #E8E4DC;
	color: #888888;
	cursor: not-allowed;
}

.ff-cart-icon {
	flex-shrink: 0;
}
