* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #333;
}

.header {
  background-color: #102b56;
  color: white;
  padding: 20px;
  padding-bottom: 60px;
}

.header-logo-img {
  height: 220px;
  width: auto;
  object-fit: contain;
  margin-bottom: 5px;
}

.header-logo-title {
  color: white;
  font-size: 1.5rem;
  margin: 0;
}

.top-icons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.right-icons {
  display: flex;
  gap: 10px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

a.icon-btn {
  text-decoration: none;
}

.icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.logo-container {
  text-align: center;
}

.logo {
  background: white;
  color: #102b56;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
}

.main-content {
  background-color: #f8f8f8;
  border-radius: 25px 25px 0 0;
  margin-top: -30px;
  padding: 20px;
  min-height: 100vh;
}

.search-bar input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  margin-bottom: 20px;
  outline: none;
}

.categories {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.cat-btn {
  padding: 8px 16px;
  border: none;
  background-color: white;
  border-radius: 20px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.cat-btn.active {
  background-color: #ff7a00;
  color: white;
}

.section-title {
  margin-bottom: 15px;
  font-size: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:active {
  transform: scale(0.98);
}

.product-image {
  position: relative;
  height: 120px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px 10px 10px;
}

.product-info h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.product-info p {
  font-size: 11px;
  color: #777;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  color: #fb5509;
  font-weight: bold;
  font-size: 16px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: flex-end;
  justify-content: center;
}

.modal-content {
  background-color: white;
  width: 100%;
  max-height: 80vh;
  border-radius: 25px 25px 0 0;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #333;
  background: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-content img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.modal-body {
  padding: 20px;
}

.modal-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
  display: inline-block;
}

.modal-price {
  color: #fb5509;
  font-weight: bold;
  font-size: 20px;
  float: right;
}

.modal-body p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
}
