/* Product Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 2px solid;
    border-image: linear-gradient(135deg, #8b45be, #6366f1) 1;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.product-modal.active .modal-container {
    transform: scale(1);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #8b45be, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: scale(1.1);
}

/* Modal Content */
.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Image Carousel */
.modal-left {
    position: relative;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(139, 69, 190, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, #8b45be, #6366f1);
    border-color: #8b45be;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: 15px;
}

.carousel-arrow-right {
    right: 15px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #8b45be;
    transform: scale(1.2);
}

/* Product Info */
.modal-right {
    padding-left: 1rem;
}

.product-info h3 {
    color: #8b45be;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-category::before {
    content: "📂";
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

.review-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.product-pricing {
    margin-bottom: 1.5rem;
}

.current-price {
    color: #8b45be;
    font-size: 1.8rem;
    font-weight: 700;
}

.original-price {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #10b981;
    font-weight: 500;
}

.product-specs h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.product-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.product-specs li::before {
    content: "•";
    color: #8b45be;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Description */
.modal-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-description h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-description h4::before {
    content: "📖";
}

.modal-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quantity-selector button {
    background: none;
    border: none;
    color: white;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-selector button:hover {
    background: rgba(139, 69, 190, 0.3);
}

.quantity-selector span {
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.add-to-cart-btn, .wishlist-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #8b45be, #6366f1);
    color: white;
    flex: 1;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 190, 0.4);
}

.wishlist-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wishlist-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-right {
        padding-left: 0;
    }
    
    .image-carousel {
        height: 250px;
    }
    
    .modal-actions {
        justify-content: center;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
}

/* Custom Scrollbar */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b45be, #6366f1);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #8b45be;
}