* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f0f0f0;
}

/* Container to maintain mobile width on desktop */
.container {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background-color: #f0f0f0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header {
  background-color: #dc3545;
  padding: 10px 15px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  padding: 8px 15px;
  margin-bottom: 5px;
}

.search-icon {
  color: #dc3545;
  font-size: 20px;
  margin-right: 10px;
}

.search-input {
  border: none;
  outline: none;
  flex-grow: 1;
  font-size: 16px;
  color: #333;
}

.camera-icon,
.cart-icon,
.message-icon {
  color: white;
  font-size: 24px;
  margin-left: 15px;
}

.message-badge {
  position: relative;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: white;
  color: #dc3545;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.header-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #dc3545;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.product-details {
  padding: 10px;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  color: #dc3545;
  font-size: 18px;
  font-weight: bold;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.original-price {
  font-size: 12px;
  text-decoration: line-through;
  color: #888;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  margin: 5px 5px 5px 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.tag-red {
  background-color: #dc3545;
  color: white;
}

.tag-outline {
  border: 1px solid #dc3545;
  color: #dc3545;
}

.live-tag {
  background-color: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.live-icon {
  margin-right: 4px;
}

.rating {
  display: flex;
  align-items: center;
  color: #ffc107;
  font-weight: bold;
  background-color: #fff6e0;
  padding: 3px 6px;
  border-radius: 4px;
  width: fit-content;
}

.menu-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background-color: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 12px;
}

.menu-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.active {
  color: #dc3545;
}

.notification-badge {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

/* Sales info style */
.sales-info {
  font-size: 12px;
  color: #666;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 5px;
}

.modal-title {
  color: #333;
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
}

.modal-description {
  color: #666;
  margin-top: 8px;
  font-size: 14px;
}
