/* GLOBAL */
body {
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  background-color: #f7f7f7;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 0 20px;
  height: 60px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
}

.navbar > * {
  min-width: 0;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-img {
  height: 60px;
  width: auto;
}

.search-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 0;
  overflow: hidden;
}

.search-input {
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 6px 0 0 6px;
  border: 1px solid #ccc;
  outline: none;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.search-button {
  background-color: #31c252;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.search-button:hover {
  background-color: #28a745;
  transform: scale(1.05);
}

.search-button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* NAV ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-btn {
  background-color: transparent;
  border: 1px solid #31c252;
  color: #31c252;
  padding: 5px 10px;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-btn.signup {
  background-color: #31c252;
  color: #fff;
}

.nav-btn:hover {
  background-color: #28a745;
  color: #fff;
  transform: scale(1.1);
}

.cart-icon {
  width: 28px;
  height: 28px;
  filter: hue-rotate(90deg) saturate(3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cart-icon:hover {
  transform: scale(1.1);
}

/* HERO VIDEO */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-wrapper {
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#hero-video {
  width: 100vw;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


/* HERO BUTTON */
.hero-video {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #31c252;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 2vw + 0.5rem, 1.8rem);
  padding: 0.7em 1.6em;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 1;
  max-width: 90vw;
  white-space: nowrap;
}

.hero-btn:hover {
  background-color: #28a745;
  transform: translateX(-50%) scale(1.02);
}

/* MINI BILDS SECTION */
.minibilds {
  padding: 40px 20px;
  position: relative;
}

.minibilds h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.minibilds-background {
  background: linear-gradient(to bottom, #686868, #f0f0f0);
  padding: 10px 0;
}

.minibilds-tab {
  position: absolute;
  top: 20px;
  left: -60px;
  transform: rotate(-90deg);
  padding: 6px 12px;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-family: 'Baloo 2', sans-serif;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  border: 4px solid var(--border-color, #cccccc);
  background-color: var(--bg-color, #ffffff);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: scale(1.05);
}

.product-img-wrapper {
  position: relative;
  height: 160px;
  width: 100%;
  background-color: var(--img-bg, #ffffff);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-logo {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.product-info {
  padding: 4px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
}

.product-info p {
  font-size: 0.85rem;
  margin: 0;
  color: #666;
}

/* CONTACT FOOTER */
.contact {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.contact p {
  margin: 0;
  font-size: 0.95rem;
}

/* Single media query only for narrow screens */
@media (max-width: 420px) {
  .navbar {
    gap: 4px;
    padding: 4px 8px;
  }

  .logo-img {
    height: 26px;
  }

  .search-input {
    font-size: 0.65rem;
    padding: 4px 6px;
  }

  .search-button {
    padding: 4px 6px;
  }

  .search-button img {
    width: 14px;
    height: 14px;
  }

  .nav-btn {
    padding: 3px 5px;
    font-size: 0.65rem;
  }

  .cart-icon {
    width: 18px;
    height: 18px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}