/* ===================================
   ULTRA MODERN PRODUCT MODAL
   =================================== */

/* Modal Backdrop */
.modal-backdrop.show {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal Dialog Animation */
#productModal .modal-dialog {
    animation: modalZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-100px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Content */
#productModal .modal-content {
    background: linear-gradient(145deg, #1a1f2e 0%, #252b3d 50%, #1e2433 100%);
    border: 2px solid rgba(0, 168, 255, 0.3);
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(0, 168, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

#productModal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #00a8ff 20%,
            #00d2ff 50%,
            #00a8ff 80%,
            transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Modal Header */
#productModal .modal-header {
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg,
            rgba(0, 168, 255, 0.15) 0%,
            rgba(0, 210, 255, 0.08) 100%);
    position: relative;
}

#productModal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 168, 255, 0.6),
            transparent);
}

#productModal .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.75rem;
    text-shadow:
        0 2px 10px rgba(0, 168, 255, 0.4),
        0 0 30px rgba(0, 168, 255, 0.2);
    letter-spacing: 0.5px;
}

#productModal .btn-close {
    filter: invert(1) brightness(1.5);
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: 60%;
}

#productModal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    filter: invert(1) brightness(2) drop-shadow(0 0 10px rgba(0, 168, 255, 0.8));
}

/* Modal Body */
#productModal .modal-body {
    padding: 2.5rem;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            transparent 100%);
}

/* Gallery Main Image */
.modal-gallery-main {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 168, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: imageReveal 0.6s ease;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.modal-gallery-main:hover {
    transform: scale(1.03);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.5);
}

/* Gallery Thumbnails */
.modal-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
    animation: thumbsAppear 0.8s ease 0.3s both;
}

@keyframes thumbsAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-thumb {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gallery-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 168, 255, 0.4) 0%,
            rgba(0, 210, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            transparent 0%,
            rgba(0, 168, 255, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover::before,
.gallery-thumb:hover::after {
    opacity: 1;
}

.gallery-thumb:hover {
    border-color: rgba(0, 168, 255, 0.6);
    transform: translateY(-8px) scale(1.08);
    box-shadow:
        0 15px 30px rgba(0, 168, 255, 0.3),
        0 0 40px rgba(0, 168, 255, 0.2);
}

.gallery-thumb.active {
    border-color: #00a8ff;
    box-shadow:
        0 0 30px rgba(0, 168, 255, 0.7),
        0 8px 20px rgba(0, 168, 255, 0.4);
    transform: scale(1.05);
}

/* Product Price */
.modal-product-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00a8ff 0%, #00d2ff 50%, #00f5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(0, 168, 255, 0.6);
    animation: priceGlow 3s ease-in-out infinite, fadeInUp 0.6s ease 0.2s both;
    letter-spacing: -1px;
    position: relative;
}

.modal-product-price::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 168, 255, 0.6) 50%,
            transparent);
    border-radius: 2px;
}

@keyframes priceGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(0, 168, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(0, 168, 255, 0.9));
    }
}

/* Product Duration */
.modal-product-duration {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 50px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.modal-product-duration i {
    color: #00a8ff;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Description */
.modal-product-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 168, 255, 0.05);
    border-left: 4px solid rgba(0, 168, 255, 0.5);
    border-radius: 8px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Features List */
.modal-features-list {
    list-style: none;
    padding: 0;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.modal-features-list li {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg,
            rgba(0, 168, 255, 0.2),
            transparent);
    transition: width 0.3s ease;
}

.modal-features-list li:hover::before {
    width: 100%;
}

.modal-features-list li:hover {
    padding-left: 1.75rem;
    background: rgba(0, 168, 255, 0.08);
    border-radius: 12px;
    border-bottom-color: rgba(0, 168, 255, 0.2);
}

.modal-features-list li i {
    color: #00a8ff;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-features-list li:hover i {
    transform: scale(1.3) rotate(360deg);
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.8));
}

/* Add to Cart Button */
#productModal .btn-primary {
    background: linear-gradient(135deg, #00a8ff 0%, #00d2ff 100%);
    border: none;
    border-radius: 16px;
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a0e27;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease 0.7s both;
    box-shadow:
        0 10px 30px rgba(0, 168, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#productModal .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#productModal .btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

#productModal .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

#productModal .btn-primary:hover::after {
    transform: translateX(100%);
}

#productModal .btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 168, 255, 0.5),
        0 0 60px rgba(0, 168, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#productModal .btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

#productModal .btn-primary i {
    transition: transform 0.3s ease;
}

#productModal .btn-primary:hover i {
    transform: scale(1.2);
}

/* Badge Animations */
.badge {
    animation: badgeFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #productModal .modal-body {
        padding: 1.5rem;
    }

    .modal-gallery-main {
        height: 300px;
    }

    .modal-product-price {
        font-size: 2.5rem;
    }

    .gallery-thumb {
        height: 70px;
    }
}