/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
	--primary-color: #2c3e50;
	--secondary-color: #3498db;
	--light-bg: #f8f9fa;
	--card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	--danger-color: #e74c3c;
	--warning-color: #f39c12;
	--success-color: #27ae60;
	--text-muted: #6c757d;
	--border-color: #ddd;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
	font-family: system-ui, -apple-system, sans-serif;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.section {
	padding: 3rem 0;
}

.section--light {
	background: var(--light-bg);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.lead {
	font-size: 1.125rem;
	color: var(--text-muted);
	margin-top: 0.5rem;
}

.text-danger {
	color: var(--danger-color);
}

.text-muted {
	color: var(--text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	font-weight: 500;
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
	background: var(--secondary-color);
	color: white;
}

.btn:hover {
	opacity: 0.9;
}

.btn--primary {
	background: var(--secondary-color);
	color: white;
}

.btn--secondary {
	background: white;
	border: 1px solid var(--border-color);
	color: #333;
}

.btn--warning {
	background: var(--warning-color);
	color: white;
}

.btn--success {
	background: var(--success-color);
	color: white;
}

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

/* ============================================
   BADGES
   ============================================ */
.badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	background: var(--danger-color);
	color: white;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
	padding: 1rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.alert--danger {
	background: #fee;
	color: #c33;
	border: 1px solid #fcc;
}

/* ============================================
   CARDS
   ============================================ */
.filter-card,
.form-card,
.review-preview {
	background: white;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: var(--card-shadow);
}

.form-card {
	padding: 2rem;
}

.form-card h2,
.review-preview h2 {
	margin-bottom: 1.5rem;
}

.review-preview h2 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.review-preview {
	margin-bottom: 1.5rem;
}

.review-preview p {
	color: #555;
	line-height: 1.6;
}

/* ============================================
   FORMS
   ============================================ */
.form-layout {
	max-width: 800px;
	margin: 0 auto;
}

.form-group,
.form-field {
	margin-bottom: 1.5rem;
}

.form-label,
.form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.form-select,
.form-field input,
.form-field textarea,
.form-field select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 1rem;
}

.form-select {
	padding: 0.5rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
	outline: none;
	border-color: var(--secondary-color);
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-check {
	margin-bottom: 0.75rem;
}

.form-check input {
	margin-right: 0.5rem;
}

.field-error {
	display: block;
	color: var(--danger-color);
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.announcement-bar {
	background: var(--light-bg);
	border-bottom: 1px solid #dee2e6;
	padding: 0.5rem 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.top-nav {
	padding: 1rem 0;
	border-bottom: 1px solid #dee2e6;
}

.top-nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.brand {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--primary-color);
	white-space: nowrap;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex: 1;
	justify-content: flex-end;
}

.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form input {
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	min-width: 250px;
}

.user-links {
	display: flex;
	gap: 1rem;
}

.nav-link {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	white-space: nowrap;
	display: flex;
	align-items: center;
}

.language-form{
	display: flex;
	gap: 10px;
}



.nav-link:hover {
	color: var(--secondary-color);
}

.category-nav {
	background: white;
	padding: 1rem 0;
}

.category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.category-list a {
	text-decoration: none;
	color: #333;
	font-weight: 600;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
}

.category-list a:hover {
	color: var(--secondary-color);
	border-bottom-color: var(--secondary-color);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
	background: var(--primary-color);
	color: #ecf0f1;
	padding: 2rem 0;
	margin-top: 4rem;
}

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

.footer-copyright {
	margin: 0;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
}

.footer-links a {
	color: #ecf0f1;
	text-decoration: none;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--secondary-color);
}

/* ============================================
   INDEX & CATEGORY - LAYOUT
   ============================================ */
.product-layout {
	display: flex;
	gap: 2rem;
}

.sidebar {
	flex: 0 0 250px;
}

.main-content {
	flex: 1;
}

/* ============================================
   INDEX - CATEGORY GRID
   ============================================ */
.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
}

.category-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1;
	text-decoration: none;
}

.category-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.category-card__overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
	padding: 1rem;
	color: white;
}

.category-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
}

/* ============================================
   INDEX & CATEGORY - PRODUCT GRID
   ============================================ */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
}

.product-card {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	transition: transform 0.2s;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card__img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.product-card__body {
	padding: 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.product-card__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
}

.price {
	font-weight: 700;
	margin-top: auto;
}

.price--old {
	text-decoration: line-through;
	color: #999;
	font-weight: 400;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.product-detail__image img {
	width: 100%;
	border-radius: 8px;
}

.product-detail__info h2 {
	margin: 0 0 1rem 0;
}

.product-detail__price {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 1.5rem 0;
}

.rating {
	color: var(--warning-color);
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

/* Related Products */
.related-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.related-product {
	background: white;
	padding: 1rem;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--card-shadow);
	transition: transform 0.2s;
}

.related-product:hover {
	transform: translateY(-2px);
}

.related-product__name {
	margin-bottom: 0.5rem;
}

.related-product__price {
	font-weight: 700;
}

/* Review Cards */
.review-card {
	background: white;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: var(--card-shadow);
	margin-bottom: 1.5rem;
}

.review-card__header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.review-card__author {
	font-weight: 600;
}

.review-card__date {
	color: #999;
	font-size: 0.875rem;
}

.review-card__actions {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1rem;
}

.review-card__message {
	font-size: 1.125rem;
	margin: 1rem 0;
}

.review-card__rating {
	color: var(--warning-color);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 1rem 0;
}

.review-card__helpful {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin: 1rem 0;
}

/* Comments */
.comments {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eee;
}

.comment {
	background: var(--light-bg);
	padding: 1rem;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}

.comment__header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.comment__author {
	font-weight: 600;
	font-size: 0.875rem;
}

.comment__date {
	color: #999;
	font-size: 0.75rem;
}

.comment__message {
	margin: 0;
	font-size: 0.9375rem;
}

/* ============================================
   RESULTS PAGE
   ============================================ */
.search-query {
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.search-query strong {
	color: #333;
}

.empty-state {
	text-align: center;
	padding: 3rem 1rem;
}

.empty-state p:first-child {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
	/* Navigation */
	.top-nav .container {
		flex-wrap: wrap;
	}

	.brand {
		flex: 1 0 100%;
		margin-bottom: 1rem;
		text-align: center;
	}

	.nav-actions {
		flex-direction: column;
		width: 100%;
		gap: 1rem;
	}

	.search-form {
		width: 100%;
	}

	.search-form input {
		flex: 1;
		min-width: 0;
	}

	.user-links {
		justify-content: center;
		width: 100%;
	}

	.category-list {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
	}

	/* Layouts */
	.product-layout {
		flex-direction: column;
	}

	.sidebar {
		flex: 1;
	}

	.product-detail {
		grid-template-columns: 1fr;
	}

	.category-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	/* Footer */
	.footer-content {
		flex-direction: column;
		text-align: center;
	}

	.footer-links {
		flex-direction: column;
		gap: 0.75rem;
	}
}
