/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  padding-bottom: 70px; /* space for footer */
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #fff;
  color: #ff5722;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo img {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}
.logo span { font-size: clamp(16px, 2vw, 20px); font-weight: bold; }

.language-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 5px 10px;
  border-radius: 6px;
}
.language-select img { width: 16px; }
.language-select select {
  background: transparent;
  border: none;
  color: #000;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

/* PAGE TITLE */
.page-title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
  color: #ff5722;
  text-align: center;
}

/* PRODUCT GRID */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* ✅ auto responsive */
  gap: 15px;
  padding: 15px;
}
.product {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 8px;
}
.product h3 {
  font-size: clamp(13px, 1.6vw, 15px);
  margin: 6px 0 4px;
  color: #333;
  height: 2.4em; /* ~2 lines */
  line-height: 1.2;
  overflow: hidden;
}
.product .desc {
  font-size: clamp(12px, 1.4vw, 13px);
  color: #666;
  margin-bottom: 6px;
  height: 2.4em;
  line-height: 1.2;
  overflow: hidden;
}
.product .price {
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: bold;
  color: #ff5722;
  margin: 6px 0;
}
.buy-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #ff5722;
  color: #fff;
  border-radius: 6px;
  font-size: clamp(12px, 1.4vw, 13px);
  text-decoration: none;
}
.buy-btn:hover { background: #e64a19; }

/* FOOTER NAV */
.footer-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #ddd;
  padding: 6px 0;
  z-index: 999;
}
.footer-item {
  text-align: center;
  flex: 1;
  font-size: clamp(10px, 1.2vw, 12px);
  color: #666;
  text-decoration: none;
}
.footer-item img {
  width: clamp(18px, 4vw, 22px);
  height: auto;
  display: block;
  margin: 0 auto 3px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .header { flex-wrap: wrap; }
  .language-select { padding: 4px 8px; }
  .product img { max-height: 120px; }
}
@media (max-width: 480px) {
  .products { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .product img { max-height: 100px; }
  .buy-btn { padding: 5px 10px; }
}
