/*
 HIBA STORE CORE v1.1.0 STABLE
 Conservative visual refinement layer.
 IMPORTANT: No DOM restructuring. Uses only existing v1.0.4 classes.
*/

/* ===== Header stability / polish ===== */
.hiba87-topbar{
  min-height:36px;
  background:#0f161c;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.hiba87-topbar-inner{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.hiba87-topbar .left,
.hiba87-topbar .right{
  display:flex;
  align-items:center;
  gap:18px;
}
.hiba87-topbar a,
.hiba87-topbar span{
  font-size:12px;
  line-height:1.2;
}
.hiba87-header{
  background:#fff;
  border-bottom:1px solid #e9edf0;
}
.hiba87-header-main{
  min-height:108px;
  gap:22px;
}
.hiba87-logo #logo img{
  max-height:76px;
  width:auto;
  object-fit:contain;
}
.hiba87-logo > span{
  margin-top:4px;
  font-size:11px;
  letter-spacing:1.35px;
}
.hiba87-search .label{
  margin-bottom:6px;
  font-size:11px;
  letter-spacing:.8px;
}
.hiba87-search #search{
  min-height:50px;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}
.hiba87-search #search input{
  min-height:50px;
  font-size:14px;
}
.hiba87-search #search button{
  min-width:58px;
  min-height:50px;
}
.hiba87-search .quick{
  margin-top:7px;
  gap:12px;
}
.hiba87-search .quick a{
  font-size:11px;
}
.hiba87-header-actions{
  gap:8px;
}
.hiba87-quote,
.hiba87-whatsapp,
.hiba87-account,
.hiba891-header-logout{
  min-height:54px;
  border-radius:10px;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.hiba87-quote:hover,
.hiba87-whatsapp:hover,
.hiba87-account:hover,
.hiba891-header-logout:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(15,23,42,.06);
}
.hiba87-cart #cart>button{
  min-height:54px;
  border-radius:10px!important;
}

/* ===== Main menu: preserve existing structure, improve spacing ===== */
.hiba88-menu-wrap{
  position:relative;
  z-index:1040;
}
.hiba88-menu{
  background:#141c22;
  border-bottom:3px solid #e30613;
  box-shadow:0 7px 20px rgba(15,23,42,.12);
}
.hiba88-menu>ul{
  min-height:60px;
  display:flex;
  align-items:stretch;
  gap:4px;
}
.hiba88-menu>ul>li{
  display:flex;
  align-items:stretch;
  flex:1 1 0;
  min-width:0;
}
.hiba88-menu>ul>li>a{
  width:100%;
  min-height:60px;
  padding:9px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  line-height:1.18;
  white-space:normal;
  border-radius:8px;
  font-size:12px;
  font-weight:800;
  transition:background .16s ease,color .16s ease;
}
.hiba88-menu>ul>li>a:hover,
.hiba88-menu>ul>li.open>a{
  background:#232e37;
  color:#fff;
}
.hiba88-menu>ul>li:first-child>a{
  background:linear-gradient(135deg,#e30613,#ba0009);
  color:#fff;
}
.hiba88-submenu{
  min-width:460px;
  padding:0;
  border:1px solid #dde3e7;
  border-top:3px solid #e30613;
  border-radius:0 0 12px 12px;
  box-shadow:0 24px 50px rgba(15,23,42,.20);
  overflow:hidden;
}
.hiba88-submenu-head{
  padding:14px 15px;
  background:linear-gradient(135deg,#192129,#293640);
}
.hiba88-submenu-head strong{
  color:#fff;
  font-size:14px;
}
.hiba88-submenu-head a{
  font-size:10px;
  font-weight:900;
}
.hiba88-submenu-grid{
  padding:12px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.hiba88-submenu-grid>a{
  min-height:40px;
  padding:8px 10px;
  border:1px solid #edf0f2;
  border-radius:8px;
  background:#fbfcfd;
  font-size:11px;
  font-weight:700;
}
.hiba88-submenu-grid>a:hover{
  background:#fff3f4;
  border-color:#efbdc0;
  color:#e30613;
}

/* ===== Mobile safety ===== */
@media(max-width:1450px){
  .hiba87-header-main{gap:16px}
  .hiba88-menu>ul>li>a{
    padding-left:7px;
    padding-right:7px;
    font-size:11px;
  }
}
@media(max-width:1199px){
  .hiba87-header-main{gap:12px}
  .hiba88-menu>ul{
    flex-wrap:wrap;
  }
  .hiba88-menu>ul>li{
    flex:1 1 25%;
  }
}
@media(max-width:991px){
  .hiba88-menu-wrap{display:none!important}
  .hiba87-header-main{
    min-height:auto;
  }
}
