/* Root variables for colors */
:root {
  --primary-color: #ee4d2d;
  --text-color: #333;
  --light-gray: #f9f9f9;
  --border-color: #ddd;
  --hover-color: #e6441a;

  /* Font sizes */
  --font-sm: clamp(11px, 1.4vw, 13px);
  --font-md: clamp(13px, 1.6vw, 16px);
  --font-lg: clamp(18px, 2.5vw, 22px);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img { height: 32px; margin-right: 8px; }
.logo span { font-size: 20px; font-weight: bold; color: var(--primary-color); }

.language-select {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--light-gray);
  border-radius: 5px;
}
.language-select i img { width: 20px; margin-right: 6px; }
.language-select select {
  border: none; background: transparent;
  font-size: 14px; outline: none; cursor: pointer;
}

/* HERO */
.hero {
  height: 60vh;
  background: url("page/images/hero3.png") no-repeat center center / cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.hero-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--primary-color);
  margin-bottom: 10px;
}
.hero-text p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #444;
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: clamp(13px, 1.6vw, 15px);
}
.btn:hover { background: var(--hover-color); }

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 16px;
  padding: 20px;
  text-align: center;
  background: #fff;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}
.feature:hover { transform: translateY(-3px); }
.feature img { width: 50px; margin-bottom: 8px; }
.feature p { font-size: 13px; color: #555; }

/* PRODUCTS SECTION */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  background: var(--light-gray);
}

/* PRODUCT CARD */
.product {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.product img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}
.product h3 {
  font-size: var(--font-md);
  color: #222;
  margin: 6px 0;
  line-height: 1.3;
  height: 2.6em; /* ~2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.product .desc {
  font-size: var(--font-sm);
  color: #666;
  margin-bottom: 6px;
  line-height: 1.3;
  height: 2.6em; /* ~2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.product .price {
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--primary-color);
  font-weight: bold;
  margin: 6px 0;
}
.buy-btn {
  background: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: clamp(12px, 1.4vw, 14px);
  display: inline-block;
}
.buy-btn:hover { background: var(--hover-color); }

/* FOOTER NAV */
.footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding: 10px 0;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(10px, 1.2vw, 12px);
  text-decoration: none;
  color: #333;
}
.footer-item img {
  width: clamp(18px, 4vw, 22px);
  margin-bottom: 4px;
}
.footer-item.active span { color: var(--primary-color); }

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .hero { height: 50vh; padding: 0 15px; }
  .product img { max-height: 140px; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .product img { max-height: 100px; }
  .buy-btn { padding: 5px 10px; }
}
