/* =================================================================== */
/* ===== ESTILOS GERAIS DO CARD DE PRODUTO ===== */
/* =================================================================== */

.apw-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.apw-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* ===== Imagem padronizada ===== */
.apw-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.apw-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Conteúdo do Card ===== */
.apw-card-content {
    padding: 12px 10px;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* ===== Título Responsivo ===== */
.apw-card h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Padrão para mobile */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

@media (min-width: 768px) {
    .apw-card h3 {
        -webkit-line-clamp: 4; /* Menos linhas em telas maiores */
        min-height: 3.9em;
    }
}

/* ===== Preço ===== */
.apw-card .price {
    margin: 10px auto 5px; /* Adicionado margem superior */
    font-weight: bold;
    color: #094c8c; /* Cor da sua marca */
    font-size: 15px;
    text-align: center;
}


/* =================================================================== */
/* ===== OVERLAY (EFEITO HOVER) ===== */
/* =================================================================== */

/* Este novo container agrupa os ícones de produtos simples */
.apw-overlay-icons-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Redundância segura para garantir o centro */
    gap: 20px; /* Controla o espaço ENTRE os ícones */
}

.apw-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.apw-card:hover .apw-card-overlay {
    opacity: 1;
}

/* Estilo padrão para ícones de produtos simples */
.apw-card-overlay a:not(.apw-variable-button) {
    background: #fff;
    color: #6a00ff;
    font-size: 18px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 45px;
    height: 45px;
}

.apw-card-overlay a:not(.apw-variable-button):hover {
    background: #6a00ff;
    color: #fff;
    transform: scale(1.1);
}

/* Estilo para o botão "Escolha sua Opção" de produtos variáveis */
.apw-card-overlay .apw-variable-button {
    width: 90%;
    max-width: 200px;
    padding: 12px 10px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    background: #fff;
    color: #6a00ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.apw-card-overlay .apw-variable-button:hover {
    background: #6a00ff;
    color: #fff;
    transform: scale(1.05);
}


/* =================================================================== */
/* ===== SPINNER DE CARREGAMENTO ===== */
/* =================================================================== */

#apw-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    padding: 20px 0;
}

.apw-loader {
    width: 70px;
    text-align: center;
}

.apw-loader > div {
    width: 15px;
    height: 15px;
    background-color: #094c8c; /* Cor da sua marca */
    border-radius: 100%;
    display: inline-block;
    animation: apw-bouncedelay 1.4s infinite ease-in-out both;
}

.apw-loader .bounce1 {
    animation-delay: -0.32s;
}

.apw-loader .bounce2 {
    animation-delay: -0.16s;
}

@keyframes apw-bouncedelay {
  0%, 80%, 100% { 
    transform: scale(0);
  } 40% { 
    transform: scale(1.0);
  }
}