.categories-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);  
  align-items: stretch;
}

.category-card1 {
  background: #fff;
  border-radius: 10px;
  text-align: center;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
  color: #000;
  display: flex;
  flex-direction: column;
  height: auto; 
}

.category-card1:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.cat-box {
  width: 100%;
  height: 160px;  
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
}

.category-card1 img {
  width: 100%;
  height: 100%;
  object-fit: cover; object-position: top;
}

.category-card1 h6 {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card1 p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.3;
  height: 34px;
  overflow: hidden;
}
.swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;  
    object-fit: cover;
    border-radius: 10px;
}

.category-info {
    font-size: 13px;
    line-height: 1.3;
}

/*  Tablet View: 3 cards per row css/index-style.css */
@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-card1 {
    height: 220px;
  }
}

/*  Mobile: 2 cards per row */
@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card1 {
    height: auto;
    padding-bottom: 15px;
  }
  .cat-box {
    height: 100px;
  }
}








/* Loader wrapper for currency section */
.currency-section {
  position: relative; 
  min-height: 420px; /* ensure loader visible before content fully loads */
}

/* Currency Section Loader */
#currencyLoader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,10,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Spinning Coin Style Loader */
.loader-animation {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 6px solid rgba(255,215,0,0.25);
  border-top-color: gold;
  animation: spinCoin 0.9s linear infinite;
}

@keyframes spinCoin {
  to { transform: rotate(360deg); }
}

/* Fade Out Hidden */
.hide-currency-loader {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
