/* HIMTECH mobil header / sepet / arama / WhatsApp telefon hizalama düzeltmesi */

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

@media(max-width:720px){

  .container{
    width:calc(100% - 24px) !important;
  }

  /* Header mobilde tek satırda düzgün kalsın */
  .header{
    overflow:visible !important;
  }

  .nav{
    height:70px !important;
    min-height:70px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    position:relative !important;
  }

  .logo.logo-header{
    min-width:0 !important;
    width:185px !important;
    max-width:48vw !important;
    height:52px !important;
    flex:0 1 auto !important;
  }

  .logo.logo-header img{
    width:100% !important;
    max-width:100% !important;
    max-height:52px !important;
    object-fit:contain !important;
    display:block !important;
  }

  .menu-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    border-radius:12px !important;
    font-size:20px !important;
    order:2 !important;
  }

  .nav-right{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    margin-left:auto !important;
    flex:0 0 auto !important;
    order:3 !important;
  }

  .search-btn{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    border-radius:12px !important;
    font-size:18px !important;
  }

  .cart{
    height:40px !important;
    min-width:60px !important;
    padding:0 10px !important;
    border-radius:12px !important;
    font-size:12px !important;
    line-height:1 !important;
    gap:5px !important;
    white-space:nowrap !important;
    position:relative !important;
    transform:none !important;
  }

  .cart b{
    min-width:18px !important;
    height:18px !important;
    padding:0 5px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:11px !important;
    line-height:1 !important;
  }

  .nav-right .btn.primary{
    display:none !important;
  }

  .nav-menu{
    top:70px !important;
    left:12px !important;
    right:12px !important;
    width:auto !important;
    z-index:999 !important;
  }

  .searchbar .container{
    display:grid !important;
    grid-template-columns:1fr auto !important;
    gap:8px !important;
  }

  .searchbar input{
    min-width:0 !important;
    width:100% !important;
  }

  .searchbar button{
    min-width:74px !important;
    padding:0 12px !important;
  }

  /* Sağ alt sabit telefon + WhatsApp mobilde yuvarlak ikon olsun */
  .floating-contact-buttons{
    right:10px !important;
    bottom:18px !important;
    display:grid !important;
    gap:8px !important;
    z-index:10000 !important;
  }

  .floating-contact-btn{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    padding:0 !important;
    border-radius:50% !important;
    justify-content:center !important;
    align-items:center !important;
    gap:0 !important;
    transform:none !important;
  }

  .floating-contact-btn:hover{
    transform:none !important;
  }

  .floating-contact-btn b{
    display:none !important;
  }

  .floating-contact-btn span{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    border-radius:50% !important;
    background:transparent !important;
  }

  .floating-contact-btn span svg{
    width:23px !important;
    height:23px !important;
  }

  /* Sepet sayfası mobilde taşmasın */
  .cart-page{
    overflow:hidden !important;
  }

  .cart-items,
  .cart-row,
  .cart-row-with-img{
    width:100% !important;
    max-width:100% !important;
  }

  .cart-row-with-img{
    grid-template-columns:1fr !important;
    gap:12px !important;
    padding:12px !important;
  }

  .cart-product-main{
    min-width:0 !important;
    width:100% !important;
  }

  .cart-product-info{
    min-width:0 !important;
  }

  .cart-product-info b{
    word-break:break-word !important;
  }

  .cart-summary{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    justify-content:stretch !important;
  }

  .cart-summary .btn,
  .cart-summary a,
  .cart-summary button{
    width:100% !important;
    min-height:48px !important;
  }

  /* Footer WhatsApp butonu mobilde dışarı taşmasın */
  .footer-whatsapp-btn{
    width:100% !important;
    min-width:0 !important;
    padding:16px !important;
  }

  .footer-whatsapp-btn b{
    font-size:18px !important;
  }

  .footer-whatsapp-btn small{
    font-size:12px !important;
  }
}

@media(max-width:430px){
  .nav{
    gap:6px !important;
  }

  .logo.logo-header{
    width:165px !important;
    max-width:43vw !important;
    height:48px !important;
  }

  .logo.logo-header img{
    max-height:48px !important;
  }

  .search-btn{
    display:none !important;
  }

  .cart{
    min-width:52px !important;
    height:38px !important;
    padding:0 8px !important;
    font-size:11px !important;
  }

  .menu-btn{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
  }

  .floating-contact-buttons{
    right:8px !important;
    bottom:14px !important;
  }

  .floating-contact-btn,
  .floating-contact-btn span{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
  }
}

@media(max-width:360px){
  .logo.logo-header{
    width:150px !important;
    max-width:42vw !important;
  }

  .cart{
    min-width:46px !important;
    font-size:0 !important;
  }

  .cart:before{
    content:"Sepet";
    font-size:10px;
  }
}
