
.category-section{
  position:relative;
  width:100%;
}
.category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  padding:10px;
}
.category-card{
  min-width:0;
  background:#fff;
  border-radius:12px;
  box-shadow:0 2px 12px rgba(0,0,0,.07);
  padding:15px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.category-card img{
  width:100%;
  height:320px;
  object-fit:contain;
}
.category-card h3{
  font-size:18px;
  font-weight:500;
  line-height:1.5;
  min-height:54px;
  margin:12px 0;
  color:#111;
}
.category-card .view-more{
  display:inline-block;
  padding:9px 26px;
  border:1px solid #222;
  border-radius:30px;
  color:#111;
  text-decoration:none;
  font-size:14px;
  margin-top:auto;
  transition:.3s;
}
.category-card .view-more:hover{
  background:#004297;
  color:#fff;
  border-color:#004297;
}
.category-arrows{
  display:none;
}

@media(max-width:768px){
  .category-grid{
    display:flex;
    gap:12px;
    padding:10px 5px 16px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .category-grid::-webkit-scrollbar{
    display:none;
  }
  .category-card{
    flex:0 0 calc(50% - 6px);
    scroll-snap-align:start;
    padding:10px;
  }
  .category-card img{
    height:210px;
  }
  .category-card h3{
    font-size:14px;
    min-height:48px;
    margin:10px 0;
  }
  .category-card .view-more{
    padding:7px 16px;
    font-size:12px;
  }
  .category-arrows{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    padding:5px 0 12px;
  }
  .category-arrow{
    width:36px;
    height:36px;
    border:1px solid #222;
    border-radius:50%;
    background:#fff;
    color:#222;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .category-arrow:active{
    background:#004297;
    color:#fff;
  }
}
