.kulfi-section {
  text-align: center;
  padding: 0px 20px;
}
.kulfi-section picture {
  max-width: 100%;
}

.kulfi-title {
  text-align: center;
  font-size: 16rem;
  font-family: "amsi pro condensed", sans-serif;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #de261e;
  margin: 0; /* ✅ extra space hata do */
  line-height: 0.9; /* ✅ font ki upar-neeche ki space tight karo */
  padding: 20px 0; /* ✅ thoda balanced spacing */
}

.family-pack-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* text aur line ke beech ka gap */
  font-size: 3rem;
  font-family: "Amsi pro";
  font-weight: 900;
  margin-top: 2%;
  color: #de261e;
}

.family-pack-subtitle::before,
.family-pack-subtitle::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #de261e;
}

.kulfi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ desktop/laptop pe 3 */
  gap: 50px;
  max-width: 1100px;
  margin: auto;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* Card */
.kulfi-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

/* Top Red Curved Part */
.kulfi-top {
  background: #de261e;
  border-radius: 45% 45% 0 0;
  position: relative;
  overflow: visible;
  height: 250px;
  box-shadow: rgba(0, 0, 0, 0.3) 1.95px 1.95px 2.6px;
}

.image-wrapper {
  position: relative;
  top: -20%;
}
.family-packs-img {
  transform: rotate(-30deg);
}

.tub-image-wrapper img {
  height: 370px;
  margin-top: 10%;
  width: 110%;
  object-fit: contain;
  object-position: top;
  display: block;
}

.cake-image-wrapper img {
  height: 371px;
  margin-top: 0%;
  width: 112%;
  object-fit: contain;
  object-position: top;
  display: block;
}

.family-pack-image-wrapper img {
  height: 370px;
  margin-top: 20%;
  margin-left: 13%;
  width: 120%;
  object-fit: contain;
  object-position: top;
  display: block;
  transform: rotate(-25deg);
}

.image-wrapper img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  object-position: top;
  display: block;
}

/* Bottom White Section */
.kulfi-bottom {
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: 12px;
  height: 70px;
  box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 5px 2px;
  z-index: 1;
}

.ice-cream-product-title {
  color: #de261e;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  font-family: "Amsi pro";
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.note {
  margin-top: 40px;
  font-size: 1rem;
  color: #de261e;
  font-weight: 900;
  font-family: "Amsi Pro", sans-serif;
  border-top: 1px solid #de261e;
  display: inline-block;
  padding-top: 10px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  margin-top: 10%;
}

.pack-slide {
  display: none; /* sirf active visible */
}

.pack-slide.active {
  display: block;
}
.pack-navigation {
  margin-top: 20px;
  text-align: center;
}

.pack-navigation button {
  border: 1px solid #de261e;
  background: none;
  color: #de261e;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.pack-navigation button:hover {
  background: #de261e;
  color: #fff;
}
@media screen and (min-width: 477px) {
  .kulfi-section picture {
    max-width: 70%;
  }
}

@media (max-width: 26000px) {
  .kulfi-section {
    margin-bottom: 100px;
  }
}

/* ✅ Responsive Breakpoints */
@media (max-width: 1440px) {
  .family-pack-image-wrapper img {
    height: 370px;
    margin-top: 20%;
    margin-left: 10%;
    width: 120%;
    object-fit: contain;
    object-position: top;
    display: block;
    transform: rotate(-25deg);
  }
  .kulfi-section {
    margin-bottom: 100px;
  }
  .kulfi-title {
    font-size: 10rem;
    margin-bottom: -40px;
  }
  .family-pack-subtitle {
    font-size: 2rem;
  }

  .kulfi-grid {
    gap: 50px;
    max-width: 70%;
  }

  .image-wrapper img {
    height: 370px;
  }
}

@media (max-width: 1200px) {
  .kulfi-section {
    margin-bottom: 100px;
  }

  .kulfi-title {
    font-size: 12rem;
    margin-bottom: -40px;
  }
  .family-pack-subtitle {
    font-size: 2rem;
  }

  .kulfi-grid {
    gap: 30px;
    max-width: 90%;
  }

  .image-wrapper img {
    height: 350px;
  }
}

/* Large tablets / smaller laptops */
@media (max-width: 1024px) {
  .kulfi-section {
    margin-bottom: 100px;
  }
  .family-pack-image-wrapper img {
    height: 370px;
    margin-top: 22%;
    margin-left: 17%;
    width: 105%;
    object-fit: contain;
    object-position: top;
    display: block;
    transform: rotate(-25deg);
  }
  .kulfi-title {
    font-size: 8rem;
    margin-bottom: -40px;
  }
  .family-pack-subtitle {
    font-size: 2rem;
  }
  .kulfi-grid {
    gap: 30px;
    max-width: 90%;
  }

  .image-wrapper img {
    height: 350px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .kulfi-title {
    font-size: 10rem;
    margin-bottom: -20px;
  }
  .family-pack-subtitle {
    font-size: 2rem;
  }

  .kulfi-grid {
    grid-template-columns: repeat(2, 1fr); /* ✅ tablet/mobile → 2 */
    gap: 50px;
    max-width: 100vh;
  }

  .image-wrapper img {
    height: 280px;
  }
  .family-pack-image-wrapper img {
    height: 370px;
    margin-top: 15%;
    margin-left: 20%;
    width: 120%;
    object-fit: contain;
    object-position: top;
    display: block;
    transform: rotate(-25deg);
  }
  .kulfi-top {
    height: 200px;
  }

  .kulfi-bottom {
    height: 60px;
  }
}

/* Small mobiles */
@media (max-width: 480px) {
  .family-pack-image-wrapper img {
    height: 370px;
    margin-top: 10%;
    margin-left: 30%;
    width: 110%;
    object-fit: contain;
    object-position: top;
    display: block;
    transform: rotate(-25deg);
  }
  .kulfi-section {
    margin: 0px -30px;
  }
  .image-wrapper {
    top: -25px;
  }
  .kulfi-title {
    font-size: 5rem;
    margin-bottom: -15px;
    -webkit-text-stroke: 2px #de261e;
  }
  .family-pack-subtitle {
    font-size: 1.2rem;
  }
  .kulfi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .image-wrapper img {
    height: 190px;
  }

  .kulfi-top {
    height: 135px;
  }

  .kulfi-bottom {
    padding: 8px;
    height: 50px;
    border-radius: 0 0 10px 10px;
  }

  .ice-cream-product-title {
    font-size: 0.8rem;
  }

  .note {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 376px) {
  .family-pack-image-wrapper img {
    height: 370px;
    margin-top: 20%;
    margin-left: 40%;
    width: 110%;
  }
}
@media (max-width: 321px) {
  .family-pack-image-wrapper img {
    height: 370px;
    margin-top: 20%;
    margin-left: 40%;
    width: 110%;
  }
}

.image-loader {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.image-loader::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 56.25%; /* maintain aspect ratio (16:9), adjust as needed */
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.image-loader img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  width: 100%;
  height: auto;
}

.image-loader img.loaded {
  opacity: 1;
}

.image-loader img.loaded ~ ::before {
  display: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
