/* Quick View Modal Styles */

/* Modal container */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

/* Modal content */
.modal-content {
    position: relative;
    background: white;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 3;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: #f5f5f5;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal body */
.modal-body {
    padding: 40px;
}

/* Quick View Container */
.quick-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Gallery section */
.quick-view-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnails */
.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--color-accent);
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #ddd;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details section */
.quick-view-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-view-details h2 {
    font-size: 28px;
    color: var(--color-dark);
    margin: 0;
    font-weight: 600;
}

.quick-view-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-view-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Watch details */
.watch-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.watch-details h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: var(--color-dark);
}

.watch-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.watch-details strong {
    color: var(--color-dark);
    font-weight: 600;
}

/* Action buttons */
.quick-view-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn {
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: #50ced1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 190, 193, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: white;
}

/* Mobile styles */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .quick-view-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
