
.product-slider {
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    position:relative;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}
.main-media-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    overflow: hidden;
}

.main-media-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.main-image:hover {
    transform: scale(1.05);
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.main-youtube {
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

/* Media Overlay */
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.main-media-container:hover .media-overlay {
    opacity: 1;
}

.zoom-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-text::before {
    content: '';
    font-size: 24px;
    width:40px;
    height:40px;
    background:url(../images/zoom-in-white.svg) no-repeat;
    background-size:100% auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Alternative zoom icon using CSS */
.zoom-icon {
    width: 40px;
    height: 40px;
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.zoom-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 3px;
    background: white;
    border-radius: 2px;
    top: 28px;
    right: -8px;
    transform: rotate(45deg);
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    z-index: 10;
}

.main-media-container:hover .nav-arrow {
    opacity: 1;
}

.nav-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    /*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);*/
}

.nav-arrow-left {
    left: 15px;
}

.nav-arrow-right {
    right: 15px;
}

.nav-arrow svg {
    color: #333;
    stroke-width: 2.5;
}

/* Thumbnail Container */
.thumbnail-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnails-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: #007bff;
}

.thumbnail.active {
    border-color: #007bff;
    opacity: 1;
    /*box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);*/
}

/* Video Thumbnail Overlay */
.thumbnail-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);*/
}

.thumbnail-video-overlay::after {
    content: '▶';
    color: white;
    font-size: 12px;
    margin-left: 2px;
}

/* Thumbnail Navigation Buttons */
.thumb-nav {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-nav:hover:not(:disabled) {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.05);
}

.thumb-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.thumb-nav svg {
    color: inherit;
    stroke-width: 2;
}

/* Product Details Styles */
.product-details {
    background: transparent;
    border-radius: 12px;
    padding: 30px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    height: fit-content;
}

.sale-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* .product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 15px 0;
    line-height: 1.3;
} */

.price-section {
    margin-bottom: 20px;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
}

.original-price {
    font-size: 24px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 10px;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    color: #ddd;
}

.star.filled {
    color: #ffc107;
}

.review-count {
    font-size: 14px;
    color: #6c757d;
}

.availability {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.availability.in-stock {
    background: #d4edda;
    color: #155724;
}

.product-overview h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* .product-overview p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.5;
} */

.quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.quantity-section label {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background: #e9ecef;
}

#quantity1 {
    border: none;
    padding: 10px 15px;
    width: 60px;
    text-align: center;
    font-size: 16px;
    background: white;
}

.add-to-cart-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.action-btn {
    background: none;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: #007bff;
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.modal-media-wrapper {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-video {
    width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.modal-youtube {
    width: 100%;
    height: 60vh;
    border: none;
    border-radius: 8px;
}

#modalCounter {
    font-weight: 600;
    color: #333;
    background: rgba(0, 123, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-media-wrapper {
        height: 300px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .nav-arrow-left {
        left: 10px;
    }
    
    .nav-arrow-right {
        right: 10px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .quantity-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        width: 100%;
        text-align: center;
    }
    
    .modal-youtube {
        height: 40vh;
    }
}

@media (max-width: 576px) {
    .product-slider,
    .product-details {
        padding: 15px;
    }
    
    .thumbnail-container {
        gap: 5px;
    }
    
    .thumbnails {
        gap: 5px;
    }
    
    .thumb-nav {
        width: 30px;
        height: 30px;
    }
    
    .rating-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-youtube {
        height: 30vh;
    }
    
    .zoom-text {
        font-size: 14px;
    }
    
    .zoom-text::before {
        font-size: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced hover effects */
.main-media-container {
    transition: transform 0.3s ease;
}

.main-media-container:hover {
    transform: translateY(-2px);
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);*/
}