/* ===== Global / background like welcome page ===== */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

.pageBg {
  min-height: 100vh;
  background: url("/home/shopadmin/shop_project/public/images/welcome.png") center/cover no-repeat fixed;
  position: relative;
}

/* dark overlay so text is readable */
.pageBg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.pageContent {
  position: relative;
  z-index: 2;
}

/* ===== Topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  color: #fff;
}

.leftTop {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menuBtn {
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.25);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
}

.logo {
  margin: 0;
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 700;
}

.cartBtn {
  color: white;
  text-decoration: none;
  font-size: 20px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.25);
  padding: 10px 12px;
  border-radius: 14px;
}

/* ===== Menu ===== */
.menu {
  position: absolute;
  top: 70px;
  left: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
  z-index: 50;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 10px;
  border-radius: 12px;
}

.menu a:hover {
  background: rgba(255,255,255,0.12);
}

.hidden { display: none; }

/* ===== Category title ===== */
.pageTitle {
  color: white;
  padding: 8px 18px 0;
  font-size: 18px;
  opacity: 0.95;
}

/* ===== Products Grid ===== */
.productsWrap {
  padding: 18px;
}

.productsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* ✅ 3 per row */
  gap: 14px;
}

@media (max-width: 900px) {
  .productsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .productsGrid { grid-template-columns: 1fr; }
}

.productCard {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.productImg {
  width: 100%;
  aspect-ratio: 1 / 1;     /* ✅ square */
  object-fit: cover;        /* ✅ no stretching */
  display: block;
}

.productBody {
  padding: 12px;
  color: white;
}

.productName {
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 14px;
}

.productPrice {
  margin: 0 0 10px;
  opacity: 0.95;
}

.addBtn {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: white;
  font-weight: 700;
}
