@charset "utf-8";
/* ===== PC (mặc định) ===== */
.header-wrapper {
  width: 100%;
  background: #FDF8EC;
  position: fixed;
  z-index: 9999;
  height: 120px;
  box-shadow: inset 0 -2px 10px rgba(0, 128, 0, 0.15);
  padding: 5px 20px; /* padding nhỏ để không bị vỡ */
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
}

.logo {
  width: 200px;
  flex-shrink: 0;
}
.logo img {
  max-width: 150px;
  height: auto;
}

.company-info {
  flex: 1;
   padding: 5px 0px;
}

.company-name {
  font-family: Tahoma;
  font-size: 30px;
  color: #CC6600;
  font-weight: bold;
  text-align: left;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

.info-item {
  display: flex;
  padding: 5px 0px;
  align-items: center;
  flex-shrink: 0;
}

.giohang {
  display: flex;
  padding: 5px 0px;
  align-items: center;
  flex-shrink: 0;
}

/* ===== Mobile ===== */
.header-mobile {
  display: none;
  background: #FDF8EC;
  padding: 5px 10px;
  box-shadow: inset 0 -2px 10px rgba(0, 128, 0, 0.15);
  position: fixed; /* cố định luôn */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

@media (max-width: 768px) {
  .header-wrapper { display: none; }
  .header-mobile { display: block; }

 .header-mobile .company-name {
    font-size: 15px;
    font-weight: bold;
    text-align: center;      /* canh chữ */
    color: #CC6600;
    margin: 0 auto 5px -10px;/* margin tự động để center container nếu cần */
    width: 100%;             /* đảm bảo container chiếm full width */
    display: block;          /* chắc chắn là block */
}


  .header-mobile .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-mobile .logo img {
    max-width: 80px;
    height: auto;
  }

 .header-mobile .mobile-icons {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    left: -40px; /* kéo sang trái */
}


  .header-mobile .mobile-icons .icon-button {
    position: relative;
    display: flex;
    align-items: center;
  }

  .header-mobile .mobile-icons .icon-button img {
    width: 28px;
    height: 28px;
  }

  /* Số lượng giỏ hàng hiển thị nhỏ góc trên */
 .header-mobile .mobile-icons #cart-count-mobile {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF3300;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 50%;
}


  /* Khi màn hình quá nhỏ (<480px): logo + icon stack dọc */
  @media (max-width: 480px) {
    .header-mobile .top-row {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  }
}

.icon-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #CC6600;
  text-decoration: none;
}

.icon-button img {
  width: 20px;
  height: 20px;
}

.icon-button:hover {
  opacity: 0.8;
}

