/* PAGE BACKGROUND */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  color: #111;
}

/* PAGE WRAPPER */
.trending-page {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  margin-top: 7rem;
}

/* HEADER */
.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* GRID */
/* .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
} */

/* CARD */
.product-card {
  background: #fff;

  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* IMAGE / VIDEO */
.product-card img,
.product-card video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* INFO SECTION */
.product-info {
  padding: 12px 14px 16px;
  text-align: left;
}

.product-info h3 {
  font-size: 15px;
  margin: 0 0 6px;
  font-weight: 600;
  color: #111;
}

.product-info p {
  font-size: 14px;
  color: black;
  font-weight: 700;
  margin: 0;
}

/* SMALL BADGE (optional upgrade) */
/* .product-card::before {
  content: "Trending";
  position: absolute;
  margin: 10px;
  background: rgba(255, 60, 120, 0.9);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
} */
.product-link{
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-link {
  text-decoration: none;
  color: inherit;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.cart-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #746e6e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.cart-btn:hover {
  transform: scale(1.05);
}

.cart-btn i {
  font-size: 14px;
}
/* .products-grid{
  display:grid !important;
  grid-template-columns:repeat(5, 1fr) !important;
  gap:20px;
} */
/* added for space removal */
.product-card{
    background: #f3f3f3;
}

.product-info{
    padding: 14px 20px !important;
}

.product-info h3{
    margin: 0 0 10px 0 !important;
    font-size: 18px;
    line-height: 1.2;
}

.price-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0 !important;
}

.price-row p{
    margin: 0 !important;
    font-weight: bold;
}

.product-link{
    text-decoration: none;
    color: inherit;
}


.product-info{
    flex: unset !important;
    min-height: auto !important;
}

.product-card{
    height: auto !important;
    min-height: unset !important;
}

.product-info{
    padding: 10px 14px !important;
    min-height: unset !important;
    height: auto !important;
}

.product-info h3{
    margin-bottom: 2px !important;
}

.price-row{
    margin-top: 2px !important;
}

.price-row p{
    margin-bottom: 0 !important;
}
.product-info{
    display: block !important;
}

.price-row{
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.price-row p{
    line-height: 1 !important;
}

.product-info h3{
    line-height: 1 !important;
}

/* RESPONSIVE */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* tablet */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* small laptops */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* phones (THIS is what you want) */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  section.trending-page .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


