@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lexend', sans-serif;
  color: #001F34;
  background: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === TOPBAR === */
.topbar {
  background: #F2F2F2;
  color: #001F34;
  font-size: 0.9rem;
  padding: 8px 0;
  text-align: center;
}
.topbar span {
  margin: 0 10px;
}

/* === HEADER === */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #001F34;
}
.logo span {
  color: #FB0019;
}

/* === NAV === */
.nav {
  display: flex;
  gap: 25px;
  padding: 10px 0 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: #001F34;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: #FF8C00;
}

/* === HERO === */
.hero {
  background: #ffffff;
  padding: 60px 0 30px;
  text-align: center;
}
.hero h1 {
  font-size: 2.4rem;
  color: #001F34;
  margin-bottom: 10px;
}
.hero p {
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* === FILTERS === */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}
.filters select {
  padding: 10px 16px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filters select:hover {
  border-color: #FF8C00;
  color: #001F34;
}

/* === PRODUCT GRID === */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.product {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.product img {
  width: 100%;
  height: auto;
  display: block;
}
.product h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 10px 0 4px;
  text-align: center;
}
.product p {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}
.product .price {
  color: #FB0019;
  font-weight: 600;
  margin-bottom: 15px;
}

/* === PAGINATION === */
.pagination {
  text-align: center;
  margin: 30px 0 60px;
}
.pagination a {
  display: inline-block;
  margin: 0 5px;
  text-decoration: none;
  color: #001F34;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 25px;
  transition: all 0.2s ease;
}
.pagination a.active,
.pagination a:hover {
  background: #001F34;
  color: #fff;
  border-color: #001F34;
}

/* === FOOTER === */
footer {
  background: #001F34;
  color: #eee;
  padding: 50px 0 20px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  color: #FF8C00;
  margin-bottom: 10px;
  font-weight: 500;
}
.footer-grid ul {
  list-style: none;
}
.footer-grid li {
  margin-bottom: 6px;
}
.footer-grid li:hover {
  color: #FB0019;
  cursor: pointer;
}
footer .copyright {
  text-align: center;
  color: #aaa;
  font-size: 0.8rem;
  border-top: 1px solid #223c52;
  padding-top: 10px;
}

/* === POPUP === */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 90%;
  height: 90%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10000;
}
.popup iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 768px) {
  .popup-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .popup-close {
    top: 15px;
    right: 20px;
    font-size: 32px;
  }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .header-top {
    flex-direction: column;
    gap: 10px;
  }
  .nav {
    flex-direction: column;
    align-items: center;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
}
