/* Botão de Ativação */
.vision-collection-wrapper {
    margin: 20px 0;
}

.vision-btn-primary {
    background-color: #0073aa;
    color: white;
    padding: 14px 28px;
    border: none; /* Personalizado */
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none; /* Personalizado */
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.vision-btn-primary:hover {
    background-color: #005177;
    transform: translateY(-2px);
}

/* Overlay Global de Ecrã Inteiro - Centramento */
.vision-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none; 
    align-items: center; /* Centramento Vertical */
    justify-content: center; /* Centramento Horizontal */
    z-index: 9999999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    box-sizing: border-box;
}

/* Conteúdo da Modal */
.vision-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 1100px;
    height: auto;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    padding: 40px;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: visionFadeInUp 0.4s ease-out;
}

@keyframes visionFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botão de Fechar */
.vision-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.vision-modal-close:hover {
    color: #333;
}

/* Cabeçalho da Modal */
.vision-modal-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.vision-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 700;
}

.vision-modal-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.vision-search-container {
    position: relative;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#vision-product-search {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    color: #333;
    box-shadow: none;
}

#vision-product-search:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,115,170,0.1);
}

/* Loading State */
.vision-modal-loading {
    text-align: center;
    padding: 60px 0;
}

.vision-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: vision-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes vision-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grelha de Produtos */
.vision-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.vision-product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vision-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #0073aa;
}

.vision-product-card a {
    text-decoration: none;
    color: inherit;
}

.vision-product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.vision-product-info {
    padding: 20px;
}

/* VISION GALLERY CUSTOM CSS */
.vision-sku {
    display: inline-block;
    background: #f8f9fa;
    color: #0073aa;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.vision-product-info h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    font-weight: bold; /* Personalizado */
}

.vision-price {
    font-size: 18px;
    font-weight: 800;
    color: #d4af37; /* Personalizado: Dourado */
}

/* Bloqueio de scroll no corpo quando modal aberta */
body.vision-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .vision-modal-content {
        padding: 20px;
        max-height: 95vh;
    }
    .vision-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}
