/* IndiaLiveDeal Professional Amazon-Inspired Redesign */

:root {
  --deal-orange: #ff9900;
  --deal-orange-dark: #e47911;
  --deal-navy: #172337;
  --deal-bg: #eaeded;
  --deal-white: #ffffff;
  --deal-text: #0f1111;
}

/* Main page */
body {
  background: var(--deal-bg);
  color: var(--deal-text);
  font-family: Arial, sans-serif;
}

/* Hero banner */
.hero {
  background: linear-gradient(120deg, #172337, #354068);
  color: #ffffff;
  padding: 30px 18px;
  border-radius: 0 0 14px 14px;
}

.hero h1 {
  font-size: clamp(23px, 5vw, 36px);
  font-weight: 800;
  margin: 0 0 10px;
}

.hero p {
  color: #e5e7eb;
  line-height: 1.5;
}

.hero a {
  display: inline-block;
  background: var(--deal-orange);
  color: #172337;
  padding: 12px 22px;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  margin-top: 10px;
}

/* Product grid */
#grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Product cards */
article.card {
  background: #ffffff;
  border: 1px solid #e3e6e6;
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 2px 7px rgba(0,0,0,.06);
  transition: transform .2s ease;
}

article.card:hover {
  transform: translateY(-3px);
}

/* Product images */
article.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  display: block;
}

/* Discount badge */
article.card .badge {
  background: #cc2525;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

/* Price */
article.card .price {
  color: #b12704;
  font-size: 20px;
  font-weight: 800;
}

article.card .old {
  color: #777777;
  text-decoration: line-through;
}

article.card .save {
  color: #16803c;
  font-weight: 700;
}

/* Top / Hot deals */
.hot-item {
  background: #ffffff;
  border: 1px solid #e3e6e6;
  border-radius: 10px;
  padding: 10px;
}

/* Deals toolbar */
.toolbar {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  margin-top: 18px;
}

/* Sort and saved buttons */
#sort,
#savedBtn {
  border: 1px solid #d5d9d9;
  border-radius: 7px;
  padding: 9px 12px;
  background: #ffffff;
}

/* Mobile layout */
@media (max-width: 600px) {

  #grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  article.card {
    padding: 8px;
    border-radius: 9px;
  }

  article.card img {
    height: 145px;
  }

  article.card .price {
    font-size: 17px;
  }

  .hero {
    padding: 24px 15px;
  }

}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
  #grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
