/**
 * eStore - Complete Styles
 * RTL Arabic E-commerce Platform
 */

/* ==================== Imports ==================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* ==================== CSS Variables ==================== */
:root {
	--primary-color: #3b82f6;
	--secondary-color: #1e40af;
	--text-color: #1f2937;
	--text-light: #6b7280;
	--background: #ffffff;
	--background-secondary: #f3f4f6;
	--border-color: #e5e7eb;
	--success: #10b981;
	--error: #ef4444;
	--warning: #f59e0b;
	--whatsapp: #34A777;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--radius-sm: 0.375rem;
	--radius: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--transition: all 0.2s ease;
}

/* ==================== Reset & Base ==================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Cairo', sans-serif;
	background-color: var(--background);
	color: var(--text-color);
	line-height: 1.6;
	min-height: 100vh;
	direction: rtl;
}

body.cart-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
}

ul,
ol {
	list-style: none;
}

/* ==================== Typography ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.3;
}

h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.5rem;
}
h4 {
	font-size: 1.25rem;
}
h5 {
	font-size: 1rem;
}

/* ==================== Utilities ==================== */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.section {
	padding: 4rem 0;
}

.text-center {
	text-align: center;
}

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

.hidden {
	display: none !important;
}

/* ==================== Buttons ==================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	font-size: 1rem;
	border-radius: var(--radius);
	transition: var(--transition);
	min-height: 44px;
	min-width: 44px;
}

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

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

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

.btn-secondary:hover {
	background-color: var(--border-color);
}

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

.btn-success:hover {
	background-color: #059669;
}

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

.btn-danger:hover {
	background-color: #dc2626;
}

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

.btn-whatsapp:hover {
	background-color: #1da851;
}

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

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

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

.btn-lg {
	padding: 1rem 2rem;
	font-size: 1.125rem;
}

.btn-block {
	width: 100%;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ==================== Forms ==================== */
.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-color);
}

.form-input,
.form-textarea,
.form-select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	background-color: var(--background);
	color: var(--text-color);
	transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
	min-height: 120px;
	resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
	color: var(--text-light);
}

.form-error {
	color: var(--error);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-row .form-group {
	margin-bottom: 0.5rem;
}

.form-hint {
	font-size: 0.8125rem;
	color: var(--success);
	margin-top: -0.25rem;
	margin-bottom: 1rem;
}

/* Discount Section */
.discount-section {
	background-color: var(--background-secondary);
	border-radius: var(--radius);
	padding: 1rem;
	margin-bottom: 1.5rem;
	border: 1px solid var(--border-color);
}

.discount-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.discount-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--text-color);
}

.discount-title svg {
	color: var(--primary-color);
}

.discount-fields {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
}

.discount-note {
	font-size: 0.8125rem;
	color: var(--text-light);
	margin-bottom: 1rem;
	padding: 0.5rem 0.75rem;
	background-color: rgba(59, 130, 246, 0.08);
	border-radius: var(--radius-sm);
	border-right: 3px solid var(--primary-color);
}

.discount-fields .form-group {
	margin-bottom: 1rem;
}

/* Duration Presets */
.duration-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.duration-preset {
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	background-color: var(--background);
	color: var(--text-color);
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.duration-preset:hover {
	border-color: var(--primary-color);
	background-color: rgba(59, 130, 246, 0.05);
}

.duration-preset.active {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
}

/* Custom DateTime Picker */
.custom-datetime {
	background-color: var(--background);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: 1rem;
	margin-bottom: 0.75rem;
}

.datetime-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.datetime-field label {
	display: block;
	font-size: 0.8125rem;
	color: var(--text-light);
	margin-bottom: 0.375rem;
}

.datetime-field .form-input {
	font-size: 0.9375rem;
}

/* Discount End Display */
.discount-ends-display {
	font-size: 0.875rem;
	color: var(--success);
	padding: 0.625rem 0.875rem;
	background-color: rgba(34, 197, 94, 0.08);
	border-radius: var(--radius-sm);
	display: none;
}

.discount-ends-display.visible {
	display: block;
}

.discount-ends-display .ends-label {
	color: var(--text-light);
	margin-left: 0.25rem;
}

.discount-ends-display .ends-date {
	font-weight: 600;
}

/* Color picker */
.color-input-wrapper {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.color-input {
	width: 50px;
	height: 44px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	cursor: pointer;
	padding: 2px;
}

/* Toggle switch */
.toggle-wrapper {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.toggle {
	position: relative;
	width: 50px;
	height: 26px;
	background-color: var(--border-color);
	border-radius: 13px;
	cursor: pointer;
	transition: var(--transition);
}

.toggle.active {
	background-color: var(--success);
}

.toggle::after {
	content: '';
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	background-color: white;
	border-radius: 50%;
	transition: var(--transition);
}

.toggle.active::after {
	right: auto;
	left: 3px;
}

/* ==================== Header ==================== */
.header {
	background-color: var(--background);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.logo-img {
	height: 45px;
	width: auto;
}

.logo-text {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

.nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav-link {
	font-weight: 500;
	color: var(--text-color);
	transition: var(--transition);
	padding: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
	color: var(--primary-color);
}

.mobile-menu-btn {
	display: none;
	padding: 0.5rem;
}

@media (max-width: 768px) {
	.mobile-menu-btn {
		display: block;
	}

	.nav {
		display: none;
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		background-color: var(--background);
		border-bottom: 1px solid var(--border-color);
		flex-direction: column;
		padding: 1rem;
		gap: 0;
	}

	.nav.open {
		display: flex;
	}

	.nav-link {
		display: block;
		padding: 1rem;
		border-bottom: 1px solid var(--border-color);
		width: 100%;
	}

	.nav-link:last-child {
		border-bottom: none;
	}
}

/* ==================== Hero Section ==================== */
.hero {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	overflow: hidden;
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
	z-index: 2;
}

.hero .container {
	position: relative;
	z-index: 3;
	padding: 4rem 1rem;
}

.hero h1 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
	font-size: 1.375rem;
	opacity: 0.95;
	max-width: 600px;
	margin: 0 auto 2rem;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero .btn {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
	.hero {
		min-height: 400px;
	}

	.hero .container {
		padding: 3rem 1rem;
	}

	.hero h1 {
		font-size: 2.25rem;
	}

	.hero p {
		font-size: 1.125rem;
	}
}

/* ==================== Product Grid ==================== */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

@media (max-width: 640px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

/* ==================== Product Card ==================== */
.product-card {
	position: relative;
	background-color: var(--background);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: var(--transition);
	cursor: pointer;
}

.product-card:hover {
	transform: translateY(-4px);
}

.product-card-image {
	display: block;
	position: relative;
	overflow: hidden;
	background-color: var(--background-secondary);
	border-radius: var(--radius-lg);
	aspect-ratio: 3 / 4;
}

.product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: var(--transition);
	border-radius: var(--radius-lg);
}

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

.product-card-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background-color: var(--error);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 600;
}

.product-card-body {
	padding: 1rem;
	display: none;
}

@media (max-width: 768px) {
	.product-card-body {
		display: block;
	}
}

.product-card-name {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-card-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background-color: var(--error);
	color: white;
	padding: 0.25rem 0.625rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 600;
	z-index: 1;
}

.product-card-price {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.product-card-price-original {
	font-size: 0.9375rem;
	color: var(--text-light);
	text-decoration: line-through;
}

.product-card-price-current {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary-color);
}

.product-card-price-discount {
	color: var(--error);
}

.product-card-badge-timer {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.product-card-timer {
	font-size: 0.75rem;
	color: var(--error);
	background-color: rgba(239, 68, 68, 0.08);
	padding: 0.375rem 0.625rem;
	border-radius: var(--radius-sm);
	margin-bottom: 0.75rem;
	text-align: center;
	font-weight: 500;
}

.product-card-timer .timer-icon {
	margin-left: 0.25rem;
}

.product-card-timer .timer-expired {
	color: var(--text-light);
}

.product-card-actions {
	display: flex;
	gap: 0.5rem;
}

.product-card-actions .btn {
	flex: 1;
}

@media (max-width: 640px) {
	.product-card-body {
		padding: 0.75rem;
	}

	.product-card-name {
		font-size: 0.875rem;
	}

	.product-card-price {
		font-size: 1rem;
	}

	.product-card-actions {
		flex-direction: column;
	}
}

/* ==================== Category Tabs ==================== */
.category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
}

.category-tab {
	padding: 0.5rem 1.25rem;
	background-color: var(--background-secondary);
	border-radius: var(--radius);
	font-weight: 500;
	white-space: nowrap;
	transition: var(--transition);
}

.category-tab:hover {
	background-color: var(--border-color);
}

.category-tab.active {
	background-color: var(--primary-color);
	color: white;
}

/* ==================== Single Product Page ==================== */
.product-page {
	padding: 2rem 0;
}

.product-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

@media (max-width: 768px) {
	.product-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

.product-gallery {
	position: relative;
}

.product-main-image {
	aspect-ratio: 1;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--background-secondary);
}

.product-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-info h1 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.product-brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--background-secondary);
	padding: 0.5rem 1rem;
	border-radius: var(--radius);
	margin-bottom: 1rem;
	border: 1px solid var(--border-color);
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
}

.product-brand-badge:hover {
	border-color: var(--primary-color);
	background-color: rgba(59, 130, 246, 0.05);
}

.product-brand-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 4px;
}

.product-brand-badge span {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-color);
}

/* ==================== Brands Marquee ==================== */
.brands-marquee-section {
	padding: 2.5rem 0;
	background-color: white;
	overflow: hidden;
}

.brands-marquee-title {
	text-align: center;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1.5rem;
	color: var(--text-light);
}

.brands-marquee-wrapper {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.brands-marquee {
	display: flex;
	gap: 3rem;
	width: max-content;
	padding-top: 2.5rem;
	animation: marquee 60s linear infinite;
}

.brands-marquee-wrapper:hover .brands-marquee {
	animation-play-state: paused;
}

.brands-marquee-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	flex-shrink: 0;
	cursor: pointer;
}

.brands-marquee-item::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.5rem 0.75rem;
	margin-bottom: 0.25rem;
	background-color: var(--text-color);
	color: white;
	font-size: 0.8125rem;
	font-weight: 500;
	border-radius: var(--radius);
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
	z-index: 10;
}

.brands-marquee-item:hover::after {
	opacity: 1;
	visibility: visible;
}

.brands-marquee-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.6;
	transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.brands-marquee-item:hover .brands-marquee-logo {
	filter: grayscale(0%);
	opacity: 1;
	transform: scale(1.1);
}

@keyframes marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* RTL support - reverse animation direction */
[dir="rtl"] .brands-marquee {
	animation: marquee-rtl 60s linear infinite;
}

@keyframes marquee-rtl {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(50%);
	}
}

@media (max-width: 768px) {
	.brands-marquee-section {
		padding: 2rem 0;
	}

	.brands-marquee {
		gap: 2rem;
		animation-duration: 40s;
	}

	[dir="rtl"] .brands-marquee {
		animation-duration: 40s;
	}

	.brands-marquee-logo {
		width: 36px;
		height: 36px;
	}

	.brands-marquee-item::after {
		display: none;
	}
}

.product-price {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.product-price-original {
	font-size: 1.5rem;
	color: var(--text-light);
	text-decoration: line-through;
	font-weight: 400;
}

.product-price-current {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
}

.product-price-badge {
	background-color: var(--error);
	color: white;
	padding: 0.375rem 0.875rem;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
}

.product-price-badge-timer {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	animation: pulse-badge 2s ease-in-out infinite;
}

.product-price-discount {
	color: var(--error);
}

.product-discount-timer {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1rem;
	color: var(--error);
	background-color: rgba(239, 68, 68, 0.08);
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius);
	margin-bottom: 1.5rem;
	font-weight: 600;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

.product-discount-timer .timer-icon {
	font-size: 1.25rem;
}

.product-discount-timer .timer-expired {
	color: var(--text-light);
}

.product-description {
	color: var(--text-light);
	margin-bottom: 2rem;
	line-height: 1.8;
}

.quantity-selector {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.quantity-selector label {
	font-weight: 600;
}

.quantity-controls {
	display: flex;
	align-items: center;
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	overflow: hidden;
}

.qty-btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	background-color: var(--background-secondary);
	transition: var(--transition);
}

.qty-btn:hover {
	background-color: var(--border-color);
}

.quantity-controls input {
	width: 60px;
	height: 44px;
	text-align: center;
	border: none;
	font-size: 1rem;
	font-weight: 600;
}

.product-actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* ==================== Payment Method Section ==================== */
.payment-method-section {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	background-color: var(--background-secondary);
	border-radius: var(--radius-lg);
	margin-top: 1.5rem;
	border: 1px solid var(--border-color);
}

.payment-method-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(34, 197, 94, 0.1);
	border-radius: var(--radius);
}

.payment-method-icon svg {
	width: 24px;
	height: 24px;
	color: var(--success);
}

.payment-method-content {
	flex: 1;
}

.payment-method-label {
	font-size: 0.75rem;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.payment-method-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-color);
	margin: 0 0 0.25rem;
}

.payment-method-desc {
	font-size: 0.875rem;
	color: var(--text-light);
	line-height: 1.5;
	margin: 0;
}

/* ==================== Brand Filter Header ==================== */
.brand-filter-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background-color: var(--background);
	border-radius: var(--radius);
	border: 1px solid var(--border-color);
}

.brand-filter-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.brand-filter-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: var(--radius-sm);
}

.brand-filter-info span {
	font-weight: 600;
	color: var(--text-color);
}

.brand-filter-clear {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	color: var(--text-light);
	background-color: var(--background-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	cursor: pointer;
	transition: var(--transition);
}

.brand-filter-clear:hover {
	color: var(--error);
	border-color: var(--error);
	background-color: rgba(239, 68, 68, 0.05);
}

.brand-filter-clear svg {
	flex-shrink: 0;
}

/* ==================== Related Products ==================== */
.related-products {
	margin-top: 4rem;
}

.related-products h2 {
	margin-bottom: 1.5rem;
}

/* ==================== Contact Page ==================== */
.contact-page {
	padding: 2rem 0;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

@media (max-width: 768px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

.contact-info {
	background-color: var(--background-secondary);
	padding: 2rem;
	border-radius: var(--radius-lg);
}

.contact-info h2 {
	margin-bottom: 1.5rem;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.contact-icon {
	width: 44px;
	height: 44px;
	background-color: var(--primary-color);
	color: white;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-text h4 {
	font-size: 1rem;
	margin-bottom: 0.25rem;
}

.contact-text p {
	color: var(--text-light);
}

.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.social-link {
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.social-link.whatsapp {
	background-color: var(--whatsapp);
	color: white;
}

.social-link.instagram {
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	color: white;
}

.social-link.facebook {
	background-color: #1877f2;
	color: white;
}

.social-link:hover {
	transform: scale(1.1);
}

.map-container {
	border-radius: var(--radius-lg);
	overflow: hidden;
	height: 400px;
	background-color: var(--background-secondary);
}

.map-container iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* ==================== Floating Buttons ==================== */
.floating-btns {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	z-index: 90;
}

.floating-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-lg);
	transition: var(--transition);
}

.floating-btn:hover {
	transform: scale(1.1);
}

.floating-btn svg {
	width: 28px;
	height: 28px;
}

.cart-btn {
	background-color: var(--primary-color);
	color: white;
	position: relative;
}

.cart-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	width: 22px;
	height: 22px;
	background-color: var(--error);
	color: white;
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

/* ==================== Cart Drawer ==================== */
.cart-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	z-index: 200;
}

.cart-overlay.open {
	opacity: 1;
	visibility: visible;
}

.cart-drawer {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	max-width: 400px;
	height: 100%;
	background-color: var(--background);
	box-shadow: var(--shadow-lg);
	transition: right 0.3s ease;
	z-index: 201;
	display: flex;
	flex-direction: column;
}

.cart-drawer.open {
	right: 0;
}

.cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
	font-size: 1.25rem;
}

.cart-close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
	transition: var(--transition);
}

.cart-close:hover {
	background-color: var(--background-secondary);
}

.cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.5rem;
}

.cart-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--text-light);
}

.cart-empty svg {
	width: 80px;
	height: 80px;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.cart-item {
	display: flex;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
	width: 70px;
	height: 70px;
	border-radius: var(--radius);
	object-fit: cover;
	background-color: var(--background-secondary);
}

.cart-item-details {
	flex: 1;
}

.cart-item-name {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.cart-item-price {
	color: var(--primary-color);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.cart-item-quantity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cart-item-quantity .qty-btn {
	width: 28px;
	height: 28px;
	font-size: 1rem;
	border-radius: var(--radius-sm);
}

.cart-item-remove {
	color: var(--text-light);
	transition: var(--transition);
}

.cart-item-remove:hover {
	color: var(--error);
}

.cart-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--border-color);
}

.cart-total-row {
	display: flex;
	justify-content: space-between;
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.cart-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* ==================== Loading & Skeleton ==================== */
.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--border-color);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.loading-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 300;
}

.skeleton {
	background: linear-gradient(90deg, var(--background-secondary) 25%, var(--border-color) 50%, var(--background-secondary) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
	border-radius: var(--radius);
}

@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

.skeleton-card {
	background-color: var(--background);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.skeleton-image {
	height: 200px;
}

.skeleton-text {
	height: 1rem;
	margin: 1rem;
}

.skeleton-price {
	height: 1.5rem;
	width: 60%;
	margin: 0 1rem 1rem;
}

/* ==================== Toast Notifications ==================== */
.toast-container {
	position: fixed;
	top: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1100;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.toast {
	background-color: var(--text-color);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	animation: slideIn 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

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

.toast.error {
	background-color: var(--error);
}

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

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==================== Modal ==================== */
.modal-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	z-index: 300;
	padding: 1rem;
}

.modal-overlay.open {
	opacity: 1;
	visibility: visible;
}

.modal {
	background-color: var(--background);
	border-radius: var(--radius-lg);
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.9);
	transition: var(--transition);
}

.modal-overlay.open .modal {
	transform: scale(1);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
	font-size: 1.25rem;
}

.modal-close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
	transition: var(--transition);
}

.modal-close:hover {
	background-color: var(--background-secondary);
}

.modal-body {
	padding: 1.5rem;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--border-color);
}

/* ==================== Features Section ==================== */
.features-section {
	padding: 3rem 0;
	border-top: 1px solid var(--border-color);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.feature-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
}

.feature-icon svg {
	width: 100%;
	height: 100%;
	stroke: var(--text-light);
}

.feature-content h4 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-color);
	margin-bottom: 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.feature-content p {
	font-size: 0.875rem;
	color: var(--text-light);
	line-height: 1.5;
}

@media (max-width: 768px) {
	.features-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.feature-item {
		justify-content: center;
		text-align: center;
		flex-direction: column;
		align-items: center;
	}
}

/* ==================== Footer ==================== */
.footer {
	background-color: var(--text-color);
	color: white;
	padding: 2rem 0;
	text-align: center;
}

.footer p {
	opacity: 0.7;
}

/* ==================== Admin Panel ==================== */

/* Admin Layout */
.admin-layout {
	display: flex;
	min-height: 100vh;
}

.admin-sidebar {
	width: 260px;
	background-color: var(--text-color);
	color: white;
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	overflow-y: auto;
	z-index: 100;
	transition: var(--transition);
}

.admin-sidebar-header {
	padding: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header h2 {
	font-size: 1.25rem;
}

.admin-nav {
	padding: 1rem 0;
}

.admin-nav-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1.5rem;
	color: rgba(255, 255, 255, 0.7);
	transition: var(--transition);
	width: 100%;
	text-align: right;
}

.admin-nav-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
}

.admin-nav-item.active {
	background-color: var(--primary-color);
	color: white;
}

.admin-nav-item svg {
	width: 20px;
	height: 20px;
}

.admin-content {
	flex: 1;
	margin-right: 260px;
	background-color: var(--background-secondary);
	min-height: 100vh;
}

.admin-header {
	background-color: var(--background);
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.admin-header h1 {
	font-size: 1.5rem;
	flex: 1;
}

.btn-view-store {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background-color: var(--background);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	color: var(--text-color);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	margin-left: 1rem;
}

.btn-view-store:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
}

.btn-view-store svg {
	flex-shrink: 0;
}

.admin-main {
	padding: 1.5rem;
}

@media (max-width: 1024px) {
	.admin-sidebar {
		width: 100%;
		right: -100%;
	}

	.admin-sidebar.open {
		right: 0;
	}

	.admin-content {
		margin-right: 0;
	}

	.admin-menu-toggle {
		display: block;
	}
}

/* Admin Stats */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.stat-card {
	background-color: var(--background);
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.stat-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.stat-card-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary-color);
	color: white;
}

.stat-card-value {
	font-size: 2rem;
	font-weight: 700;
}

.stat-card-label {
	color: var(--text-light);
	font-size: 0.875rem;
}

/* Admin Table */
.admin-card {
	background-color: var(--background);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.admin-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
	flex-wrap: wrap;
	gap: 1rem;
}

.admin-card-header h2 {
	font-size: 1.125rem;
}

.admin-card-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.search-input {
	display: flex;
	align-items: center;
	background-color: var(--background-secondary);
	border-radius: var(--radius);
	padding: 0 1rem;
}

.search-input input {
	border: none;
	background: none;
	padding: 0.5rem;
	width: 200px;
}

.search-input input:focus {
	outline: none;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
}

.data-table th,
.data-table td {
	padding: 1rem 1.5rem;
	text-align: right;
	border-bottom: 1px solid var(--border-color);
}

.data-table th {
	background-color: var(--background-secondary);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--text-light);
}

.data-table tbody tr:hover {
	background-color: var(--background-secondary);
}

.data-table-image {
	width: 50px;
	height: 50px;
	border-radius: var(--radius);
	object-fit: cover;
	background-color: var(--background-secondary);
}

.status-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 600;
}

.status-badge.active {
	background-color: rgba(16, 185, 129, 0.1);
	color: var(--success);
}

.status-badge.inactive {
	background-color: rgba(239, 68, 68, 0.1);
	color: var(--error);
}

.action-btns {
	display: flex;
	gap: 0.5rem;
}

.action-btn {
	width: 36px;
	height: 36px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.action-btn:hover {
	background-color: var(--background-secondary);
}

.action-btn.edit {
	color: var(--primary-color);
}

.action-btn.delete {
	color: var(--error);
}

/* Image Upload */
.image-upload {
	border: 2px dashed var(--border-color);
	border-radius: var(--radius-lg);
	padding: 2rem;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
}

.image-upload:hover {
	border-color: var(--primary-color);
	background-color: rgba(59, 130, 246, 0.05);
}

.image-upload.dragover {
	border-color: var(--primary-color);
	background-color: rgba(59, 130, 246, 0.1);
}

.image-upload svg {
	width: 48px;
	height: 48px;
	color: var(--text-light);
	margin-bottom: 1rem;
}

.image-upload p {
	color: var(--text-light);
	margin-bottom: 0.5rem;
}

.image-upload span {
	font-size: 0.875rem;
	color: var(--text-light);
	opacity: 0.7;
}

.image-preview {
	position: relative;
	display: inline-block;
	margin-top: 1rem;
}

.image-preview img {
	max-width: 200px;
	max-height: 200px;
	border-radius: var(--radius);
	object-fit: cover;
}

.image-preview-remove {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 28px;
	height: 28px;
	background-color: var(--error);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.upload-progress {
	margin-top: 1rem;
	height: 4px;
	background-color: var(--border-color);
	border-radius: 2px;
	overflow: hidden;
}

.upload-progress-bar {
	height: 100%;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

/* Admin Login */
.admin-login {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--background-secondary);
	padding: 1rem;
}

.login-card {
	background-color: var(--background);
	padding: 2.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	width: 100%;
	max-width: 400px;
}

.login-card h1 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 1.5rem;
}

/* Categories List */
.categories-list {
	padding: 0;
}

.category-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.category-item:last-child {
	border-bottom: none;
}

.category-info {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.drag-handle {
	cursor: grab;
	color: var(--text-light);
}

.category-name {
	font-weight: 600;
}

.category-count {
	color: var(--text-light);
	font-size: 0.875rem;
}

/* Brands List */
.brands-list {
	padding: 0;
}

.brand-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.brand-item:last-child {
	border-bottom: none;
}

.brand-info {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.brand-logo {
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	object-fit: contain;
	background-color: var(--background-secondary);
}

.brand-name {
	font-weight: 600;
}

.brand-count {
	color: var(--text-light);
	font-size: 0.875rem;
}

/* Settings Form */
.settings-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

@media (max-width: 768px) {
	.settings-grid {
		grid-template-columns: 1fr;
	}
}

.settings-section {
	background-color: var(--background);
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.settings-section h3 {
	font-size: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border-color);
}

/* Responsive Table */
@media (max-width: 768px) {
	.data-table-wrapper {
		overflow-x: auto;
	}

	.data-table {
		min-width: 600px;
	}
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 4rem 2rem;
}

.empty-state svg {
	width: 100px;
	height: 100px;
	color: var(--text-light);
	opacity: 0.5;
	margin-bottom: 1.5rem;
}

.empty-state h3 {
	margin-bottom: 0.5rem;
	color: var(--text-color);
}

.empty-state p {
	color: var(--text-light);
	margin-bottom: 1.5rem;
}

/* Confirm Dialog */
.confirm-dialog {
	text-align: center;
}

.confirm-dialog-icon {
	width: 64px;
	height: 64px;
	background-color: rgba(239, 68, 68, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
}

.confirm-dialog-icon svg {
	width: 32px;
	height: 32px;
	color: #ef4444;
}

.confirm-dialog h3 {
	margin-bottom: 0.5rem;
}

.confirm-dialog p {
	color: var(--text-light);
	margin-bottom: 1.5rem;
}

.confirm-actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

/* ==================== Order Modal (Customer) ==================== */
.order-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	z-index: 300;
}

.order-overlay.open {
	opacity: 1;
	visibility: visible;
}

.order-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background-color: var(--background);
	border-radius: var(--radius-lg);
	width: 95%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	z-index: 301;
}

.order-modal.open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.order-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.order-modal-header h3 {
	font-size: 1.125rem;
	font-weight: 700;
}

.order-modal-close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
	transition: var(--transition);
}

.order-modal-close:hover {
	background-color: var(--background-secondary);
}

.order-modal-body {
	padding: 1.5rem;
}

.order-form-group {
	margin-bottom: 1.25rem;
}

.order-form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--text-color);
}

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

.order-form-input:focus,
.order-form-select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.order-form-input::placeholder {
	color: var(--text-light);
}

.order-summary {
	background-color: var(--background-secondary);
	border-radius: var(--radius);
	padding: 1rem;
	margin-top: 1.5rem;
}

.order-summary-title {
	font-weight: 700;
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
	color: var(--text-color);
}

.order-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	border-bottom: 1px solid var(--border-color);
}

.order-summary-item:last-child {
	border-bottom: none;
}

.order-summary-item-name {
	flex: 1;
}

.order-summary-item-qty {
	color: var(--text-light);
	margin: 0 1rem;
}

.order-summary-item-price {
	font-weight: 600;
	color: var(--primary-color);
}

.order-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 0.75rem;
	margin-top: 0.75rem;
	border-top: 2px solid var(--border-color);
	font-weight: 700;
	font-size: 1rem;
}

.order-modal-footer {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 1.5rem 1.5rem;
}

.order-submit-btn {
	font-size: 1rem;
}

/* Order Confirmation Modal */
.order-confirmation-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background-color: var(--background);
	border-radius: var(--radius-lg);
	width: 95%;
	max-width: 400px;
	padding: 2.5rem 2rem;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	z-index: 301;
}

.order-confirmation-modal.open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.order-confirmation-icon {
	width: 80px;
	height: 80px;
	background-color: rgba(16, 185, 129, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	color: var(--success);
}

.order-confirmation-modal h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.order-confirmation-modal p {
	color: var(--text-light);
	margin-bottom: 0.5rem;
}

.order-confirmation-modal p strong {
	color: var(--text-color);
}

.order-confirmation-note {
	font-size: 0.875rem;
	margin-top: 1rem;
	margin-bottom: 1.5rem !important;
}

/* ==================== Order Status Badges ==================== */
.status-badge.status-pending {
	background-color: rgba(245, 158, 11, 0.1);
	color: #d97706;
}

.status-badge.status-confirmed {
	background-color: rgba(59, 130, 246, 0.1);
	color: #2563eb;
}

.status-badge.status-shipped {
	background-color: rgba(139, 92, 246, 0.1);
	color: #7c3aed;
}

.status-badge.status-delivered {
	background-color: rgba(16, 185, 129, 0.1);
	color: #059669;
}

.status-badge.status-cancelled {
	background-color: rgba(239, 68, 68, 0.1);
	color: #dc2626;
}

/* ==================== Order Details Modal (Admin) ==================== */
.order-details-section {
	margin-bottom: 1.5rem;
}

.order-details-section:last-child {
	margin-bottom: 0;
}

.order-details-section h4 {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-color);
}

.order-details-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.order-detail-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.order-detail-label {
	font-size: 0.75rem;
	color: var(--text-light);
	font-weight: 500;
}

.order-items-list {
	background-color: var(--background-secondary);
	border-radius: var(--radius);
	overflow: hidden;
}

.order-item-row {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border-color);
}

.order-item-row:last-child {
	border-bottom: none;
}

.order-item-name {
	flex: 1;
	font-weight: 500;
}

.order-item-qty {
	color: var(--text-light);
	margin: 0 1rem;
	font-size: 0.875rem;
}

.order-item-price {
	font-weight: 600;
	color: var(--primary-color);
}

/* ==================== Order Product Cards (Admin Modal) ==================== */
.order-products-cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.order-product-card {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background) 100%);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	transition: var(--transition);
}

.order-product-card:hover {
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-product-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: var(--radius);
	overflow: hidden;
	background-color: var(--background);
	border: 1px solid var(--border-color);
}

.order-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.order-product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.order-product-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-color);
	margin: 0 0 0.5rem 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.order-product-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.order-product-unit-price {
	font-size: 0.8125rem;
	color: var(--text-light);
}

.order-product-qty-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.625rem;
	background-color: var(--primary-color);
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 9999px;
}

.order-product-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.5rem;
	border-top: 1px dashed var(--border-color);
	font-size: 0.875rem;
}

.order-product-total span:first-child {
	color: var(--text-light);
}

.order-product-total-price {
	font-weight: 700;
	font-size: 1rem;
	color: var(--primary-color);
}

/* Responsive adjustments for order product cards */
@media (max-width: 480px) {
	.order-product-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.order-product-image {
		width: 100px;
		height: 100px;
	}

	.order-product-meta {
		justify-content: center;
	}

	.order-product-name {
		white-space: normal;
	}
}

.order-details-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background-color: var(--background-secondary);
	border-radius: var(--radius);
	margin-top: 1rem;
	font-weight: 700;
	font-size: 1.125rem;
}

/* ==================== Order Status Tags (Admin Modal) ==================== */
.order-status-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.order-status-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 2px solid transparent;
	opacity: 0.6;
}

.order-status-tag:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.order-status-tag.active {
	opacity: 1;
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.order-status-tag svg {
	flex-shrink: 0;
}

/* Pending status */
.order-status-tag.status-pending {
	background-color: rgba(245, 158, 11, 0.15);
	color: #b45309;
	border-color: rgba(245, 158, 11, 0.3);
}

.order-status-tag.status-pending:hover {
	background-color: rgba(245, 158, 11, 0.25);
}

.order-status-tag.status-pending.active {
	background-color: #f59e0b;
	color: white;
	border-color: #d97706;
}

/* Confirmed status */
.order-status-tag.status-confirmed {
	background-color: rgba(59, 130, 246, 0.15);
	color: #1d4ed8;
	border-color: rgba(59, 130, 246, 0.3);
}

.order-status-tag.status-confirmed:hover {
	background-color: rgba(59, 130, 246, 0.25);
}

.order-status-tag.status-confirmed.active {
	background-color: #3b82f6;
	color: white;
	border-color: #2563eb;
}

/* Shipped status */
.order-status-tag.status-shipped {
	background-color: rgba(139, 92, 246, 0.15);
	color: #6d28d9;
	border-color: rgba(139, 92, 246, 0.3);
}

.order-status-tag.status-shipped:hover {
	background-color: rgba(139, 92, 246, 0.25);
}

.order-status-tag.status-shipped.active {
	background-color: #8b5cf6;
	color: white;
	border-color: #7c3aed;
}

/* Delivered status */
.order-status-tag.status-delivered {
	background-color: rgba(16, 185, 129, 0.15);
	color: #047857;
	border-color: rgba(16, 185, 129, 0.3);
}

.order-status-tag.status-delivered:hover {
	background-color: rgba(16, 185, 129, 0.25);
}

.order-status-tag.status-delivered.active {
	background-color: #10b981;
	color: white;
	border-color: #059669;
}

/* Cancelled status */
.order-status-tag.status-cancelled {
	background-color: rgba(239, 68, 68, 0.15);
	color: #b91c1c;
	border-color: rgba(239, 68, 68, 0.3);
}

.order-status-tag.status-cancelled:hover {
	background-color: rgba(239, 68, 68, 0.25);
}

.order-status-tag.status-cancelled.active {
	background-color: #ef4444;
	color: white;
	border-color: #dc2626;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.order-status-tags {
		justify-content: center;
	}

	.order-status-tag {
		padding: 0.5rem 0.75rem;
		font-size: 0.75rem;
	}
}

/* ==================== Order Details Side Drawer ==================== */
.drawer-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
}

.drawer-overlay.open {
	opacity: 1;
	visibility: visible;
}

.order-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	max-width: 700px;
	background-color: var(--background);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.order-drawer.open {
	transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	background-color: var(--background);
	border-bottom: 1px solid var(--border-color);
	color: var(--text-color);
	flex-shrink: 0;
}

.drawer-header-content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.drawer-header h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
}

.drawer-order-id {
	font-size: 1rem;
	font-weight: 600;
	font-family: 'Monaco', 'Menlo', monospace;
	background: var(--background-secondary);
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	margin-right: 0.5rem;
	color: var(--primary-color);
}

.drawer-order-timestamp {
	display: block;
	font-size: 0.8125rem;
	color: var(--text-light);
	margin-top: 0.25rem;
}

.drawer-close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
	background-color: var(--background-secondary);
	color: var(--text-light);
	transition: var(--transition);
}

.drawer-close:hover {
	background-color: var(--border-color);
	color: var(--text-color);
	transform: rotate(90deg);
}

/* Drawer Body */
.drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Drawer Cards */
.drawer-card {
	background-color: var(--background);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.drawer-card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background-color: var(--background-secondary);
	border-bottom: 1px solid var(--border-color);
}

.drawer-card-header svg {
	color: var(--primary-color);
	flex-shrink: 0;
}

.drawer-card-header h4 {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0;
	color: var(--text-color);
}

.drawer-card-body {
	padding: 1rem 1.25rem;
}

/* Ensure status tags fit in one row in drawer */
.order-drawer .order-status-tags {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	overflow-x: auto;
	padding: 0.75rem;
	margin: -0.75rem;
}

.order-drawer .order-status-tag {
	flex-shrink: 0;
	padding: 0.5rem 0.875rem;
	font-size: 0.8125rem;
}

/* Customer Info Grid */
.customer-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.875rem 1.5rem;
}

.customer-info-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.customer-info-item.full-width {
	grid-column: 1 / -1;
}

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

.customer-info-value {
	font-size: 0.9375rem;
	color: var(--text-color);
	font-weight: 500;
}

.customer-phone-link {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}

.customer-phone-link:hover {
	text-decoration: underline;
}

/* Drawer Total */
.drawer-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	background: linear-gradient(135deg, var(--background-secondary), var(--background));
	border-radius: var(--radius);
	margin-top: 1rem;
	border: 1px solid var(--border-color);
}

.drawer-total span:first-child {
	font-weight: 600;
	color: var(--text-color);
}

.drawer-total-amount {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--primary-color);
}

/* Drawer Footer */
.drawer-footer {
	padding: 1.25rem 1.5rem;
	border-top: 1px solid var(--border-color);
	background-color: var(--background);
	flex-shrink: 0;
}

.drawer-footer .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

/* Body lock when drawer is open */
body.drawer-open {
	overflow: hidden;
}

/* Drawer responsive */
@media (max-width: 640px) {
	.order-drawer {
		max-width: 100%;
	}

	.drawer-header {
		padding: 1rem 1.25rem;
	}

	.drawer-body {
		padding: 1rem;
		gap: 1rem;
	}

	.drawer-card-body {
		padding: 0.875rem 1rem;
	}

	.customer-info-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem 1rem;
	}

	.order-drawer .order-status-tags {
		flex-wrap: wrap;
	}
}

/* Drawer order product cards adjustments */
.order-drawer .order-products-cards {
	gap: 0.75rem;
}

.order-drawer .order-product-card {
	padding: 0.875rem;
}

.order-drawer .order-product-image {
	width: 70px;
	height: 70px;
}

/* ==================== Orders Filter Tags ==================== */
.orders-filter-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.875rem;
	border-radius: 50px;
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 2px solid transparent;
	background-color: #f3f4f6;
	color: #6b7280;
}

.filter-tag svg {
	flex-shrink: 0;
}

.filter-tag:hover {
	background-color: #e5e7eb;
	transform: translateY(-1px);
}

.filter-tag.active {
	background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
	color: white;
	box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

/* Filter tag status colors when active */
.filter-tag.filter-pending.active {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.filter-tag.filter-confirmed.active {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.filter-tag.filter-shipped.active {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed);
	box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.filter-tag.filter-delivered.active {
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.filter-tag.filter-cancelled.active {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Hover states for colored filter tags */
.filter-tag.filter-pending:not(.active):hover {
	background-color: rgba(245, 158, 11, 0.15);
	color: #d97706;
	border-color: rgba(245, 158, 11, 0.3);
}

.filter-tag.filter-confirmed:not(.active):hover {
	background-color: rgba(59, 130, 246, 0.15);
	color: #2563eb;
	border-color: rgba(59, 130, 246, 0.3);
}

.filter-tag.filter-shipped:not(.active):hover {
	background-color: rgba(139, 92, 246, 0.15);
	color: #7c3aed;
	border-color: rgba(139, 92, 246, 0.3);
}

.filter-tag.filter-delivered:not(.active):hover {
	background-color: rgba(16, 185, 129, 0.15);
	color: #059669;
	border-color: rgba(16, 185, 129, 0.3);
}

.filter-tag.filter-cancelled:not(.active):hover {
	background-color: rgba(239, 68, 68, 0.15);
	color: #dc2626;
	border-color: rgba(239, 68, 68, 0.3);
}

/* Responsive adjustments for filter tags */
@media (max-width: 768px) {
	.orders-filter-tags {
		gap: 0.375rem;
	}

	.filter-tag {
		padding: 0.375rem 0.625rem;
		font-size: 0.75rem;
	}

	.filter-tag svg {
		width: 12px;
		height: 12px;
	}
}

@media (max-width: 480px) {
	.orders-filter-tags {
		justify-content: center;
		width: 100%;
	}

	.admin-card-header {
		flex-direction: column;
		gap: 1rem;
	}
}

/* ==================== Clickable Order Row ==================== */
.order-row {
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.order-row:hover {
	background-color: rgba(var(--primary-rgb), 0.04);
}

.order-row:active {
	background-color: rgba(var(--primary-rgb), 0.08);
}

/* ==================== Table Actions (Orders) ==================== */
.table-actions {
	display: flex;
	gap: 0.5rem;
}

.btn-icon {
	width: 32px;
	height: 32px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	color: var(--text-light);
	background: transparent;
}

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

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

.btn-icon.btn-danger:hover {
	background-color: rgba(239, 68, 68, 0.08);
	color: #ef4444;
}

/* Order ID styling */
.data-table code {
	font-family: 'Monaco', 'Menlo', monospace;
	font-size: 0.8125rem;
	background-color: var(--background-secondary);
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius-sm);
	color: var(--text-color);
}

/* Print styles */
@media print {
	.header,
	.footer,
	.floating-btns,
	.cart-drawer,
	.cart-overlay {
		display: none !important;
	}
}
