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

:root {
  /* Default Light Theme (Theme 1) */
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-secondary: #f59e0b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition-speed: 0.3s;
  --layout-container-width: 1280px;
}

[data-theme="dark"] {
  /* Dark Theme (Theme 2) */
  --bg-color: #0f172a;
  --surface-color: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-secondary: #fbbf24;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.5);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative !important;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--layout-container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-primary);
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo i {
  font-size: 28px;
}






.search-bar {
  display: flex;
  flex: 1;
  max-width: 500px;
  margin: 0 40px;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  outline: none;
}

.search-bar button {
  padding: 10px 20px;
  background-color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-bar button:hover {
  background-color: #d97706;
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icon {
  color: var(--text-primary);
  font-size: 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-icon:hover {
  color: var(--accent-primary);
  transform: translateY(-3px) scale(1.1);
}

.nav-icon .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--error-color);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

nav.main-nav {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 75px; /* Height of the top-bar */
  z-index: 99;
}

nav.main-nav .container {
  display: flex;
  justify-content: center;
}

nav.main-nav ul {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav.main-nav > div > ul > li {
  position: relative;
}

nav.main-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  padding: 15px 15px;
  display: block;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover, nav.main-nav li.active a {
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

/* Dropdown Menu Styling */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -50px; /* Further shift to the left to align with logo */
  margin-top: 10px; /* Use margin instead of transform */
  background-color: var(--surface-color);
  min-width: 260px;
  flex-direction: column;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
  border: 1px solid var(--border-color);
}

/* Invisible bridge to prevent hover loss */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

/* Ensure dropdown doesn't go off-screen on the right */
.main-nav .dropdown:last-child .dropdown-menu {
  left: auto;
  right: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  width: 100%;
  list-style: none;
}

.dropdown-menu a {
  padding: 12px 16px !important;
  border-radius: 10px;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dropdown-menu a i {
  width: 24px;
  text-align: center;
  font-size: 18px;
  color: var(--accent-primary);
  opacity: 0.8;
}

.dropdown-menu a:hover {
  background-color: var(--bg-color) !important;
  color: var(--accent-primary) !important;
  transform: translateX(8px);
}

.dropdown-menu hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

/* Submenu styling (Global) */
.dropdown-submenu {
  position: relative;
  width: 100%;
}

.dropdown-submenu > a {
  padding-right: 50px !important; /* Ensure text doesn't hit indicator */
}

.submenu-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  color: var(--text-secondary);
  border-left: 1px solid rgba(0,0,0,0.05);
}

.dropdown-submenu.active > .submenu-indicator {
  transform: rotate(90deg);
}

nav.main-nav ul.submenu {
  display: none; /* Overrides the flex display of nav.main-nav ul */
  background: var(--bg-color);
  padding-left: 20px;
  border-left: 3px solid var(--accent-primary);
  flex-direction: column;
  width: 100%;
}

.dropdown-submenu.active > ul.submenu {
  display: flex;
}

nav.main-nav ul.submenu li a {
  padding: 10px 20px !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
}

.dropdown-toggle i {
  padding: 10px;
  margin: -10px;
  font-size: 14px !important;
}

/* Premium Badge in Nav */
.nav-premium-link {
  color: #f59e0b !important;
  font-weight: 700 !important;
}

.nav-premium-link:hover {
  background: rgba(245, 158, 11, 0.1) !important;
}

/* Theme / Layout Toggle Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle, .layout-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Footer */
footer {
  background-color: var(--surface-color);
  padding: 60px 0 20px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-col a {
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-primary);
  transform: translateX(8px);
  display: inline-block;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: none;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  background: var(--surface-color);
  overflow: hidden;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.hero img.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  max-width: 600px;
  background: color-mix(in srgb, var(--surface-color), transparent 5%);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-left: 40px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* Section Titles */
.section-title {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 10px;
  }
  
  .product-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  
  .product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
  }
}

/* Product Card */
.product-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-primary);
}

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

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-rating {
  color: var(--accent-secondary);
  font-size: 14px;
  margin-bottom: 15px;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: auto;
}

.add-to-cart-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.add-to-cart-btn:hover {
  transform: scale(1.1);
}

.wishlist-toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wishlist-toggle-btn:hover {
  transform: scale(1.08);
}

.wishlist-toggle-btn.active {
  color: #e11d48;
}

.wishlist-details-btn {
  width: 100%;
  margin-top: -12px;
  margin-bottom: 30px;
  font-size: 18px;
}

/* List View Layout for Products */
.product-list-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-list-layout .product-card {
  flex-direction: row;
  height: 200px;
}

.product-list-layout .product-card-img {
  width: 250px;
  height: 100%;
  border-bottom: none;
  border-right: 1px solid var(--border-color);
}

.product-list-layout .product-card-body {
  justify-content: center;
}

/* Custom Alternative Theme Layout Classes */
body.layout-alternative .container {
  max-width: 100%;
  padding: 0 40px;
}
body.layout-alternative header .container {
  flex-direction: column;
}
body.layout-alternative .search-bar {
  margin: 15px 0;
  max-width: 100%;
}
body.layout-alternative nav.main-nav ul {
  justify-content: center;
}

/* Badges */
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--error-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* Comparison Feature */
.compare-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
  cursor: pointer;
}

.compare-checkbox {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.compare-bar {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--surface-color);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: bottom 0.3s ease;
  z-index: 1000;
  border-top: 1px solid var(--border-color);
}

.compare-bar.active {
  bottom: 0;
}

.compare-bar-content {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 1;
  overflow-x: auto;
}

.compare-item-preview {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.compare-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-compare-item {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  width: 16px;
  height: 16px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.compare-actions span {
  font-weight: 600;
  margin-right: 15px;
}

/* Comparison Modal */
.compare-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.compare-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.compare-modal-content {
  background: var(--surface-color);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 12px;
  padding: 30px;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
}

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

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.compare-table th, .compare-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: center;
}

.compare-table th {
  background: var(--bg-color);
  font-weight: 600;
  width: 150px;
  text-align: left;
}

.compare-table img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.empty-state {
  text-align: center;
  background: var(--surface-color);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 50px 24px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 40px;
  color: #e11d48;
  margin-bottom: 16px;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.wishlist-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.wishlist-card-media {
  position: relative;
  padding: 14px;
  padding-bottom: 0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(226, 232, 240, 0.45));
}

.wishlist-card .product-card-img {
  border-radius: 16px;
  border: none;
  height: 230px;
  box-shadow: var(--shadow-md);
}

.wishlist-card-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wishlist-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.wishlist-icon-remove {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: #e11d48;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-icon-remove:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.wishlist-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.wishlist-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 12px;
  font-weight: 600;
}

.wishlist-actions {
  display: flex;
  gap: 12px;
  padding-top: 18px;
}

.wishlist-actions .btn {
  flex: 1;
}

@media (max-width: 768px) {
  .wishlist-price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .wishlist-actions {
    flex-direction: column;
  }
}

/* Customer Support Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  font-family: 'Inter', sans-serif;
}

[dir="rtl"] .chat-widget {
  right: auto;
  left: 30px;
}

.chat-button {
  width: 60px;
  height: 60px;
  background-color: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background-color: var(--surface-color);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
}

[dir="rtl"] .chat-window {
  right: auto;
  left: 0;
}

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

.chat-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.agent-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
}

.chat-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.chat-header p {
  margin: 0;
  font-size: 11px;
  opacity: 0.8;
}

/* Quick Actions */
.quick-actions {
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar { display: none; }

.action-chip {
  padding: 6px 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.action-chip:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--bg-color);
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  animation: fadeIn 0.3s ease;
}

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

.message.received {
  align-self: flex-start;
  background-color: var(--surface-color);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.message.sent {
  align-self: flex-end;
  background-color: var(--accent-primary);
  color: white;
  border-bottom-right-radius: 2px;
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 18px !important;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
  opacity: 0.6;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

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

.chat-input-area {
  padding: 15px;
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  outline: none;
}

.chat-input-area button {
  width: 40px;
  height: 40px;
  background-color: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-input-area button:hover {
  background-color: var(--accent-hover);
}

/* --- Global Responsive Design Overhaul --- */

/* Mobile Menu Toggle Button (Injected via JS) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

@media (max-width: 1024px) {
  .search-bar {
    margin: 0 20px;
  }
  
  .products-layout {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .filters-sidebar {
    display: none !important;
  }

  .main-products {
    width: 100% !important;
    padding: 0 10px !important;
  }

  .product-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .product-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .mobile-menu-toggle {
    display: flex !important;
    position: fixed !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 2100000 !important; /* Highest possible, above nav */
    background: var(--surface-color);
    box-shadow: var(--shadow-lg);
  }
  
  nav.main-nav a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Adjust top bar since toggle is removed from flow */
  .top-bar {
    padding-left: 60px; /* Make space for the fixed toggle */
  }

  .top-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  

  .search-bar {
    width: 100% !important;
    margin: 0 !important;
  }

  .nav-icons {
    width: 100% !important;
    justify-content: center !important;
    gap: 20px !important;
  }
  
  .mobile-menu-toggle {
    grid-column: 1;
    margin-right: 10px;
  }

  

  .logo span {
    display: inline-block;
  }

  .nav-icons {
    grid-column: 3;
    gap: 12px;
  }
  
  .search-bar {
    grid-column: 1 / span 3;
    width: 100%;
    max-width: 100%;
    margin: 5px 0 10px 0;
    order: 4;
  }

  .search-bar input {
    height: 45px;
    font-size: 14px;
  }

  .search-bar button {
    height: 45px;
    padding: 0 15px;
  }
  
  .controls {
    display: none;
  }

  /* Badge fix */
  .nav-icon .badge {
    top: -5px;
    right: -5px;
    padding: 2px 5px;
    font-size: 9px;
  }

  /* Mobile Navigation Overlay */
  nav.main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--surface-color);
    z-index: 2000000; /* Below toggle but above backdrop */
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-color);
    display: block;
    overflow-y: auto;
    padding-top: 60px; /* Space for the toggle button */
    pointer-events: auto !important;
  }
  
  nav.main-nav * {
    pointer-events: auto !important;
  }

  .menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1900000; /* Below main-nav */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

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

  nav.main-nav.active {
    left: 0;
  }

  nav.main-nav .container {
    display: block;
    padding: 0;
  }

  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  nav.main-nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  nav.main-nav a {
    padding: 15px 60px 15px 25px !important; /* Increased right padding to prevent 's' hitting indicator */
    font-size: 16px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Dropdown in mobile nav */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0;
    box-shadow: none;
    border: none;
    background-color: var(--bg-color);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.active > .dropdown-menu {
    display: block !important;
    max-height: 1000px;
    padding: 10px 0;
    opacity: 1;
    visibility: visible;
  }
  
  .dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .dropdown-menu a {
    padding: 12px 40px !important; /* Indent for children */
    font-size: 14px !important;
    background: var(--bg-color);
  }

  nav.main-nav a {
    display: flex;
    align-items: center;
    padding: 15px 60px 15px 20px !important; /* Increased right padding */
    width: 100%;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    pointer-events: auto !important;
  }

  .mobile-controls {
    padding: 20px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
  }

  .mobile-controls .controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .mobile-controls .theme-toggle, 
  .mobile-controls .layout-toggle {
    width: 100%;
    justify-content: center;
    padding: 12px;
    background: var(--surface-color);
  }

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

  .hero {
    height: auto;
    min-height: 350px;
    margin-top: 10px;
  }
  
  .hero-content {
    margin: 20px;
    padding: 30px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }

  /* Grid/Flex Container Fixes */
  .cart-container, 
  .product-details-container,
  .auth-container,
  .dashboard-grid,
  .dashboard-container,
  .checkout-wrapper,
  .order-item,
  .order-header,
  .cards-wrapper,
  .choice-container {
    flex-direction: column !important;
    display: flex !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .order-item > div[style*="width: 200px"],
  .order-item > div[style*="width:200px"] {
    width: 100% !important;
  }

  .cart-items, .cart-summary, .product-images, .product-info {
    width: 100% !important;
    flex: none !important;
  }

  .cart-summary {
    position: static !important;
  }

  .product-card-img {
    height: 180px;
  }

  /* Table Responsiveness */
  .custom-table, .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .logo span {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 300px;
  }
  
  .hero h1 {
    font-size: 24px;
  }

  .hero-content {
    margin: 10px;
    padding: 20px;
  }

  .section-title {
    font-size: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item img {
    width: 100%;
    height: 200px;
  }

  .qty-controls {
    justify-content: center;
    margin-bottom: 10px;
  }

  .chat-window {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }

  .chat-button {
    bottom: 20px;
    right: 20px;
  }
}

/* Blog Preview Section */
.blog-preview-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-preview-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.blog-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-preview-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-preview-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-preview-tag {
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.blog-preview-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-preview-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  flex: 1;
}

.blog-preview-link {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
}

.blog-preview-link:hover {
  text-decoration: underline;
}

/* Blog Page Specific Styles */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: center;
}

.category-chip {
  padding: 8px 20px;
  border-radius: 30px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.category-chip:hover, .category-chip.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.mobile-controls {
  display: none;
}

@media (max-width: 768px) {
  .mobile-controls {
    display: block;
  }
}
/* Reviews Styling */
.reviews-summary {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  padding: 30px;
  background: var(--surface-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.review-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

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

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

.review-rating {
  color: #f59e0b;
  font-size: 16px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.review-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.stars {
  color: #f59e0b;
  cursor: pointer;
  user-select: none;
}

.stars span {
  transition: color 0.2s;
}

.stars span:hover,
.stars span.active {
  color: #f59e0b;
}
/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--surface-color);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  animation: toast-in 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--error-color); }
.toast.info { border-left-color: var(--accent-primary); }

.toast i { font-size: 20px; }
.toast.success i { color: var(--success-color); }
.toast.error i { color: var(--error-color); }

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-fade-out {
  opacity: 0;
  transform: translateX(20px);
}

/* Search Highlights */
.search-highlight {
  background-color: #fef08a;
  color: #1e293b;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  margin: 40px 0;
}

.empty-state i {
  font-size: 64px;
  color: var(--text-secondary);
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* --- IMPROVEMENTS: CART DRAWER --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: var(--surface-color);
    z-index: 10001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

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

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

.cart-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.drawer-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.drawer-item-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.cart-drawer-footer {
    padding: 25px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.drawer-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent-hover);
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    background: linear-gradient(135deg, var(--accent-primary), #1e40af);
    color: white;
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 20px;
    text-align: center;
}

.newsletter-content h2 { font-size: 32px; margin-bottom: 10px; }
.newsletter-content p { opacity: 0.9; margin-bottom: 30px; }

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
}

.newsletter-form button {
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    background: #000;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover { background: #333; }


/* --- NEWSLETTER SUCCESS STATE --- */
.newsletter-success-state {
  animation: fadeInScale 0.5s ease-out;
  color: white;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

#unsubscribe-btn:hover {
  background: white !important;
  color: var(--accent-primary) !important;
  transition: all 0.3s ease;
}


/* NEXARCART_GLOBAL_WIDGET_FIX_V4 */
.back-to-top {
  bottom: 105px;
  left: 30px;
  right: auto;
}
[dir="rtl"] .back-to-top {
  left: auto;
  right: 30px;
}
.chat-widget {
  bottom: 30px;
  right: 30px;
}
[dir="rtl"] .chat-widget {
  right: auto;
  left: 30px;
}
@media (max-width: 480px) {
  .chat-window {
    width: min(340px, calc(100vw - 30px));
    height: 430px;
  }
  .chat-widget {
    right: 15px;
    bottom: 20px;
  }
  [dir="rtl"] .chat-widget {
    left: 15px;
    right: auto;
  }
  .back-to-top {
    left: 15px;
    bottom: 92px;
  }
  [dir="rtl"] .back-to-top {
    right: 15px;
    left: auto;
  }
}

  

  /* Toast Notification System */
  #toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
  }

  [dir="rtl"] #toast-container {
    right: auto;
    left: 20px;
  }

  .toast {
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--accent-primary);
    pointer-events: auto;
    max-width: 350px;
    font-weight: 500;
  }

  [dir="rtl"] .toast {
    transform: translateX(-120%);
    border-left: none;
    border-right: 4px solid var(--accent-primary);
  }

  .toast.show {
    transform: translateX(0);
    opacity: 1;
  }

  .toast-success { border-color: var(--success-color); }
  .toast-error { border-color: var(--error-color); }
  .toast-info { border-color: var(--accent-primary); }

  .toast i { font-size: 20px; }
  .toast-success i { color: var(--success-color); }
  .toast-error i { color: var(--error-color); }
  .toast-info i { color: var(--accent-primary); }

  /* Sticky Add to Cart Bar */
  .sticky-add-to-cart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .sticky-add-to-cart.visible {
    transform: translateY(0);
  }

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

  .sticky-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .sticky-product-info img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
  }

  .sticky-product-text h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
  }

  .sticky-product-text div {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 15px;
  }

  @media (max-width: 600px) {
    .sticky-product-text h4 {
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 150px;
    }
    .sticky-add-to-cart .btn {
      padding: 8px 15px !important;
      font-size: 14px;
    }
  }





  /* Eye-catching & Attention Grabbers */
  @keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  }

  .pulse-attention {
    animation: pulse-glow 2s infinite;
  }

  .nav-premium-link {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white !important;
    padding: 5px 15px !important;
    border-radius: 20px;
    animation: pulse-glow 3s infinite;
  }

  .badge {
    animation: pulse-glow 2s infinite;
  }

  /* Shimmer effect for titles */
  @keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
  }

  .shimmer-text {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
  }


  /* Dynamic Eye-Catching Effects */
  .logo span {
    background: linear-gradient(90deg, var(--accent-primary), #fbbf24, var(--accent-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    display: inline-block;
  }

  @keyframes shimmer {
    to { background-position: 200% center; }
  }

  /* Floating animation for special icons */
  .floating-attention {
    animation: floating 3s ease-in-out infinite;
  }

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

  /* Pulsing button for attention */
  .pulse-btn {
    animation: pulse-red 2s infinite;
  }

  @keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
  }


  /* --- FINAL TOUCHES --- */

  /* 1. Scroll Progress Bar */
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), #fbbf24);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
  }

  /* 2. Modern Toast Notifications */
  .toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  [dir="rtl"] .toast-container {
    right: auto;
    left: 30px;
  }

  .toast {
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 250px;
  }

  [dir="rtl"] .toast {
    border-left: none;
    border-right: 4px solid var(--accent-primary);
    transform: translateX(-120%);
  }

  .toast.active {
    transform: translateX(0);
  }

  .toast i {
    font-size: 20px;
    color: var(--accent-primary);
  }

  /* 3. Smooth Selection */
  ::selection {
    background: var(--accent-primary);
    color: white;
  }

  /* 4. Global Smooth Scroll */
  html {
    scroll-behavior: smooth;
  }

