/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
}

.page-title {
  text-align: center;
  margin: 25px auto;
  font-size: 32px;
  font-weight: bold;
}

/* ================= NAVBAR ================= */
nav {
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-strip {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
}

.logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links button,
.nav-links a {
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: #333;
}

.nav-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-icons i {
  font-size: 22px;
  cursor: pointer;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: black;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  padding: 10px;
}

.mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

/* ================= SEARCH + SORT ================= */
.controls {
  width: 90%;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls input,
.controls select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #bbb;
  border-radius: 6px;
}

.controls input {
  width: 60%;
}

/* ================= PRODUCT GRID ================= */
.product-grid {
  padding: 20px 40px;
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  background: white;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h3 {
  margin: 10px 0;
}

.desc {
  font-size: 14px;
  color: #777;
  height: 40px;
  overflow: hidden;
}

.price {
  margin: 10px 0;
  font-size: 20px;
  color: #ff1744;
  font-weight: bold;
}

.actions {
  display: flex;
  justify-content: space-between;
}

.actions button {
  padding: 8px 12px;
  background: #ff1744;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ================= PAGINATION ================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid #111;
  cursor: pointer;
  background: white;
  transition: 0.3s;
  border-radius: 5px;
}

.page-btn.active {
  background: #111;
  color: white;
}

.page-btn:hover {
  background: #111;
  color: white;
}

/* ================= FOOTER ================= */
footer {
  background: #fff;
  margin-top: 40px;
  padding: 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-top div {
  width: 22%;
}

.footer-top input {
  padding: 8px;
  width: 90%;
}

.footer-top button {
  padding: 8px 20px;
  margin-top: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.footer-icons i {
  font-size: 22px;
  margin-right: 15px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ===== MOBILE FIX: 3 ITEMS ===== */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    gap: 15px;
  }

  .product-card img {
    height: 140px;
  }

  .controls {
    flex-direction: column;
    gap: 12px;
  }

  .controls input,
  .controls select {
    width: 100%;
  }

  footer {
    text-align: center;
  }

  .footer-top div {
    width: 100%;
    margin-bottom: 20px;
  }
}
