/* 
 * Product Card Component
 * 
 * Reusable styling for WooCommerce product cards.
 * Used on homepage sections and product archives.
 * 
 * Selectors: .product-card, .product-image-link, .product-info, 
 * .product-name, .product-price
 */

/* ========================================
   Card Shell
   ======================================== */

.product-card {
	display: flex;
	flex-direction: column;
	background-color: #F5EFE3;
	border-radius: 4px;
	overflow: hidden;
	transition: none;
	min-height: auto;
}

/* ========================================
   Product Image Link & Image
   ======================================== */

.product-image-link {
	display: block;
	width: 100%;
	overflow: hidden;
	background-color: #F5EFE3;
	aspect-ratio: 4 / 5;
	margin-bottom: 1rem;
}

.product-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease-out;
}

/* ========================================
   Product Info
   ======================================== */

.product-info {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* ========================================
   Product Name
   ======================================== */

.product-name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	color: #1C1C1A;
}

.product-name a {
	color: #1C1C1A;
	text-decoration: none;
	transition: color 0.2s ease-out;
	display: inline;
}

/* ========================================
   Product Price
   ======================================== */

.product-price {
	font-size: 0.9rem;
	line-height: 1.4;
	color: #1C1C1A;
}

.product-price .woocommerce-Price-amount {
	font-weight: 600;
	color: #1C1C1A;
}

.product-price .woocommerce-Price-currencySymbol {
	font-weight: 600;
}

/* ========================================
   Sale Price (WooCommerce del/ins)
   ======================================== */

.product-price del {
	color: #8B5E52;
	opacity: 0.7;
	text-decoration: line-through;
	font-weight: 400;
	margin-right: 0.5rem;
}

.product-price ins {
	text-decoration: none;
	color: #A8823D;
	font-weight: 700;
}

/* ========================================
   Hover & Focus States
   ======================================== */

.product-image-link:hover img,
.product-image-link:focus img {
	transform: scale(1.03);
}

.product-name a:hover,
.product-name a:focus-visible {
	color: #A8823D;
}

.product-image-link:focus-visible {
	outline: 2px solid #A8823D;
	outline-offset: 2px;
}

.product-name a:focus-visible {
	outline: 2px solid #A8823D;
	outline-offset: 2px;
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
	.product-image-link img {
		transition: none;
	}

	.product-image-link:hover img,
	.product-image-link:focus img {
		transform: none;
	}

	.product-name a {
		transition: none;
	}
}