
/*
Theme Name:kmtruck
Theme URI: https://kmtruck.com
Author: fa.salehi
Version: 1.0
----------------------------------
*/


body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f8f9fa;
  margin: 0;
  color: #232323;
}
body::-webkit-scrollbar {
  width: 8px;
  background: #eee;
}
body::-webkit-scrollbar-thumb {
  background: #2a2962;
  border-radius: 8px;
}



body {
  margin: 0;
  font-family: sans-serif;
}

/* هدر عمومی */
.main-header {
  background: white;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
}

.logo img {
  max-height: 40px;
  width:auto;
}

/* منوی دسکتاپ */
.desktop-menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-menu ul li a {
  padding: 10px 15px;
  text-decoration: none;
  color: #001d3a;
}

.desktop-menu ul li a.btn-contact {
  background-color: #001d3a;
  color: white;
  border-radius: 3px;
}

/* دکمه‌های اکشن */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn, .search-btn, .hamburger-btn {
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: #001d3a;
}

.icon-btn {
  text-decoration: none;
}

/* منوی موبایل */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 6px rgba(0,0,0,0.2);
  padding: 20px;
  transition: right 0.3s ease-in-out;
}

.mobile-menu.active {
  right: 0;
  top:65px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  float: right;
}

.mobile-search {
  display: flex;
  margin-top: 30px;
}

.mobile-search input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
      width: 100%;
}

.mobile-search button {
  background: #001d3a;
  color: white;
  border: none;
  padding: 8px 12px;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  color: #001d3a;
}

.mobile-menu ul li a.btn-contact {
  background-color: #001d3a;
  color: white;
  padding: 10px;
  border-radius: 3px;
  margin-top: 10px;
  display: inline-block;
}

/* واکنش‌گرایی */
@media (max-width: 900px) {
  .desktop-menu {
    display: none;
  }
  .hamburger-btn, .icon-btn, .search-btn {
    display: inline-block;
  }
  .logo img {
  max-height: 25px;
  width:auto;

}
    .main-header .container {
        flex-direction: row-reverse; /* ترتیب برعکس */
    }
    .logo {
        order: 1; /* لوگو در سمت راست */
    }
    .header-actions {
        order: 3; /* آیکون‌ها و دکمه همبرگری سمت چپ */
    }
    .desktop-menu {
        order: 2;
    }
}

@media (min-width: 901px) {
  .hamburger-btn, .icon-btn {
    display: none;
  }
}


.mobile-menu .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2000;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #fff; 
  cursor: pointer;
}

.mobile-menu .close-btn {
  background-color: rgba(255,255,255,0.9);
  color: #0B2545; 
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.desktop-menu ul li {
    position: relative !important;
}

.desktop-menu ul.sub-menu,
.desktop-menu ul .sub-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background-color: #fff !important;
    min-width: 200px !important;
    display: none !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
}

.desktop-menu ul .sub-menu li a {

    padding: 10px 15px !important;
    color: #001d3a !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.desktop-menu ul .sub-menu li a:hover {
    background-color: #f5f5f5 !important;
}

.desktop-menu ul li:hover > .sub-menu {
    display: block !important;
}




