:root {
	--primary: #667eea;
	--primary-dark: #5568d3;
	--secondary: #764ba2;
	--accent: #f093fb;
	--success: #4ade80;
	--danger: #ef4444;
	--warning: #fbbf24;
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-600: #4b5563;
	--gray-800: #1f2937;
	--gray-900: #111827;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--radius: 0.75rem;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
	--bs-body-bg: #0f172a;
	--bs-body-color: #e2e8f0;
	--gray-50: #1e293b;
	--gray-100: #334155;
	--gray-200: #475569;
	--gray-300: #64748b;
	--gray-600: #cbd5e1;
	--gray-800: #f1f5f9;
	--gray-900: #f8fafc;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: var(--gray-900);
	background: var(--bs-body-bg);
	transition: var(--transition);
	overflow-x: hidden;
}

[data-bs-theme="dark"] body {
	color: var(--gray-900);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

/* Navbar Enhanced */
.navbar {
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.95) !important;
	box-shadow: var(--shadow);
	transition: var(--transition);
	padding: 1rem 0;
}

[data-bs-theme="dark"] .navbar {
	background: rgba(15, 23, 42, 0.95) !important;
}

.navbar-brand {
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--primary) !important;
	transition: var(--transition);
}

.navbar-brand:hover {
	transform: scale(1.05);
}

.logo-img {
	object-fit: contain;
	border-radius: 8px;
	transition: var(--transition);
	filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.15));
	background: transparent;
}

[data-bs-theme="dark"] .logo-img {
	filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
	opacity: 0.95;
}

.navbar-brand:hover .logo-img {
	filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
	transform: rotate(-5deg);
}

.nav-link {
	font-weight: 500;
	color: var(--gray-600) !important;
	transition: var(--transition);
	position: relative;
	padding: 0.5rem 1rem !important;
}

.nav-link:hover {
	color: var(--primary) !important;
	transform: translateY(-2px);
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 80%;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	transition: transform 0.3s ease;
}

.nav-link:hover::after {
	transform: translateX(-50%) scaleX(1);
}

/* Theme Toggle */
#theme-toggle {
	border: none;
	background: var(--gray-100);
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 50%;
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

#theme-toggle:hover {
	background: var(--gray-200);
	transform: rotate(20deg) scale(1.1);
}

[data-bs-theme="dark"] #theme-toggle {
	background: var(--gray-100);
}

/* Hero Section - Premium */
.hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 6rem 0;
	position: relative;
	overflow: hidden;
	color: white;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-opacity="0.05" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
	opacity: 0.15;
	animation: gridMove 20s linear infinite;
}

.hero::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	border-radius: 50%;
	animation: float 6s ease-in-out infinite;
}

@keyframes gridMove {
	0% { transform: translateY(0); }
	100% { transform: translateY(100px); }
}

.hero .container {
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 3.5rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	animation: fadeInUp 0.8s ease;
}

.hero .lead {
	font-size: 1.25rem;
	opacity: 0.95;
	margin-bottom: 2rem;
	animation: fadeInUp 0.8s ease 0.2s both;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero .btn {
	padding: 1rem 2.5rem;
	font-weight: 600;
	border-radius: var(--radius);
	transition: var(--transition);
	animation: fadeInUp 0.8s ease 0.4s both;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	font-size: 1.1rem;
}

.hero .btn-primary {
	background: white;
	color: var(--primary);
	border: none;
	position: relative;
	overflow: hidden;
}

.hero .btn-primary::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: var(--primary);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width 0.5s, height 0.5s;
}

.hero .btn-primary:hover::before {
	width: 300px;
	height: 300px;
}

.hero .btn-primary:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
	color: white;
}

.hero .btn-primary span,
.hero .btn-primary svg {
	position: relative;
	z-index: 1;
}

.hero .btn-outline-light {
	border: 2px solid white;
	color: white;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
}

.hero .btn-outline-light:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
	background: white;
	color: var(--primary);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Product Cards - Premium Design */
.product-card {
	background: white;
	border-radius: var(--radius);
	overflow: hidden;
	transition: var(--transition);
	border: 2px solid var(--gray-200);
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
}

.product-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

[data-bs-theme="dark"] .product-card {
	background: var(--gray-50);
	border-color: var(--gray-200);
}

.product-card:hover {
	transform: translateY(-12px);
	box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
	border-color: var(--primary);
}

.product-card:hover::before {
	transform: scaleX(1);
}

.product-card .ratio {
	background: var(--gray-100);
	overflow: hidden;
	position: relative;
}

.product-card .ratio::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(102, 126, 234, 0.2), transparent);
	opacity: 0;
	transition: var(--transition);
}

.product-card:hover .ratio::after {
	opacity: 1;
}

.product-card img {
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
	transform: scale(1.15);
}

.card-body {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.card-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--gray-900);
}

[data-bs-theme="dark"] .card-title {
	color: var(--gray-900);
}

.card-text {
	font-size: 0.875rem;
	color: var(--gray-600);
	margin-bottom: 1rem;
	flex-grow: 1;
}

.badge {
	font-weight: 500;
	padding: 0.375rem 0.75rem;
	border-radius: 2rem;
	font-size: 0.75rem;
}

/* Rating Stars */
.text-warning {
	color: #fbbf24 !important;
	font-size: 1rem;
	letter-spacing: 1px;
}

/* Card Footer */
.card-footer {
	background: var(--gray-50);
	border-top: 1px solid var(--gray-200);
	padding: 1.25rem 1.5rem;
}

[data-bs-theme="dark"] .card-footer {
	background: var(--gray-100);
	border-color: var(--gray-200);
}

.card-footer strong {
	font-size: 1.25rem;
	color: var(--primary);
	font-weight: 700;
}

/* Buttons */
.btn {
	font-weight: 600;
	padding: 0.625rem 1.25rem;
	border-radius: var(--radius);
	transition: var(--transition);
	border: none;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: white;
	box-shadow: var(--shadow);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	opacity: 0.95;
}

.btn-outline-primary {
	border: 2px solid var(--primary);
	color: var(--primary);
	background: transparent;
}

.btn-outline-primary:hover {
	background: var(--primary);
	color: white;
	transform: translateY(-2px);
}

.btn-sm {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

/* Search Form */
.search-form {
	background: white;
	border-radius: var(--radius);
	padding: 0.75rem;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	display: flex;
	gap: 0.5rem;
	border: 2px solid var(--gray-200);
	transition: var(--transition);
}

.search-form:focus-within {
	border-color: var(--primary);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
	transform: translateY(-2px);
}

[data-bs-theme="dark"] .search-form {
	background: var(--gray-50);
	border-color: var(--gray-200);
}

.search-form .form-control {
	border: none;
	background: transparent;
	color: var(--gray-900);
	font-size: 1rem;
	padding: 0.5rem 1rem;
}

.search-form .form-control::placeholder {
	color: var(--gray-600);
	opacity: 0.7;
}

[data-bs-theme="dark"] .search-form .form-control {
	color: var(--gray-900);
}

.search-form .form-control:focus {
	box-shadow: none;
	outline: none;
}

.search-form .btn {
	border-radius: 0.5rem;
	padding: 0.5rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.search-form .btn svg {
	transition: var(--transition);
}

.search-form .btn:hover svg {
	transform: scale(1.2);
}

/* Pagination */
.pagination {
	gap: 0.5rem;
}

.page-item .page-link {
	border: none;
	border-radius: var(--radius);
	color: var(--gray-600);
	font-weight: 500;
	transition: var(--transition);
}

.page-item.active .page-link {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: white;
}

.page-item .page-link:hover {
	background: var(--gray-100);
	color: var(--primary);
	transform: translateY(-2px);
}

/* Lazy image */
.lazy-img {
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.6s ease, transform 0.6s ease;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lazy-img.visible {
	opacity: 1;
	transform: scale(1);
}

/* Toast Notification */
.toast-notification {
	position: fixed;
	top: 80px;
	right: 20px;
	background: white;
	color: var(--gray-900);
	padding: 1rem 1.5rem;
	border-radius: var(--radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	font-weight: 600;
	font-size: 0.95rem;
	z-index: 9999;
	transform: translateX(400px);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-left: 4px solid var(--success);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 250px;
}

.toast-notification.show {
	transform: translateX(0);
}

.toast-notification.toast-success {
	border-left-color: var(--success);
	background: linear-gradient(135deg, #d1fae5 0%, #ffffff 100%);
}

.toast-notification.toast-error {
	border-left-color: var(--danger);
	background: linear-gradient(135deg, #fee2e2 0%, #ffffff 100%);
}

[data-bs-theme="dark"] .toast-notification {
	background: var(--gray-50);
	color: var(--gray-900);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .toast-notification.toast-success {
	background: linear-gradient(135deg, #065f46 0%, var(--gray-50) 100%);
}

[data-bs-theme="dark"] .toast-notification.toast-error {
	background: linear-gradient(135deg, #991b1b 0%, var(--gray-50) 100%);
}

/* Footer */
footer {
	background: var(--gray-900);
	color: var(--gray-300);
	padding: 3rem 0 1.5rem;
	margin-top: 4rem;
}

[data-bs-theme="dark"] footer {
	background: var(--gray-100);
}

footer h5 {
	color: white;
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

[data-bs-theme="dark"] footer h5 {
	color: var(--gray-900);
}

footer a {
	color: var(--gray-300);
	text-decoration: none;
	transition: var(--transition);
}

footer a:hover {
	color: white;
	padding-left: 0.5rem;
}

[data-bs-theme="dark"] footer a {
	color: var(--gray-600);
}

[data-bs-theme="dark"] footer a:hover {
	color: var(--gray-900);
}

footer .text-muted {
	color: var(--gray-300) !important;
}

[data-bs-theme="dark"] footer .text-muted {
	color: var(--gray-600) !important;
}

/* Features Section */
.bg-light {
	background-color: var(--gray-50) !important;
}

[data-bs-theme="dark"] .bg-light {
	background-color: var(--gray-100) !important;
}

.feature-card {
	transition: var(--transition);
	border: 2px solid transparent;
}

.feature-card:hover {
	transform: translateY(-10px);
	border-color: var(--primary);
	box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15) !important;
}

.feature-icon {
	transition: var(--transition);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-bg-icon {
	position: absolute;
	bottom: -20px;
	right: -20px;
	font-size: 120px;
	opacity: 0.05;
	pointer-events: none;
	transform: rotate(-15deg);
}

.feature-icon-wrapper {
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* Category Pills */
.category-filter-wrapper {
	padding: 1rem;
	background: white;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

[data-bs-theme="dark"] .category-filter-wrapper {
	background: var(--gray-50);
}

.category-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: white;
	border: 2px solid var(--gray-200);
	border-radius: 50px;
	color: var(--gray-600);
	text-decoration: none;
	font-weight: 600;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}

[data-bs-theme="dark"] .category-pill {
	background: var(--gray-100);
	border-color: var(--gray-200);
	color: var(--gray-600);
}

.category-pill:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary);
	color: var(--primary);
}

.category-pill.active {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: white;
	border-color: transparent;
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.category-pill.active:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.category-icon {
	font-size: 1.25rem;
	display: inline-block;
	transition: var(--transition);
}

.category-pill:hover .category-icon {
	transform: scale(1.2) rotate(10deg);
}

.category-pill.active .category-icon {
	animation: bounce 0.6s ease;
}

@keyframes bounce {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.3); }
}

/* Responsive */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2rem;
	}
	
	.hero .lead {
		font-size: 1rem;
	}
	
	.btn-group {
		flex-wrap: wrap;
	}
}
