/* ============================================
   QUICK VIEW MODAL - REDESENHO MODERNO
   ============================================ */

/* Modal Base */
#quickViewModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

#quickViewModal::-webkit-scrollbar {
    width: 6px;
}

#quickViewModal::-webkit-scrollbar-track {
    background: transparent;
}

#quickViewModal::-webkit-scrollbar-thumb {
    background: rgba(216, 32, 111, 0.3);
    border-radius: 3px;
}

#quickViewModal::-webkit-scrollbar-thumb:hover {
    background: rgba(216, 32, 111, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.quick-view-modal .modal-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    margin: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.quick-view-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-view-modal .modal-close:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

/* Gallery Section */
.quick-view-modal .modal-gallery {
    background: white;
    padding: 30px 20px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-view-modal .slideshow-images {
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
}

.quick-view-modal .slideshow-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.quick-view-modal .slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quick-view-modal .slideshow-image.active {
    opacity: 1;
}

.quick-view-modal .slideshow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrow Buttons */
.quick-view-modal .slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #d8206f;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-view-modal .slideshow-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.quick-view-modal .slideshow-arrow.prev {
    left: 10px;
}

.quick-view-modal .slideshow-arrow.next {
    right: 10px;
}

/* Indicators */
.quick-view-modal .slideshow-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #f9f9f9;
}

.quick-view-modal .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.quick-view-modal .indicator:hover {
    background: #bbb;
}

.quick-view-modal .indicator.active {
    background: #d8206f;
    width: 28px;
    border-radius: 5px;
}

/* Info Section */
.quick-view-modal .modal-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
}

.quick-view-modal .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.quick-view-modal .modal-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid #d8206f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.quick-view-modal .modal-description:empty {
    display: none;
}

.quick-view-modal .modal-description.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.quick-view-modal .read-more-btn {
    background: none;
    border: none;
    color: #d8206f;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    padding: 0;
    text-transform: uppercase;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.quick-view-modal .read-more-btn:hover {
    color: #e8367f;
}

/* Actions */
.quick-view-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.quick-view-modal .modal-buy-btn,
.quick-view-modal .modal-share-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.quick-view-modal .modal-buy-btn {
    background: linear-gradient(135deg, #d8206f 0%, #e8367f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(216, 32, 111, 0.3);
}

.quick-view-modal .modal-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 32, 111, 0.4);
}

.quick-view-modal .modal-buy-btn:active {
    transform: translateY(-1px);
}

.quick-view-modal .modal-share-btn {
    background: white;
    color: #d8206f;
    border: 2.5px solid #d8206f;
    box-shadow: 0 2px 8px rgba(216, 32, 111, 0.1);
}

.quick-view-modal .modal-share-btn:hover {
    background: #fff5f8;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(216, 32, 111, 0.2);
}

.quick-view-modal .modal-share-btn:active {
    transform: translateY(-1px);
}

/* ============================================
   RESPONSIVO - TABLETS (até 768px)
   ============================================ */

@media (max-width: 768px) {
    #quickViewModal {
        padding: 15px;
        align-items: center;
        justify-content: center;
    }

    .quick-view-modal .modal-content {
        max-width: 100%;
        margin: auto;
    }

    .quick-view-modal .modal-gallery {
        min-height: 250px;
    }

    .quick-view-modal .modal-info {
        padding: 25px;
        gap: 18px;
    }

    .quick-view-modal .modal-title {
        font-size: 20px;
    }

    .quick-view-modal .modal-description {
        font-size: 13px;
        padding: 12px;
    }

    .quick-view-modal .slideshow-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .quick-view-modal .modal-actions {
        gap: 10px;
    }

    .quick-view-modal .modal-buy-btn,
    .quick-view-modal .modal-share-btn {
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* ============================================
   RESPONSIVO - MOBILE (até 480px)
   ============================================ */

@media (max-width: 480px) {
    #quickViewModal {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .quick-view-modal .modal-content {
        border-radius: 15px;
        max-height: 90vh;
        width: 100%;
        margin: auto;
    }

    .quick-view-modal .modal-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }

    .quick-view-modal .modal-gallery {
        min-height: 200px;
    }

    .quick-view-modal .modal-info {
        padding: 20px;
        gap: 15px;
    }

    .quick-view-modal .modal-title {
        font-size: 18px;
    }

    .quick-view-modal .modal-description {
        font-size: 12px;
        padding: 10px;
    }

    .quick-view-modal .slideshow-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .quick-view-modal .slideshow-arrow.prev {
        left: 5px;
    }

    .quick-view-modal .slideshow-arrow.next {
        right: 5px;
    }

    .quick-view-modal .slideshow-indicators {
        gap: 6px;
        padding: 12px;
    }

    .quick-view-modal .indicator {
        width: 8px;
        height: 8px;
    }

    .quick-view-modal .indicator.active {
        width: 24px;
    }

    .quick-view-modal .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .quick-view-modal .modal-buy-btn,
    .quick-view-modal .modal-share-btn {
        padding: 12px 14px;
        font-size: 12px;
        width: 100%;
    }
}

/* ============================================
   ANIMAÇÕES EXTRAS
   ============================================ */

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(216, 32, 111, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(216, 32, 111, 0);
    }
}

.quick-view-modal .modal-buy-btn:active {
    animation: pulse 0.6s;
}

.quick-view-modal .modal-buy-btn:active,
.quick-view-modal .modal-share-btn:active {
    transform: scale(0.98);
}
