.cpp-pack-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
}

.cpp-regular {
  color: #982C26;
  font-weight: 600;
}

/* 🎨 Cookie Stepper Styles */
.cpp-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fff8f3;
  /* soft cookie-cream background */
  border: 2px solid #982c265e;
  border-radius: 50px;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: 'Poppins', sans-serif;
}

.cpp-stepper button {
  padding: 8px 12px;
  /* width: 33px; */
  /* height: 34px; */
  border-radius: 50%;
  border: none;
  background: #982C26;
  color: #fff;
  /* font-weight: bold; */
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cpp-stepper button:hover {
  background: #982C26;
  /* darker shade on hover */
  transform: translateY(-2px);
}

.cpp-stepper button:active {
  transform: scale(0.95);
}

.cpp-stepper .cpp-qty-input {

  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #5a3825;
  pointer-events: none;
  /* readonly */
}




.cpp-pack-item {
  padding: 1rem !important;
  border: 1px solid black;
  transition: background 0.3s ease-in-out;
  cursor: pointer;
  color: #000;
}

.cpp-pack-item:hover {
  background-color: #3E3E3E;
  color: white;

}

.cpp-pack-item.active {
  background: #982C26;
  border: 2px solid #982C26;
  color: white;

}


.cpp-pack-item.active .cpp-regular , .cpp-pack-item:hover .cpp-regular {
  color: red;
}

.cpp-minus {
  padding-top: 5px !important;
}


#cpp-add-to-cart {
  font-family: 'DM Sans', sans-serif;
  background-color: white;
  color: black;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 6px 12px;
  border: 2px solid white;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);


}

#cpp-add-to-cart:not(.cpp-hidden) {
  opacity: 1;
  transform: translateY(0);


}

.cpp-hidden {
  display: none !important;
}



#cpp-bottom-bar.cpp-hidden {
  display: none !important;
}

#cpp-bottom-bar {

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #121414;
  border-top: 1px solid #ddd;
  padding: 10px 12px;
  z-index: 99999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
}

#cpp-bottom-bar .cpp-bar-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 1440px;
  margin: 0 auto;
}

.cpp-slots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  /* ✅ Always one line */
  width: 100%;
  overflow-x: auto;
  /* Allow smooth scroll if too many */
  scrollbar-width: none;
  /* Hide scrollbar in Firefox */
}

.cpp-slots::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar in Chrome/Safari */
}


.cpp-slot {
  flex: 1 1 auto;
  aspect-ratio: 1 / 1;
  /* ✅ Keeps perfect circle */
  width: calc((100% - 11 * 8px) / 12);
  /* Fits 12 max per row with gap */
  max-width: 60px;
  /* Prevents being too big for small boxes */
  min-width: 40px;
  /* Prevents being too small */
  border-radius: 50%;
  border: 1px dashed #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cpp-slot.cpp-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}


.cpp-slot.cpp-empty {
  opacity: 0.4;
}




.cpp-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cpp-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.cpp-qty-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.cpp-qty-stepper input {
  width: 36px;
  text-align: center;
  border: 1px solid #ddd;
  height: 28px;
  border-radius: 4px;
}

.cpp-msg {
  color: #d00;
  font-size: 13px;
  margin-left: 8px;
}




.cpp-toast {
  font-family: 'DM Sans', sans-serif;
  position: fixed;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}


.cpp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-50%);

}

.cpp-toast-info {
  background: #fff8e1;
  color: #4e342e;
  border-color: #d7b99a;
}

.cpp-toast-success {
  background: #28a745;
}

.cpp-toast-error {
  background: #dc3545;

}

#cpp-clear-selection {
  border: none;
  padding: 0;
  text-decoration: underline;
  color: #982C26;
}

button:focus,
button:hover {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

.cpp-plus:hover,
.cpp-minus:hover,
.cpp-plus:focus,
.cpp-minus:focus {
  background: #982C26 !important;

}


/* ===========================
   🍪 Cookie Add Animation
=========================== */
@keyframes cpp-slot-pop {
  0% {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.cpp-slot.cpp-just-added img {
  animation: cpp-slot-pop 0.5s ease-out forwards;
}

/* ===========================
   📦 Bottom Bar Slide-up
=========================== */
@keyframes cpp-bottom-slideup {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#cpp-bottom-bar {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

#cpp-bottom-bar.cpp-visible {
  transform: translateY(0);
  opacity: 1;
  animation: cpp-bottom-slideup 0.5s ease-out;
}

@media (max-width: 1024px) {
  .cpp-pack-list {
    flex-wrap: nowrap;
    flex-direction: column;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .cpp-pack-list::-webkit-scrollbar {
    height: 6px;
  }

  .cpp-pack-list::-webkit-scrollbar-thumb {
    background: #982C26;
    border-radius: 3px;
  }

  .cpp-pack-list::-webkit-scrollbar-track {
    background: #f6eae4;
  }

  .cpp-pack-item {
    font-size: 16px;

    text-align: center;
  }

  /* Slightly tighter spacing for stepper on small screens */
  .cpp-stepper {
    gap: 6px;
    padding: 4px 10px;
  }

  .cpp-stepper button {
    padding: 6px 10px;
    font-size: 16px;
  }

  #cpp-bottom-bar {
    padding: 8px;
  }

  .cpp-slot {
    max-width: 48px;
    min-width: 36px;
  }
}

#cpp-add-to-cart:hover,
#cpp-add-to-cart:focus {
  color: white !important;

}


/* ===========================
   ✨ Cookie Pack Description Reveal
=========================== */
.cpp-pack-desc {
    position: absolute;
    font-size: 18px;
    color: #982C26;
	bottom: -83px;
    left: 50%;
    transform: translateX(-50%) !important;
    text-align: center;
    width:100%;
    animation: cpp-fade-in 0.4s ease forwards;
}
@keyframes cpp-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
