


/* ================= CONTAINER ================= */

.kunda-buy-p1{
  width:100%;
  max-width:1400px;
  margin:auto;
  padding:clamp(12px,3vw,28px);
}

/* ================= LAYOUT ================= */

.kunda-buy-p2{
  display:flex;
  flex-wrap:wrap;
  gap:clamp(16px,4vw,40px);
  align-items:flex-start;
}

/* ================= LEFT ================= */

.kunda-buy-p3{
  flex:0.5 1 320px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
  position:sticky;
  top:96px;
  max-height:calc(100vh - 120px);
  overflow:hidden;
}

/* Main Image */

.kunda-buy-p4{
  width:100%;
  aspect-ratio:1/1;
  background:#fafafa;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.kunda-buy-p4 img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* ================= SMART THUMB SLIDER ================= */

.kunda-buy-thumb-wrap{
  margin-top:12px;
  width:100%;
  position:relative;
}

/* Scroll Area */

.kunda-buy-p5{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:20%; /* 5 images */
  gap:8px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding-bottom:4px;
}

.kunda-buy-p5::-webkit-scrollbar{
  display:none;
}

/* Thumbnails */

.kunda-buy-p5 img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #e5e7eb;
  cursor:pointer;
  scroll-snap-align:start;
  transition:.2s;
}

.kunda-buy-p5 img:hover{
  border-color:#2874f0;
}

/* Arrows */

.kunda-buy-thumb-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border:none;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
  cursor:pointer;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
}

.kunda-buy-thumb-btn.left{
  left:-6px;
}

.kunda-buy-thumb-btn.right{
  right:-6px;
}

/* ================= RIGHT ================= */

.kunda-buy-p6{
  flex:1 1 360px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:clamp(16px,3vw,26px);
  max-height:calc(100vh - 120px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}

.kunda-buy-p6::-webkit-scrollbar{
  width:8px;
}

.kunda-buy-p6::-webkit-scrollbar-track{
  background:transparent;
}

.kunda-buy-p6::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}

.kunda-buy-p7{
  font-size:14px;
  color:#6b7280;
}

.kunda-buy-p8{
  font-size:clamp(20px,4vw,28px);
  font-weight:700;
  margin:6px 0 10px;
}

.kunda-buy-p9{
  display:flex;
  gap:6px;
  margin-bottom:10px;
}

.kunda-buy-p9 span{
  background:#16a34a;
  color:#fff;
  padding:3px 8px;
  border-radius:20px;
  font-size:12px;
}

/* Price */

.kunda-buy-p10{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}

.kunda-buy-p11{color:#16a34a;font-weight:700;}
.kunda-buy-p12{text-decoration:line-through;color:#9ca3af;}
.kunda-buy-p13{font-size:22px;font-weight:700;}

/* Buttons Desktop */

.kunda-buy-p15{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.kunda-buy-p16{
  width:70px;
  height:42px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  text-align:center;
}

.kunda-buy-p17,
.kunda-buy-p18{
  flex:1;
  min-width:130px;
  height:42px;
  border:none;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
}

.kunda-buy-p17{background:#eec400;color:#000000;}
.kunda-buy-p18{background:#16a34a;color:#fff;}

/* Description */

.kunda-buy-p19{
  border-top:1px solid #e5e7eb;
  padding-top:14px;
}

.kunda-buy-p20{font-weight:700;margin-bottom:6px;}

.kunda-buy-p21{
  font-size:14px;
  line-height:1.7;
  color:#374151;
}

/* ================= MOBILE BAR ================= */

.kunda-buy-mobile{
  display:none;
}

/* ================= RESPONSIVE ================= */

/* Tablets */

@media(max-width:992px){

  .kunda-buy-p3,
  .kunda-buy-p6{
    position:static;
    max-height:none;
    overflow:visible;
  }

  .kunda-buy-p5{
    grid-auto-columns:25%; /* 4 images */
  }

}

/* Mobile */

@media(max-width:600px){

  .kunda-buy-p2{
    flex-direction:column;
  }

  .kunda-buy-p5{
    grid-auto-columns:33.33%; /* 3 images */
  }

  .kunda-buy-p15{
    display:none;
  }

  .kunda-buy-mobile{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#fff;
    border-top:1px solid #e5e7eb;
    display:flex;
    gap:10px;
    padding:10px;
    z-index:999;
  }

  .kunda-buy-mobile button{
    flex:1;
    height:44px;
    border:none;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
  }

  .kunda-buy-mobile .cart{
    background:#eec400;
    color:#000000;
  }

  .kunda-buy-mobile .buy{
    background:#16a34a;
    color:#fff;
  }

  body{
    padding-bottom:70px;
  }

}

/* Very Small Phones */

@media(max-width:360px){

  .kunda-buy-p5{
    grid-auto-columns:30%; /* 2 images */
  }

}

/* ================= MOBILE QTY BAR ================= */

.kunda-buy-mobile-qty{
  display:flex;
  align-items:center;
  border:1px solid #e5e7eb;
  border-radius:8px;
  overflow:hidden;
  height:42px;
  background:#fff;
}

.kunda-buy-mobile-qty button{
  width:20px;
  height:100%;
  border:none;
  background:#f3f4f6;
  font-size:18px;
  cursor:pointer;
}

.kunda-buy-mobile-qty input{
  width:42px;
  height:100%;
  border:none;
  text-align:center;
  font-weight:600;
  outline:none;
}

/* Mobile bar layout improve */

@media(max-width:600px){

  .kunda-buy-mobile{
    display:grid;
    grid-template-columns:auto 1fr 1fr;
    gap:8px;
    align-items:center;
  }

}
