/* ===============================
   HEADER LAYOUT
================================ */

.box-navigation{
  width:100%;
  max-width:100%;
  margin:0;
  position:relative;
  z-index:20;
}

.box-nav-ul.ce-maincats{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  justify-content:space-between;
  width:100%;
  background:#fff;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
  overflow:visible !important;
}

/* menu items */

.ce-maincats > .menu-item{
  flex:1;
  position:static;
  text-align:center;
}

.ce-maincats > .menu-item > .item-link{
  display:flex;
  align-items:center;
  justify-content:center;
  height:60px;
  font-weight:600;
  font-size:14px;
  color:#111;
  text-decoration:none;
  border-right:1px solid #eee;
  transition:all .2s;
}

.ce-maincats > .menu-item:last-child > .item-link{
  border-right:none;
}

.ce-maincats > .menu-item > .item-link:hover{
  background:#f5f5f5;
}

/* ===============================
   MEGA MENU
================================ */

.ce-has-sub > .sub-menu{
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:all .2s;
  pointer-events:none;
}

.ce-has-sub:hover > .sub-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.ce-mega-cat{
  position:absolute;
  left:0;
  right:0;
  top:100%;
  width:100%;
  background:#fff;
  border:1px solid #eee;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
  padding:20px;
  z-index:999;
}

.ce-mega-cat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:20px;
}

/* ===============================
   CATEGORY CARD
================================ */

.ce-mega-cat-card{
  display:block;
  text-decoration:none;
  color:#111;
  border:1px solid #eee;
  border-radius:10px;
  padding:10px;
  transition:all .2s;
  background:#fff;
}

.ce-mega-cat-card:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 15px rgba(0,0,0,0.15);
}

.ce-mega-cat-thumb{
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ce-mega-cat-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.ce-mega-cat-name{
  text-align:center;
  font-size:13px;
  font-weight:600;
  margin-top:8px;
}

/* ===============================
   PLACEHOLDER
================================ */

.ce-thumb-placeholder{
  width:100%;
  height:100%;
  border:1px dashed #ccc;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:#999;
}
/* ===============================
   HEADER SEARCH FIX
================================ */

.ce-header-search{
  width: 100%;
  margin: 0;
}

.ce-search-wrap{
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 52px;
  background: #fff;
  border: 2px solid #e7e7e7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.ce-search-wrap:hover,
.ce-search-wrap:focus-within{
  border-color: #d10b0b;
  box-shadow: 0 8px 22px rgba(209,11,11,.10);
}

.ce-search-wrap .icon-search,
.ce-search-wrap i.icon,
.ce-search-wrap i{
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: #888;
  z-index: 2;
}

.ce-search-wrap input{
  flex: 1;
  height: 52px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 16px 0 46px;
  font-size: 14px;
  color: #111;
  background: transparent;
}

.ce-search-wrap input::placeholder{
  color: #999;
}

.ce-search-wrap button{
  height: 52px;
  min-width: 110px;
  border: 0;
  outline: none;
  background: #d10b0b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 22px;
  transition: background .18s ease;
  cursor: pointer;
}

.ce-search-wrap button:hover{
  background: #a30a0a;
}

@media (max-width: 1199px){
  .ce-search-wrap{
    min-height: 48px;
  }

  .ce-search-wrap input{
    height: 48px;
  }

  .ce-search-wrap button{
    height: 48px;
    min-width: 90px;
    padding: 0 16px;
  }
}
