/********************Product Cart Start ***************************/

.product-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	transition: all 0.3s ease;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
	overflow: hidden;
	height: 100%;
	transition: all 0.3s ease;
}
.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 18px rgba(0,0,0,0.1);
	border: 1px solid #e93b72;
}

/* Image Section */
.product-image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
}
.product-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

/* Badges */
.badge {
	font-size: 13px;
	font-weight: 700;
	border-radius: 12px;
	padding: 5px 10px;
	color: #fff;
}
.bg-pink {
	background-color: #e93b72 !important;
}

.filter-bar {
  /*background: #ffffff;*/
  border: 1px solid #f1f1f1;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
  transition: all 0.3s ease;
  border-radius: 8px;
}

.filter-bar:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e93b72;

}

.filter-bar .form-control,
.filter-bar .form-select,
.filter-bar .btn-light {
  background-color: #f9f9f9;
  border-color: #e0e0e0;
  font-size: 0.95rem;
  transition: 0.2s;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus,
.filter-bar .btn-light:hover {
  background-color: #f1f1f1;
  border-color: #ccc;
  box-shadow: none;
}

#subscriptionType {
    display: inline !important;  /* ensures it shows */
    visibility: visible !important;
}



/* Scroll Section */
.subc {
  background: #f9f9f9;
  border-radius: 12px;
}

.subc-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #ff4b91 #fde4ec;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

/* Scrollbar visible */
.subc-wrapper::-webkit-scrollbar {
  height: 10px;
  display: block !important;
}

.subc-wrapper::-webkit-scrollbar-track {
  background: #fde4ec;
  border-radius: 10px;
}

.subc-wrapper::-webkit-scrollbar-thumb {
  background: #ff4b91;
  border-radius: 10px;
}

/* Buttons */
.subcategory-scroll {
  display: inline-flex;
  gap: 12px;
  padding: 5px 10px;
}

.subcategory-btn {
  border: 1px solid #e93b72 !important;
  color: #e93b72;
  background: #fff !important;
  border-radius: 30px;
  font-weight: 600;
  padding: 8px 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.subcategory-btn.active {
  background: #ff4b91;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 75, 145, 0.25);
}

/* Hover */
.subcategory-btn:hover {
  background: #ff4b91;
  color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .subcategory-scroll {
    gap: 8px;
    padding: 6px;
  }

  .subcategory-btn {
    font-size: 13px;
    padding: 6px 14px;
  }

  .subc-wrapper::-webkit-scrollbar {
    height: 8px !important;
  }
}

.show-reviews:hover {
  background: #2a2e33 !important; 
}


/* Free Shipping badge inside image bottom-left */
.free-shipping {
	background: rgba(22, 163, 74, 0.9);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	position: absolute;
	bottom: 10px;
	left: 10px;
}

/* Product Body */
.product-body {
	padding: 15px;
}
.product-price {
	font-size: 1.3rem;
	color: #e93b72;
	font-weight: 700;
}
.product-rating {
	color: #f59e0b;
	font-weight: 600;
}

/* Buttons Section */
.card-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.card-buttons .btn {
	border-radius: 20px;
	font-weight: 600;
	padding: 6px 14px;
	/*flex: 1;*/
	white-space: nowrap;
}

/* =====================
	 ✅ Responsive Design
	 ===================== */
@media (max-width: 768px) {
	.product-img {
		height: 180px;
	}
	.product-body {
		padding: 12px;
	}
	.product-price {
		font-size: 1.1rem;
	}
	.card-buttons .btn {
		padding: 5px 10px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.product-card {
		border-radius: 12px;
	}
	.product-img {
		height: 160px;
	}
	.badge {
		font-size: 11px;
		padding: 4px 8px;
	}
	.free-shipping {
		font-size: 10px;
		padding: 3px 8px;
		bottom: 6px;
		left: 6px;
	}
	.product-body {
		padding: 10px;
	}
	.product-price {
		font-size: 1rem;
	}
	.product-rating {
		font-size: 0.85rem;
	}
	.card-buttons {
		flex-direction: column; /* stack vertically */
		gap: 6px;
	}
	.card-buttons .btn {
		width: 100%;
		font-size: 13px;
		padding: 6px 10px;
	}
}


/* Toast Container */
#toast-container {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  text-align: center;
}

/* Toast Message Box */
.toast-message {
  background: #fff;
  color: #333;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 200px;
  max-width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-60px);
  transition: all 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  position: relative;
  overflow: hidden;
}

/* Show Animation (Bounce like Momskart) */
.toast-message.show {
  opacity: 1;
  transform: translateY(0);
  animation: bounceDown 0.2s ease-out;
}

@keyframes bounceDown {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  60% {
    transform: translateY(8px);
    opacity: 1;
  }
  80% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Toast Icon */
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.toast-icon-circle {
  background-color: #ff4da6;
  color: #fff;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Text */
.toast-text {
  flex-grow: 1;
  text-align: left;
}

/* Close Button */
.toast-close {
  cursor: pointer;
  font-size: 20px;
  color: #aaa;
  margin-left: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.toast-close:hover {
  color: #ff4da6;
  transform: scale(1.2);
}

/* Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #ff4da6;
  animation: progress 2.5s linear forwards;
}

/* Optional small bounce animation for cart count */
#cart-count.bounce {
  animation: bounceScale 0.3s ease;
}

@keyframes bounceScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}


@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .toast-message {
    min-width: 270px;
    font-size: 14px;
    padding: 12px 16px;
  }
  .toast-icon-circle {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
}

/********************Product Cart End ***************************/