/* ================= GOOGLE FONT ================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* ================= BODY ================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #F8FAFC;
  color: #1E293B;
}

/* ================= NAVBAR ================= */
.navbar {
  height: 120px;
  background: white;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.web-logo {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.web-logo img {
  height: 90px;
}

.nav-search {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-search input {
  width: 320px;
  padding: 10px 40px 10px 15px;
  border-radius: 30px;
  border: 1px solid #CBD5E1;
  outline: none;
  transition: 0.3s ease;
  font-size: 14px;
}

.nav-search input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 8px rgba(59,130,246,0.3);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748B;
}
/* ================= BANNER ================= */
.banner-container {
  width: 90%;
  margin: 20px auto 10px auto; /* 10px bottom gap */
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
}

.banner-container video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.banner-container video.active {
  opacity: 1;
  z-index: 1;
}

/* ================= TOGGLE ================= */
.toggle-buttons {
  position: absolute;
  top: 10px;  /* 10px from top */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(0,0,0,0.6);
  padding: 8px 16px;
  border-radius: 30px;
  z-index: 10;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.toggle-buttons button {
  background: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
  white-space: nowrap;
}

.toggle-buttons button.active-toggle {
  background: #f0c040;
}

.toggle-buttons button:hover {
  transform: scale(1.05);
}

/* ================= MOBILE ================= */
@media (max-width: 764px) {

  .banner-container {
    width: 95%;
    aspect-ratio: 450px;
  }

  .toggle-buttons {
    gap: 6px;
    padding: 6px 10px;
  }

  .toggle-buttons button {
    font-size: 12px;
    padding: 5px 10px;
  }

  .nav-search input {
    width: 200px;
  }
}

.product {
  transition: all 0.4s ease;
}

.highlight {
  border: 2px solid #ff9800;
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.7);
  transform: scale(1.03);
}

/* ================= PRODUCT CATEGORIES ================= */
.productcategories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 92%;
  margin: 0 auto;
  padding: 20px;
}

/* CATEGORY CARD */
.category {
  background: white;
  border-radius: 18px;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.category:hover {
  transform: translateY(-6px);
}

/* CATEGORY HEADER */
.category-header {
  font-size: 22px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.category-header::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #3B82F6;
  display: block;
  margin-top: 8px;
  border-radius: 5px;
}

/* CATEGORY BODY GRID */
.category-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 25px;
  justify-items: center;
}

.product-link {
  text-decoration: none;
  color: inherit;
}

/* PRODUCT CARD */
.product {
  background: #F8FAFC;
  border-radius: 14px;
  padding: 15px;
  text-align: center;
  transition: 0.3s ease;
  width: 100%;
  max-width: 180px;
  cursor: pointer;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

/* PRODUCT IMAGE */
.product img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.product:hover img {
  transform: scale(1.08);
}

/* PRODUCT TEXT */
.product p {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  margin: 0;
}
