.carousel {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

/* Header */
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  padding: 0 20px;
}
#variant-count {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.85;
}

/* Desktop carousel */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  flex: 0 0 100%;
}
.image-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.img-col img {
  width: 215px;
  height: auto;
  margin-bottom: 6px;
}
.label {
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.label::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
}

/* Color codes */
.label.black::before { background: #000; }
.label.white::before { background: #ddd; }
.label.blue::before { background: #2a4d8f; }
.label.pink::before { background: #d48ca3; }
.label.red::before { background: #8b1c34; }

/* Footer */
.carousel-footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  padding: 0 60px;
}
.btn-container {
  text-align: center;
}
.buy-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 14px 30px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #333;
  transition: all 0.3s ease;
}
.buy-btn:hover {
  background: #000;
  color: #fff;
}

/* Arrows */
.carousel-arrows {
  position: absolute;
  right: 45px;
  display: flex;
  gap: 10px;
}
.arrow {
  width: 34px;
  height: 34px;
  background: #fff;
  color: #000;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}
.arrow:hover {
  transform: scale(1.05);
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  margin-bottom: 20px;
}
.carousel-dots button {
  all: unset;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: beige;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dots button.active {
  opacity: 1;
  transform: scale(1.3);
  background: #fff;
}

/* MOBILE layout */
.mobile-section { display: none; }




@media (max-width: 768px) {

  /* Hide desktop variant row */
  .image-row {
    display: none !important;
  }

  /* Mobile layout container */
  .mobile-section {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Product image */
  .mobile-variant {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
  }

  .mobile-variant img {
    width: 170px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 0;
  }

  /* Hide color label */
  .mobile-variant .label {
    display: none !important;
  }

  /* --- 🎨 Color swatches --- */
  /* --- 🎯 100% Perfect Circles --- */
/* --- 🎯 Perfect Circles (with explicit padding fix) --- */
.color-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 0;
  line-height: 0; /* prevents extra height */
}

.color-btn {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  display: inline-block;
  background-clip: padding-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 10px; /* ✅ fixes browser rendering difference */
  transition: transform 0.2s ease, border 0.2s ease;
}

.color-btn.active {
  border-color: #fff;
  transform: scale(1.2);
}

/* 🎨 Colors */
.color-btn.black { background: #000; }
.color-btn.white { background: #ddd; }
.color-btn.blue { background: #2a4d8f; }
.color-btn.pink { background: #d48ca3; }
.color-btn.red { background: #8b1c34; }
.color-btn.gray { background: #777; }
.color-btn.beige { background: #c8b7a6; }



  /* --- Arrows beside image --- */
  .carousel-footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;     /* 🚫 remove top spacing */
    padding-top: 0 !important;
  }

  .carousel-arrows {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
  }

  .arrow {
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .arrow:hover {
    background: #fff;
  }

  /* --- Buy button --- */
  .buy-btn {
    margin-top: 15px;
    padding: 12px 26px;
    font-size: 14px;
    border-radius: 0;
  }

  /* --- Dots --- */
  .carousel-dots {
    margin-top: 15px;
    margin-bottom: 15px;
    gap: 10px;
  }

  .carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: beige;
    opacity: 0.5;
    transition: all 0.3s ease;
  }

  .carousel-dots button.active {
    opacity: 1;
    transform: scale(1.3);
    background: #fff;
  }
}

