* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f9fafb;
  margin: 0;
  padding: 1rem;
  overflow-x: hidden;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-header h1 i {
  color: #f44600;
}

.page-header a {
  text-decoration: none;
  color: #ff5722;
}

.highlight-box {
  background: linear-gradient(to right, #ff6a00, #ff3c00);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.highlight-box h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.highlight-box p {
  font-size: 0.9rem;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.deal-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.deal-img {
  position: relative;
  height: 180px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-badge,
.stock-badge {
  position: absolute;
  top: 10px;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  color: white;
}

.discount-badge {
  left: 10px;
  background-color: #ff5722;
}

.stock-badge {
  right: 10px;
  background-color: #e53935;
}

.deal-info {
  padding: 1rem;
}

.deal-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.deal-info p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.new-price {
  color: #111;
  font-weight: 600;
  font-size: 1rem;
}

.old-price {
  text-decoration: line-through;
  color: #aaa;
  font-size: 0.9rem;
}

.expiry {
  font-size: 0.85rem;
  color: #f44336;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.claim-btn {
  padding: 0.6rem 1rem;
  background-color: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.claim-btn:hover {
  background-color: #e65c00;
}

@media (max-width: 480px) {
  .deal-img {
    height: 140px;
  }

  .deal-info h3 {
    font-size: 1rem;
  }

  .claim-btn {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-align: center;
  color: #777;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item.active,
.nav-item:hover {
  color: #ff5722; /* active or primary color */
}

/* Bottom Navigation Bar Cart Icon Badge */
.icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
}

/* Snackbar styling */
.snackbar {
  visibility: hidden;
  min-width: 180px;
  background-color: #f44336;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 10px 16px;
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  font-size: 14px;
}

.snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 100px;
}

/* Bump animation */
/* Bump animation for cart badge */
.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
