/* CSS variables for a premium, cohesive look */
:root {
  --primary: #FF6B00;
  --primary-hover: #E05A00;
  --primary-light: #FFF0E5;
  
  --gold: #bf953f;
  --gold-hover: #b38728;
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 30%, #b38728 70%, #aa771c 100%);
  
  --dark-slate: #2a231d;
  --slate-800: #3d3228;
  --slate-700: #59493b;
  --slate-500: #877464;
  --slate-100: #f4ede1;
  
  --bg: #FAF7F2;
  --card-bg: #FFFFFF;
  
  --whatsapp: #25D366;
  --whatsapp-hover: #20BA5A;
  --telegram: #0088cc;
  --telegram-hover: #0077b3;
  --phone: #0ea5e9;
  --phone-hover: #0284c7;
  
  --border: #ebd9c8;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  --shadow-sm: 0 1px 3px 0 rgba(180, 140, 80, 0.05), 0 1px 2px -1px rgba(180, 140, 80, 0.05);
  --shadow-md: 0 4px 8px -1px rgba(180, 140, 80, 0.08), 0 2px 4px -2px rgba(180, 140, 80, 0.06);
  --shadow-lg: 0 10px 18px -3px rgba(180, 140, 80, 0.1), 0 4px 6px -4px rgba(180, 140, 80, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(180, 140, 80, 0.12), 0 8px 10px -6px rgba(180, 140, 80, 0.08);
  
  --font: 'Cairo', Tahoma, Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--dark-slate);
  line-height: 1.6;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Body state when side-panel drawer is active */
body.panel-active {
  overflow: hidden;
}

/* ==========================================
   Premium Hero Section
   ========================================== */
/* ==========================================
   Visual Hero Banner Section
   ========================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 540px;
  height: clamp(520px, 48.5vw, 680px);
  background-color: #FAF7F2;
  background-image: url('../images/yehia-hero-banner.png');
  background-image: image-set(
    url('../images/yehia-hero-banner.webp') type('image/webp'),
    url('../images/yehia-hero-banner.png') type('image/png')
  );
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(180, 140, 80, 0.08);
  border-bottom: 3px solid #dfb76c;
}

/* Multi-stop Feathered Gradient to seamlessly blend the image edge into the background */
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  background: linear-gradient(
    to right,
    #FAF7F2 0%,
    #FAF7F2 26%,
    rgba(250, 247, 242, 0.98) 36%,
    rgba(250, 247, 242, 0.88) 46%,
    rgba(250, 247, 242, 0.55) 58%,
    rgba(250, 247, 242, 0.2) 68%,
    transparent 78%
  );
  pointer-events: none;
  z-index: 1;
}

body.dark-theme .hero-overlay {
  background: linear-gradient(
    to right,
    #14110F 0%,
    #14110F 26%,
    rgba(20, 17, 15, 0.98) 36%,
    rgba(20, 17, 15, 0.88) 46%,
    rgba(20, 17, 15, 0.55) 58%,
    rgba(20, 17, 15, 0.2) 68%,
    transparent 78%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 480px;
  margin-right: auto;
  margin-left: 2%;
  text-align: right;
  direction: rtl;
}

/* Beautiful Animated Typography */
.hero-animated-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #2a231d 0%, #b38728 35%, #2a231d 70%, #d4af37 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 5s ease-in-out infinite alternate;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(191, 149, 63, 0.2));
}

@keyframes titleShimmer {
  0% {
    background-position: 0% 50%;
    transform: translateY(0);
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
    transform: translateY(-3px);
  }
}

body.dark-theme .hero-animated-title {
  background: linear-gradient(135deg, #fdfaf3 0%, #f6e27a 30%, #ecdcb9 65%, #bf953f 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.8));
}

/* Typewriter Blinking Cursor */
.typewriter-cursor {
  display: inline-block;
  color: #bf953f;
  -webkit-text-fill-color: #bf953f !important;
  font-weight: 300;
  margin-right: 2px;
  animation: typewriterBlink 0.8s step-end infinite;
  vertical-align: baseline;
}

@keyframes typewriterBlink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.hero-banner-subtitle {
  font-size: 15.5px;
  font-weight: 700;
  color: #68594b;
  margin-bottom: 25px;
  line-height: 1.6;
}

body.dark-theme .hero-banner-subtitle {
  color: #d6ccbe;
}

/* ==========================================
   Search Box Inside Hero
   ========================================== */
.search-container-wrapper {
  width: 100%;
  max-width: 500px;
}

.search-box {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid #dfb76c;
  border-radius: 50px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 6px 22px rgba(191, 149, 63, 0.15);
}

body.dark-theme .search-box {
  background-color: rgba(39, 34, 30, 0.95);
  border-color: rgba(191, 149, 63, 0.6);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.search-box:focus-within {
  border-color: #b38728;
  box-shadow: 0 8px 30px rgba(191, 149, 63, 0.35);
  transform: translateY(-2px);
  background-color: #ffffff;
}

body.dark-theme .search-box:focus-within {
  background-color: #27221e;
  border-color: #fcf6ba;
}

.search-box input {
  background: none;
  border: none;
  color: #2a231d;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 700;
  width: 100%;
  outline: none;
  padding: 6px 0;
}

body.dark-theme .search-box input {
  color: #fdfaf3;
}

.search-box input::placeholder {
  color: #9a8a7c;
  opacity: 0.9;
}

body.dark-theme .search-box input::placeholder {
  color: #a89a8c;
}

.search-icon {
  width: 22px;
  height: 22px;
  color: #b38728;
  flex-shrink: 0;
}



.clear-search-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  transition: var(--transition);
}

.clear-search-btn:hover {
  color: #ffffff;
}

/* ==========================================
   Main Section Header & Grid
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  box-sizing: border-box;
  flex: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
}

.section-header h2 {
  font-size: 25px;
  font-weight: 800;
  color: var(--dark-slate);
  position: relative;
  display: inline-block;
}

.section-header h2::before, .section-header h2::after {
  content: '⚜';
  color: #bf953f;
  font-size: 18px;
  margin: 0 12px;
  vertical-align: middle;
  opacity: 0.85;
}

.title-bar {
  width: 70px;
  height: 4px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 12px auto 0 auto;
  box-shadow: 0 2px 6px rgba(191, 149, 63, 0.3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ==========================================
   Product Category Card (Square Modern Luxury)
   ========================================== */
.product {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 8px 8px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(180, 140, 80, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(191, 149, 63, 0.22);
  border-color: #bf953f;
}

.product:hover::before {
  opacity: 1;
}

/* Clean Enlarged Category Image (No outer frame - Name is on the picture) */
.product-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 7px;
  position: relative;
  background: #faf7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: none !important;
  background-image: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.product:hover .product-image-wrapper {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  display: block;
}

.product:hover .product-image {
  transform: scale(1.04);
}

/* Category Title below image (Aesthetic & refined luxury typography) */
.product .title, .product .product-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark-slate, #2A231D);
  text-align: center;
  margin: 7px 0 6px 0;
  line-height: 1.35;
  min-height: 36px;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
  transition: color 0.2s ease;
}

body.dark-theme .product .title, body.dark-theme .product .product-title {
  color: #f7f3ec;
}

.product:hover .title, .product:hover .product-title {
  color: #bf953f;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Actions Bar directly beneath the enlarged image */
.product .product-actions {
  display: flex !important;
  width: 100%;
  margin-top: auto;
}

.card-download-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6.5px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font);
  color: #8b6820;
  background: linear-gradient(135deg, rgba(191, 149, 63, 0.12) 0%, rgba(252, 246, 186, 0.25) 100%);
  border: 1px solid rgba(191, 149, 63, 0.32);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 1px 4px rgba(191, 149, 63, 0.08);
  box-sizing: border-box;
  white-space: nowrap;
}

.card-download-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.card-download-btn:hover {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(191, 149, 63, 0.35);
}

.card-download-btn:hover svg {
  transform: translateY(1.5px);
}

.card-download-btn:active {
  transform: scale(0.97);
}

/* Dark Theme Adjustments for Category Cards */
body.dark-theme .product {
  background-color: #1a1714;
  border-color: rgba(255, 255, 255, 0.07);
}

body.dark-theme .product-image-wrapper {
  background: #141210;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .card-download-btn {
  background: rgba(191, 149, 63, 0.15);
  color: #f6e27a;
  border-color: rgba(191, 149, 63, 0.35);
}

body.dark-theme .card-download-btn:hover {
  background: var(--gold-gradient) !important;
  color: #1a1512 !important;
}

/* ==========================================
   Skeleton loaders (Shimmer Effect)
   ========================================== */
.skeleton {
  pointer-events: none;
  border-color: var(--border);
}

.shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.5s infinite;
}

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

  100% {
    background-position: -200% 0;
  }
}

.skeleton-circle, .skeleton-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  margin-bottom: 10px;
}

.skeleton-text {
  width: 60%;
  height: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.skeleton-button {
  width: 120px;
  height: 32px;
  border-radius: 30px;
}

/* ==========================================
   No Results Card
   ========================================== */
.no-results-card {
  text-align: center;
  background-color: #ffffff;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  max-width: 500px;
  margin: 40px auto;
  box-shadow: var(--shadow-sm);
}

.no-results-card svg {
  color: var(--slate-500);
  margin-bottom: 15px;
}

.no-results-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 6px;
}

.no-results-card p {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 20px;
}

.btn-reset-search {
  font-family: var(--font);
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset-search:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================
   Floating Action Buttons (WhatsApp, Telegram, Phone, Location)
   ========================================== */
.floating-actions {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  z-index: 999;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

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

/* WhatsApp: Elegant Emerald */
.floating-btn.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.floating-btn.whatsapp:hover {
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}

/* Direct Phone Call: Metallic Gold */
.floating-btn.phone {
  background: linear-gradient(135deg, #bf953f 0%, #d4af37 50%, #aa771c 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(191, 149, 63, 0.35);
}
.floating-btn.phone:hover {
  box-shadow: 0 10px 24px rgba(191, 149, 63, 0.55);
}

/* Locations / Branches: Dark Espresso & Gold */
.floating-btn.locations-toggle {
  background: #2a231d;
  color: #f6e27a;
  border: 1.5px solid #bf953f;
  box-shadow: 0 6px 18px rgba(42, 35, 29, 0.35);
}
.floating-btn.locations-toggle:hover {
  background: #3c322a;
  border-color: #f6e27a;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(191, 149, 63, 0.45);
}

/* Telegram: Premium Blue */
.floating-btn.telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.35);
}
.floating-btn.telegram:hover {
  box-shadow: 0 10px 24px rgba(42, 171, 238, 0.55);
}

/* Dark Theme Adjustments for Floating Buttons */
body.dark-theme .floating-btn {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
body.dark-theme .floating-btn.locations-toggle {
  background: #1c1815;
  border-color: #d4af37;
  color: #f6e27a;
}
body.dark-theme .floating-btn.locations-toggle:hover {
  background: #2a231d;
  border-color: #fcf6ba;
}

/* ==========================================
   Maintenance locations drawer panel
   ========================================== */
.locations-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100%;
  background-color: var(--card-bg);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 200;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
  overflow-y: auto;
  border-left: 1px solid var(--border);
}

.locations-panel.open {
  transform: translateX(0);
  visibility: visible;
}

.panel-inner {
  padding: 0 24px 30px 24px;
}

.panel-header {
  position: sticky;
  top: 0;
  background-color: var(--card-bg);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 1.5px solid var(--border);
  padding: 30px 0 15px 0;
}

.panel-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark-slate);
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--slate-500);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

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

.branch-flyer-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.branch-flyer {
  width: 100%;
  display: block;
}

.branch-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
  background-color: #fafbfc;
  transition: var(--transition);
}

.branch-item:hover {
  background-color: #fff;
  border-color: rgba(255, 107, 0, 0.2);
  box-shadow: var(--shadow-md);
}

.branch-meta {
  margin-bottom: 12px;
  text-align: right;
}

.branch-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 4px;
}

.branch-item-address {
  font-size: 12.5px;
  color: var(--slate-500);
  line-height: 1.5;
}

.branch-actions {
  display: flex;
  gap: 8px;
}

.btn-branch {
  flex: 1;
  text-decoration: none;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
  color: #fff;
  font-family: var(--font);
}

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

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

.btn-branch.btn-call {
  background-color: var(--phone);
}

.btn-branch.btn-call:hover {
  background-color: var(--phone-hover);
}

.btn-branch.btn-location {
  background-color: var(--dark-slate);
}

.btn-branch.btn-location:hover {
  background-color: var(--slate-700);
}

.btn-branch svg {
  width: 15px;
  height: 15px;
}

/* ==========================================
   WhatsApp Inquiry Modal
   ========================================== */
.whatsapp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.whatsapp-modal .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
}

.whatsapp-modal .modal-content {
  background-color: var(--card-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  width: 450px;
  max-width: 92vw;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 25px rgba(191, 149, 63, 0.15);
  border: 1px solid rgba(191, 149, 63, 0.45) !important;
  position: relative;
  z-index: 10;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.whatsapp-modal .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(191, 149, 63, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent !important;
}

.whatsapp-modal .modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.whatsapp-modal .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--slate-500);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.whatsapp-modal .close-btn:hover {
  color: #bf953f;
  transform: rotate(90deg);
}

.whatsapp-modal .modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 800;
  color: #bf953f;
}

.form-control {
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: #f8fafc;
  color: var(--dark-slate);
  outline: none;
  width: 100%;
  transition: var(--transition);
  cursor: pointer;
  text-align: right;
  direction: rtl;
}

.form-control:focus {
  border-color: #bf953f !important;
  box-shadow: 0 0 12px rgba(191, 149, 63, 0.45) !important;
  background-color: var(--card-bg);
}

.btn-submit-wa {
  font-family: var(--font);
  background: var(--gold-gradient) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
  width: 100%;
}

.btn-submit-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(191, 149, 63, 0.5);
}

.btn-submit-wa svg {
  width: 20px;
  height: 20px;
}

.btn-wa-channel {
  font-family: var(--font);
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  width: 100%;
  text-decoration: none;
  margin-top: 15px;
  box-sizing: border-box;
}

.btn-wa-channel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  color: #fff !important;
}

.btn-wa-channel svg {
  width: 20px;
  height: 20px;
}

.wa-channel-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 15px 0;
  color: var(--slate-500);
  font-size: 14px;
}

.wa-channel-divider::before, .wa-channel-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.wa-channel-divider:not(:empty)::before {
  margin-right: .5em;
}

.wa-channel-divider:not(:empty)::after {
  margin-left: .5em;
}

/* ==========================================
   Professional Footer Section
   ========================================== */
.footer {
  background-color: #f4ede1;
  color: #68594b;
  padding: 55px 20px 20px 20px;
  margin-top: auto;
  border-top: 3.5px solid #bf953f;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 -4px 20px rgba(180, 140, 80, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(191, 149, 63, 0.2);
}

.footer-about {
  text-align: right;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #bf953f;
}

.footer-logo span {
  font-size: 22px;
  font-weight: 800;
  color: #2a231d;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  color: #68594b;
}

.footer-links,
.footer-contact {
  text-align: right;
}

.footer-links h4,
.footer-contact h4 {
  color: #2a231d;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: #bf953f;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  color: #68594b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: #b38728;
  padding-right: 5px;
}

.footer-contact p {
  font-size: 13.5px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact p strong {
  color: #2a231d;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #8c7a6b;
}

/* ==========================================
   Responsive Adaptations
   ========================================== */
/* Media Queries moved to bottom of file */

/* ==========================================
   Premium UI Enhancements (Yehia Co.)
   ========================================== */

/* Floating Golden Particles Background */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: floatUp 15s linear infinite;
  bottom: -30px; /* Start below the viewport */
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-110vh) translateX(var(--drift, 50px)) scale(1.3);
    opacity: 0;
  }
}

/* Glassmorphic Cards Adjustment */
.product {
  background-color: var(--card-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.product:hover {
  background-color: #ffffff !important;
  border-color: rgba(191, 149, 63, 0.35) !important;
}

/* Sticky top header (Navbar) */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid #dfb76c;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  box-shadow: 0 4px 18px rgba(180, 140, 80, 0.08);
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a231d;
  text-decoration: none;
}

.navbar-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #bf953f;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(191, 149, 63, 0.2);
}

.navbar-title {
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #2a231d 0%, #b38728 50%, #8a6d2b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-install-shortcut {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-install-shortcut:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
  transform: translateY(-1px);
}

.btn-install-shortcut svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.btn-notification-shortcut {
  background: var(--gold-gradient) !important;
  border: none !important;
  color: #2a231d !important;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-notification-shortcut:hover {
  box-shadow: 0 0 15px rgba(191, 149, 63, 0.6);
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-notification-shortcut svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Preloader Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FAF7F2;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid #fff;
  box-shadow: 0 0 25px rgba(191, 149, 63, 0.45);
  animation: logoPulse 1.8s infinite alternate ease-in-out;
  z-index: 10;
}

.loader-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  animation: rotateRing 2.2s linear infinite;
}

.loader-dot {
  position: absolute;
  background: var(--gold-gradient);
  border-radius: 50%;
  box-shadow: 0 0 15px #bf953f, 0 0 5px rgba(252, 246, 186, 0.8);
  transform: translate(-50%, -50%);
  transform-origin: center;
}

/* Placement of 8 rotating dots (staggered size and opacity to form a premium glowing tail) */
.loader-dot:nth-child(1) {
  top: 0%;
  left: 50%;
  width: 13px;
  height: 13px;
  opacity: 1;
}

.loader-dot:nth-child(2) {
  top: 14.6%;
  left: 85.4%;
  width: 11.5px;
  height: 11.5px;
  opacity: 0.9;
}

.loader-dot:nth-child(3) {
  top: 50%;
  left: 100%;
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

.loader-dot:nth-child(4) {
  top: 85.4%;
  left: 85.4%;
  width: 8.5px;
  height: 8.5px;
  opacity: 0.7;
}

.loader-dot:nth-child(5) {
  top: 100%;
  left: 50%;
  width: 7px;
  height: 7px;
  opacity: 0.55;
}

.loader-dot:nth-child(6) {
  top: 85.4%;
  left: 14.6%;
  width: 6px;
  height: 6px;
  opacity: 0.4;
}

.loader-dot:nth-child(7) {
  top: 50%;
  left: 0%;
  width: 5px;
  height: 5px;
  opacity: 0.25;
}

.loader-dot:nth-child(8) {
  top: 14.6%;
  left: 14.6%;
  width: 4px;
  height: 4px;
  opacity: 0.15;
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes logoPulse {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 12px rgba(191, 149, 63, 0.35);
  }

  100% {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(191, 149, 63, 0.8);
  }
}

/* Dynamic Main Categories Tabs */
.main-categories-container {
  margin: 10px auto 25px auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 12px;
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .main-categories-container {
    text-align: right;
  }
}

.main-categories-container::-webkit-scrollbar {
  display: none;
}

.main-categories-tabs {
  display: inline-flex;
  gap: 12px;
  padding: 4px 10px;
  direction: rtl;
}

.tab-pill {
  font-family: var(--font);
  background-color: var(--card-bg);
  color: var(--slate-700);
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tab-pill-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  vertical-align: middle;
  transition: transform 0.25s ease;
}

.tab-pill:hover .tab-pill-icon svg {
  transform: scale(1.15);
}

.tab-pill-text {
  line-height: 1.2;
}

.tab-pill:hover {
  border-color: #bf953f;
  color: #b38728;
  background-color: rgba(191, 149, 63, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(191, 149, 63, 0.2);
}

.tab-pill.active {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(191, 149, 63, 0.35);
  transform: translateY(-2px);
}

/* Branches section separation */
.branch-section-title {
  margin: 25px 0 12px 0;
  padding-right: 8px;
  text-align: right;
  border-right: 3.5px solid #bf953f;
}

.branch-section-title h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--dark-slate);
}

/* Install Tooltip Pointer */
.install-pointer-tooltip {
  position: fixed;
  top: 70px;
  left: 20px;
  background-color: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  z-index: 1010;
  direction: rtl;
  box-shadow: var(--shadow-lg);
  animation: bounceTooltip 1.6s infinite;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.install-pointer-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.install-pointer-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 32px;
  border: 8px solid transparent;
  border-bottom-color: var(--primary);
}

@keyframes bounceTooltip {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Install Prompt Notification Banner */
.install-notification {
  position: fixed;
  bottom: -180px;
  left: 24px;
  max-width: 370px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--border);
  padding: 18px;
  z-index: 2000;
  direction: rtl;
  transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-notification.show {
  bottom: 24px;
}

@media (max-width: 480px) {
  .install-notification {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

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

.install-noti-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark-slate);
  display: flex;
  align-items: center;
  gap: 6px;
}

.install-noti-title svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.install-noti-close {
  background: none;
  border: none;
  color: var(--slate-500);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.install-noti-close:hover {
  color: var(--primary);
}

.install-noti-body {
  font-size: 12.5px;
  color: var(--slate-700);
  line-height: 1.6;
}

.install-noti-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-noti-install {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
}

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

/* Add Shortcut Modal Instructions */
.install-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.install-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 14, 12, 0.75);
  backdrop-filter: blur(8px);
}

.install-modal-content {
  position: relative;
  z-index: 10;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 92vw;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  direction: rtl;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.install-modal-header {
  padding: 16px 20px;
  background-color: var(--slate-100);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.install-modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-slate);
}

.install-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--slate-500);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

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

.install-modal-body {
  padding: 20px;
}

.install-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.install-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--slate-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.install-tab-btn:hover {
  color: var(--primary);
}

.install-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.install-step-panel {
  display: none;
}

.install-step-panel.active {
  display: block;
}

.install-step {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.install-step-num {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13.5px;
  flex-shrink: 0;
}

.install-step-text {
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.6;
  text-align: right;
}

.install-step-text strong {
  color: #bf953f;
  font-weight: 800;
}

.install-icon-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  color: #bf953f;
  margin: 0 4px;
}

/* ==========================================
   Responsive Adaptations (Placed at the bottom to ensure correct specificity override)
   ========================================== */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
  }

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

  .footer-about {
    grid-column: span 2 !important;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 10px 16px !important;
  }

  .navbar-logo {
    width: 32px !important;
    height: 32px !important;
  }

  .navbar-title {
    font-size: 12.5px !important;
  }

  .btn-refresh-app {
    height: 32px !important;
    padding: 0 9px !important;
    gap: 4px !important;
    margin-left: 4px !important;
    width: auto !important;
  }

  .btn-refresh-app .btn-refresh-app-text {
    font-size: 11px !important;
  }

  .btn-refresh-app svg {
    width: 15px !important;
    height: 15px !important;
  }

  .btn-install-shortcut {
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .btn-install-shortcut span {
    display: none !important;
  }

  .btn-notification-shortcut {
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .btn-notification-shortcut span {
    display: none !important;
  }

  .hero-section {
    min-height: auto !important;
    height: auto !important;
    background-size: 100% auto !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-color: #FAF7F2 !important;
    padding: calc(50vw + 20px) 16px 25px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  body.dark-theme .hero-section {
    background-color: #14110F !important;
  }

  .hero-overlay {
    display: block !important;
    inset: 0 !important;
    width: 100% !important;
    height: calc(50vw + 15px) !important;
    background: linear-gradient(to bottom, transparent 60%, rgba(250, 247, 242, 0.8) 85%, #FAF7F2 100%) !important;
    pointer-events: none !important;
  }

  body.dark-theme .hero-overlay {
    display: block !important;
    background: linear-gradient(to bottom, transparent 60%, rgba(20, 17, 15, 0.8) 85%, #14110F 100%) !important;
  }

  .hero-content {
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .hero-animated-title {
    font-size: 24px !important;
    margin-bottom: 8px !important;
  }

  .hero-banner-subtitle {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }

  .search-container-wrapper {
    max-width: 100% !important;
  }

  .container {
    padding: 0 10px !important;
    margin: 22px auto 38px auto !important;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .product {
    padding: 6px 6px 9px 6px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
  }

  .product-image-wrapper, .skeleton-circle, .skeleton-square {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    margin-bottom: 5px !important;
    border: none !important;
  }

  .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .product .title, .product .product-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--dark-slate, #2A231D) !important;
    text-align: center !important;
    margin: 5px 0 6px 0 !important;
    min-height: 32px !important;
    line-height: 1.3 !important;
    padding: 0 2px !important;
  }

  body.dark-theme .product .title, body.dark-theme .product .product-title {
    color: #f7f3ec !important;
  }

  .product-actions {
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .card-download-btn {
    width: 100% !important;
    font-size: 10.5px !important;
    padding: 4.5px 6px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }

  .card-download-btn svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  .new-badge, .badge-custom {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    font-size: 8px !important;
    padding: 2px 6px !important;
  }

  .locations-panel {
    width: 100% !important;
    right: 0 !important;
    transform: translateX(100%) !important;
  }

  .locations-panel.open {
    transform: translateX(0) !important;
  }

  .floating-btn {
    width: 48px !important;
    height: 48px !important;
  }

  .floating-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  .floating-actions {
    bottom: 20px !important;
    right: 20px !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .top-navbar {
    padding: 8px 12px !important;
  }

  .navbar-title {
    font-size: 11px !important;
  }

  .hero-section {
    min-height: auto !important;
    height: auto !important;
    padding: calc(50vw + 15px) 12px 20px 12px !important;
  }

  .hero-animated-title {
    font-size: 20px !important;
  }

  .container {
    padding: 0 8px !important;
    margin: 15px auto 30px auto !important;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .product {
    padding: 5px 5px 8px 5px !important;
    border-radius: 11px !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
  }

  .new-badge, .badge-custom {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    font-size: 7px !important;
    padding: 1.5px 4px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  }

  .product-image-wrapper, .skeleton-circle, .skeleton-square {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    border: none !important;
    margin-bottom: 4px !important;
  }

  .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .product .title, .product .product-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--dark-slate, #2A231D) !important;
    text-align: center !important;
    margin: 4px 0 5px 0 !important;
    line-height: 1.25 !important;
    min-height: 28px !important;
    padding: 0 2px !important;
  }

  body.dark-theme .product .title, body.dark-theme .product .product-title {
    color: #f7f3ec !important;
  }

  .product-actions {
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .card-download-btn {
    width: 100% !important;
    font-size: 9.5px !important;
    padding: 4px 4px !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    box-sizing: border-box !important;
  }

  .card-download-btn span {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .card-download-btn svg {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
  }

  .catalog-download-badge {
    font-size: 8.5px !important;
    padding: 2.5px 5px !important;
  }

  .footer {
    padding: 40px 15px 20px 15px !important;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .footer-about {
    grid-column: span 1 !important;
  }

  .floating-btn {
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  }

  .floating-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  .floating-actions {
    bottom: 16px !important;
    right: 16px !important;
    gap: 8px !important;
  }
}

/* ==========================================
   Dark Mode & New UI Additions
   ========================================== */

/* Dark Mode Toggle Button */
.btn-dark-mode-toggle {
  background: rgba(191, 149, 63, 0.08);
  border: 1.5px solid rgba(191, 149, 63, 0.35);
  color: #8a6d2b;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  box-shadow: 0 2px 8px rgba(191, 149, 63, 0.1);
  flex-shrink: 0;
}

.btn-dark-mode-toggle:hover {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(191, 149, 63, 0.35);
  transform: translateY(-1px);
}

.btn-dark-mode-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transition: transform 0.4s ease;
}

.btn-dark-mode-toggle:hover svg {
  transform: rotate(20deg);
}

/* Refresh / Save for Offline App Button */
.btn-refresh-app {
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: #059669;
  height: 38px;
  padding: 0 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-refresh-app:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-refresh-app svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform 0.4s ease;
}

.btn-refresh-app.spinning svg {
  animation: spinRefresh 1s linear infinite;
}

@keyframes spinRefresh {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Connection Status Banner */
.offline-banner {
  position: fixed;
  top: -60px; /* Hidden initially, slides down */
  left: 0;
  width: 100%;
  height: 48px;
  background: rgba(239, 68, 68, 0.9); /* Crimson red glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
  direction: rtl;
}

.offline-banner.show {
  transform: translateY(60px); /* Slide down below the header */
}

.offline-banner.online {
  background: rgba(16, 185, 129, 0.9); /* Emerald green glass */
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.offline-banner-icon {
  font-size: 16px;
  animation: pulseWarning 1.5s infinite alternate ease-in-out;
}

@keyframes pulseWarning {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

/* Dark Theme Variables Override (Warm Espresso Charcoal & Gold - Zero Navy Blue) */
body.dark-theme {
  --bg: #171311;
  --card-bg: #25201c;
  --border: #3d352e;
  --dark-slate: #f7f3ec;
  --slate-700: #d6ccbe;
  --slate-500: #a89a8c;
  --slate-100: #2d2621;
}

body.dark-theme {
  background-color: var(--bg);
}

/* Dark Theme Top Navbar */
body.dark-theme .top-navbar {
  background-color: rgba(22, 18, 16, 0.96) !important;
  border-bottom: 2px solid #bf953f !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

body.dark-theme .navbar-brand {
  color: #f7f3ec !important;
}

body.dark-theme .navbar-title {
  background: linear-gradient(135deg, #fdfaf3 0%, #f6e27a 50%, #bf953f 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.dark-theme .btn-dark-mode-toggle {
  background: rgba(252, 246, 186, 0.1);
  border-color: rgba(246, 226, 122, 0.4);
  color: #f6e27a;
}

body.dark-theme .btn-dark-mode-toggle:hover {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #171311;
}

body.dark-theme .btn-refresh-app {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

body.dark-theme .btn-refresh-app:hover {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Dark Theme Hero Container & Section Header */
body.dark-theme .hero-section {
  background-color: #14110F !important;
  border-bottom: 3px solid #bf953f !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .section-header h2 {
  color: #f7f3ec !important;
}

/* Dark Theme Product Cards */
body.dark-theme .product {
  background-color: #25201c !important;
  border-color: rgba(191, 149, 63, 0.28) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.dark-theme .product:hover {
  background-color: #2f2722 !important;
  border-color: #bf953f !important;
  box-shadow: 0 12px 28px rgba(191, 149, 63, 0.22);
}

body.dark-theme .product-image-wrapper {
  background-color: #1c1815 !important;
  border-color: rgba(191, 149, 63, 0.3) !important;
}

body.dark-theme .product .title {
  color: #f7f3ec !important;
}

body.dark-theme .catalog-download-badge {
  background-color: rgba(45, 38, 33, 0.9) !important;
  color: #d6ccbe !important;
  border-color: rgba(191, 149, 63, 0.4) !important;
}

/* Dark Theme Panels & Branches */
body.dark-theme .no-results-card,
body.dark-theme .locations-panel,
body.dark-theme .panel-header {
  background-color: #241f1b;
  border-color: #3d352e;
}

body.dark-theme .branch-item {
  background-color: #2a2420;
  border-color: #3d352e;
}

body.dark-theme .branch-item:hover {
  background-color: #332c26;
  border-color: #bf953f;
}

body.dark-theme .whatsapp-modal .modal-content,
body.dark-theme .whatsapp-modal .modal-header,
body.dark-theme .pdf-modal-content,
body.dark-theme .pdf-modal-header {
  background-color: #241f1b;
  border-color: #3d352e;
}

body.dark-theme .form-control {
  background-color: #1c1815;
  border-color: #3d352e;
  color: #fff;
}

body.dark-theme .close-btn {
  color: #d6ccbe;
}

/* Dark Theme Tab Pills */
body.dark-theme .tab-pill {
  background-color: #25201c;
  border-color: #3d352e;
  color: #d6ccbe;
}

body.dark-theme .tab-pill:hover {
  background-color: rgba(191, 149, 63, 0.15);
  border-color: #bf953f;
  color: #f6e27a;
}

body.dark-theme .tab-pill.active {
  background: var(--gold-gradient) !important;
  color: #171311 !important;
  font-weight: 800 !important;
  border-color: transparent !important;
}

/* Dark Theme Footer */
body.dark-theme .footer {
  background-color: #151210 !important;
  border-top: 3.5px solid #bf953f !important;
  color: #b5a796 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .footer-logo span,
body.dark-theme .footer-links h4,
body.dark-theme .footer-contact h4,
body.dark-theme .footer-contact p strong {
  color: #f7f3ec !important;
}

body.dark-theme .footer-about p,
body.dark-theme .footer-contact p,
body.dark-theme .footer-bottom p {
  color: #a89a8c !important;
}

body.dark-theme .footer-links ul li a {
  color: #b5a796 !important;
}

body.dark-theme .footer-links ul li a:hover {
  color: #f6e27a !important;
}

body.dark-theme .footer-container {
  border-bottom: 1px solid rgba(191, 149, 63, 0.25) !important;
}

/* Card Actions Container */
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* Circular Share Button on Card */
.btn-share-card {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.btn-share-card:hover {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(191, 149, 63, 0.3);
  transform: scale(1.05);
}

body.dark-theme .btn-share-card {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border-color: var(--border);
}

body.dark-theme .btn-share-card:hover {
  background: var(--gold-gradient);
  color: #fff;
}

/* Speed Dial Container & Menu */
.speed-dial-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speed-dial-menu {
  position: absolute;
  bottom: 65px; /* Positions it right above the main button */
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.speed-dial-container.open .speed-dial-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Individual rising bubble buttons */
.speed-dial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.speed-dial-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(191, 149, 63, 0.6);
}

.speed-dial-btn svg {
  width: 20px;
  height: 20px;
}

/* Tooltip for name label */
.speed-dial-label {
  position: absolute;
  right: 55px; /* pop to the left of the button since buttons are on the right */
  background-color: rgba(26, 21, 18, 0.95);
  border: 1px solid rgba(191, 149, 63, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(191, 149, 63, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  direction: rtl;
}

.speed-dial-btn:hover .speed-dial-label {
  opacity: 1;
  transform: translateX(0);
}

/* Rotating main button icon when open */
.speed-dial-container.open .floating-btn.whatsapp svg {
  transform: rotate(135deg);
}

.floating-btn.whatsapp svg {
  transition: transform 0.3s ease;
}

/* Pulsing Gold Glow on Search Focus */
.search-box {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-box:focus-within {
  border-color: #bf953f !important;
  box-shadow: 0 0 15px rgba(191, 149, 63, 0.6) !important;
  animation: searchGlowPulse 1.5s infinite alternate ease-in-out;
}

@keyframes searchGlowPulse {
  0% {
    box-shadow: 0 0 8px rgba(191, 149, 63, 0.3);
  }
  100% {
    box-shadow: 0 0 18px rgba(191, 149, 63, 0.7);
  }
}

/* Search word highlight */
.search-highlight {
  color: #bf953f !important;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(191, 149, 63, 0.2);
}

@media (max-width: 480px) {
  .product-actions {
    gap: 6px !important;
  }
  .btn-share-card {
    width: 32px !important;
    height: 32px !important;
  }
  .btn-share-card svg {
    width: 14px !important;
    height: 14px !important;
  }
  .speed-dial-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .speed-dial-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  .speed-dial-menu {
    bottom: 55px !important;
  }
  .speed-dial-label {
    right: 48px !important;
  }
  .section-header h2 {
    font-size: 18px !important;
  }
  .section-header h2::before, .section-header h2::after {
    content: '' !important;
    margin: 0 !important;
  }
}

/* ==========================================
   Grid & List View Switcher
   ========================================== */
.view-toggle-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 30px auto;
  direction: rtl;
}

.btn-view-toggle {
  font-family: var(--font);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--slate-700);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.btn-view-toggle:hover {
  border-color: #bf953f;
  color: #bf953f;
  background-color: rgba(191, 149, 63, 0.05);
}

.btn-view-toggle.active {
  background: var(--gold-gradient);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(191, 149, 63, 0.3);
}

body.dark-theme .btn-view-toggle {
  background-color: #25201c;
  border-color: #3d352e;
  color: #d6ccbe;
}

body.dark-theme .btn-view-toggle:hover {
  background-color: rgba(191, 149, 63, 0.15);
  border-color: #bf953f;
  color: #f6e27a;
}

/* ==========================================
   List View Layout Overrides
   ========================================== */
.grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.grid.list-view .product {
  flex-direction: row-reverse !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 24px !important;
  width: 100% !important;
  text-align: right !important;
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius-md) !important;
  gap: 15px;
}

.grid.list-view .product:hover {
  border-color: rgba(191, 149, 63, 0.4) !important;
  box-shadow: 0 6px 15px rgba(191, 149, 63, 0.1) !important;
}

.grid.list-view .product::before {
  display: none !important;
}

.grid.list-view .product-image-wrapper {
  width: 60px !important;
  height: 60px !important;
  margin-bottom: 0 !important;
  border-width: 2px !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}

.grid.list-view .product .title {
  font-size: 16px !important;
  margin-bottom: 0 !important;
  flex-grow: 1 !important;
  text-align: right !important;
}

.grid.list-view .product-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 0 !important;
  margin-right: auto !important;
}

.grid.list-view .catalog-download-badge {
  padding: 7px 14px !important;
  font-size: 12px !important;
}

/* Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(191, 149, 63, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

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

.back-to-top:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(191, 149, 63, 0.6);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* New/Updated Badge */
.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(191, 149, 63, 0.4);
  z-index: 5;
  animation: badgeGlow 2s infinite alternate;
  direction: rtl;
}

.updated-badge {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4) !important;
  animation: badgeBlueGlow 2s infinite alternate !important;
}

@keyframes badgeGlow {
  0% {
    box-shadow: 0 4px 8px rgba(191, 149, 63, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.7);
    transform: scale(1.05);
  }
}

@keyframes badgeBlueGlow {
  0% {
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.7);
    transform: scale(1.05);
  }
}

/* Custom Badges and Animations */
.badge-custom {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 5;
  direction: rtl;
  letter-spacing: 0.5px;
}

.grid.list-view .badge-custom {
  position: static !important;
  margin-left: 10px !important;
  flex-shrink: 0;
  animation: none !important;
  box-shadow: none !important;
}

/* 1. جديد (Pulse Glow) */
.badge-custom-new {
  background: var(--gold-gradient);
  box-shadow: 0 4px 10px rgba(191, 149, 63, 0.4);
  animation: badgeNewPulse 1.8s infinite ease-in-out;
}
@keyframes badgeNewPulse {
  0% { transform: scale(1); box-shadow: 0 4px 10px rgba(191, 149, 63, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 4px 20px rgba(191, 149, 63, 0.8); }
  100% { transform: scale(1); box-shadow: 0 4px 10px rgba(191, 149, 63, 0.4); }
}

/* 2. أسعار جديدة (Shimmer Sweep) */
.badge-custom-prices {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0284c7 100%);
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.4);
  overflow: hidden;
}
.badge-custom-prices::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.6);
  transform: rotate(30deg);
  animation: badgeShimmerSweep 2.5s infinite linear;
}
@keyframes badgeShimmerSweep {
  0% { left: -60%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

/* 3. تخفيضات (Shake / Flash Red) */
.badge-custom-discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  animation: badgeDiscountFlash 2.5s infinite ease-in-out;
}
@keyframes badgeDiscountFlash {
  0%, 100% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.06); }
  50% { transform: scale(0.96) rotate(-3deg); }
  55% { transform: scale(1.06) rotate(3deg); }
  60% { transform: scale(1) rotate(-3deg); }
  65% { transform: scale(1) rotate(0deg); }
}

/* 4. حصري (Rotational Golden Stars / Purple Sparkle) */
.badge-custom-exclusive {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: badgeExclusiveRainbow 3s infinite alternate;
}
@keyframes badgeExclusiveRainbow {
  0% { box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4); }
  100% { box-shadow: 0 4px 18px rgba(139, 92, 246, 0.8), 0 0 10px rgba(255, 215, 0, 0.5); }
}

/* 5. الأكثر طلباً (Heartbeat Heart) */
.badge-custom-trending {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
  animation: badgeTrendingBeat 1.4s infinite;
}
@keyframes badgeTrendingBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}

/* 6. عرض خاص (Neon Glow Pulse) */
.badge-custom-special {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
  animation: badgeSpecialGlow 2s infinite ease-in-out;
}
@keyframes badgeSpecialGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(236, 72, 153, 0.6)); }
  50% { filter: drop-shadow(0 0 10px rgba(236, 72, 153, 1)); }
}

.grid.list-view .new-badge {
  position: static !important;
  margin-left: 10px !important;
  flex-shrink: 0;
  animation: none !important;
  box-shadow: none !important;
}

/* ==========================================
   Glowing Cards (بديل الشارات لحماية الصور من التغطية)
   ========================================== */
.product.product-glowing {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* 1. توهج ذهبي فخم (جديد ✨ وحصري 👑) */
.product.product-glow-gold {
  border: 1.5px solid rgba(223, 183, 108, 0.85) !important;
  box-shadow: 0 0 15px rgba(223, 183, 108, 0.35), 0 4px 12px rgba(180, 140, 80, 0.1) !important;
  animation: cardGlowGold 2.6s infinite ease-in-out;
}
@keyframes cardGlowGold {
  0%, 100% {
    box-shadow: 0 0 12px rgba(223, 183, 108, 0.3), 0 4px 12px rgba(180, 140, 80, 0.08);
    border-color: rgba(223, 183, 108, 0.65) !important;
  }
  50% {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.7), 0 0 8px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 215, 0, 1) !important;
  }
}
.product.product-glow-gold:hover {
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.85), 0 8px 24px rgba(245, 158, 11, 0.25) !important;
}

/* 2. توهج سماوي نيون (أسعار جديدة 🏷️) */
.product.product-glow-cyan {
  border: 1.5px solid rgba(6, 182, 212, 0.85) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35), 0 4px 12px rgba(6, 182, 212, 0.1) !important;
  animation: cardGlowCyan 2.6s infinite ease-in-out;
}
@keyframes cardGlowCyan {
  0%, 100% {
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3), 0 4px 12px rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.65) !important;
  }
  50% {
    box-shadow: 0 0 22px rgba(6, 182, 212, 0.7), 0 0 8px rgba(56, 189, 248, 0.5);
    border-color: rgba(56, 189, 248, 1) !important;
  }
}
.product.product-glow-cyan:hover {
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.85), 0 8px 24px rgba(6, 182, 212, 0.25) !important;
}

/* 3. توهج أحمر ناري (تخفيضات 💥 وعرض خاص 🎁) */
.product.product-glow-red {
  border: 1.5px solid rgba(239, 68, 68, 0.85) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35), 0 4px 12px rgba(239, 68, 68, 0.1) !important;
  animation: cardGlowRed 2.2s infinite ease-in-out;
}
@keyframes cardGlowRed {
  0%, 100% {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3), 0 4px 12px rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.65) !important;
  }
  50% {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.7), 0 0 8px rgba(248, 113, 113, 0.5);
    border-color: rgba(248, 113, 113, 1) !important;
  }
}
.product.product-glow-red:hover {
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.85), 0 8px 24px rgba(239, 68, 68, 0.25) !important;
}

/* 4. توهج زمردي لامع (الأكثر طلباً 🔥) */
.product.product-glow-emerald {
  border: 1.5px solid rgba(16, 185, 129, 0.85) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35), 0 4px 12px rgba(16, 185, 129, 0.1) !important;
  animation: cardGlowEmerald 2.6s infinite ease-in-out;
}
@keyframes cardGlowEmerald {
  0%, 100% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.65) !important;
  }
  50% {
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.7), 0 0 8px rgba(52, 211, 153, 0.5);
    border-color: rgba(52, 211, 153, 1) !important;
  }
}
.product.product-glow-emerald:hover {
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.85), 0 8px 24px rgba(16, 185, 129, 0.25) !important;
}

/* Mobile search focus collapse animations for Hero */
.hero-section {
  transition: padding 0.4s ease, height 0.4s ease, min-height 0.4s ease;
}

.hero-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.search-focused .hero-content .logo-wrapper,
body.search-focused .hero-content .company-title,
body.search-focused .hero-content .company-subtitle,
body.search-focused .hero-content .company-tagline {
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  body.search-focused .hero-section {
    padding: 15px 0 !important;
  }
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Floating Bell Button Styles */
.floating-btn.bell {
  background: var(--gold-gradient) !important;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.floating-btn.bell:hover {
  box-shadow: 0 10px 24px rgba(191, 149, 63, 0.55);
}

/* Notification Tooltip Pointer */
.notification-pointer-tooltip {
  position: fixed;
  top: 70px;
  left: 60px; /* Aligns with the notification button in header */
  background: var(--gold-gradient);
  color: #2a231d;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  z-index: 1010;
  direction: rtl;
  box-shadow: 0 4px 15px rgba(191, 149, 63, 0.4);
  animation: bounceTooltip 1.6s infinite;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.notification-pointer-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.notification-pointer-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 32px;
  border: 7px solid transparent;
  border-bottom-color: #bf953f; /* Gold arrow pointing up */
}

@media (max-width: 768px) {
  .notification-pointer-tooltip {
    left: 45px; /* Adjust left for mobile layout */
  }
  
  /* Mobile search focus - Hide top navbar and raise search */
  body.search-focused .top-navbar {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
  }
  body.search-focused {
    padding-top: 0 !important;
  }
  body.search-focused .hero-section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 0 !important;
  }
}

/* ==========================================
   Action Center Banner (PWA & Notifications)
   ========================================== */
.action-banner {
  position: fixed;
  top: -250px; /* Hidden initially, slides down */
  left: 24px;
  width: 400px;
  max-width: calc(100vw - 48px);
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(191, 149, 63, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(191, 149, 63, 0.15);
  padding: 20px;
  z-index: 1200;
  direction: rtl;
  transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.action-banner.show {
  top: 85px;
}

.action-banner-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  color: var(--slate-500);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.action-banner-close:hover {
  color: #bf953f;
  transform: scale(1.15);
}

.action-banner-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-banner-title svg {
  width: 20px;
  height: 20px;
  color: #bf953f;
  filter: drop-shadow(0 0 5px rgba(191, 149, 63, 0.4));
}

.action-banner-title h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.action-banner-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  text-align: right;
}

.action-banner-actions {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.btn-action-banner {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
  border: none;
}

.btn-action-banner-install {
  background: var(--gold-gradient);
  color: #2a231d;
  box-shadow: 0 4px 10px rgba(191, 149, 63, 0.25);
}

.btn-action-banner-install:hover {
  box-shadow: 0 4px 18px rgba(191, 149, 63, 0.5);
  transform: translateY(-2px);
}

.btn-action-banner-notify {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.25);
}

.btn-action-banner-notify:hover {
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.5);
  transform: translateY(-2px);
}

.btn-action-banner svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Float actions slide-up animation trigger */
.floating-actions {
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2) !important;
}

@media (max-width: 768px) {
  .action-banner {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    padding: 16px;
  }
  
  .action-banner.show {
    top: 80px;
  }
}

@media (max-width: 480px) {
  .action-banner {
    left: 10px;
    right: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }
  
  .action-banner.show {
    top: 75px;
  }
  
  .action-banner-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================
   Mandatory PWA & Notification Lock Overlay Styles
   ========================================== */
body.locked {
  overflow: hidden !important;
  height: 100vh !important;
}

.lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lock-card {
  position: relative;
  background: rgba(32, 27, 24, 0.92);
  border: 1.5px solid rgba(191, 149, 63, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(191, 149, 63, 0.2);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 35px 25px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: #fff;
  direction: rtl;
  animation: lockFadeIn 0.5s ease-out;
  box-sizing: border-box;
}

.lock-overlay-close {
  position: absolute;
  top: 15px;
  left: 18px;
  background: none;
  border: none;
  color: #ef4444;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.lock-overlay-close:hover {
  color: #ff6b6b;
  transform: scale(1.15);
  text-shadow: 0 0 12px rgba(255, 107, 107, 0.5);
}

.lock-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2.5px solid #bf953f;
  box-shadow: 0 0 20px rgba(191, 149, 63, 0.5);
  margin-bottom: 15px;
  object-fit: cover;
  cursor: pointer;
}

.lock-title {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px 0;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lock-subtitle {
  font-family: var(--font);
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 25px 0;
}

.lock-content-unified {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 10px 0 25px 0;
  text-align: center;
}

.lock-desc-unified {
  font-family: var(--font);
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.btn-lock-action-unified {
  background: var(--gold-gradient);
  color: #2a231d;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-lock-action-unified:hover {
  box-shadow: 0 6px 20px rgba(191, 149, 63, 0.5);
  transform: translateY(-2px);
}

.btn-lock-action-unified:active {
  transform: translateY(0);
}

.ios-lock-notice {
  font-family: var(--font);
  font-size: 12.5px;
  color: #fca5a5;
  line-height: 1.5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  text-align: right;
}

.ios-lock-notice strong {
  color: #ef4444;
}

.ios-alert-banner {
  font-family: var(--font);
  font-size: 13px;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: right;
}

.ios-alert-banner strong {
  color: #fbbf24;
}

.lock-footer {
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 15px;
}

.lock-footer-note {
  font-family: var(--font);
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

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

/* ==========================================
   PWA Installation Guide Modal (iOS/Safari & Android)
   ========================================== */
.install-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000; /* Higher than lock-overlay (99999) to display on top on iOS */
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.install-modal.open {
  display: flex;
}

.install-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.install-modal-content {
  position: relative;
  background: rgba(32, 27, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(191, 149, 63, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(191, 149, 63, 0.25);
  border-radius: 24px;
  width: 90%;
  max-width: 480px;
  color: #fff;
  direction: rtl;
  overflow: hidden;
  animation: modalFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.install-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.install-modal-header h3 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.install-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.install-modal-close:hover {
  color: #bf953f;
  transform: scale(1.15);
}

.install-modal-body {
  padding: 24px;
}

.install-tabs {
  display: flex;
  background: rgba(24, 20, 17, 0.7);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid rgba(191, 149, 63, 0.2);
}

.install-tab-btn {
  flex: 1;
  border: none;
  background: none;
  color: #94a3b8;
  font-family: var(--font);
  padding: 8px 12px;
  border-radius: 25px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.install-tab-btn.active {
  background: var(--gold-gradient);
  color: #2a231d;
  box-shadow: 0 4px 10px rgba(191, 149, 63, 0.25);
}

.install-step-panel {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.install-step-panel.active {
  display: flex;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: 12px;
}

.install-step-num {
  background: var(--gold-gradient);
  color: #2a231d;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(191, 149, 63, 0.3);
}

.install-step-text {
  font-family: var(--font);
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.6;
}

.install-step-text strong {
  color: #bf953f;
  font-weight: 800;
}

.install-icon-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 6px;
  color: #bf953f;
  margin: 0 2px;
  vertical-align: middle;
}

/* Premium Category Image Loading & Fade-in Styles */
.product-image-wrapper {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.product-image-wrapper.image-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(191, 149, 63, 0.15), transparent);
  animation: imageShimmer 1.5s infinite;
  transform: translateX(-100%);
}

@keyframes imageShimmer {
  100% {
    transform: translateX(100%);
  }
}

.product-image-wrapper.image-loading .product-image {
  opacity: 0;
}

.product-image {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

/* Premium Glassmorphic Offline Sync Progress Card */
.sync-progress-card {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(42, 35, 29, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(191, 149, 63, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 320px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100px);
  opacity: 0;
}

.sync-progress-card.show {
  transform: translateY(0);
  opacity: 1;
}

.sync-progress-icon {
  background: var(--gold-gradient);
  color: #2a231d;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(191, 149, 63, 0.4);
}

.sync-progress-icon svg {
  width: 22px;
  height: 22px;
  animation: downloadBounce 2s infinite ease-in-out;
}

@keyframes downloadBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.sync-progress-details {
  flex: 1;
}

.sync-progress-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: right;
}

.sync-progress-bar-container {
  background: rgba(255, 255, 255, 0.15);
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.sync-progress-bar {
  background: var(--gold-gradient);
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.3s ease-out;
}

.sync-progress-status {
  font-size: 11.5px;
  color: #cbd5e1;
  text-align: right;
  direction: rtl;
}

@media (max-width: 480px) {
  .sync-progress-card {
    width: calc(100% - 40px);
    left: 20px;
    bottom: 95px;
  }
}

/* ==========================================
   Card Highlight Pulse for Notification Deep Links
   ========================================== */
@keyframes cardHighlightPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(223, 183, 108, 0.9);
  }
  25% {
    transform: scale(1.07);
    box-shadow: 0 0 35px 8px rgba(223, 183, 108, 0.9), 0 0 15px rgba(255, 215, 0, 0.8);
    border-color: #ffd700 !important;
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 25px 4px rgba(223, 183, 108, 0.7);
  }
  75% {
    transform: scale(1.06);
    box-shadow: 0 0 30px 6px rgba(223, 183, 108, 0.85);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(180, 140, 80, 0.1);
  }
}
.card-highlight-pulse {
  animation: cardHighlightPulse 3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 20 !important;
}