/* Product Quick View Modal Styles */

.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.show {
    opacity: 1;
}

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.product-modal-header {
    display: none;
}

.product-modal-title {
    display: none;
}

.product-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
}

.product-modal-close:hover {
    background: rgba(243, 169, 8, 0.2);
    color: #f3a908;
}

.product-modal-content {
    display: flex;
    max-height: 95vh;
    overflow: hidden;
}

.product-modal-gallery {
    flex: 2.5;
    position: relative;
    min-height: 600px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-info {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Product Information Layout - Matching Regular Product Cards */
.product-modal-product-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
    color: #fff;
    text-align: center;
}

.product-modal-product-price {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: normal;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
}

.product-modal-size-options {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0;
}

.product-modal-size-option {
    display: inline-block;
    margin: 0;
    padding: 0.2rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: auto;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.product-modal-size-option:hover {
    background: transparent;
    color: #f3a908;
    transform: none;
    box-shadow: none;
}

.product-modal-size-option.selected {
    background: transparent;
    color: #f3a908;
    transform: none;
    box-shadow: none;
}

.product-modal-size-option.selected::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #f3a908;
}

.product-modal-add-to-cart-btn {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.8rem 2rem;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: normal;
    letter-spacing: 0.05em;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.product-modal-add-to-cart-btn:hover:not(:disabled) {
    background: #f3a908;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 169, 8, 0.3);
}

.product-modal-add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.product-modal-product-desc {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Modal Gallery Styles */
.modal-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 95%;
    max-height: 95%;
}

.modal-gallery-image.active {
    opacity: 1;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-gallery-nav:hover {
    background: rgba(243, 169, 8, 0.8);
    color: #000;
}

.modal-gallery-nav.prev {
    left: 30px;
}

.modal-gallery-nav.next {
    right: 30px;
}

.modal-gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-gallery-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.modal-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-gallery-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.modal-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .product-modal-content {
        flex-direction: column;
        max-height: 95vh;
    }
    
    .product-modal-gallery {
        min-height: 400px;
        flex: 1;
    }
    
    .product-modal-info {
        padding: 20px;
        flex: 1;
    }
    
    .product-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .modal-gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .modal-gallery-nav.prev {
        left: 15px;
    }
    
    .modal-gallery-nav.next {
        right: 15px;
    }
}

/* Loading state */
.product-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Keyboard navigation focus */
.product-modal:focus {
    outline: none;
}

.product-modal-close:focus,
.product-modal-size-option:focus,
.product-modal-add-to-cart-btn:focus {
    outline: 2px solid #f3a908;
    outline-offset: 2px;
} 