/* =========================================================
   كاتينة — هيدر وفوتر عصري مع الحفاظ على الهوية
   ألوان: ذهب #FCC376 / #FABA5B | أزرق #3452EF | خط Tajawal
   ========================================================= */

:root {
  --kt-gold: #fcc376;
  --kt-gold-deep: #f5b45a;
  --kt-gold-soft: #ffe9c8;
  --kt-amber: #faba5b;
  --kt-blue: #3452ef;
  --kt-blue-dark: #1e33b8;
  --kt-navy: #0f172a;
  --kt-navy-2: #162036;
  --kt-ink: #1f2937;
  --kt-muted: #6b7280;
  --kt-cream: #fff8ee;
  --kt-white: #ffffff;
  --kt-line: rgba(15, 23, 42, 0.08);
  --kt-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --kt-radius: 14px;
  --kt-font: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- شريط علوي ---------- */
.kt-topbar {
  background: var(--kt-navy);
  color: #e5e7eb;
  font-family: var(--kt-font);
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 2px solid var(--kt-gold);
}

.kt-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.kt-topbar__links,
.kt-topbar__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.kt-topbar a {
  color: #f8fafc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.kt-topbar a:hover {
  color: var(--kt-gold);
}

.kt-topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kt-gold);
  display: inline-block;
}

/* ---------- الهيدر ---------- */
.whb-header {
  font-family: var(--kt-font);
}

.whb-general-header,
.whb-header-bottom {
  background: linear-gradient(180deg, #ffd9a3 0%, var(--kt-gold) 55%, #f3b45c 100%) !important;
}

.whb-general-header {
  box-shadow: none;
}

.whb-header-bottom {
  background: var(--kt-cream) !important;
  border-bottom: 1px solid var(--kt-line) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.whb-general-header .whb-column {
  min-width: 0;
}

.whb-general-header .whb-col-center,
.whb-general-header .whb-column9 {
  flex: 1 1 auto;
  overflow: hidden;
}

.whb-header .wd-nav-header,
.whb-general-header .wd-nav {
  flex-wrap: nowrap !important;
  overflow: visible;
  max-width: 100%;
}

.whb-header .wd-nav-header > li,
.whb-general-header .wd-nav > li {
  flex-shrink: 0;
}

.whb-header .wd-nav > li > a {
  font-family: var(--kt-font) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--kt-ink) !important;
  padding: 8px 14px !important;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.kt-nav-more {
  position: relative;
}

.kt-nav-more__list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid var(--kt-line);
  z-index: 120;
}

.kt-nav-more.is-open > .kt-nav-more__list {
  display: block;
}

.kt-nav-more__list > li > a {
  display: block !important;
  width: 100%;
  border-radius: 10px !important;
  padding: 10px 14px !important;
}

.kt-nav-more__btn::after {
  content: "▾";
  margin-inline-start: 6px;
  font-size: 11px;
}

.whb-header .wd-nav > li > a:hover,
.whb-header .wd-nav > li.current-menu-item > a,
.whb-header .wd-nav > li.current-menu-ancestor > a {
  background: rgba(255, 255, 255, 0.55);
  color: var(--kt-blue) !important;
}

.whb-header .wd-tools-element,
.whb-header .wd-header-my-account,
.whb-header .wd-header-cart,
.whb-header .wd-header-wishlist,
.whb-header .wd-header-compare {
  transition: transform 0.2s ease;
}

.whb-header .wd-tools-element:hover {
  transform: translateY(-1px);
}

.whb-header .wd-tools-element a,
.whb-header .wd-header-cart > a,
.whb-header .wd-header-my-account > a {
  color: var(--kt-ink) !important;
}

.whb-header .wd-tools-count {
  background: var(--kt-blue) !important;
  color: #fff !important;
  border: 2px solid #fff;
}

/* بحث عصري */
.whb-header-bottom .searchform,
.whb-header .searchform {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.whb-header-bottom .searchform input[type="text"],
.whb-header .searchform input[type="text"] {
  font-family: var(--kt-font) !important;
  font-size: 15px !important;
  background: transparent !important;
}

.whb-header-bottom .searchform button,
.whb-header .searchform button {
  background: var(--kt-blue) !important;
  color: #fff !important;
  border-radius: 999px !important;
  margin: 4px;
  min-width: 46px;
}

.whb-header-bottom .searchform button:hover,
.whb-header .searchform button:hover {
  background: var(--kt-blue-dark) !important;
}

/* تثبيت الهيدر */
.whb-sticked .whb-general-header,
.whb-sticked .whb-header-bottom {
  background: rgba(255, 248, 238, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.whb-sticked {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.whb-sticked::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--kt-gold), var(--kt-blue));
}

/* شعار */
.whb-header .wd-logo img,
.whb-header .wd-header-logo img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

/* ---------- الفوتر ---------- */
.kt-footer {
  font-family: var(--kt-font);
  background:
    radial-gradient(1200px 420px at 100% 0%, rgba(52, 82, 239, 0.18), transparent 55%),
    radial-gradient(900px 380px at 0% 100%, rgba(250, 186, 91, 0.12), transparent 50%),
    var(--kt-navy);
  color: #d1d5db;
  margin-top: 0;
}

.kt-footer a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.kt-footer__main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding: 56px 0 36px;
}

.kt-footer__brand p {
  color: #cbd5e1;
  line-height: 1.9;
  margin: 14px 0 18px;
  max-width: 340px;
}

.kt-footer__logo img {
  max-height: 58px;
  width: auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 10px;
}

.kt-footer h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 10px;
}

.kt-footer h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kt-gold), var(--kt-blue));
}

.kt-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.kt-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kt-footer__list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kt-gold);
  opacity: 0.8;
}

.kt-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.kt-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kt-footer__social a:hover {
  background: var(--kt-gold);
  color: var(--kt-navy);
}

.kt-footer__brands {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 12px;
}

.kt-footer__brands-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.kt-footer__brands-head h3 {
  margin: 0;
  padding: 0;
}

.kt-footer__brands-head h3::after {
  display: none;
}

.kt-footer__brands-head a {
  color: var(--kt-gold);
  font-weight: 700;
}

.kt-footer__brands-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.kt-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 8px;
  min-height: 92px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.kt-footer-brand:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(252, 195, 118, 0.45);
}

.kt-footer-brand img,
.kt-footer-brand svg {
  height: 36px;
  width: auto;
  max-width: 78px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 6px;
}

.wd-footer.katina-footer-wrap,
.wd-footer.footer-container.katina-footer-wrap {
  background: transparent !important;
  padding: 0 !important;
}

.kt-footer-brand span {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.kt-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 13px;
}

.kt-footer__apps {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kt-footer__apps img {
  height: 36px;
  width: auto;
}

/* ---------- شبكة الشركات ---------- */
.kt-brands-wrap {
  padding: 12px 0 48px;
  font-family: var(--kt-font);
}

.kt-brands-wrap__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.kt-brands-wrap__head h2 {
  margin: 0;
  font-size: 28px;
  color: var(--kt-ink);
}

.kt-brands-wrap__head p {
  margin: 6px 0 0;
  color: var(--kt-muted);
}

.kt-brands-search {
  min-width: min(100%, 280px);
}

.kt-brands-search input {
  width: 100%;
  border: 1px solid var(--kt-line);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--kt-font);
  font-size: 15px;
  background: #fff;
  box-shadow: var(--kt-shadow);
}

.kt-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.kt-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--kt-line);
  border-radius: 18px;
  padding: 22px 12px 16px;
  min-height: 150px;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kt-brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 82, 239, 0.25);
  box-shadow: 0 16px 30px rgba(52, 82, 239, 0.12);
}

.kt-brand-card__logo {
  width: 88px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kt-brand-card__logo img,
.kt-brand-card__logo svg {
  max-width: 88px;
  max-height: 56px;
  object-fit: contain;
}

.kt-brand-card__name {
  color: var(--kt-ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}

.kt-brand-card__en {
  color: var(--kt-muted);
  font-size: 12px;
  font-weight: 500;
}

/* إخفاء فهرس الأحرف A-Z وشبكات الشركات القديمة */
body.page-id-26 .elementor-26 > .e-con:not(:first-child),
body.page-id-26 #brands_a_z,
body.page-id-26 .brands_index,
body.page-id-26 .wd-menu-anchor,
body.page-id-26 a[href^="#pets_brands_"] {
  display: none !important;
}

body.page-id-26 .kt-brands-wrap {
  padding-top: 8px;
}

/* ---------- تجاوب ---------- */
@media (max-width: 1400px) {
  .whb-general-header .whb-space-element {
    display: none !important;
    width: 0 !important;
  }
  .whb-header .wd-header-my-account .wd-tools-text {
    display: none;
  }
}

@media (max-width: 1100px) {
  .kt-footer__main {
    grid-template-columns: 1fr 1fr;
  }
  .kt-footer__brands-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .kt-brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .kt-topbar__links {
    display: none;
  }
  .kt-footer__main,
  .kt-brands-grid,
  .kt-footer__brands-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kt-footer__bottom {
    justify-content: center;
    text-align: center;
  }
  .whb-header .wd-logo img,
  .whb-header .wd-header-logo img {
    max-height: 46px;
  }
}

@media (max-width: 520px) {
  .kt-brands-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kt-footer__brands-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
