/* ============================================
   PRODUCT MODAL - MINIMALIST DESIGN
   Apple/Stripe inspired conversion-focused modal
   ============================================ */

/* Modal Overlay */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    transition: opacity 0.3s ease;
    /* Smooth fade-out */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Main Modal Container */
.product-modal-modern {
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.98), rgba(10, 15, 30, 0.98));
    border-radius: 16px;
    max-width: 900px;
    max-height: 85vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Sticky Header */
.modal-sticky-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-sticky-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.05);
}

/* Modal Grid Layout */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Left: Image Section */
.modal-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.modal-image-section img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.duration-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 136, 255, 0.2);
    border: 1px solid rgba(0, 136, 255, 0.4);
    color: #4da6ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duration-badge i {
    font-size: 1rem;
}

/* Right: Info Section */
.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Price Highlight */
.price-highlight {
    font-size: 3rem;
    font-weight: 800;
    color: #00b4ff;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Description */
.description-compact {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 4.8em;
    overflow: hidden;
}

/* Feature Chips */
.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-chip {
    background: rgba(0, 136, 255, 0.1);
    border: 1px solid rgba(0, 136, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.feature-chip:hover {
    background: rgba(0, 136, 255, 0.15);
    border-color: rgba(0, 136, 255, 0.3);
}

.feature-chip i {
    color: #4da6ff;
    font-size: 0.875rem;
}

/* Meta Info */
.meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-info span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.stock-badge {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Sticky Footer */
.modal-sticky-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-add-to-cart-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0066cc, #0088ff);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-add-to-cart-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-add-to-cart-primary:active {
    transform: scale(0.98);
}

.btn-add-to-cart-primary i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .modal-grid {
        grid-template-columns: 40% 60%;
    }

    .modal-image-section img {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .product-modal-modern {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .modal-image-section {
        padding: 1.5rem;
    }

    .modal-image-section img {
        max-height: 250px;
    }

    .price-highlight {
        font-size: 2.5rem;
    }

    .modal-sticky-header,
    .modal-sticky-footer {
        padding: 1rem 1.5rem;
    }

    .btn-add-to-cart-primary {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
}