/* =====================================================
   CARO COMMERCE 2026
   GLOBAL LUXURY PRODUCT COMPONENT
===================================================== */

.woocommerce ul.products li.caro-product-card {
	position: relative !important;
	display: block !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: left !important;
}

.caro-product-card__inner {
	width: 100%;
}

/* MEDIA */

.caro-product-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	margin: 0 0 18px;
	border-radius: 16px;
	background: #f8f7f4;
}

.caro-product-card__media-link {
	position: absolute;
	inset: 0;
	display: block;
	z-index: 1;
}

/*
 * Full photograph is always visible.
 * No clipping of people, necklaces or garments.
 */
.caro-product-card__image,
.woocommerce ul.products li.product img.caro-product-card__image {
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain !important;
	object-position: center !important;
	transform: scale(1);
	transition: opacity .25s ease, transform .45s ease !important;
}

@media (hover:hover) {
	.caro-product-card:hover .caro-product-card__image {
		transform: scale(1.015);
	}
}

/* SALE */

.caro-product-card__sale {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 20;
	padding: 7px 11px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* WISHLIST — FORCE YITH INTO ONE CLEAN HEART */

.caro-product-card__wishlist {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	z-index: 30 !important;
	width: 44px !important;
	height: 44px !important;
	overflow: visible !important;
}

.caro-product-card__wishlist *,
.caro-product-card__wishlist *::before,
.caro-product-card__wishlist *::after {
	box-sizing: border-box;
}

.caro-product-card__wishlist .yith-wcwl-add-to-wishlist,
.caro-product-card__wishlist .yith-wcwl-add-button,
.caro-product-card__wishlist > div {
	width: 44px !important;
	max-width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

.caro-product-card__wishlist a {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 1px solid rgba(0,0,0,.08) !important;
	border-radius: 50% !important;
	background: rgba(255,255,255,.96) !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: -9999px !important;
	box-shadow: 0 5px 18px rgba(0,0,0,.10) !important;
}

.caro-product-card__wishlist a > * {
	display: none !important;
}

.caro-product-card__wishlist a::after {
	content: "♡" !important;
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #111 !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-indent: 0 !important;
}

/* QUICK ADD */

.caro-product-card__cart {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	z-index: 25;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}

.caro-product-card:hover .caro-product-card__cart,
.caro-product-card:focus-within .caro-product-card__cart {
	opacity: 1;
	transform: translateY(0);
}

.caro-product-card__cart .button,
.caro-product-card__cart .added_to_cart {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 12px 16px !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: rgba(17,17,17,.95) !important;
	color: #fff !important;
	font-size: .72rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .065em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
}

/* PRODUCT INFORMATION */

.caro-product-card__body {
	padding: 0 3px;
}

.caro-product-card__title {
	display: -webkit-box !important;
	overflow: hidden !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	min-height: 2.7em !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.36 !important;
	letter-spacing: -.012em !important;
	text-align: left !important;
}

.caro-product-card__title a {
	color: #111 !important;
	text-decoration: none !important;
}

.caro-product-card__price {
	font-size: .98rem !important;
	font-weight: 650 !important;
	line-height: 1.4;
	color: #111 !important;
}

.caro-product-card__price del {
	margin-right: 6px;
	color: #8d8d8d !important;
	font-size: .84rem;
	font-weight: 400;
}

.caro-product-card__price ins {
	color: #111 !important;
	font-weight: 650;
	text-decoration: none;
}

/* TOUCH */

@media (hover:none) {
	.caro-product-card__cart {
		position: static;
		margin-top: 13px;
		opacity: 1;
		transform: none;
	}
}

/* =====================================================
   CARO WISHLIST — HARD VISUAL RESET
   YITH may emit several different markup states.
===================================================== */

.caro-product-card__wishlist {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	z-index: 50 !important;

	display: block !important;

	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;

	margin: 0 !important;
	padding: 0 !important;

	overflow: hidden !important;

	border: 1px solid rgba(0,0,0,.08) !important;
	border-radius: 50% !important;

	background: rgba(255,255,255,.96) !important;

	box-shadow: 0 5px 18px rgba(0,0,0,.10) !important;
}

/* Our heart — independent of YITH's internal design */
.caro-product-card__wishlist::after {
	content: "♡";

	position: absolute;
	inset: 0;
	z-index: 2;

	display: flex;
	align-items: center;
	justify-content: center;

	color: #111;
	font-size: 23px;
	font-weight: 400;
	line-height: 1;

	pointer-events: none;
}

/* If YITH says product already exists in wishlist */
.caro-product-card__wishlist:has(.yith-wcwl-wishlistaddedbrowse)::after,
.caro-product-card__wishlist:has(.yith-wcwl-wishlistexistsbrowse)::after {
	content: "♥";
}

/* Strip ALL plugin visual styling from descendants */
.caro-product-card__wishlist div,
.caro-product-card__wishlist span,
.caro-product-card__wishlist p,
.caro-product-card__wishlist a,
.caro-product-card__wishlist button {
	position: absolute !important;
	inset: 0 !important;

	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 0 !important;

	background: transparent !important;
	background-color: transparent !important;

	color: transparent !important;

	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: -9999px !important;

	box-shadow: none !important;
}

/* Hide YITH icons/text/images completely */
.caro-product-card__wishlist img,
.caro-product-card__wishlist svg,
.caro-product-card__wishlist i,
.caro-product-card__wishlist .feedback {
	display: none !important;
}

/* Only the real clickable control receives pointer input */
.caro-product-card__wishlist * {
	pointer-events: none !important;
}

.caro-product-card__wishlist a,
.caro-product-card__wishlist button {
	z-index: 5 !important;
	display: block !important;
	opacity: 0 !important;
	cursor: pointer !important;
	pointer-events: auto !important;
}


/* =====================================================
   CARO PRODUCT MEDIA — FINAL PORTRAIT PROPORTIONS
===================================================== */

/*
 * 3:4 gives model/editorial photography more vertical room
 * while still looking appropriate for jewellery merchandising.
 */
.caro-product-card__media {
	aspect-ratio: 3 / 4 !important;
	background: #fff !important;
}

/*
 * Always show the complete source image.
 * Never crop heads, bodies, necklaces or product edges.
 */
.caro-product-card__image,
.woocommerce ul.products li.product img.caro-product-card__image {
	position: absolute !important;
	inset: 0 !important;

	width: 100% !important;
	height: 100% !important;

	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;

	object-fit: contain !important;
	object-position: center center !important;
}

/* Prevent hover from enlarging enough to clip image edges */
@media (hover:hover) {
	.caro-product-card:hover .caro-product-card__image {
		transform: scale(1.005) !important;
	}
}

/* Slightly shorter cards on phones */
@media (max-width: 600px) {
	.caro-product-card__media {
		aspect-ratio: 4 / 5 !important;
	}
}


/* =====================================================
   CARO COMMERCE — SINGLE PRODUCT FOUNDATION
===================================================== */

/*
 * Keep the native WooCommerce gallery visible and stable.
 * Scoped to single-product pages so it does not interfere
 * with CARO catalogue cards.
 */

.single-product .woocommerce-product-gallery,
.single-product div.product div.images {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.single-product .woocommerce-product-gallery__image img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
	visibility: visible !important;
	opacity: 1 !important;
}


/* =====================================================
   CARO COMMERCE — PRODUCT TABS
===================================================== */

.single-product
.woocommerce-tabs.wc-tabs-wrapper
ul.wc-tabs li a {
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
}

@media (max-width: 767px) {

	.single-product
	.woocommerce-tabs.wc-tabs-wrapper
	ul.wc-tabs li a {
		font-size: 1.05rem;
	}
}

