/* Shared Inventory Card Component */

.inventory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
	position: relative;
	z-index: 1;
	margin-bottom: 3rem;
}

.inventory-card {
	background: var(--white);
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid var(--gray-200);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.inventory-card:hover {
	transform: translateY(-6px);
	border-color: rgba(139, 92, 246, 0.3);
	box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
}

.inventory-image {
	height: 280px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #f8f9fa;
	position: relative;
	overflow: hidden;
}

.inventory-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.inventory-card:hover .inventory-overlay {
	opacity: 1;
}

.quick-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.75rem 1.5rem;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: none;
	border-radius: 50px;
	color: var(--black);
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: var(--font-sans);
}

.quick-view-btn:hover {
	background: var(--white);
	transform: scale(1.05);
}

.inventory-date {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.4rem 0.875rem;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	color: var(--white);
	font-size: 0.75rem;
	font-weight: 600;
}

.inventory-date.reserved {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	border-color: rgba(245, 158, 11, 0.5);
}

.inventory-date.new {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-color: rgba(16, 185, 129, 0.5);
}

.inventory-details {
	padding: 1.25rem;
}

.inventory-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.875rem;
}

.year {
	padding: 0.3rem 0.75rem;
	background: rgba(139, 92, 246, 0.1);
	border: 1px solid rgba(139, 92, 246, 0.25);
	border-radius: 50px;
	color: var(--primary);
	font-weight: 700;
	font-size: 0.75rem;
	font-family: var(--font-serif);
}

.location {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--gray-600);
	font-size: 0.75rem;
	font-weight: 500;
}

.location svg {
	color: #8b5cf6;
}

.inventory-details h3 {
	font-size: 1.25rem;
	color: var(--black);
	margin-bottom: 0.625rem;
	line-height: 1.3;
}

.inventory-desc {
	color: var(--gray-600);
	font-size: 0.875rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.inventory-specs {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--gray-200);
	color: var(--gray-600);
	font-size: 0.75rem;
	font-weight: 500;
}

.inventory-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.inventory-price {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.price-label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gray-500);
	font-weight: 600;
}

.price-value {
	font-size: 1.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-family: var(--font-serif);
}

.inventory-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.75rem 1.25rem;
	background: rgba(139, 92, 246, 0.08);
	border: 1px solid rgba(139, 92, 246, 0.25);
	border-radius: 50px;
	color: var(--primary);
	font-weight: 600;
	font-size: 0.8125rem;
	text-decoration: none;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.inventory-btn:hover {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	border-color: rgba(139, 92, 246, 0.5);
	color: var(--white);
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.inventory-btn svg {
	transition: transform 0.3s ease;
}

.inventory-btn:hover svg {
	transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
	.inventory-grid { 
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
	
	.inventory-image {
		height: 220px;
	}
	
	.inventory-details h3 {
		font-size: 1.125rem;
	}
	
	.inventory-desc {
		font-size: 0.8125rem;
	}
	
	.inventory-specs {
		font-size: 0.6875rem;
		gap: 0.375rem;
	}
	
	.price-value {
		font-size: 1.375rem;
	}
	
	.inventory-btn {
		font-size: 0.75rem;
		padding: 0.625rem 1rem;
	}
}

@media (max-width: 480px) {
	.inventory-card {
		border-radius: 0.75rem;
	}
	
	.inventory-details {
		padding: 1rem;
	}
	
	.inventory-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	
	.inventory-btn {
		width: 100%;
		justify-content: center;
	}
}
