
body {
  margin: 0;
  background: #FFFFE4;
  font-family: system-ui;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 16px;
}

/* CARD NHỎ GỌN */
.card {
  background: #F6C1C1;
  border-radius: 20px;
  padding: 14px 12px 18px;
  text-align: center;
}

/* KHUNG ẢNH */
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  margin-bottom: 10px;
}

/* NÚT */
.card a {
  display: inline-block;
  padding: 8px 26px;
  background: #305F4D;
  color: #FFFFE4;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

/* search */
.search-bar {
  flex: 1;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 44px 12px 20px;
  border-radius: 999px;
  border: none;
  background: #FFC025;
  font-size: 15px;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* menu icon */
.menu-btn {
  width: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  height: 3px;
  background: #305F4D;
  border-radius: 2px;
}

/* ===== MENU ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFE4;
}


.menu-btn {
  z-index: 101;
}


.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 72%;
  height: 100%;
  background: #305F4D;
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: right 0.35s ease;
  z-index: 999; /* 👈 QUAN TRỌNG */
}

.menu.show {
  right: 0;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;   /* bình thường không click */
  transition: opacity 0.3s ease;
  z-index: 900;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;   /* 👈 KHI MỞ MỚI CLICK ĐƯỢC */
}



