/* Slider Styles */
.custom-view-gallery {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.custom-preview-slider {
    width: 100%;
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    margin-bottom: 15px;
}

.custom-preview-slider li {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.custom-preview-slider li.active {
    opacity: 1;
}

.custom-preview-slider li img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}

.custom-thumb-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
}

.custom-thumb-slider li {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.custom-thumb-slider li.active {
    opacity: 1;
    border-color: #ff4757;
}

.custom-thumb-slider li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide scrollbar but keep functionality */
.custom-thumb-slider::-webkit-scrollbar {
    display: none;
}

.custom-thumb-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-view-gallery {
    overflow: hidden;
    position: relative;
}

/* Modal Styles */
.custom-modal-fade {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
	align-items: center;
	justify-content: center;
}
.custom-modal-fade.show {
	opacity: 1;
}
.custom-modal-dialog {
	max-width: 900px;
	width: 95%;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.7);
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 0;
	margin: 0 auto;
}
.custom-modal-fade.show .custom-modal-dialog {
	transform: scale(1);
	opacity: 1;
}
.custom-modal-content {
	background: white;
	border-radius: 15px;
	padding: 25px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .custom-modal-dialog {
        width: 90%;
        max-height: 95vh;
    }
    .custom-modal-content {
        padding: 15px;
    }
    .custom-product-view {
        padding: 15px;
    }
    .custom-preview-slider li img {
        max-height: 300px;
    }
    .custom-thumb-slider li {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }
    .custom-row {
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .custom-modal-dialog {
        width: 95%;
        margin: 10px;
    }
    .custom-modal-content {
        padding: 10px;
    }
    .custom-product-view {
        padding: 10px;
    }
    .custom-preview-slider li img {
        max-height: 250px;
    }
    .custom-thumb-slider li {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
    }
    .custom-view-label-group {
        top: 10px;
        left: 10px;
    }
    .custom-view-label-new,
    .custom-view-label-off {
        padding: 3px 8px;
        font-size: 10px;
    }
    .custom-modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }
}
.custom-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #ff4757;
	color: white;
	border: none;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	z-index: 10;
	transition: all 0.3s ease;
}
.custom-modal-close:hover {
	background: #ff3742;
	transform: rotate(90deg);
}
.custom-modal-close i {
	font-size: 16px;
}
.custom-product-view {
	padding: 30px;
}
.custom-row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: space-between;
}
.custom-col-md-6 {
	flex: 1;
	min-width: 280px;
	width: calc(50% - 15px);
}

@media screen and (max-width: 768px) {
    .custom-col-md-6 {
        width: 100%;
        min-width: 100%;
    }
    .custom-row {
        gap: 20px;
    }
}
/* Gallery Styles */
.custom-view-gallery {
	position: relative;
}
.custom-view-label-group {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 5;
	display: flex;
	gap: 10px;
}
.custom-view-label-new,
.custom-view-label-off {
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}
.custom-view-label-new {
	background: #2ed573;
	color: white;
}
.custom-view-label-off {
	background: #ff4757;
	color: white;
}
.custom-preview-slider {
	list-style: none;
	margin-bottom: 15px;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.custom-preview-slider li {
	display: none;
}
.custom-preview-slider li.active {
	display: block;
	animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.custom-preview-slider img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
}
.custom-thumb-slider {
	list-style: none;
	display: flex;
	gap: 10px;
	justify-content: center;
}
.custom-thumb-slider li {
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	transition: all 0.3s ease;
}
.custom-thumb-slider li.active {
	border-color: #667eea;
}
.custom-thumb-slider img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	display: block;
}
/* Product Details */
.custom-view-details {
	padding-left: 20px;
}
.custom-view-name {
	margin-bottom: 15px;
}
.custom-view-name a {
	color: #2c3e50;
	text-decoration: none;	
	font-size: 24px;
	font-weight: 700;
}
.custom-view-price {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}	
.custom-view-price del {
	color: #95a5a6;
	font-size: 18px;
}
.custom-view-price span {
	color: #e74c3c;
	font-size: 28px;
	font-weight: bold;
}
.custom-view-desc {
	color: #7f8c8d;
	line-height: 1.6;
	margin-bottom: 25px;
}
.custom-view-list-group {
	margin-bottom: 25px;
}
.custom-view-list-title {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 10px;
	display: block;
}
.custom-view-share-list {
	list-style: none;
	display: flex;
	gap: 10px;
}
.custom-view-share-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
}
.icon-facebook { background: #3b5998; }
.icon-twitter { background: #1da1f2; }
.icon-linkedin { background: #0077b5; }
.icon-instagram { background: #e4405f; }
.custom-view-share-list a:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.custom-view-add-group {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
}
.custom-product-add {
	background: linear-gradient(45deg, #667eea, #764ba2);
	color: white;
	border: none;
	padding: 12px 25px;
	border-radius: 25px;
	cursor: pointer;
	font-weight: 600;
	text-transform: uppercase;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}
.custom-product-add:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.custom-product-action {
	display: flex;
	align-items: center;
	border: 2px solid #e0e0e0;
	border-radius: 25px;
	overflow: hidden;
}
.custom-action-minus,
.custom-action-plus {
	background: #f8f9fa;
	border: none;
	width: 40px;
	height: 40px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.custom-action-minus:hover,
.custom-action-plus:hover {
	background: #667eea;
	color: white;
}
.custom-action-input {
	border: none;
	width: 60px;
	height: 40px;
	text-align: center;
	font-weight: 600;
	background: white;
}
/* Icons */
.custom-action-minus i,
.custom-action-plus i {
	font-size: 14px;
}
/* Responsive Design */
@media (max-width: 768px) {
	.custom-row {
		flex-direction: column;
	}
	.custom-view-details {
		padding-left: 0;
		padding-top: 20px;
	}
	.custom-view-add-group {
		justify-content: center;
	}        
	.custom-product-view {
		padding: 20px;
	}
}