*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:#f4f7f5;
  color:#17251d;
}

a{
  text-decoration:none;
  color:inherit;
}

button{
  border:0;
  cursor:pointer;
  font-family:inherit;
}

.container{
  width:min(1200px,94%);
  margin:auto;
}

/* Header */
.topbar{
  background:#fff;
  position:sticky;
  top:0;
  z-index:99;
  box-shadow:0 3px 14px rgba(0,0,0,.07);
}

.nav{
  min-height:70px;
  display:flex;
  align-items:center;
  gap:16px;
}

.logo{
  font-size:26px;
  font-weight:900;
  color:#f05a24;
  white-space:nowrap;
}

.logo span{
  color:#098b52;
}

.search{
  flex:1;
  height:46px;
  display:flex;
  border:1px solid #dfe9e3;
  border-radius:50px;
  overflow:hidden;
  background:#f8fbf9;
}

.search input{
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  padding:0 18px;
}

.search button{
  width:56px;
  background:#f05a24;
  color:#fff;
}

.menu{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:800;
  color:#395a4b;
  white-space:nowrap;
}

.menu a{
  padding:9px 10px;
  border-radius:6px;
}

.menu a:hover{
  background:#fff3ed;
  color:#f05a24;
}

.cart{
  width:45px;
  height:45px;
  border-radius:50%;
  background:#edf8f2;
  display:grid;
  place-items:center;
  position:relative;
  flex:0 0 auto;
}

.cart b{
  position:absolute;
  top:-4px;
  right:-4px;
  background:#f05a24;
  color:#fff;
  width:19px;
  height:19px;
  border-radius:50%;
  font-size:11px;
  display:grid;
  place-items:center;
}

/* Main */
.main{
  padding:22px 0 40px;
}

.breadcrumb{
  font-size:13px;
  color:#6b7c72;
  margin-bottom:18px;
}

.grid.detail{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
}

.gallery,
.card,
.tabs{
  background:#fff;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
}

.gallery{
  padding:14px;
}

#mainImg{
  width:100%;
  height:430px;
  object-fit:cover;
  border-radius:10px;
}

.thumbs{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  margin-top:10px;
}

.thumbs img{
  width:100%;
  height:70px;
  object-fit:cover;
  border-radius:7px;
  cursor:pointer;
  border:2px solid transparent;
}

.thumbs img:hover{
  border-color:#098b52;
}

.card{
  padding:28px;
}

.card h1{
  font-size:34px;
  line-height:1.2;
  margin-bottom:10px;
}

.price{
  color:#098b52;
  font-weight:900;
}

.old{
  color:#999;
  text-decoration:line-through;
  margin-left:8px;
}

.qty{
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 0;
}

.qty button{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#edf8f2;
  color:#098b52;
  font-size:20px;
  font-weight:900;
}

.qty span{
  min-width:32px;
  text-align:center;
  font-weight:900;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#098b52;
  color:#fff;
  padding:13px 22px;
  border-radius:8px;
  font-weight:800;
  margin-right:8px;
  margin-top:6px;
}

.btn.orange{
  background:#f05a24;
}

/* Tabs */
.tabs{
  margin-top:24px;
  padding:18px;
}

.tabs button{
  background:#edf8f2;
  color:#098b52;
  padding:11px 18px;
  border-radius:8px;
  font-weight:800;
  margin:4px;
}

.tabs button.active{
  background:#098b52;
  color:#fff;
}

.tabbody{
  margin-top:14px;
  padding:16px;
  background:#f8fbf9;
  border-radius:8px;
  color:#4f675b;
  line-height:1.6;
}

/* Footer */
footer{
  background:#087448;
  color:#fff;
  padding:18px 0;
}

.footer{
  text-align:center;
  font-weight:800;
  font-size:14px;
}

/* Responsive */
@media(max-width:1050px){
  .nav{
    flex-wrap:wrap;
    padding:12px 0;
  }

  .logo{
    order:1;
  }

  .cart{
    order:2;
    margin-left:auto;
  }

  .search{
    order:3;
    flex-basis:100%;
  }

  .menu{
    order:4;
    width:100%;
    overflow-x:auto;
    padding-bottom:4px;
  }

  .menu::-webkit-scrollbar{
    height:0;
  }

  .menu a{
    background:#f7faf8;
    padding:9px 14px;
  }
}

@media(max-width:850px){
  .grid.detail{
    grid-template-columns:1fr;
  }

  #mainImg{
    height:360px;
  }

  .card h1{
    font-size:28px;
  }
}

@media(max-width:600px){
  .container{
    width:min(100% - 20px,1200px);
  }

  .nav{
    gap:10px;
  }

  .logo{
    font-size:23px;
  }

  .search{
    height:44px;
  }

  .menu{
    gap:8px;
  }

  .menu a{
    font-size:12px;
    padding:8px 12px;
  }

  #mainImg{
    height:260px;
  }

  .thumbs{
    grid-template-columns:repeat(4,1fr);
  }

  .thumbs img{
    height:62px;
  }

  .card{
    padding:20px;
  }

  .card h1{
    font-size:24px;
  }

  .btn{
    width:100%;
    margin-right:0;
    margin-bottom:8px;
  }

  .tabs button{
    width:100%;
  }
}