:root {
      --bg-dark:    #0c0b08;
      --bg-card:    #141209;
      --bg-section: #111008;
      --gold:       #c9a84c;
      --gold-light: #e8c56e;
      --gold-dim:   #8a6f2e;
      --cream:      #f0e6cc;
      --cream-dim:  #b8a882;
      --white:      #faf7f0;
      --border:     rgba(201,168,76,0.18);
      --navbar-h:   72px;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: var(--bg-dark); color: var(--cream); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 17px; line-height: 1.7; overflow-x: hidden; }
    body.ar { font-family: 'Tajawal', sans-serif; direction: rtl; }
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--bg-dark); }
    ::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

    /* ─── NAVBAR ─── */
    #navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--navbar-h); display: flex; align-items: center; padding: 0 40px; background: rgba(12,11,8,0.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
    .nav-inner { width: 100%; max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .nav-logo img { height: 44px; width: auto; }
    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a { color: var(--cream-dim); text-decoration: none; font-family: 'Cormorant Garamond', serif; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.2s; }
    .nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
    .nav-right { display: flex; align-items: center; gap: 16px; }
    .lang-btn { background: transparent; border: 1px solid var(--border); color: var(--cream-dim); padding: 6px 14px; font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; border-radius: 2px; }
    .lang-btn:hover { border-color: var(--gold); color: var(--gold-light); }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
    .hamburger span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: all 0.3s; }
    .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    #mobile-menu { display: none; position: fixed; top: var(--navbar-h); left: 0; right: 0; background: rgba(12,11,8,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 999; padding: 24px 40px 32px; }
    #mobile-menu.open { display: block; }
    #mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
    #mobile-menu a { color: var(--cream-dim); text-decoration: none; font-size: 20px; transition: color 0.2s; }
    #mobile-menu a:hover { color: var(--gold-light); }

    /* ─── PAGE HERO ─── */
    .page-hero {
      height: 400px; margin-top: var(--navbar-h);
      position: relative; overflow: hidden;
      display: flex; align-items: flex-end;
    }
    .hero-bg { position: absolute; inset: 0; background: var(--bg-card); background-size: cover; background-position: center; }
    .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,11,8,1) 0%, rgba(12,11,8,0.5) 60%, rgba(12,11,8,0.2) 100%); }
    .hero-content { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; width: 100%; padding: 0 40px 56px; }
    .section-label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
    body.ar .section-label { letter-spacing: 0; font-family: 'Tajawal', sans-serif; }
    .page-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 12px; }
    body.ar .page-title { font-family: 'Tajawal', sans-serif; }
    .page-desc { font-size: 15px; color: var(--cream-dim); max-width: 560px; line-height: 1.7; }
    body.ar .page-desc { font-family: 'Tajawal', sans-serif; font-size: 14px; }
    .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--cream-dim); margin-top: 16px; }
    .breadcrumb a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
    .breadcrumb a:hover { color: var(--gold-light); }
    .breadcrumb span { opacity: 0.4; }

    /* ─── ALL CATEGORIES BAR ─── */
    .cats-bar {
      background: var(--bg-section);
      border-bottom: 1px solid var(--border);
      padding: 0 40px;
      overflow-x: auto;
    }
    .cats-bar-inner {
      max-width: 1320px; margin: 0 auto;
      display: flex; gap: 0; align-items: center;
    }
    .cat-tab {
      display: flex; align-items: center; gap: 8px;
      padding: 16px 20px; color: var(--cream-dim);
      text-decoration: none; font-size: 13px; letter-spacing: 0.5px;
      border-bottom: 2px solid transparent;
      transition: all 0.2s; white-space: nowrap; cursor: pointer;
    }
    body.ar .cat-tab { font-family: 'Tajawal', sans-serif; font-size: 13px; }
    .cat-tab:hover { color: var(--cream); }
    .cat-tab.active { color: var(--gold-light); border-bottom-color: var(--gold); }
    .cat-tab img { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); }

    /* ─── PRODUCTS AREA ─── */
    .products-area { max-width: 1320px; margin: 0 auto; padding: 56px 40px; }
    .products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
    .products-count { font-size: 13px; color: var(--cream-dim); }
    .products-count span { color: var(--gold-light); }

    /* ─── GRID ─── */
    .products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

    .product-card {
      background: var(--bg-card); border: 1px solid var(--border);
      overflow: hidden; transition: border-color 0.3s, transform 0.3s;
      cursor: pointer; display: flex; flex-direction: column;
    }
    .product-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
    .product-img-wrap { height: 240px; overflow: hidden; background: #1a1710; position: relative; }
    .product-img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 16px; transition: transform 0.5s; }
    .product-card:hover .product-img { transform: scale(1.05); }
    .product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
    .product-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--white); line-height: 1.3; }
    body.ar .product-name { font-family: 'Tajawal', sans-serif; }
    .product-desc { font-size: 13px; color: var(--cream-dim); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
    body.ar .product-desc { font-family: 'Tajawal', sans-serif; }
    .product-link {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      margin-top: 8px; padding: 8px; width: 100%;
      border: 1px solid var(--border); color: var(--gold);
      font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
      text-decoration: none; transition: all 0.2s;
    }
    .product-link:hover { border-color: var(--gold); background: rgba(201,168,76,0.06); }
    body.ar .product-link { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }

    /* ─── PAGINATION ─── */
    .pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
    .page-btn {
      width: 38px; height: 38px; border: 1px solid var(--border);
      background: transparent; color: var(--cream-dim);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 13px; transition: all 0.2s;
      font-family: inherit;
    }
    .page-btn:hover { border-color: var(--gold-dim); color: var(--gold-light); }
    .page-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }
    .page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

    /* ─── EMPTY ─── */
    .empty-state { text-align: center; padding: 80px 20px; }
    .empty-state i { font-size: 2.5rem; color: var(--gold-dim); margin-bottom: 16px; display: block; }
    .empty-state p { color: var(--cream-dim); font-size: 15px; }
    .empty-state a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px; }

    /* ─── SKELETON ─── */
    .skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, #1e1b12 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
    @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

    /* ─── FOOTER ─── */
    footer { background: var(--bg-section); border-top: 1px solid var(--border); padding: 40px; }
    .footer-bottom { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--cream-dim); }

    /* ─── FADE ─── */
    .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
    .fade-in.visible { opacity: 1; transform: none; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 768px) {
      :root { --navbar-h: 60px; }
      #navbar { padding: 0 20px; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .page-hero { height: 300px; }
      .hero-content { padding: 0 20px 36px; }
      .cats-bar { padding: 0 20px; }
      .products-area { padding: 40px 20px; }
      .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    }
    @media (max-width: 480px) {
      .products-grid { grid-template-columns: 1fr; }
    }

select.lang-btn {
  width: 120px !important;
  min-width: 120px !important;
  height: 34px;
  padding: 0 12px;
  color: var(--gold);
  border: 1px solid var(--gold) !important;
  background: rgba(10, 12, 12, 0.55);
  cursor: pointer;
  text-align: center;
}

select.lang-btn option {
  color: #111;
  background: #fff;
}

select.lang-btn:focus,
select.lang-btn:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 1px var(--gold) !important;
  outline: none;
}
