/* Related Products Component Styles */

.related_products_section {
	margin: 40px 0;
	padding: 20px 0;
}

.related_products_title {
	margin-bottom: 30px;
	text-align: center;
}

.related_products_title h3 {
	font-size: 24px;
	font-weight: bold;
	color: #333;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.related_products_grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.related_product_item {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 15px;
	transition: all 0.3s ease;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.related_product_item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
	border-color: #007cba;
}

.product_image {
	margin-bottom: 15px;
	text-align: center;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.product_image img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	transition: transform 0.3s ease;
}

.product_image:hover img {
	transform: scale(1.05);
}

.product_info {
	text-align: center;
}

.product_title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
	line-height: 1.3;
}

.product_title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.product_title a:hover {
	color: #007cba;
}

.product_price {
	margin-bottom: 15px;
	font-weight: bold;
	color: #007cba;
	font-size: 18px;
}

.product_price del {
	color: #999;
	font-size: 14px;
	margin-right: 8px;
}

.product_price ins {
	text-decoration: none;
}

.product_actions {
	margin-top: 10px;
}

.add_to_cart_button {
	display: inline-block;
	background: #007cba;
	color: white;
	padding: 8px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 2px solid #007cba;
}

.add_to_cart_button:hover {
	background: #005a87;
	border-color: #005a87;
	color: white;
	transform: translateY(-1px);
}

.out_of_stock {
	color: #999;
	font-style: italic;
	font-size: 14px;
}

.no_products_message {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
	.related_products_grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 15px;
	}
	
	.related_product_item {
		padding: 10px;
	}
	
	.related_products_title h3 {
		font-size: 20px;
	}
	
	.product_title {
		font-size: 14px;
	}
	
	.product_price {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.related_products_grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.related_products_section {
		margin: 20px 0;
		padding: 10px 0;
	}
}

/* Loading State */
.related_products_section.loading {
	opacity: 0.6;
	pointer-events: none;
}

.related_products_section.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #007cba;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
} 