body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;   /* center contents */
  align-items: center;
  background: #1c1c1c;
  color: white;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Position nav-left and nav-right at edges */
.nav-left {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.nav-right {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;   /* ensures vertical centering */
  gap: 1rem;             /* space between icons */
}

.nav-logo {
  height: 90px;   /* adjust size */
  width: auto;    /* keep proportions */
  display: block;
}

.icon-btn, .menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 1rem;
  display: flex;            /* center the PNG inside */
  align-items: center;
  justify-content: center;
  padding: 0;               /* remove default button padding */
}

/* ✅ Search logo sizing */
.search-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* turn black -> white */
}

/* Cart logo sizing */
.cart-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* SIDE MENU */
.side-menu {
  position: fixed;
  top: 0;
  left: 0; /* start at left edge */
  width: 250px;
  height: 100%;
  background: #f9f9f9;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  transform: translateX(-100%); /* fully hidden off-screen */
  transition: transform 0.3s ease;
  padding: 1rem;
  z-index: 2000;
}

.side-menu.active {
  transform: translateX(0); /* slide in */
}

.side-menu nav a {
  display: block;
  margin: 1rem 0;
  text-decoration: none;
  color: #111;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  float: right;
  cursor: pointer;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

.overlay.active {
  opacity: 0;
  visibility: visible;
}

/* HERO */
.hero {
  text-align: center;
  margin: 2rem 0;
}

.hero-logo {
  display: block;
  margin: 40px auto;  /* center + spacing */
  width: 400px;       /* larger on desktop */
  max-width: 90%;     /* scale for mobile */
  height: auto;
}

/* PRODUCTS */
.products {
  padding: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.product-card {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
}

.product-card img {
  max-width: 100%;
  height: auto;
}

.btn {
  background: white;
  color: black;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  margin-top: 0.5rem;
  cursor: pointer;
}

.btn.disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* 🔍 SEARCH (with animation + expand) */
#search-input {
  opacity: 0;
  transform: translateY(-50%) translateY(-10px); /* hidden upward */
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;

  position: absolute;
  right: 60px;        /* sits before cart */
  top: 50%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 0px;
  font-size: 1rem;
  color: #111;
  background: #fff;
  z-index: 1600;

  width: 0;           /* collapsed when hidden */
  max-width: 50vw;    /* responsive limit */
  overflow: hidden;   /* hide text until expanded */
}

/* Visible (active) */
#search-input.active {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
  pointer-events: auto;
  width: 300px;       /* expanded size */
}
