/* =====================================================
   RAMI SHOP (/products/) - CATEGORY TILES
   Radius 14 + Soft Bottom-Left Gradient
   ===================================================== */

.rami-shop{
  max-width:1320px;
  margin:0 auto;
  padding:40px 16px 70px;
}

/* ================= HEADER ================= */

.rami-shop__header{
  margin-bottom:28px;
}

.rami-shop__title{
  font-size:56px;
  line-height:1;
  margin:18px 0 0;
}

/* ================= GRID ================= */

.rami-shop__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:28px;
}

/* ================= TILE ================= */

.rami-cat-tile{
  position:relative;
  display:block;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  min-height:200px;
  background:#e9e9e9;

  transition:transform .2s ease, box-shadow .2s ease;
}

.rami-cat-tile:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}

/* ================= IMAGE ================= */

.rami-cat-tile__media{
  position:absolute;
  inset:0;
}

.rami-cat-tile__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ================= SOFT BOTTOM-LEFT GRADIENT ================= */

.rami-cat-tile::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:14px;

  background:radial-gradient(
    circle at bottom left,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.18) 30%,
    rgba(0,0,0,0.08) 50%,
    rgba(0,0,0,0.02) 65%,
    rgba(0,0,0,0) 80%
  );

  pointer-events:none;
  z-index:1;
}

/* ================= CONTENT (LEFT ALIGNED) ================= */

.rami-cat-tile__content{
  position:absolute;
  left:22px;
  bottom:22px;
  right:22px;
  z-index:2;
  text-align:left;
}

.rami-cat-tile__title{
  display:block;
  color:#ffffff;
  font-weight:800;
  font-size:22px;
  line-height:1.15;

  white-space:normal;
  word-break:normal;
}

/* Yellow underline */
.rami-cat-tile__line{
  display:block;
  width:44px;
  height:4px;
  margin-top:10px;
  border-radius:4px;
  background:#f2c200;
}

/* ================= RESPONSIVE ================= */

@media (max-width:1024px){
  .rami-shop__grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .rami-shop__title{
    font-size:46px;
  }
}

@media (max-width:640px){
  .rami-shop__grid{
    grid-template-columns:1fr;
  }

  .rami-shop__title{
    font-size:40px;
  }

  .rami-cat-tile__title{
    font-size:20px;
  }
}