#nyp-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	z-index: 1000;
}

/* Style For Category Silder & Product Loop */

.alibuy-cat-slider {
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	margin: 0;
	padding: 40px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #2d3436;
}


.alibuy-cat-slider .slider-container {
	width: 120%; 
	position: relative;
	display: flex;
	align-items: center;
}

.alibuy-cat-slider .slider-content {
	display: flex;
	align-items: center;
	width: 100%;
}

.alibuy-cat-slider .alibuy-category-slider {
	display: flex;
	overflow-x: auto;
	gap: 20px;
	padding: 20px 0;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	flex: 1;
}

.alibuy-cat-slider .alibuy-category-slider::-webkit-scrollbar {
	display: none;
}

.alibuy-cat-slider .alibuy-category-item {
	flex: 0 0 auto;
	background: ffffff;
	border-radius: 20px;
	padding: 20px 15px;
	width: 160px;
	text-align: center; 
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.alibuy-cat-slider .alibuy-category-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: #6c5ce7;
	transform: scaleX(0);
	transform-origin: left;
	transition: all 0.3s ease;
}
 

 

.alibuy-cat-slider .alibuy-category-item.active { 
	color: #000;
}

.alibuy-cat-slider .alibuy-category-item.active::before {
	display: none;
}

.alibuy-cat-slider .alibuy-category-icon {
	font-size: 32px;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #f0f0f0;
	transition: all 0.3s ease;;
}
.alibuy-cat-slider .alibuy-category-icon img {
	border-radius: 50%;
	border: 2px solid #ddd;
}

.alibuy-cat-slider .alibuy-category-item:hover .alibuy-category-icon {
	transform: scale(1.1);
}

.alibuy-cat-slider .alibuy-category-item.active .alibuy-category-icon {
	background: rgba(255, 255, 255, 0.2);
}

.alibuy-cat-slider .category-label {
	font-size: 15px;
	font-weight: 500;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.alibuy-cat-slider .nav-btn {
	background-color: #6c5ce7;
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;;
	box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
	z-index: 1;
	flex-shrink: 0;
}

.alibuy-cat-slider .nav-btn:hover {
	background-color: #5649c0;
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.alibuy-cat-slider .nav-btn:disabled {
	background-color: #dfe6e9;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.alibuy-cat-slider #prevBtn {
	margin-right: 15px;
}

.alibuy-cat-slider #nextBtn {
	margin-left: 15px;
}


@media (max-width: 768px) {
	.alibuy-cat-slider .slider-container {
		width: 95%;
	}

	.alibuy-cat-slider .alibuy-category-item {
		width: 90px;
		padding: 15px 10px;
	}

	.alibuy-cat-slider .alibuy-category-icon {
		font-size: 28px;
		width: 50px;
		height: 50px;
	}

	.alibuy-cat-slider .nav-btn {
		width: 35px;
		height: 35px;
	}

	.alibuy-cat-slider #prevBtn {
		margin-right: 10px;
	}

	.alibuy-cat-slider #nextBtn {
		margin-left: 10px;
	}
}


/* Loader */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lds-facebook,
.lds-facebook div {
  box-sizing: border-box;
}
.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: currentColor;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0s;
}
@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%, 100% {
    top: 24px;
    height: 32px;
  }
}



/* Offer Price */

/* Popup Styles */
.makeoffer-popup{
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 10000;
	width: 90%;
	max-width: 500px;
	animation: popupFadeIn 0.3s ease-in-out;
	display: none;
}

@keyframes popupFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.close-popup:hover {
    color: #000;
}

.original-price-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.original-price-section .price {
    font-weight: bold;
    color: #ff5722;
}

.offer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offer-discount-btn {
    background-color: #4CAF50;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.makeoffer-popup p {
	margin: 0;
	font-size: 16px;
	color: #555;
}

.or-separator span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: #777;
}

.or-separator:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

.custom-offer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-offer-form label {
    font-weight: 600;
    color: #333;
}

.custom-offer-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

#submit_offer, #tenoffsubmit_offer {
	background-color: #dab26d;
    color: #010101;
    padding: 12px;
    font-size: 16px;
	margin-top: 15px;
}

#offer_message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

#offer_message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    display: block;
}

#offer_message.error {
    background-color: #ffebee;
    color: #c62828;
    display: block;
}

#offer_price {
	border: 1px solid #ddd;
	padding: 12px;
	border-radius: 3px;
	font-size: 16px;
	width: 100%;
	margin: 10px 0;
}

/* Loading effect */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}