/* JR Tuning - Modern Styling */
/* This stylesheet contains the modern card-based styling for product pages */
/* Brand orange color: #E8341F */
/* Economy green color: #2ea64a */

/* Modern Header */
.page-header-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #E8341F;
}

.page-header-section h1 {
	font-size: 1.5rem;
	font-weight: 500;
	color: #212529;
	margin: 0;
	flex: 1;
	line-height: 1.4;
}

.brand-logo-container {
	margin-left: 20px;
	flex-shrink: 0;
}

.brand-logo-container img {
	max-width: 80px;
	max-height: 80px;
}

/* Manufacturer Cards */
.manufacturer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.manufacturer-card {
	background-color: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.manufacturer-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	border-color: #E8341F;
	text-decoration: none;
}

.manufacturer-card-header {
	background-color: #f8f9fa;
	padding: 10px;
	text-align: center;
	font-weight: 500;
	font-size: 0.9rem;
	color: #212529;
	border-bottom: 2px solid #E8341F;
}

.manufacturer-card-body {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}

.manufacturer-card-body img {
	max-width: 100%;
	max-height: 90px;
	width: auto;
	height: auto;
}

/* Modern Card-Style Buttons with Fuel Type Colors */
.model-card {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	transition: all 0.3s ease;
	color: #212529;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	margin: 0;
	width: calc(33.333% - 10px);
	min-height: 50px;
	text-align: center;
	font-weight: 500;
	font-size: 14px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.08);
	cursor: pointer;
}

.model-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	text-decoration: none;
}

/* Petrol - Green */
.petrol-card {
	border-left: 4px solid #2ea64a;
}

.petrol-card:hover {
	background-color: #2ea64a;
	color: #ffffff !important;
	border-color: #2ea64a;
}

/* Diesel - Black */
.diesel-card {
	border-left: 4px solid #212529;
}

.diesel-card:hover {
	background-color: #212529;
	color: #ffffff !important;
	border-color: #212529;
}

/* Hybrid - Blue */
.hybrid-card {
	border-left: 4px solid #0d6efd;
}

.hybrid-card:hover {
	background-color: #0d6efd;
	color: #ffffff !important;
	border-color: #0d6efd;
}

/* Fuel Section Styling */
.fuel-section {
	margin-top: 30px;
	margin-bottom: 30px;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
	overflow: hidden;
}

.fuel-section-header {
	padding: 8px 20px;
	color: #ffffff !important;
	font-weight: 500;
	font-size: 0.95rem;
	margin: 0;
}

.fuel-section-header.petrol {
	background-color: #237a37;
}

.fuel-section-header.diesel {
	background-color: #212529;
}

.fuel-section-header.hybrid {
	background-color: #0a3d91;
}

.fuel-section-body {
	padding: 20px;
}

.model-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
}

/* Service Cards - For product information pages */
.service-card {
	background-color: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.service-card:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
	z-index: 2;
}

.service-card h3 {
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	color: #000000 !important;
	margin: 0 0 12px 0 !important;
	padding-bottom: 8px !important;
	border-bottom: 2px solid #E8341F;
	display: block;
}

.service-card-icon {
	width: 60px;
	height: 60px;
	background-color: #E8341F;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
	margin-bottom: 15px;
	float: left;
	margin-right: 15px;
}

/* Feature Grid */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.feature-item {
	background-color: #f8f9fa;
	border-left: 4px solid #E8341F;
	padding: 15px 20px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.feature-item:hover {
	background-color: #ffffff;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
	transform: translateX(5px);
}

.feature-item strong {
	color: #E8341F;
	display: block;
	margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
	.model-card {
		width: calc(50% - 10px);
	}
}

@media (max-width: 768px) {
	.manufacturer-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 15px;
	}

	.manufacturer-card-body {
		padding: 15px;
		min-height: 100px;
	}

	.manufacturer-card-body img {
		max-height: 70px;
	}

	.page-header-section {
		flex-direction: column;
		align-items: flex-start;
	}

	.brand-logo-container {
		display: none;
	}

	.page-header-section h1 {
		font-size: 1.5rem;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 576px) {
	.model-card {
		width: 100%;
	}
}

/* Green Theme for Economy Pages */
body.economy-theme .page-header-section {
	border-bottom: 2px solid #2ea64a;
}

body.economy-theme .manufacturer-card:hover {
	border-color: #2ea64a;
}

body.economy-theme .manufacturer-card-header {
	border-bottom: 2px solid #2ea64a;
}

body.economy-theme .service-card h3 {
	border-bottom: 2px solid #2ea64a;
}

body.economy-theme .service-card-icon {
	background-color: #2ea64a;
}

body.economy-theme .feature-item {
	border-left: 4px solid #2ea64a;
}

body.economy-theme .feature-item strong {
	color: #2ea64a;
}
