/*
Product card + the grid it lives in. Reused by the shop archive, related
products, upsells/cross-sells, search results, and the homepage sale/new
sections Ã¢â‚¬â€ all of them render through woocommerce/content-product.php.
*/

/* WooCommerce's own #primary/#main wrapper (from woocommerce_output_content_wrapper())
   has no width constraint by default. This is the one rule every
   WooCommerce page needs; shop.css narrows it further when the
   filter-sidebar layout is active. */
#primary.content-area {
	max-width: var(--container-w);
	margin-inline: auto;
	padding-inline: var(--container-pad);
	padding-block: var(--space-6) var(--space-8);
}

/*
WooCommerce wraps every product loop Ã¢â‚¬â€ shop, related, upsells,
cross-sells, search results Ã¢â‚¬â€ in <ul class="products">. Styling that
class directly means every one of those grids is responsive for free,
with no per-template markup to maintain.
*/
ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-4);
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: var(--space-6);
	list-style: none;
}



/* The whole card is one link Ã¢â‚¬â€ no separate title link, no button, so
   this just needs to lay out its two children (media, body) and inherit
   text color rather than looking like a link. */
.product-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	gap: 10px;
	outline: 2px solid #ffffff00;
	outline-offset: 8px;
	border-radius: 8px;
	margin: 10px 0;
	transition: 0.3s;
	color: #333;
}

.product-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
}

.product-card__media img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	/* transition: transform var(--transition-base); */
	border-radius: 8px;
	transition: filter .25s ease;
	aspect-ratio: 1;
}

.product-card:hover .product-card__media img {/* transform: scale(1.02); */}


.product-card__body {
	display: flex;
	flex-direction: column;
	/* gap: var(--space-2); */
	/* padding: 0 12px; */
	/* border-top: 1px solid var(--color-border); */
}

.product-card__title {
	font-size: 13px;
	font-weight: var(--font-medium);
	line-height: var(--leading-snug);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 8px;
}

.product-card:hover .product-card__title {
	/* color: var(--color-primary); */
}

.product-card__price {
	font-size: var(--text-base);
	font-weight: var(--font-semibold);
	color: var(--color-ink);
	display: flex;
	align-items: center;
	flex-direction: row;
	gap: 7px;
	margin-left: auto !important;
	width: 100%;
	justify-content: flex-end;
}

.product-card__price .woocommerce-Price-amount {
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
	position: relative;
}

/* "Ã˜Â´Ã˜Â±Ã™Ë†Ã˜Â¹ Ã˜Â§Ã˜Â²" (variable products) */
.product-card__price-label {
	font-size: var(--text-xs);
	font-weight: var(--font-regular);
	color: var(--color-muted);
}

/* Crossed-out regular price on a sale item â€” its own line below
   .product-card__price, deliberately no currency word, smaller/muted. */
.product-card__price-regular {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--font-regular);
	color: var(--color-muted);
	text-align: left;
	margin-top: -7px;
	text-decoration-thickness: 2px;
	text-decoration-color: #00000040;
}

.product-card__price-sale {
	text-decoration: none;
	color: var(--color-ink);
}

/* WooCommerce notices --------------------------------------------------------------
   Core WooCommerce markup: .woocommerce-error is a <ul> of <li> messages,
   .woocommerce-message/.woocommerce-info are a single <div> (optionally
   with a trailing .button, e.g. "View cart"). All three need styling Ã¢â‚¬â€
   we removed WooCommerce's own stylesheet in Phase 4. */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-3);
	list-style: none;
	padding: var(--space-4);
	margin-block-end: var(--space-5);
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
}

.woocommerce-error li {
	list-style: none;
}

.woocommerce-message {
	background: var(--color-success-tint);
	color: var(--color-success);
}

.woocommerce-error {
	background: var(--color-sale-tint);
	color: var(--color-sale);
}

.woocommerce-info {
	background: var(--color-info-tint);
	color: var(--color-info);
}

.woocommerce-message .button,
.woocommerce-error .button {
	margin-inline-start: auto;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding-inline: var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--color-ink);
	color: var(--color-bg);
	font-size: var(--text-xs);
	font-weight: var(--font-medium);
	white-space: nowrap;
	order: 1;
}

.card.outofstock {
    filter: grayscale(1);
    opacity: 0.5;
}

.sale-carousel .container {
    max-width: 1500px;
    padding-left: 102px;
}

.product-card__link:hover {
    outline-color: #00000014;
    color: #000000;
}

span.product-card__badge {
    margin-left: auto;
}

.product-card__link:hover img {
    /* background-blend-mode: saturation; */
    filter: saturate(1.3) contrast(1.15);
}