@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --secondary: #FD79A8;
  --accent: #00B894;
  --accent-dark: #00A381;
  --dark: #2D3436;
  --darker: #1a1a2e;
  --light: #F5F6FA;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --success: #00B894;
  --warning: #FDCB6E;
  --danger: #E17055;
  --info: #74B9FF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Vazirmatn', 'Noto Naskh Arabic', sans-serif;
}

html[lang="ar"] body {
  font-family: 'Noto Naskh Arabic', 'Vazirmatn', sans-serif;
}

[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

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

ul { list-style: none; }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.section-title .title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 15px auto 0;
  border-radius: 4px;
}

/* ===== HEADER & NAVIGATION ===== */
.top-bar {
  background: var(--darker);
  color: var(--gray-400);
  font-size: 0.82rem;
  padding: 8px 0;
  direction: ltr;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
}

/* ─── Language Dropdown ─── */
.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--gray-600);
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
}
.lang-dropdown-toggle:hover {
  background: var(--gray-200);
  color: var(--dark);
}
.lang-dropdown-toggle.lang-btn-icon {
  background: none;
  border: none;
  padding: 4px;
  color: inherit;
  border-radius: 50%;
}
.lang-dropdown-toggle.lang-btn-icon:hover {
  background: var(--gray-200);
  color: var(--dark);
}
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 99999;
  overflow: hidden;
  margin-top: 6px;
}
.lang-dropdown.open .lang-dropdown-menu {
  display: block;
}
.lang-option {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--gray-600);
  text-align: right;
  transition: var(--transition);
}
.lang-option:hover {
  background: var(--gray-100);
  color: var(--dark);
}
.lang-option.active {
  background: var(--primary);
  color: #fff;
}
.lang-arrow {
  transition: transform 0.2s;
}
.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

/* Admin header lang dropdown */
.admin-header .lang-dropdown-toggle {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 2px 8px;
}
.admin-header .lang-dropdown-toggle.lang-btn-icon {
  background: none;
  border: none;
  padding: 4px;
  color: rgba(255,255,255,0.7);
  border-radius: 50%;
}
.admin-header .lang-dropdown-toggle.lang-btn-icon:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.admin-header .lang-dropdown-menu {
  background: var(--dark);
  border-color: rgba(255,255,255,0.1);
}
.admin-header .lang-option {
  color: rgba(255,255,255,0.7);
}
.admin-header .lang-option:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.admin-header .lang-option.active {
  background: var(--primary);
  color: #fff;
}

.top-bar-links {
  display: flex;
  gap: 20px;
}

.top-bar-links a {
  color: var(--gray-400);
  transition: var(--transition);
  font-size: 0.8rem;
}

.top-bar-links a:hover { color: var(--white); }

.top-bar-social {
  display: flex;
  gap: 12px;
}

.top-bar-social a {
  color: var(--gray-500);
  transition: var(--transition);
  font-size: 1rem;
  line-height: 1;
}

.top-bar-social a svg {
  display: block;
  width: 16px;
  height: 16px;
}

.top-bar-social a:hover { color: var(--primary-light); }

.top-bar-social a.instagram:hover { color: #E4405F; }
.top-bar-social a.telegram:hover { color: #0088CC; }
.top-bar-social a.whatsapp:hover { color: #25D366; }

header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.search-box {
  flex: 1;
  max-width: 340px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 20px 12px 40px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--gray-100);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.search-box .search-icon {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.search-box .search-icon:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

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

.header-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ===== MAIN NAV ===== */
.main-nav {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 0;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.nav-list > li > a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* ===== MEGA MENU ===== */
.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  min-width: 600px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.nav-list li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mega-menu-col h4 {
  font-size: 0.85rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 600;
}

.mega-menu-col a {
  display: block;
  padding: 6px 0;
  color: var(--gray-700);
  font-size: 0.9rem;
  transition: var(--transition);
}

.mega-menu-col a:hover {
  color: var(--primary);
  padding-right: 5px;
}

/* ===== MOBILE MENU ===== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  transition: var(--transition);
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  color: var(--gray-700);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-list li a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 10px 0;
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 80px 50px 80px;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45,52,54,0.7) 0%, rgba(45,52,54,0.15) 60%);
  z-index: 0;
}

.hero-slide .slide-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  color: white;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}

.hero-slide .slide-content h1 {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 6px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.hero-slide .slide-content p {
  font-size: 0.9rem;
  opacity: 0.92;
  margin-bottom: 14px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

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

.btn-danger {
  background: var(--danger);
  color: white;
  border: 2px solid var(--danger);
}
.btn-danger:hover {
  background: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.hero-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: white;
  border-color: var(--primary);
  transform: scale(1.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.4);
}

.hero-arrow.prev { right: 20px; }
.hero-arrow.next { left: 20px; }

/* ===== FEATURES BANNER ===== */
.features-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--gray-100);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--gray-200);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card .card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.card-badge.discount { background: var(--danger); }
.card-badge.new { background: var(--success); }
.card-badge.bestseller { background: var(--warning); color: var(--dark); }

.card-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.product-card:hover .card-actions {
  opacity: 1;
  transform: translateX(0);
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

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

.card-body {
  padding: 18px 20px 20px;
}

.card-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-title a {
  color: var(--dark);
  transition: var(--transition);
}

.card-title a:hover { color: var(--primary); }

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.stars {
  color: var(--warning);
  letter-spacing: 2px;
}

.card-rating span {
  color: var(--gray-600);
}

.card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.old-price {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.discount-tag {
  background: rgba(225, 112, 85, 0.1);
  color: var(--danger);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-to-cart-btn:hover {
  background: var(--primary);
  color: white;
}

.add-to-cart-btn.in-cart {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* ===== CATEGORY BANNERS ===== */
.category-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.category-banner:hover img {
  transform: scale(1.05);
}

.category-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  transition: var(--transition);
}

.category-banner .banner-content {
  position: absolute;
  bottom: 30px;
  right: 30px;
  color: white;
  z-index: 1;
}

.category-banner .banner-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.category-banner .banner-content p {
  opacity: 0.9;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.category-banner .banner-content .banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid white;
  padding-bottom: 4px;
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.category-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 25px 15px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

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

.category-item .cat-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.category-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.category-item span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.breadcrumb a {
  color: var(--gray-600);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  margin: 0 8px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.product-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}

.main-image {
  width: 100%;
  height: 450px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
}

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

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.product-brand {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.product-price-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.product-price-box .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.product-price-box .current-price {
  font-size: 2rem;
}

.product-price-box .old-price {
  font-size: 1.1rem;
}

.product-description {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-features {
  margin-bottom: 25px;
}

.product-features h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-features ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.product-features ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 160px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-selector button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-700);
  transition: var(--transition);
}

.qty-selector button:hover {
  background: var(--primary);
  color: white;
}

.qty-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--gray-200);
  border-right: 2px solid var(--gray-200);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
}

/* ===== CART PAGE ===== */
.cart-page {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  align-items: start;
}

.cart-items {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}

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

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-info .item-price {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.cart-item-info .item-total {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.remove-item {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.remove-item:hover {
  opacity: 0.7;
}

/* CART SUMMARY */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gray-200);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 2px solid var(--gray-200);
  margin-top: 10px;
  padding-top: 15px;
}

.checkout-btn {
  width: 100%;
  margin-top: 20px;
  justify-content: center;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

.checkout-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--gray-200);
}

.checkout-form h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--gray-100);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

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

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.payment-method {
  padding: 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method:hover {
  border-color: var(--primary);
}

.payment-method.selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.05);
}

.payment-method .pay-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.payment-method span {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== FILTERS & PRODUCTS PAGE ===== */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.filters-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 100px;
}

.filters-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.filter-section {
  margin-bottom: 20px;
}

.filter-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-700);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--gray-700);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.products-header .results-count {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.products-header .sort-select {
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--white);
  cursor: pointer;
}

/* ===== CHATBOT ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(108, 92, 231, 0.5);
}

.chatbot-toggle .notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--danger);
  border-radius: 50%;
  border: 3px solid white;
}

.chatbot-window {
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 900;
  width: 360px;
  height: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  transform-origin: bottom left;
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-header .bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-header .bot-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.chatbot-header .bot-info span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chatbot-header .close-chat {
  margin-right: auto;
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
}

.chatbot-header .close-chat:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  animation: msgIn 0.3s ease;
}

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

.chat-message.bot {
  align-self: flex-start;
  background: var(--gray-100);
  color: var(--dark);
  border-bottom-right-radius: 4px;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-left-radius: 4px;
}

.chat-message .msg-products {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message .msg-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.chat-message .msg-product-item:hover {
  border-color: var(--primary);
}

.chat-message .msg-product-item img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.chat-message .msg-product-item .msg-prod-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-message .msg-product-item .msg-prod-info span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.chatbot-input {
  padding: 14px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
  background: var(--white);
}

.chatbot-input input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.85rem;
  transition: var(--transition);
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.chatbot-input button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chatbot-input button:hover {
  background: var(--primary-dark);
}

.quick-replies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: var(--gray-100);
}

.quick-reply-btn {
  padding: 6px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-700);
}

.quick-reply-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 92, 231, 0.05);
}

/* ===== FOOTER ===== */
footer {
  background: var(--darker);
  color: var(--gray-400);
  padding: 60px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .footer-logo {
  color: white;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
  font-size: 1rem;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-social a.instagram:hover { background: #E4405F; color: white; }
.footer-social a.telegram:hover { background: #0088CC; color: white; }
.footer-social a.whatsapp:hover { background: #25D366; color: white; }
.footer-social a.bale:hover { background: #1A1A2E; color: white; }

.footer-social a:hover {

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--gray-500);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: white;
  padding-right: 5px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact li .contact-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== ADMIN PANEL ===== */
.admin-body {
  direction: rtl;
  background: var(--gray-100);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

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

.admin-sidebar .admin-logo {
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .admin-logo span {
  color: var(--primary-light);
}

.admin-nav-list {
  padding: 15px 0;
}

.admin-nav-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--gray-400);
  transition: var(--transition);
  font-size: 0.9rem;
}

.admin-nav-list li a:hover,
.admin-nav-list li a.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.admin-nav-list li a .nav-icon {
  width: 28px;
  text-align: center;
}

.admin-main {
  flex: 1;
  margin-right: 260px;
  min-height: 100vh;
}

.admin-header {
  background: var(--white);
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.admin-header .page-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-header .admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header .admin-user .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.admin-content {
  padding: 30px;
}

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

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-card .stat-info h4 {
  font-size: 1.6rem;
  font-weight: 800;
}

.stat-card .stat-info p {
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* Admin Tables */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.admin-toolbar {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toolbar h3 {
  font-size: 1rem;
  font-weight: 700;
}

.admin-toolbar .toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.admin-table th {
  text-align: right;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 600;
  border-bottom: 2px solid var(--gray-200);
  background: var(--gray-100);
}

.admin-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(108, 92, 231, 0.02);
}

.admin-table .product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-table .product-cell img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-table .product-cell .prod-name {
  font-weight: 600;
}

.admin-table .action-btns {
  display: flex;
  gap: 6px;
}

.admin-table .action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.admin-table .action-btn.edit {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
}

.admin-table .action-btn.edit:hover {
  background: var(--primary);
  color: white;
}

.admin-table .action-btn.delete {
  background: rgba(225, 112, 85, 0.1);
  color: var(--danger);
}

.admin-table .action-btn.delete:hover {
  background: var(--danger);
  color: white;
}

.badge-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.active { background: rgba(0, 184, 148, 0.1); color: var(--success); }
.badge-status.pending { background: rgba(253, 203, 110, 0.1); color: #B7950B; }
.badge-status.inactive { background: rgba(225, 112, 85, 0.1); color: var(--danger); }

/* Admin Login */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--darker), var(--dark));
}

.admin-login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}

.admin-login-box h2 {
  text-align: center;
  font-weight: 800;
  margin-bottom: 6px;
}

.admin-login-box p {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 30px;
  font-size: 0.9rem;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideInRight 0.4s ease;
  border-right: 4px solid var(--primary);
}

.toast.success { border-right-color: var(--success); }
.toast.error { border-right-color: var(--danger); }
.toast.warning { border-right-color: var(--warning); }

.toast .toast-icon {
  font-size: 1.3rem;
}

.toast .toast-msg {
  flex: 1;
  font-size: 0.88rem;
}

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

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

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination button,
.pagination span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.pagination button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== FILTER TOGGLE (MOBILE) ===== */
.filter-toggle-btn {
  display: none;
  padding: 8px 16px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-toggle-btn:hover {
  background: var(--primary);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .product-detail { gap: 30px; }
}

@media (max-width: 1024px) {
  .hero-slider { height: 400px; }
  .hero-slide { padding: 0 40px 40px 40px; }
  .hero-slide .slide-content { padding: 18px 24px; }
  .hero-slide .slide-content h1 { font-size: 1.5rem; }
  .hero-slide .slide-content p { font-size: 0.85rem; margin-bottom: 12px; }
  .features-bar { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; }
  .filters-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 290px;
    height: 100vh;
    z-index: 2001;
    border-radius: 0;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
  }
  .filters-sidebar.mobile-show {
    right: 0;
  }
  .filter-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .filter-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .filter-toggle-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .search-box { max-width: 100%; }

  .header-inner { padding: 12px 0; }
  .logo { font-size: 1.2rem; }
  .logo-icon { width: 36px; height: 36px; font-size: 1rem; }

  .hero-slider { height: 320px; margin-top: 0; border-radius: 0; }
  .hero-slide { padding: 0 20px 30px 20px; }
  .hero-slide .slide-content { padding: 14px 18px; border-radius: 12px; }
  .hero-slide .slide-content h1 { font-size: 1.2rem; margin-bottom: 4px; }
  .hero-slide .slide-content p { font-size: 0.78rem; margin-bottom: 10px; }
  .hero-slide .slide-content .btn { padding: 8px 18px; font-size: 0.78rem; }
  .hero-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .hero-arrow.prev { right: 10px; }
  .hero-arrow.next { left: 10px; }

  .features-bar {
    grid-template-columns: 1fr 1fr;
    margin: 0 10px;
    margin-top: -20px;
    padding: 20px;
    gap: 10px;
  }
  .feature-item { padding: 8px; }

  .section { padding: 50px 0; }
  .section-title h2 { font-size: 1.5rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .card-image { height: 200px; }
  .card-body { padding: 14px; }
  .card-title { font-size: 0.85rem; }
  .card-actions { display: none; }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .main-image { height: 300px; }
  .product-gallery { position: static; }
  .product-info h1 { font-size: 1.3rem; }
  .product-price-box .current-price { font-size: 1.5rem; }
  .product-features ul { grid-template-columns: 1fr; }
  .gallery-thumbs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .gallery-thumb { flex-shrink: 0; }

  .category-banners { grid-template-columns: 1fr; }
  .category-banner { height: 200px; }

  .cart-page { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; gap: 12px; }
  .cart-item-image { width: 80px; height: 80px; }
  .cart-item-actions { grid-column: span 2; flex-direction: row; justify-content: space-between; }

  .checkout-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .chatbot-window {
    width: calc(100% - 40px);
    height: 480px;
    left: 20px;
    bottom: 90px;
  }
  .chatbot-toggle { left: 20px; bottom: 20px; width: 52px; height: 52px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .admin-sidebar {
    width: 260px;
    right: -260px;
    transition: var(--transition);
  }
  .admin-sidebar.mobile-show { right: 0; }
  .admin-main { margin-right: 0; }
  .admin-toggle { display: block !important; }
  .admin-sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .admin-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 700px; }

  .payment-methods { grid-template-columns: 1fr; }

  .modal { padding: 20px; width: 95%; }
  .modal .form-group input { font-size: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card .card-image { height: 160px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 0.8rem; }
  .current-price { font-size: 1rem; }
  .old-price { font-size: 0.75rem; }
  .add-to-cart-btn { padding: 8px; font-size: 0.75rem; }
  .card-badge { font-size: 0.65rem; padding: 2px 8px; }

  .hero-slider { height: 240px; }
  .hero-slide { padding: 0 16px 20px 16px; }
  .hero-slide .slide-content { padding: 12px 14px; border-radius: 10px; }
  .hero-slide .slide-content h1 { font-size: 1rem; margin-bottom: 4px; }
  .hero-slide .slide-content p { font-size: 0.72rem; margin-bottom: 8px; }
  .hero-slide .slide-content .btn { padding: 6px 14px; font-size: 0.7rem; }
  .hero-nav { bottom: 12px; gap: 4px; }
  .hero-dot { width: 8px; height: 8px; }
  .hero-arrow { width: 32px; height: 32px; font-size: 0.85rem; }

  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-item { padding: 15px 10px; }
  .category-item .cat-icon { font-size: 1.8rem; }
  .category-item h4 { font-size: 0.75rem; }

  .features-bar { grid-template-columns: 1fr; gap: 8px; }
  .feature-item { flex-direction: column; text-align: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-content { padding: 15px; }

  .products-header { flex-direction: column; align-items: stretch; }
  .products-header .sort-select { width: 100%; }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.gap-10 { gap: 10px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== MOBILE SETTINGS (applied via admin panel) ===== */
@media (max-width: 768px) {
  body.mobile-hide-topbar .top-bar { display: none !important; }
  body.mobile-hide-social .top-bar-social { display: none !important; }
  body.mobile-hide-social .footer-social { display: none !important; }
  .product-grid { grid-template-columns: repeat(var(--mobile-cols, 2), 1fr); }
  .hero-slider { height: var(--mobile-slider-h, 320px); }
}

@media (max-width: 480px) {
  .hero-slider { height: var(--mobile-slider-h, 240px); }
  .hero-slide { padding: 0 12px 16px 12px; }
  .hero-slide .slide-content { padding: 10px 12px; border-radius: 8px; }
  .hero-slide .slide-content h1 { font-size: 0.9rem; margin-bottom: 3px; }
  .hero-slide .slide-content p { font-size: 0.68rem; margin-bottom: 6px; }
  .hero-slide .slide-content .btn { padding: 5px 12px; font-size: 0.65rem; }
  .hero-nav { bottom: 8px; gap: 4px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-arrow { width: 26px; height: 26px; font-size: 0.7rem; }
  .hero-arrow.prev { right: 4px; }
  .hero-arrow.next { left: 4px; }
}
