/* ================================================
   دليل الطابعات DZ — Main Stylesheet v3.0
   Design: Navy + Blue + White, Cairo/Tajawal
   ================================================ */

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

:root {
  /* Brand colors — matching reference */
  --navy:    #0d1b3e;
  --navy2:   #162040;
  --blue:    #1a56db;
  --blue2:   #2563eb;
  --blue3:   #3b82f6;
  --sky:     #60a5fa;
  --gold:    #f59e0b;
  --gold2:   #fbbf24;
  --green:   #10b981;
  --red:     #ef4444;
  --surface: #f8fafc;
  --surface2:#f1f5f9;
  --card:    #ffffff;
  --border:  #e2e8f0;
  --border2: #cbd5e1;
  --ink:     #0f172a;
  --ink2:    #1e293b;
  --ink3:    #334155;
  --muted:   #64748b;
  --muted2:  #94a3b8;
  --radius:  10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:  0 4px 16px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --shadow-blue: 0 8px 24px rgba(26,86,219,.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--surface);
  color: var(--ink2);
  direction: rtl;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: 'Tajawal', sans-serif; }

/* ================================================
   HEADER
   ================================================ */
.tdz-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.tdz-header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
/* Logo */
.tdz-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.tdz-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--blue), var(--blue3));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,86,219,.4);
  position: relative;
  overflow: hidden;
}
.tdz-logo-icon::after {
  content: '';
  position: absolute;
  top: -8px; right: -8px;
  width: 20px; height: 20px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
}
.tdz-logo-name {
  font-family: 'Cairo', sans-serif;
  font-size: 1.15rem; font-weight: 900; color: #fff; letter-spacing: -.01em;
}
.tdz-logo-tagline { font-size: .65rem; color: rgba(255,255,255,.4); }

/* Search */
.tdz-search-wrap { flex: 1; max-width: 440px; position: relative; }
.tdz-search-wrap input {
  width: 100%; padding: 9px 16px 9px 42px;
  border-radius: 8px; border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08); color: #fff;
  font-family: 'Tajawal', sans-serif; font-size: .9rem; outline: none;
  transition: all .2s;
}
.tdz-search-wrap input::placeholder { color: rgba(255,255,255,.35); }
.tdz-search-wrap input:focus { background: rgba(255,255,255,.13); border-color: var(--blue3); }
.tdz-search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.4); font-size: .95rem; pointer-events: none;
}
.tdz-search-drop {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg);
  overflow: hidden; display: none; z-index: 600;
  border: 1px solid var(--border);
}
.tdz-search-drop.open { display: block; }
.tdz-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s; text-decoration: none;
}
.tdz-search-item:hover { background: var(--surface); }
.tdz-search-item:last-child { border-bottom: none; }
.tdz-search-item img { width: 38px; height: 34px; object-fit: contain; border-radius: 5px; }
.tdz-si-name { font-size: .88rem; font-weight: 600; color: var(--ink2); }
.tdz-si-price { font-size: .78rem; color: var(--blue2); font-weight: 700; }

/* Nav */
.tdz-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.tdz-nav a {
  color: rgba(255,255,255,.7); padding: 6px 12px; border-radius: 7px;
  font-size: .88rem; font-weight: 500; transition: all .2s; white-space: nowrap;
}
.tdz-nav a:hover, .tdz-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.tdz-nav a.active { color: var(--gold2); }

/* Lang */
.tdz-lang {
  padding: 6px 12px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); background: none;
  font-family: 'Tajawal', sans-serif; font-size: .82rem; cursor: pointer;
  transition: all .2s;
}
.tdz-lang:hover { background: rgba(255,255,255,.08); color: #fff; }
.tdz-hamburger {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.4rem; cursor: pointer; padding: 4px;
}

/* ================================================
   HERO — Two column layout like reference
   ================================================ */
.tdz-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 40%, #1a3a6e 100%);
  padding: 0;
}
.tdz-hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 0; min-height: 340px;
}
.tdz-hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 40px 48px 0; position: relative; z-index: 1;
}
.tdz-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,86,219,.3); border: 1px solid rgba(96,165,250,.3);
  color: var(--sky); padding: 4px 12px; border-radius: 50px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  margin-bottom: 16px; width: fit-content;
}
.tdz-hero h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; color: #fff; line-height: 1.25; margin-bottom: 14px;
}
.tdz-hero p { color: rgba(255,255,255,.6); font-size: .95rem; line-height: 1.7; margin-bottom: 24px; max-width: 460px; }
.tdz-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tdz-btn-primary {
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff; border-radius: 8px; font-weight: 700;
  font-size: .9rem; border: none; cursor: pointer;
  box-shadow: var(--shadow-blue); transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tdz-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26,86,219,.35); }
.tdz-btn-outline {
  padding: 11px 22px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85); border-radius: 8px; font-weight: 600;
  font-size: .9rem; border: 1.5px solid rgba(255,255,255,.2); cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.tdz-btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Hero image panel */
.tdz-hero-img {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.tdz-hero-img img {
  max-height: 320px; object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
  position: relative; z-index: 1;
}
.tdz-hero-img::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(26,86,219,.3) 0%, transparent 70%);
}

/* Hero sidebar — Top this month */
.tdz-hero-sidebar {
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: var(--shadow-md);
  align-self: end;
}
.tdz-hero-layout { display: grid; grid-template-columns: 1fr 340px; gap: 0; }
.tdz-sidebar-title {
  font-family: 'Cairo', sans-serif;
  font-size: .95rem; font-weight: 800; color: var(--ink2);
  display: flex; align-items: center; gap: 6px; margin-bottom: 14px;
}
.tdz-top-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.tdz-top-item:last-child { border-bottom: none; }
.tdz-top-img {
  width: 56px; height: 50px; object-fit: contain; border-radius: 7px;
  background: var(--surface); padding: 4px; border: 1px solid var(--border);
}
.tdz-top-info { flex: 1; }
.tdz-top-name { font-size: .87rem; font-weight: 700; color: var(--ink2); margin-bottom: 3px; }
.tdz-top-stars { display: flex; align-items: center; gap: 4px; }
.tdz-stars { color: var(--gold); font-size: .78rem; }
.tdz-rating { font-size: .75rem; color: var(--muted); }
.tdz-top-price { font-size: .85rem; font-weight: 800; color: var(--blue2); }
.tdz-top-rank {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--blue2); color: #fff;
  font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tdz-top-rank.rank-1 { background: var(--gold); }
.tdz-top-rank.rank-2 { background: var(--ink3); }
.tdz-top-rank.rank-3 { background: var(--muted); }

/* ================================================
   BRANDS BAR
   ================================================ */
.tdz-brands-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.tdz-brands-inner {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; overflow-x: auto;
}
.tdz-brand-logo {
  display: flex; align-items: center; justify-content: center;
  min-width: 90px; opacity: .55; transition: opacity .2s; cursor: pointer;
  filter: grayscale(1);
}
.tdz-brand-logo:hover { opacity: 1; filter: none; }
.tdz-brand-logo span {
  font-family: 'Cairo', sans-serif; font-weight: 900;
  font-size: 1.1rem; letter-spacing: -.02em;
}
.brand-hp    { color: #0096d6; font-size: 1.3rem; }
.brand-canon { color: #cc0000; }
.brand-epson { color: #003087; font-size: 1rem; letter-spacing: .05em; }
.brand-brother { color: #003a70; }
.brand-xerox  { color: #e9001a; }
.brand-lexmark { color: #00843d; font-size: .95rem; }
.brand-kyocera { color: #d40000; font-size: .9rem; }

/* ================================================
   MAIN LAYOUT — 2 col with sidebar
   ================================================ */
.tdz-main {
  max-width: 1280px; margin: 0 auto; padding: 28px 24px;
  display: grid; grid-template-columns: 1fr 300px; gap: 24px;
}
.tdz-content { min-width: 0; }
.tdz-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ================================================
   CATEGORIES GRID
   ================================================ */
.tdz-cats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 28px;
}
.tdz-cat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 16px; border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: all .22s; text-align: center;
  text-decoration: none;
}
.tdz-cat-card:hover { border-color: var(--blue2); transform: translateY(-3px); box-shadow: var(--shadow-blue); }
.tdz-cat-icon {
  width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.cat-home    { background: #dbeafe; }
.cat-office  { background: #d1fae5; }
.cat-student { background: #ede9fe; }
.cat-eco     { background: #fef3c7; }
.tdz-cat-name { font-family: 'Cairo', sans-serif; font-size: .88rem; font-weight: 800; color: var(--ink2); margin-bottom: 4px; }
.tdz-cat-desc { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.tdz-cat-more { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--blue2); font-weight: 600; margin-top: 10px; }

/* ================================================
   SECTION HEADER
   ================================================ */
.tdz-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.tdz-section-title {
  font-family: 'Cairo', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--ink2);
  display: flex; align-items: center; gap: 8px;
}
.tdz-section-title::before {
  content: ''; display: inline-block; width: 3px; height: 18px;
  background: var(--blue2); border-radius: 2px;
}
.tdz-view-all {
  font-size: .82rem; color: var(--blue2); font-weight: 700;
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  text-decoration: none; transition: gap .15s;
}
.tdz-view-all:hover { gap: 8px; }

/* ================================================
   PRINTER CARDS GRID
   ================================================ */
.tdz-printers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.tdz-printer-card {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: all .22s; cursor: pointer;
  text-decoration: none; display: block;
}
.tdz-printer-card:hover { border-color: var(--blue3); transform: translateY(-3px); box-shadow: var(--shadow-blue); }
.tdz-card-img {
  height: 150px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 16px;
}
.tdz-card-img img { max-height: 120px; max-width: 100%; object-fit: contain; }
.tdz-card-img-placeholder { font-size: 3.5rem; opacity: .2; }
.tdz-card-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px; border-radius: 50px; font-size: .68rem; font-weight: 700;
}
.badge-wifi    { background: #dbeafe; color: #1d4ed8; }
.badge-new     { background: #d1fae5; color: #065f46; }
.badge-top     { background: #fef3c7; color: #92400e; }
.badge-sale    { background: #fee2e2; color: #991b1b; }
.tdz-card-body { padding: 12px 14px; }
.tdz-card-brand { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.tdz-card-name { font-family: 'Cairo', sans-serif; font-size: .92rem; font-weight: 700; color: var(--ink2); line-height: 1.35; margin-bottom: 6px; }
.tdz-card-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.tdz-card-specs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tdz-spec-pill {
  font-size: .68rem; padding: 2px 7px; border-radius: 4px;
  background: var(--surface2); color: var(--muted);
  border: 1px solid var(--border);
}
.tdz-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface);
}
.tdz-card-price { display: flex; flex-direction: column; }
.tdz-price-label { font-size: .65rem; color: var(--muted2); }
.tdz-price-val { font-family: 'Cairo', sans-serif; font-size: .95rem; font-weight: 800; color: var(--blue2); }
.tdz-price-dzd { font-size: .7rem; color: var(--muted); }
.tdz-card-btn {
  padding: 6px 14px; background: var(--blue2); color: #fff;
  border-radius: 7px; font-size: .8rem; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s;
}
.tdz-card-btn:hover { background: var(--blue); }

/* ================================================
   FILTERS BAR
   ================================================ */
.tdz-filters {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.tdz-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.tdz-chip {
  padding: 5px 13px; border-radius: 50px; border: 1.5px solid var(--border);
  background: transparent; font-family: 'Tajawal', sans-serif;
  font-size: .82rem; color: var(--ink3); cursor: pointer; transition: all .18s;
}
.tdz-chip:hover { border-color: var(--blue3); color: var(--blue2); }
.tdz-chip.active { background: var(--blue2); color: #fff; border-color: var(--blue2); }
.tdz-filter-sort {
  padding: 6px 12px; border-radius: 7px; border: 1.5px solid var(--border);
  font-family: 'Tajawal', sans-serif; font-size: .85rem; background: #fff; cursor: pointer;
  color: var(--ink3); outline: none; margin-right: auto;
}
.tdz-results-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; font-size: .85rem; color: var(--muted);
}
.tdz-results-bar strong { color: var(--ink2); font-weight: 700; }

/* ================================================
   SIDEBAR WIDGETS
   ================================================ */
.tdz-widget {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tdz-widget-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
}
.tdz-widget-header h3 {
  font-family: 'Cairo', sans-serif; font-size: .9rem; font-weight: 800; color: #fff;
}
.tdz-widget-icon { font-size: 1rem; }
.tdz-widget-body { padding: 14px 16px; }

/* Compare widget */
.tdz-compare-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; text-decoration: none; transition: background .15s;
}
.tdz-compare-item:last-child { border-bottom: none; }
.tdz-compare-item:hover .tdz-ci-name { color: var(--blue2); }
.tdz-ci-arrow { color: var(--muted2); font-size: .8rem; }
.tdz-ci-name { font-size: .85rem; color: var(--ink3); font-weight: 500; flex: 1; }

/* Deals widget */
.tdz-deal-banner {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden; text-align: center;
}
.tdz-deal-banner::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px; background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.tdz-deal-icon { font-size: 2.2rem; margin-bottom: 8px; }
.tdz-deal-title { font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.tdz-deal-desc { font-size: .8rem; color: rgba(255,255,255,.65); margin-bottom: 14px; line-height: 1.5; }
.tdz-deal-btn {
  padding: 9px 20px; background: var(--gold); color: var(--ink);
  border-radius: 7px; font-size: .85rem; font-weight: 800;
  border: none; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.tdz-deal-btn:hover { background: var(--gold2); transform: scale(1.03); }

/* ================================================
   ARTICLES SECTION
   ================================================ */
.tdz-articles-section {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.tdz-articles-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.tdz-articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; margin-top: 20px;
}
.tdz-article-card {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: all .22s; text-decoration: none; display: block;
}
.tdz-article-card:hover { border-color: var(--blue3); transform: translateY(-3px); box-shadow: var(--shadow-blue); }
.tdz-article-thumb {
  height: 160px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.tdz-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tdz-article-thumb-icon { font-size: 3rem; opacity: .2; }
.tdz-article-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4) 0%, transparent 60%);
}
.tdz-article-cat-badge {
  position: absolute; bottom: 10px; right: 10px;
  padding: 3px 10px; border-radius: 50px;
  font-size: .68rem; font-weight: 700;
}
.tdz-article-body { padding: 14px; }
.tdz-article-title { font-family: 'Cairo', sans-serif; font-size: .95rem; font-weight: 700; color: var(--ink2); line-height: 1.45; margin-bottom: 8px; }
.tdz-article-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.65; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tdz-article-meta { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--muted2); }
.tdz-article-read { color: var(--blue2); font-weight: 700; }

/* Article category colors */
.cat-color-fix    { background: #fee2e2; color: #991b1b; }
.cat-color-tip    { background: #d1fae5; color: #065f46; }
.cat-color-guide  { background: #dbeafe; color: #1e40af; }
.cat-color-review { background: #fef3c7; color: #92400e; }
.cat-color-ink    { background: #ede9fe; color: #5b21b6; }
.cat-color-laser  { background: #d1fae5; color: #065f46; }
.cat-color-compare{ background: #fef3c7; color: #92400e; }

/* ================================================
   SUPPLIER CTA
   ================================================ */
.tdz-cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  padding: 64px 24px; text-align: center; position: relative; overflow: hidden;
}
.tdz-cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tdz-cta-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.tdz-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--gold2); padding: 4px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 700; margin-bottom: 16px;
}
.tdz-cta-title { font-family: 'Cairo', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; color: #fff; margin-bottom: 10px; }
.tdz-cta-title span { color: var(--gold2); }
.tdz-cta-sub { color: rgba(255,255,255,.6); margin-bottom: 36px; font-size: .95rem; }
.tdz-cta-benefits {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px;
}
.tdz-cta-benefit {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 18px 22px; flex: 1; min-width: 180px; max-width: 220px;
  transition: all .22s;
}
.tdz-cta-benefit:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.tdz-cta-benefit-icon { font-size: 1.8rem; margin-bottom: 8px; }
.tdz-cta-benefit h4 { font-family: 'Cairo', sans-serif; color: #fff; font-size: .9rem; font-weight: 800; margin-bottom: 4px; }
.tdz-cta-benefit p { color: rgba(255,255,255,.5); font-size: .8rem; line-height: 1.5; }
.tdz-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tdz-cta-main { padding: 13px 32px; background: var(--gold); color: var(--ink); border: none; border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: .95rem; font-weight: 800; cursor: pointer; transition: all .2s; }
.tdz-cta-main:hover { background: var(--gold2); transform: translateY(-2px); }
.tdz-cta-wa { padding: 13px 24px; background: #25d366; color: #fff; border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: .9rem; font-weight: 700; cursor: pointer; border: none; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.tdz-cta-wa:hover { background: #1db954; transform: translateY(-2px); }

/* ================================================
   CONTACT MODAL
   ================================================ */
.tdz-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,15,30,.85); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.tdz-modal-overlay.open { display: flex; }
.tdz-modal {
  background: #fff; border-radius: 18px; padding: 32px;
  max-width: 500px; width: 100%; position: relative;
  max-height: 92vh; overflow-y: auto;
  animation: modalIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from{opacity:0;transform:scale(.95) translateY(10px);} to{opacity:1;transform:none;} }
.tdz-modal-close { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); border: none; cursor: pointer; font-size: .9rem; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.tdz-modal h3 { font-family: 'Cairo', sans-serif; font-size: 1.2rem; font-weight: 900; color: var(--ink2); margin-bottom: 4px; text-align: center; }
.tdz-modal-sub { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 22px; }
.tdz-form { display: flex; flex-direction: column; gap: 12px; }
.tdz-form-group { display: flex; flex-direction: column; gap: 4px; }
.tdz-form-group label { font-size: .82rem; font-weight: 700; color: var(--ink3); }
.tdz-form-group input,
.tdz-form-group select,
.tdz-form-group textarea { padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--border); font-family: 'Tajawal', sans-serif; font-size: .9rem; outline: none; transition: border-color .2s; }
.tdz-form-group input:focus, .tdz-form-group select:focus, .tdz-form-group textarea:focus { border-color: var(--blue2); }
.tdz-form-group textarea { min-height: 80px; resize: vertical; }
.tdz-form-submit { padding: 12px; background: var(--blue2); color: #fff; border: none; border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: .95rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.tdz-form-submit:hover { background: var(--blue); }

/* ================================================
   SINGLE PRINTER PAGE
   ================================================ */
.tdz-breadcrumb {
  background: var(--card); border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.tdz-bc-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 7px; color: var(--muted);
}
.tdz-bc-inner a { color: var(--blue2); }
.tdz-bc-inner span { color: var(--muted2); }

.tdz-printer-page { max-width: 1280px; margin: 0 auto; padding: 24px; }
.tdz-printer-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

.tdz-printer-main-card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 20px;
  display: grid; grid-template-columns: 280px 1fr; gap: 28px;
}
.tdz-printer-img-box {
  background: var(--surface2); border-radius: var(--radius);
  padding: 24px; display: flex; align-items: center; justify-content: center;
  min-height: 240px; position: relative;
}
.tdz-printer-img-box img { max-height: 200px; max-width: 100%; object-fit: contain; }
.tdz-pp-brand { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.tdz-pp-title { font-family: 'Cairo', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--ink2); line-height: 1.3; margin-bottom: 12px; }
.tdz-pp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tdz-pp-tag { padding: 3px 11px; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.tag-wifi  { background: #dbeafe; color: #1e40af; }
.tag-type  { background: #d1fae5; color: #065f46; }
.tag-scan  { background: #ede9fe; color: #5b21b6; }
.tdz-pp-desc { color: var(--muted); font-size: .9rem; line-height: 1.75; margin-bottom: 20px; }
.tdz-pp-price {
  background: linear-gradient(135deg, var(--navy), #1e3a8a);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.tdz-pp-price-label { color: rgba(255,255,255,.65); font-size: .82rem; }
.tdz-pp-price-val { font-family: 'Cairo', sans-serif; font-size: 1.5rem; font-weight: 900; color: #fff; }
.tdz-pp-price-val span { font-size: .85rem; opacity: .7; }

/* Specs */
.tdz-specs-card {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border); margin-bottom: 18px; overflow: hidden;
}
.tdz-specs-header { padding: 14px 18px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.tdz-specs-header h3 { font-family: 'Cairo', sans-serif; font-size: .95rem; font-weight: 800; color: var(--ink2); display: flex; align-items: center; gap: 7px; }
.tdz-specs-table { width: 100%; border-collapse: collapse; }
.tdz-specs-table tr { border-bottom: 1px solid var(--border); }
.tdz-specs-table tr:last-child { border-bottom: none; }
.tdz-specs-table td { padding: 10px 18px; font-size: .88rem; }
.tdz-specs-table td:first-child { color: var(--muted); font-weight: 600; width: 42%; background: var(--surface); }
.tdz-specs-table td:last-child { color: var(--ink2); font-weight: 500; }

/* Inks */
.tdz-inks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 10px; padding: 16px 18px; }
.tdz-ink-item { border: 2px solid var(--border); border-radius: 9px; padding: 12px; text-align: center; }
.tdz-ink-dot { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 7px; border: 2px solid rgba(0,0,0,.08); }
.tdz-ink-name { font-size: .75rem; font-weight: 600; color: var(--ink3); margin-bottom: 3px; }
.tdz-ink-price { font-size: .82rem; font-weight: 800; color: var(--blue2); }
.tdz-ink-yield { font-size: .68rem; color: var(--muted2); }

/* Suppliers */
.tdz-sup-card {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border); padding: 16px; margin-bottom: 12px;
  transition: all .22s;
}
.tdz-sup-card:hover { border-color: var(--gold); }
.tdz-sup-featured { border-color: var(--gold); background: linear-gradient(135deg, #fffbeb, #fff); }
.tdz-sup-featured-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--gold); color: #fff; padding: 3px 10px; border-radius: 50px; font-size: .7rem; font-weight: 700; margin-bottom: 8px; }
.tdz-sup-name { font-weight: 800; font-size: .9rem; color: var(--ink2); margin-bottom: 3px; }
.tdz-sup-loc { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.tdz-sup-price { font-family: 'Cairo', sans-serif; font-size: 1.1rem; font-weight: 900; color: var(--green); margin-bottom: 8px; }
.tdz-sup-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tdz-sup-tag { font-size: .68rem; padding: 2px 7px; border-radius: 4px; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.tdz-sup-btn { display: block; width: 100%; padding: 9px; background: var(--navy); color: #fff; border: none; border-radius: 7px; font-family: 'Tajawal', sans-serif; font-size: .88rem; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; transition: all .2s; }
.tdz-sup-btn:hover { background: var(--blue2); }
.tdz-sup-btn-gold { background: var(--gold) !important; color: var(--ink) !important; }

/* Quick specs sidebar */
.tdz-quick-spec { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.tdz-quick-spec:last-child { border-bottom: none; }
.tdz-quick-spec span { color: var(--muted); }
.tdz-quick-spec strong { font-weight: 700; color: var(--ink2); }

/* Related */
.tdz-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; padding: 16px 18px; }
.tdz-related-card { border: 1.5px solid var(--border); border-radius: 9px; padding: 12px; text-align: center; text-decoration: none; transition: all .2s; background: var(--card); }
.tdz-related-card:hover { border-color: var(--blue3); transform: translateY(-2px); }
.tdz-related-card img { max-height: 60px; margin: 0 auto 7px; object-fit: contain; }
.tdz-related-name { font-size: .78rem; font-weight: 700; color: var(--ink2); margin-bottom: 3px; line-height: 1.3; }
.tdz-related-price { font-size: .75rem; color: var(--blue2); font-weight: 700; }

/* ================================================
   SINGLE ARTICLE PAGE
   ================================================ */
.tdz-article-page { max-width: 1280px; margin: 0 auto; padding: 24px; }
.tdz-article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.tdz-article-main {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
}
.tdz-article-cover { width: 100%; height: 320px; object-fit: cover; }
.tdz-article-hero-section { padding: 28px 32px 20px; border-bottom: 1px solid var(--border); }
.tdz-article-page-cat { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700; margin-bottom: 12px; }
.tdz-article-page-title { font-family: 'Cairo', sans-serif; font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 900; color: var(--ink2); line-height: 1.35; margin-bottom: 12px; }
.tdz-article-page-meta { display: flex; gap: 16px; color: var(--muted2); font-size: .8rem; flex-wrap: wrap; }
.tdz-article-page-content { padding: 28px 32px; }
.tdz-article-page-content h2, .tdz-article-page-content h3 { font-family: 'Cairo', sans-serif; font-weight: 800; color: var(--ink2); margin: 22px 0 10px; }
.tdz-article-page-content h2 { font-size: 1.15rem; }
.tdz-article-page-content h3 { font-size: 1rem; }
.tdz-article-page-content p { margin-bottom: 14px; color: var(--ink3); line-height: 1.85; }
.tdz-article-page-content ul, .tdz-article-page-content ol { padding-right: 22px; margin-bottom: 14px; }
.tdz-article-page-content li { margin-bottom: 7px; color: var(--ink3); line-height: 1.7; }
.tdz-tip-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 9px; padding: 14px 16px; margin: 18px 0; }
.tdz-tip-box strong { color: var(--blue2); }
.tdz-warn-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 9px; padding: 14px 16px; margin: 18px 0; }

/* Sidebar article related */
.tdz-related-article-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.tdz-related-article-item:last-child { border-bottom: none; }
.tdz-rai-icon { font-size: 1.2rem; flex-shrink: 0; }
.tdz-rai-title { font-size: .83rem; color: var(--ink3); line-height: 1.4; font-weight: 500; }
.tdz-related-article-item:hover .tdz-rai-title { color: var(--blue2); }

/* ================================================
   ARCHIVE — Printer list
   ================================================ */
.tdz-archive-page { max-width: 1280px; margin: 0 auto; padding: 28px 24px; }
.tdz-archive-header { margin-bottom: 24px; }
.tdz-archive-header h1 { font-family: 'Cairo', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--ink2); margin-bottom: 6px; }
.tdz-archive-header p { color: var(--muted); font-size: .9rem; }

/* ================================================
   FOOTER
   ================================================ */
.tdz-footer { background: var(--navy); color: rgba(255,255,255,.5); padding: 48px 0 0; }
.tdz-footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
}
.tdz-footer-brand p { color: rgba(255,255,255,.4); font-size: .85rem; line-height: 1.7; margin-top: 10px; }
.tdz-footer-col h4 { font-family: 'Cairo', sans-serif; color: #fff; font-size: .88rem; font-weight: 800; margin-bottom: 14px; }
.tdz-footer-col a { display: block; color: rgba(255,255,255,.4); font-size: .84rem; margin-bottom: 8px; text-decoration: none; transition: color .2s; }
.tdz-footer-col a:hover { color: var(--gold2); }
.tdz-footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 24px; text-align: center; font-size: .8rem; max-width: 1280px; margin: 0 auto; }

/* ================================================
   UTILITIES
   ================================================ */
.tdz-hide { display: none !important; }
.tdz-loading { opacity: .5; pointer-events: none; }
.tdz-badge-new { background: #d1fae5; color: #065f46; }
.tdz-badge-top { background: #fef3c7; color: #92400e; }

/* Admin columns */
.tdz-admin-img { width: 50px; height: 44px; object-fit: contain; border-radius: 6px; background: #f0f5ff; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
  .tdz-main { grid-template-columns: 1fr; }
  .tdz-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .tdz-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .tdz-hero-inner { grid-template-columns: 1fr; }
  .tdz-hero-img { display: none; }
  .tdz-cats-grid { grid-template-columns: 1fr 1fr; }
  .tdz-printer-main-card { grid-template-columns: 1fr; }
  .tdz-printer-layout { grid-template-columns: 1fr; }
  .tdz-article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .tdz-nav { display: none; }
  .tdz-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; right: 0; left: 0; background: var(--navy); padding: 12px 24px; z-index: 499; gap: 2px; }
  .tdz-hamburger { display: block; }
  .tdz-header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .tdz-search-wrap { order: 3; max-width: 100%; width: 100%; }
  .tdz-printers-grid { grid-template-columns: 1fr 1fr; }
  .tdz-footer-grid { grid-template-columns: 1fr; }
  .tdz-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tdz-printers-grid { grid-template-columns: 1fr; }
  .tdz-cats-grid { grid-template-columns: 1fr 1fr; }
  .tdz-articles-grid { grid-template-columns: 1fr; }
  .tdz-hero h1 { font-size: 1.5rem; }
  .tdz-printer-page { padding: 16px; }
  .tdz-article-page { padding: 16px; }
}

/* ================================================
   GLOBAL OVERFLOW FIX — prevent horizontal scroll
   ================================================ */
html, body { overflow-x: hidden; max-width: 100%; }
* { box-sizing: border-box; }
.tdz-header-inner,
.tdz-hero-wrap,
.tdz-brands-inner,
.tdz-main,
.tdz-footer-grid,
.tdz-archive-page,
.tdz-printer-page,
.tdz-article-page { max-width: 100%; }

/* Supplier pages overflow fix */
.sup-page-grid { overflow: hidden; }
@media (max-width: 700px) {
  .sup-page-grid { grid-template-columns: 1fr !important; }
  .sup-page-sidebar { order: -1; }
  .archive-tdz_supplier aside { position: static !important; }
}
/* Archive supplier sidebar fix on mobile */
@media (max-width: 768px) {
  .sup-archive-grid { grid-template-columns: 1fr !important; }
  .sup-archive-sidebar { display: none; }
}

/* Supplier archive mobile */
@media (max-width: 768px) {
  .sup-archive-grid  { grid-template-columns: 1fr !important; }
  .sup-archive-sidebar { display: none !important; }
  #mobile-filters { display: block !important; }
  .tdz-hero-btns { flex-direction: column; }
  .tdz-hero-btns a, .tdz-hero-btns button { width: 100%; justify-content: center; text-align: center; }
}
