/* SECTION */
.bamboo-showcase {
  position: relative;
  min-height: 900px;
  height: auto;
  background: url('/assets/images/home-hero-bg2.png') center/cover no-repeat;
  overflow: hidden;
}

/* HEADER */
.bamboo-header {
  text-align: center;
  padding: 20px 10px 10px;
  color: #fff;
}

.bamboo-header h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.bamboo-header p {
  font-size: 1.4rem;
  color: #d4e157;
}

/* STAGE */
.bamboo-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ITEM */
.item {
  position: absolute;
  text-align: center;
  transition: 0.3s;
}

/* FIXED HOVER (no layout break) */
.item:hover {
  transform: translate(var(--x, 0), var(--y, 0)) scale(1.04);
}

/* SHAPE BASE */
.shape {
  overflow: hidden;
  position: relative;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.3),
    inset 0 0 0 3px rgba(255,255,255,0.2);
}

/* =========================
   NEW LAYOUT SHAPES
========================= */

/* LEFT & RIGHT (VERTICAL RECTANGLES) */
.corner-lamp .shape,
.lotus-lamp .shape {
  width: clamp(180px, 18vw, 260px);
  height: clamp(360px, 36vw, 520px);
  border-radius: 30px;
}

/* CENTER (STACKED SQUARES) */
.jhula-back .shape,
.mobile-holder .shape {
  width: clamp(180px, 18vw, 260px);
  height: clamp(180px, 18vw, 260px);
  border-radius: 20px;
}

/* IMAGE */
.shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;          /* remove space */
  background: none;    /* remove white */
  display: block;      /* avoids tiny gaps */
}

/* PRODUCT INFO */
.product-info {
  margin-top: 16px;
}

.product-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* OVERLAY BASE */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2),
    transparent
  );
  opacity: 0;
  transition: 0.4s ease;
}

/* SHOW ON HOVER */
.shape:hover .overlay {
  opacity: 1;
}

/* PRODUCT NAME */
.label {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* TAG STYLE */
.tag {
  font-size: 13px;
  color: #d4e157;
  margin-bottom: 12px;
}

/* BUTTON */
.overlay .btn {
  align-self: flex-start;
  background: linear-gradient(145deg, #8b5a2b, #5c3a1e);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: 0.3s;
}

.overlay .btn:hover {
  transform: scale(1.05);
}

/* BUTTON */
.product-btn {
  display: inline-block;
  background: linear-gradient(145deg, #8b5a2b, #5c3a1e);
  color: #fff;
  padding: 10px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: 0.3s;
}

.product-btn:hover {
  transform: scale(1.08);
}

/* =========================
   NEW POSITIONS
========================= */

/* LEFT VERTICAL */
.corner-lamp {
  top: 50%;
  left: 18%;
  --y: -50%;
  transform: translateY(-50%);
}

/* RIGHT VERTICAL */
.lotus-lamp {
  top: 50%;
  right: 18%;
  --y: -50%;
  transform: translateY(-50%);
}

/* CENTER TOP */
.jhula-back {
  top: 18%;
  left: 50%;
  --x: -50%;
  transform: translateX(-50%);
}

/* CENTER BOTTOM */
.mobile-holder {
  bottom: 18%;
  left: 50%;
  --x: -50%;
  transform: translateX(-50%);
}

/* CTA */
.explore {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
}

.explore a {
  background: linear-gradient(145deg, #8b5a2b, #5c3a1e);
  color: #fff;
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* FLOATING LEAVES */
.leaf {
  position: absolute;
  width: 60px;
  height: 60px;
  background: url('/assets/images/leaf.png') no-repeat center/contain;
  opacity: .45;
  animation: floatLeaf 7s ease-in-out infinite;
  z-index: 1;
}

.service-leaf-left-1 {
  top: 30%;
  left: 50%;
  animation-delay: 0s;
}

.service-leaf-left-2 {
  top: 90%;
  left: 65%;
  animation-delay: 2s;
}

@keyframes floatLeaf {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(12deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ==========================================
   MOBILE FIX (NO CROPPING FINAL)
========================================== */
@media (max-width: 768px) {

  /* SECTION */
  .bamboo-showcase {
    height: auto;
    padding: 40px 16px 60px;
  }

  /* 🔥 RESET ALL POSITIONING */
  .item,
  .corner-lamp,
  .lotus-lamp,
  .jhula-back,
  .mobile-holder {

    position: relative !important;

    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;

    transform: none !important;

    width: 100%;
    max-width: 100%;

    margin: 0 0 24px;
  }

  /* SHAPE */
  .shape {
    position: relative;
  }


  /* REMOVE SIZE VARIATIONS */
  .corner-lamp .shape,
  .lotus-lamp .shape {
    width: 100%;
    height: 400px;
  }

  .jhula-back .shape {
    width: 100%;
    height: 350px;
  }

  /* IMAGE */
  .shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* MOBILE HOLDER - full image, no crop */
  .mobile-holder .shape {
    width: 100%;
    height: 0;
    padding-top: 89%;
    position: relative;
    overflow: hidden;
  }

  .mobile-holder .shape img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }


 /* 🔥 HARD RESET OVERLAY */
  .overlay {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0;
    width: 100%;

    display: flex !important;
    flex-direction: row !important; /* 🔥 FORCE ROW */
    align-items: center !important;
    justify-content: space-between !important;

    padding: 10px 12px;
    box-sizing: border-box;

    background: linear-gradient(
      to top,
      rgba(0,0,0,0.85),
      rgba(0,0,0,0.2),
      transparent
    );

    opacity: 1;
  }

  /* 🔥 REMOVE ANY CENTER ALIGNMENT */
  .overlay * {
    text-align: left !important;
  }

  /* LEFT TEXT WRAPPER */
  .overlay > div {
    flex: 1;
    min-width: 0;
    margin: 0;
    display: block !important; /* 🔥 remove flex/center */
  }

  /* PRODUCT NAME */
  .label {
    font-size: 13px;
    margin: 0;
    color: #fff;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* BUTTON */
  .overlay .btn {
    font-size: 11px;
    padding: 6px 10px;

    margin-left: 10px;
    flex-shrink: 0;
  }

  /* CTA */
  .explore {
    position: relative !important;   /* remove absolute */
    left: auto !important;
    bottom: auto !important;
    transform: none !important;

    width: 100%;
    display: flex;
    justify-content: center;         /* 🔥 center horizontally */
    margin-top: 30px;
  }

    .explore a {
    display: inline-block;
    text-align: center;

    padding: 14px 28px;
    font-size: 14px;

    max-width: 90%;                  /* prevents overflow */
    box-sizing: border-box;
  }

  /* REMOVE LEAVES */
  .leaf {
    display: none;
  }
}