/* Maknanet shared header */
.announcement {
  background:#071321;
  color:#d7e2ee;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
  direction:rtl;
  position:relative;
  z-index:1001;
}
.announcement .container,
.header .container {
  width:min(1160px,calc(100% - 56px));
  max-width:1160px;
  margin-inline:auto;
  padding-inline:0;
}
.announcement-inner {
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.topbar-contact {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
}
.topbar-contact a {
  color:#d7e2ee;
  text-decoration:none;
  transition:color .2s ease;
}
.topbar-contact a:hover {color:#fff}
.topbar-separator {color:#607187}
.topbar-contact .topbar-whatsapp {
  color:#b9c9d8;
  direction:ltr;
}
.topbar-whatsapp span {
  color:#25D366;
  font-size:11px;
  margin-right:5px;
}
.topbar-experts span {margin-right:4px}

.header {
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid #e9eef4;
  backdrop-filter:blur(16px);
  direction:rtl;
}
.header .nav-wrap {
  min-height:105px;
  display:flex;
  align-items:center;
  gap:24px;
}
.header .brand {
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  text-decoration:none;
}
.header .brand img {
  display:block;
  width:360px;
  max-width:100%;
  height:auto;
  max-height:95px;
  object-fit:contain;
}
.header .nav {
  display:flex;
  align-items:center;
  gap:25px;
  margin-right:auto;
  font-size:13px;
  font-weight:700;
  color:#41536a;
}
.header .nav > a {
  color:#41536a;
  text-decoration:none;
  white-space:nowrap;
  transition:color .2s ease;
}
.header .nav > a:hover {color:#0789b9}
.header .nav-actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.header .nav-actions .login-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 17px;
  border:1px solid rgba(120,160,200,.35);
  border-radius:9px;
  color:#42556d;
  text-decoration:none;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
}
.header .nav-actions .button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 17px;
  border-radius:9px;
  color:#052238;
  background:linear-gradient(115deg,#27dfc8,#4eb8ed);
  box-shadow:0 9px 25px #1bcab52d;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.header .menu-toggle {display:none}

.header .products-dropdown {position:relative}
.header .products-trigger {
  border:0;
  padding:10px 0;
  background:transparent;
  color:#41536a;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:color .2s;
}
.header .products-trigger:hover,
.header .products-dropdown.is-open .products-trigger {color:#0789b9}
.header .products-chevron {
  display:inline-block;
  margin-right:4px;
  color:#159fc0;
  transition:transform .2s;
}
.header .products-dropdown.is-open .products-chevron {transform:rotate(180deg)}
.header .products-panel {
  display:none;
  position:absolute;
  top:calc(100% + 18px);
  right:-18px;
  width:680px;
  padding:13px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  background:#fff;
  border:1px solid #e4edf4;
  border-radius:15px;
  box-shadow:0 20px 50px #09233c20;
  direction:rtl;
  z-index:1050;
}
.header .products-dropdown:hover .products-panel,
.header .products-dropdown:focus-within .products-panel,
.header .products-dropdown.is-open .products-panel {display:grid}
.header .product-menu-card {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  padding:11px 13px;
  border:1px solid transparent;
  border-radius:10px;
  background:#f8fbfd;
  text-decoration:none;
  transition:background .2s,border-color .2s,transform .2s;
}
.header .product-menu-card:hover {
  background:#eff9fc;
  border-color:#c9eaf2;
  transform:translateY(-2px);
}
.header .products-panel .product-menu-title {
  color:#153954;
  font-size:12px;
  font-weight:800;
  line-height:1.8;
}
.header .product-menu-title small {
  color:#688197;
  font-size:10px;
  font-weight:600;
  direction:ltr;
}
.header .product-menu-desc {
  color:#718397;
  font-size:10px;
  line-height:1.8;
}
.header .product-menu-price {
  margin-top:3px;
  color:#0789a8;
  font-size:10px;
  font-weight:800;
}
.header .menu-badge {
  display:inline-block;
  margin-right:5px;
  padding:1px 6px;
  border-radius:5px;
  background:#e0f8f3;
  color:#079b83;
  font-size:9px;
  font-style:normal;
  font-weight:800;
  vertical-align:middle;
}
.header .menu-badge.sale {background:#fff1e5;color:#d97724}

@media(max-width:1000px) and (min-width:761px) {
  .header .products-panel {width:610px}
  .header .nav-wrap {gap:16px}
  .header .nav {gap:14px}
  .header .brand img {width:260px;max-height:85px}
}
@media(max-width:760px) {
  .announcement .container,
  .header .container {width:calc(100% - 36px)}
  .announcement-inner {min-height:33px;font-size:10px}
  .topbar-contact {gap:7px;font-size:10px}
  .topbar-separator {display:none}
  .topbar-contact .topbar-whatsapp {margin-right:5px}
  .header .nav-wrap {min-height:82px;gap:12px}
  .header .brand img {width:220px;max-height:72px}
  .header .menu-toggle {
    display:flex;
    flex-direction:column;
    gap:5px;
    border:0;
    background:transparent;
    padding:8px;
    margin-right:auto;
    cursor:pointer;
  }
  .header .menu-toggle span {
    display:block;
    width:22px;
    height:2px;
    border-radius:2px;
    background:#153954;
  }
  .header .nav {
    display:none;
    position:absolute;
    top:100%;
    right:18px;
    left:18px;
    margin:0;
    padding:15px;
    background:#fff;
    border:1px solid #e4ebf2;
    border-radius:14px;
    box-shadow:0 18px 40px #09233c1c;
    align-items:stretch;
    gap:0;
    flex-direction:column;
  }
  .header .nav.is-open {display:flex}
  .header .nav > a {
    display:block;
    padding:10px 7px;
    border-bottom:1px solid #eef2f6;
  }
  .header .nav > a:last-child {border:0}
  .header .products-dropdown {width:100%}
  .header .products-trigger {
    width:100%;
    padding:10px 7px;
    text-align:right;
    border-bottom:1px solid #eef2f6;
  }
  .header .products-panel {
    position:static;
    width:100%;
    padding:7px 0 10px;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:#f8fbfd;
    grid-template-columns:1fr;
    gap:5px;
  }
  .header .products-dropdown:hover .products-panel,
  .header .products-dropdown:focus-within .products-panel {display:none}
  .header .products-dropdown.is-open .products-panel {display:grid}
  .header .product-menu-card {padding:9px 12px}
  .header .products-panel .product-menu-title {font-size:11px}
  .header .product-menu-desc,
  .header .product-menu-price {font-size:9px}
  .header .nav-actions {gap:8px}
  .header .nav-actions .login-link {min-height:37px;padding:0 10px;font-size:10px}
  .header .nav-actions .button {min-height:37px;padding:0 12px;font-size:10px}
}
@media(max-width:480px) {
  .header .brand img {width:190px;max-height:65px}
  .topbar-contact {gap:6px;font-size:9px}
}


/* Restore approved backup header logo dimensions */
.header .brand img {
  width: 190px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 60px !important;
  object-fit: contain;
}


/* Homepage only: move header logo 2cm left from its previous position */
@media (min-width: 1001px) {
  body.maknanet-home .header .brand {
    transform: translateX(0) !important;
  }
}
