/* NEW ITEMS GRID */
.newproducts-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
}

@media (max-width: 780px){
  .newproducts-grid{
    grid-template-columns: 1fr;
  }
}

/* PRODUCT CARD */
.newproduct{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
}

/* IMAGE AREA (fixed height) */
.newproduct__media{
  display:block;
  height:260px;              /* tweak to taste (e.g. 240–320) */
  background:#f3f3f3;
  overflow:hidden;
}
.newproduct__media img{
  width:100%;
  height:100%;
  object-fit:cover;          /* consistent crop, fills nicely */
  display:block;
  transform: translateZ(0);  /* helps some browsers render crisply */
}

/* BODY */
.newproduct__body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;                    /* makes cards equal height in a row */
}

/* TITLE STACK – ALWAYS VERTICAL */
/* TITLE STACK */
.newproduct__title{
  display:block;
  text-align:center;
  margin:0;
  line-height:1.25;
}

/* CODE – subtle pill */
.newproduct__code{
  display:inline-block;           /* allows pill sizing to content */
  margin:0 auto 6px;
  padding:4px 10px;
  font-weight:900;
  font-size:14px;
  letter-spacing:0.4px;
  background:rgba(0,0,0,0.06);    /* subtle pill */
  border-radius:999px;
  color:#000;
}

/* NAME – slightly smaller */
.newproduct__name{
  display:block;
  font-size:16px;                 /* smaller than before */
  font-weight:400;
  text-align:center;
}

.newproduct__price{
  font-size:18px;
  font-weight:800;
}

/* CTA pinned to bottom */
.newproduct__cta{
  margin-top:auto;           /* key bit: forces button area to bottom */
}

.newproduct__button{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  cursor:pointer;
}
/* IMAGE HOVER ZOOM */
.newproduct__media img{
  transition: transform 0.35s ease;
}

.newproduct__media:hover img{
  transform: scale(1.08);
}
.newproduct{
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.newproduct:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

/* PROMO / AD CARDS INSIDE NEW PRODUCTS GRID */
.newproduct img.sidebar{
  display:block;
  max-width:180px;
  height:auto;
  margin:12px auto;            /* centers + spacing */
  border-radius:12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional gentle hover polish */
.newproduct img.sidebar:hover{
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

/* PROMO / AD CARDS – FORCE CENTRE */
.newproduct img.sidebar{
  float:none !important;        /* kill legacy floats */
  display:block !important;
  max-width:180px;
  height:auto;
  margin:16px auto !important;  /* true horizontal centring */
  border-radius:12px;
}
