/* ================= 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 CONTAINER ================= */
/* ================= BANNER CONTAINER ================= */
.banner-container {
  width: 92%; /* Side spacing as requested */
  margin: 20px auto;
  position: relative;
  aspect-ratio: 16 / 9; 
  overflow: hidden;
  border-radius: 20px;
  
  /* MATCHING YOUR NAVBAR BACKGROUND */
  /* If your navbar is slightly different, adjust this hex code */
  background-color: #f8f9fa; 
  
  /* Subtle shadow to give it the "Second Picture" depth */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.banner-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Using 'contain' so nothing is zoomed or trimmed */
  object-fit: contain; 
  opacity: 0;
  /* Smooth transition without the "whitish" flash */
  transition: opacity 0.6s ease-in-out, visibility 0.6s;
  visibility: hidden;
}

.banner-container video.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* ================= REFINED TOOLBAR ================= */
.toggle-buttons {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  
  /* Semi-transparent dark glass so buttons are visible on light backgrounds */
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 50px;
}

.toggle-buttons button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 40px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s ease;
}

.toggle-buttons button.active-toggle {
  background: white;
  color: black;
}

/* ================= MOBILE FIX (Second Picture Look) ================= */
@media (max-width: 768px) {
  .banner-container {
    width: 92%; 
    margin: 10px auto;
    /* Aspect ratio for the taller "Phone" look */
    aspect-ratio: 4 / 5; 
    border-radius: 20px;
  }

  .toggle-buttons {
    width: 85%;
    justify-content: center;
    bottom: 12px;
  }

  .toggle-buttons button {
    font-size: 9px;
    padding: 6px 8px;
    flex: 1;
  }
}

.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;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .banner-container {
    aspect-ratio: 4 / 5;
  }

  .nav-search input {
    width: 250px;
  }

  .toggle-buttons {
    gap: 6px;
    padding: 6px 10px;
  }

  .toggle-buttons button {
    font-size: 11px;
    padding: 6px 10px;
  }

  .category-body {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}