/* ═══════════════════════════════════════════
   CapKit Souq — Styles
   Palette: Obsidian • Gold • Silver • Blue
   ═══════════════════════════════════════════ */

:root {
  --obsidian: #0a0a0a;
  --obsidian-2: #111111;
  --obsidian-3: #181818;
  --obsidian-4: #1f1f1f;
  --gold: #c9a961;
  --gold-light: #e8d5a0;
  --gold-dark: #a08143;
  --text-primary: #f5f0e8;
  --text-secondary: #8a8578;
  --text-muted: #8a857c;
  --border: rgba(201, 169, 97, 0.12);
  --border-light: rgba(201, 169, 97, 0.25);
  --success: #4ade80;
  --accent: #f97316;
  --blue: #3b82f6;
  --danger: #ef4444;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-top {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.logo {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Tajawal', sans-serif;
  color: var(--gold);
  font-size: 1rem;
}

.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-top: -2px;
  font-family: 'Tajawal', sans-serif;
}

.search-wrapper {
  flex: 1;
  max-width: 420px;
  display: flex;
  justify-content: flex-start;
}

.search-btn-main {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: right;
  transition: all 0.3s;
}

.search-btn-main:hover {
  border-color: var(--gold);
  color: var(--text-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-toggle {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-primary {
  background: var(--gold);
  color: var(--obsidian);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover {
  border-color: var(--border);
  color: var(--gold);
}

/* ═══ HERO ═══ */
.hero {
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201, 169, 97, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid var(--border-light);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 16px;
}

.hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero p {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══ DRAWER ═══ */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--obsidian-2);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

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

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--obsidian-2);
  flex-shrink: 0;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
}

.drawer-close:hover {
  background: var(--obsidian-3);
  color: var(--gold);
}

.drawer-title {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ═══ DRAWER TABS ═══ */
.drawer-tabs {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tab {
  flex: 1;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab.active {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
  font-weight: 700;
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: var(--obsidian);
  min-height: 44px;
  flex-shrink: 0;
}

.bc-item {
  cursor: pointer;
  transition: color 0.3s;
}

.bc-item:hover {
  color: var(--gold);
}

.bc-home {
  color: var(--gold);
}

.bc-current {
  color: var(--gold);
  font-weight: 700;
  cursor: default;
}

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

/* ═══ TREE ═══ */
.tree-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.tree-list {
  list-style: none;
}

.tree-item {
  border-bottom: 1px solid var(--border);
}

.tree-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 20px;
  color: var(--text-primary);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.92rem;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.tree-btn:hover {
  background: var(--obsidian-3);
  color: var(--gold);
  padding-right: 24px;
}

.tree-btn-all {
  background: rgba(201, 169, 97, 0.05);
  color: var(--gold);
  font-weight: 700;
}

.tree-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tree-name {
  flex: 1;
}

.tree-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s;
  flex-shrink: 0;
}

.tree-btn:hover .tree-arrow {
  color: var(--gold);
  transform: translateX(-4px);
}

/* ═══ OVERLAY ═══ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

/* ═══ SEARCH DRAWER ═══ */
.search-tabs {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.search-tab {
  flex: 1;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.search-tab.active {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
  font-weight: 700;
}

.search-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
}

.search-input {
  width: 100%;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.3s;
}

.search-input:focus {
  border-color: var(--gold);
}

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

.search-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-btn {
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-search-submit {
  background: var(--gold);
  color: var(--obsidian);
  border: none;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  margin-top: auto;
}

.btn-search-submit:hover {
  background: var(--gold-light);
}

/* ═══ SCROLLBAR ═══ */
.tree-container::-webkit-scrollbar,
.drawer::-webkit-scrollbar {
  width: 6px;
}

.tree-container::-webkit-scrollbar-track,
.drawer::-webkit-scrollbar-track {
  background: var(--obsidian);
}

.tree-container::-webkit-scrollbar-thumb,
.drawer::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

/* ═══ MOBILE ═══ */
@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
  .drawer { max-width: 100%; }
  
  .navbar-top {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  
  .search-wrapper {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }
  
  .nav-actions {
    margin-right: 0;
  }
  
  .hero {
    padding: 40px 16px 30px;
  }
}

@media (max-width: 500px) {
  .nav-icon-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  
  .drawer-tabs,
  .search-tabs {
    padding: 10px 12px;
  }
  
  .tab, .search-tab {
    font-size: 0.72rem;
    padding: 8px 4px;
  }
    } 
/* ═══ CATEGORY CHIPS (Legacy Fallback) ═══ */
.category-bar {
  background: var(--obsidian-2);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.cat-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.cat-item {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.cat-item:hover {
  background: var(--obsidian-3);
  color: var(--gold);
}

/* ═══ GOVERNEATE STRIP ═══ */
.governorates {
  padding: 20px 20px 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.gov-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.gov-scroll::-webkit-scrollbar { display: none; }

.gov-chip {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gov-chip:hover,
.gov-chip.active {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
}

.section-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
}

.section-link {
  color: var(--gold-light); /* 13.6:1 على الخلفية الداكنة (كان gold = 8.8 لكن الخلفيات المتدرجة تُربك الفحص) */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.section-link:hover { opacity: 0.7; }

/* ═══ PRODUCTS GRID ═══ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--obsidian-3), #0d0d0d);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

.product-emblem {
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5f0e8 0%, #c4c4c4 25%, #6a6a6a 55%, #2a2a2a 85%);
  box-shadow:
    inset 0 4px 12px rgba(255,255,255,0.4),
    inset 0 -8px 16px rgba(0,0,0,0.6),
    0 15px 30px rgba(0,0,0,0.6);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: rgba(0,0,0,0.5);
  font-weight: 700;
  transition: transform 0.5s;
}

.product-card:hover .product-emblem {
  transform: scale(1.05) rotate(-3deg);
}

.product-emblem.gold {
  background: radial-gradient(circle at 35% 30%, #f5e8c0 0%, #c9a961 25%, #8b7434 55%, #3a2f0a 85%);
}

.product-emblem.copper {
  background: radial-gradient(circle at 35% 30%, #f5d5b8 0%, #c97a4a 25%, #7a4520 55%, #2f1a0a 85%);
}

.product-emblem.service {
  background: radial-gradient(circle at 35% 30%, #7dd3fc 0%, #0ea5e9 25%, #0369a1 55%, #082f49 85%);
  color: rgba(255,255,255,0.7);
}

.badge-original {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--obsidian);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 700;
  z-index: 3;
  letter-spacing: 0.05em;
}

.badge-service {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blue);
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 700;
  z-index: 3;
}

.product-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
  flex-wrap: wrap;
}

.workshop-name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.verified { color: var(--success); font-size: 0.68rem; }

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.product-price {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.product-price small {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.product-price.service-price {
  color: var(--blue);
  font-size: 0.92rem;
}

.btn-wa {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
  white-space: nowrap;
}

.btn-wa:hover {
  background: var(--success);
  color: var(--obsidian);
}

/* ═══ SERVICES SECTION ═══ */
.services-section {
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.03), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 20px;
}

.services-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 32px;
}

.services-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.services-header h2 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.services-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ═══ ORIGINALS SECTION ═══ */
.originals {
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.04), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 20px;
}

.originals-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.originals-header {
  text-align: center;
  margin-bottom: 32px;
}

.originals-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--obsidian);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.originals-header h2 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.originals-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ═══ WORKSHOPS ═══ */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.workshop-card {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: all 0.4s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.workshop-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.workshop-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--obsidian);
  font-weight: 700;
}

.workshop-avatar.blue {
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  color: white;
}

.workshop-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.workshop-cat {
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.workshop-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.workshop-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.workshop-stats strong {
  color: var(--gold);
  display: block;
  font-size: 0.88rem;
  font-family: 'Tajawal', sans-serif;
}

/* ═══ CTA ═══ */
.cta-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201, 169, 97, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.cta-inner h2 em { color: var(--gold); font-style: italic; }

.cta-inner p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══ Site Footer (Auto-injected) ═══ */
.site-footer {
  background: var(--obsidian-2);
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
  margin-top: 40px;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
}

.site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Tajawal', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.site-footer .footer-brand .logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
}

.site-footer .footer-brand .logo-sub {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: -2px;
}

.site-footer .footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.9;
  max-width: 320px;
  margin-top: 12px;
}

.site-footer .footer-col h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 500;
}

.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-col li {
  margin-bottom: 12px;
}

.site-footer .footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
  font-family: 'Tajawal', sans-serif;
}

.site-footer .footer-col a:hover {
  color: var(--gold);
}

.site-footer .footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.site-footer .footer-legal {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.3s;
}

.site-footer .footer-legal a:hover {
  color: var(--gold);
}

.site-footer .footer-legal span {
  color: var(--text-muted);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .site-footer .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 40px 16px 24px;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer .footer-brand {
    grid-column: span 1;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ ACCESSIBILITY ═══ */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ═══ MOBILE ENHANCEMENTS ═══ */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .product-info { padding: 10px; }
  .product-title { font-size: 0.82rem; }
  .product-desc { font-size: 0.7rem; }
  .product-price { font-size: 0.95rem; }
  .product-emblem { font-size: 1.4rem; }
  
  .workshops-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .workshop-avatar { width: 48px; height: 48px; font-size: 1.2rem; }
  .workshop-card h3 { font-size: 0.85rem; }
  .workshop-card { padding: 16px 10px; }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .footer-brand { grid-column: span 2; }
  
  .section { padding: 30px 16px; }
  .section-title { font-size: 1.15rem; }
  
  .services-section,
  .originals {
    padding: 40px 16px;
  }
}

@media (max-width: 380px) {
  .cat-bar-inner { gap: 4px; }
  .cat-item { padding: 6px 10px; font-size: 0.75rem; }
  .products-grid { gap: 8px; }
}

/* ═══ PRINT ═══ */
@media print {
  .navbar, .drawer, .overlay, footer { display: none; }
  body { background: white; color: black; }
}

/* ═══ CapKit Co. Banner ═══ */
.capkit-co-banner {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

.capkit-co-card {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.12), rgba(201, 169, 97, 0.04));
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.capkit-co-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15), transparent 70%);
  pointer-events: none;
  transition: transform 0.6s;
}

.capkit-co-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.capkit-co-card:hover::before {
  transform: scale(1.2);
}

.capkit-co-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(201, 169, 97, 0.3);
}

.capkit-co-card-text {
  flex: 1;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.capkit-co-card-text h2 {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capkit-co-card-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.capkit-co-card-arrow {
  color: var(--gold);
  font-size: 1.8rem;
  flex-shrink: 0;
  transform: scaleX(-1);
  transition: transform 0.3s;
  position: relative;
  z-index: 2;
}

.capkit-co-card:hover .capkit-co-card-arrow {
  transform: scaleX(-1) translateX(-6px);
}

@media (max-width: 600px) {
  .capkit-co-banner {
    margin: 20px auto;
  }
  
  .capkit-co-card {
    padding: 20px;
    gap: 14px;
  }
  
  .capkit-co-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  
  .capkit-co-card-text h3 {
    font-size: 1.05rem;
  }
  
  .capkit-co-card-text p {
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
  }
  
  .capkit-co-card-arrow {
    font-size: 1.5rem;
  }
   }
/* ═══ RTL FIXES ═══ */
[dir="rtl"] .tree-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .tree-btn:hover .tree-arrow {
  transform: scaleX(-1) translateX(-4px);
}
/* ═══ User Menu (Navbar) ═══ */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-btn {
  background: var(--obsidian-2);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 6px 14px 6px 8px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s;
}

.user-btn:hover {
  border-color: var(--gold);
  background: var(--obsidian-3);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.user-name {
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  color: var(--gold);
  font-size: 0.7rem;
  margin-right: -2px;
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--obsidian-2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  z-index: 2000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Tajawal', sans-serif;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: right;
}

.user-dropdown-item:hover {
  background: var(--obsidian-3);
  color: var(--gold);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.user-logout {
  color: #fca5a5;
}

.user-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

@media (max-width: 900px) {
  .user-name {
    max-width: 80px;
  }
  .user-btn {
    padding: 5px 8px;
  }
}
/* ═══ Like Button ═══ */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.like-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.like-btn.liked {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.like-btn .heart {
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.like-btn:hover .heart {
  transform: scale(1.2);
}

.like-btn.liked .heart {
  animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.like-btn .count {
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.like-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ═══ Share Dialog ═══ */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.share-overlay.active {
  opacity: 1;
}

.share-dialog {
  background: var(--obsidian-2);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.share-overlay.active .share-dialog {
  transform: translateY(0);
}

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

.share-header h3 {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 700;
}

.share-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.3s;
}

.share-close:hover {
  background: var(--obsidian-3);
  color: var(--gold);
}

/* ═══ Share Options Grid ═══ */
.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  transition: all 0.3s;
}

.share-option:hover {
  transform: translateY(-3px);
  color: var(--text-primary);
}

.share-option.whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
}

.share-option.facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: #1877f2;
}

.share-option.twitter:hover {
  background: rgba(29, 161, 242, 0.15);
  border-color: #1da1f2;
}

.share-option.telegram:hover {
  background: rgba(0, 136, 204, 0.15);
  border-color: #0088cc;
}

.share-icon {
  font-size: 1.6rem;
}

/* ═══ Copy URL Row ═══ */
.share-copy {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-copy input {
  flex: 1;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  outline: none;
  direction: ltr;
}

.share-copy-btn {
  background: var(--gold);
  color: var(--obsidian);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.share-copy-btn:hover {
  background: var(--gold-light);
}

/* ═══ Native Share ═══ */
.share-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.share-native-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 14px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s;
}

.share-native-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══ Toast ═══ */
.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gold);
  color: var(--obsidian);
  padding: 14px 24px;
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 500px) {
  .share-options {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ═══ Comments Section ═══ */
.comments-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

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

.comments-title {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-title .count {
  color: var(--gold);
  font-family: 'Tajawal', sans-serif;
}

/* ═══ Comment Form ═══ */
.comment-form {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.comment-form textarea {
  width: 100%;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border 0.3s;
}

.comment-form textarea:focus {
  border-color: var(--gold);
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-form .char-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.comment-form .char-count.warning {
  color: #f59e0b;
}

.comment-form .char-count.danger {
  color: #ef4444;
}

.comment-submit {
  background: var(--gold);
  color: var(--obsidian);
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s;
}

.comment-submit:hover {
  background: var(--gold-light);
}

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

/* ═══ Login Prompt ═══ */
.comment-login-prompt {
  background: var(--obsidian-2);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.comment-login-prompt p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.comment-login-prompt a {
  display: inline-block;
  background: var(--gold);
  color: var(--obsidian);
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s;
}

.comment-login-prompt a:hover {
  background: var(--gold-light);
}

/* ═══ Comments List ═══ */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-card {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  animation: fadeUp 0.4s ease;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--obsidian);
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Amiri', serif;
}

.comment-meta {
  flex: 1;
  min-width: 0;
}

.comment-author {
  color: var(--text-primary);
  font-family: 'Amiri', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.comment-author a {
  color: inherit;
  text-decoration: none;
}

.comment-author a:hover {
  color: var(--gold);
}

.comment-date {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.comment-content {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.comment-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s;
}

.comment-action-btn:hover {
  background: var(--obsidian-3);
  color: var(--text-primary);
}

.comment-action-btn.delete:hover {
  color: #ef4444;
}

.comment-action-btn.report:hover {
  color: #f59e0b;
}

/* ═══ Empty / Loading ═══ */
.comments-empty,
.comments-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comments-loading {
  color: var(--gold);
}

/* ═══ Mobile ═══ */
@media (max-width: 600px) {
  .comments-section {
    margin-top: 30px;
    padding-top: 25px;
  }

  .comments-title {
    font-size: 1.2rem;
  }

  .comment-card {
    padding: 14px;
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .comment-author {
    font-size: 0.9rem;
  }

  .comment-content {
    font-size: 0.88rem;
  }
}
/* ═══ Star Rating ═══ */
.star-rating {
  display: flex;
  gap: 4px;
  align-items: center;
  direction: ltr;
}

.star {
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  line-height: 1;
}

.star.filled {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

.star:hover {
  transform: scale(1.2);
}

.star.readonly {
  cursor: default;
  font-size: 1.2rem;
}

.star.readonly:hover {
  transform: none;
}

/* ═══ Rating Section ═══ */
.rating-section {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.rating-section-title {
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.rating-prompt {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.rating-comment-input {
  width: 100%;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  min-height: 70px;
  margin-top: 12px;
  transition: border 0.3s;
}

.rating-comment-input:focus {
  border-color: var(--gold);
}

.rating-submit-btn {
  background: var(--gold);
  color: var(--obsidian);
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s;
}

.rating-submit-btn:hover {
  background: var(--gold-light);
}

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

/* ═══ Rating Summary ═══ */
.rating-summary {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(201, 169, 97, 0.02));
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rating-big {
  font-family: 'Tajawal', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.rating-stars-big {
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ═══ Rating Card ═══ */
.rating-card {
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.rating-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rating-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--obsidian-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rating-info {
  flex: 1;
  min-width: 0;
}

.rating-info h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.rating-info .meta {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.rating-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 8px;
}

/* ═══ Mobile ═══ */
@media (max-width: 600px) {
  .star {
    font-size: 1.5rem;
  }
  
  .star.readonly {
    font-size: 1rem;
  }
  
  .rating-big {
    font-size: 2.2rem;
  }
}
/* ═══ Inline Star Rating (كروت المنتجات/الخدمات) ═══ */
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.82rem;
  color: #c9a961;
  margin: 4px 0 2px 0;
  font-weight: 500;
}

.card-rating .star-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.card-rating .avg {
  color: #c9a961;
  font-weight: 600;
}

.card-rating .count {
  color: #888;
  font-size: 0.72rem;
}
/* ═══ تصحيح القائمة المنسدلة للحساب للهواتف (User Menu Responsive Fix) ═══ */
@media (max-width: 768px) {
  .user-menu-dropdown, 
  .dropdown-menu,
  #userMenuDropdown {
    position: fixed !important;
    top: 65px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important;
    border-radius: 14px !important;
    z-index: 99999 !important;
    background: #ffffff !important;
  }
}

/* ═══ تصميم عداد الزوار اللحظي (Live Visitor Counter) ═══ */
.live-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: #065f46;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.counter-text .separator {
  margin: 0 6px;
  color: #cbd5e1;
}
.card-rating.no-rating {
  color: #666;
  font-size: 0.72rem;
  opacity: 0.7;
}

/* ═══ الظهور التدريجي — CSS فقط (بدل JS الذي كان يخفي المحتوى بعد رسمه) ═══ */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .section,
  .services-section,
  .originals,
  .cta-section {
    animation: ck-fade-up 0.55s ease both;
  }
}

@keyframes ck-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ═══ عنصر مقروء للقارئات فقط (لتصحيح ترتيب العناوين دون تغيير الشكل) ═══ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
