
.category-section {
    padding: 15px;
    
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1f2937;
}
.category-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}
.category-card {
    background: #fff;
    width: 240px;
    max-height:355px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #1f2937;
    position: relative;
}
.category-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.category-image {
    height: 120px;
    width: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* for background circle */
}
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills the container completely */
    position: relative;
    z-index: 2; /* above the background circle */
    border-radius: 50%; /* make image circular */
    border: 3px solid #ff69b4; /* pink border */
}

.background-circle {
    position: absolute;
    width: 150px;  /* slightly bigger than main image */
    height: 150px;
    background: rgba(255, 182, 193, 0.3); /* soft pink halo effect, adjust color */
    border-radius: 50%;
    border:red;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* behind the main image */
}
.placeholder {
    width: 120px;
    height: 120px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #777;
    font-size: 0.9rem;
}
.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.subcategories {
    font-size: 0.9rem;
    color: #6b7280;
}
@media (max-width: 768px) {
    .category-card {
        width: 45%;
    }
}
@media (max-width: 480px) {
    .category-card {
        width: 100%;
    }
}

/* 🔹 Product Image Optimization (Frontend Only) */
.rv-product-image,
.product-image {
  width: 100%;
  height: auto;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast; /* Sharper scaling on Chrome */
  image-rendering: crisp-edges; /* Sharper look on desktop */
  backface-visibility: hidden; /* Better GPU performance */
  transform: translateZ(0); /* Triggers GPU acceleration */
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
  background-color: #f4f4f4; /* Placeholder background while loading */
  filter: blur(0.3px) contrast(1.05); /* Slight compression illusion */
}

/* 🔹 Hover effect for modern feel */
.rv-product-image:hover,
.product-image:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 🔹 Product media container: prevents layout shift */
.rv-product-media,
.product-media {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔹 Mobile-friendly adjustment */
@media (max-width: 768px) {
  .rv-product-image,
  .product-image {
    max-width: 100%;
    border-radius: 8px;
  }
}

/* 🔹 Boost lazy-load performance */
.rv-product img,
.product img {
  content-visibility: auto; /* Skip off-screen rendering */
  contain-intrinsic-size: 300px; /* Reserve image space before load */
}

/* ============ Desktop & Hover Behavior ============ */
    .rv-menu li.has-megamenu ul.category-scroll {
      display: none !important;
    }
    .rv-menu li.has-megamenu:hover ul.category-scroll {
      display: flex !important;
    }

    /* ============ Mobile View ============ */
    @media (max-width: 768px) {
      .rv-menu {
        justify-content: space-between !important;
        gap: 10px !important;
      }
.rv-menu li.has-megamenu ul.category-scroll {
      display: none !important;
    }
      /* Hide all menu items by default */
      .rv-menu > li {
        display: none !important;
      }
    }
    
    .rv-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.rv-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.has-megamenu {
  position: relative;
}

.main {
    max-width: 1400px;
    padding: 10px;
    border: 3px rgb(0, 172, 212);
    border-radius: 6px;
}


    