/* ==============================================
   PRODUCT CARD - DESIGN PREMIUM DINIZ PNEUS
   Baseado no modelo fornecido pelo cliente
   ============================================== */

:root {
    --vermelho-diniz: #e30613;
    --vermelho-escuro: #b8050f;
    --cinza-diniz: #9f9c9a;
    --cinza-claro: #f5f5f5;
    --cinza-medio: #e0e0e0;
    --preto: #000000;
    --preto-leve: #1a1a1a;
    --branco: #ffffff;
    --sucesso: #28a745;
    --sombra: 0 4px 20px rgba(0,0,0,0.15);
    --sombra-hover: 0 8px 30px rgba(227,6,19,0.2);
    --transicao: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Products Section */
.products {
    padding: 80px 0;
    background: var(--cinza-claro);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--preto);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    background: var(--branco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: var(--transicao);
    border: 1px solid var(--cinza-medio);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
    border-color: var(--vermelho-diniz);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: inline-block;
}

.badge-discount {
    background: var(--vermelho-diniz);
    color: var(--branco);
}

.animate-discount {
    position: relative;
    transition: width 0.4s ease-in-out;
    overflow: hidden;
}

.animate-discount .txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease-in-out;
    white-space: nowrap;
}

.badge-top {
    background: var(--preto);
    color: var(--branco);
}

.badge-new {
    background: var(--sucesso);
    color: var(--branco);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--branco);
    border: 1px solid var(--cinza-medio);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicao);
    z-index: 10;
    font-size: 1.1rem;
    color: var(--cinza-diniz);
}

.wishlist-btn:hover {
    background: var(--vermelho-diniz);
    border-color: var(--vermelho-diniz);
    color: var(--branco);
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: var(--vermelho-diniz);
    border-color: var(--vermelho-diniz);
    color: var(--branco);
}

/* Product Image */
/* Product Image Link */
.product-image-link {
    display: block;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.product-image {
    position: relative;
    background: var(--branco);
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transicao);
}

.product-card:hover .product-image img {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Product Info */
.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Brand - Barra Vermelha Lateral */
.product-brand {
    font-size: 0.85rem;
    color: var(--vermelho-diniz);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-brand-logo {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
    display: block;
}


/* Product Name Link */
.product-name-link {
    text-decoration: none;
    color: inherit;
}

.product-name-link:hover .product-name {
    color: var(--vermelho-diniz);
}

/* Product Name - Título em Negrito */
.product-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--preto);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transicao);
}

/* Specs - Badges Cinzas */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-spec {
    font-size: 0.8rem;
    background: var(--cinza-claro);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--preto-leve);
    font-weight: 600;
    border: 1px solid var(--cinza-medio);
}

/* Rating - REMOVIDO (não é mais usado) */

/* Price "à Vista" */
.price-avista {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.48em;
    font-weight: 600;
    color: var(--cinza-diniz);
    display: inline;
    vertical-align: middle;
    white-space: nowrap;
}

/* Price Section */
.product-price-section {
    margin-bottom: 20px;
}

.product-price-old {
    font-size: 0.95rem;
    color: var(--cinza-diniz);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.product-price-current {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--vermelho-diniz);
    line-height: 1;
    margin-bottom: 6px;
}

/* Reduzir tamanho do R$ pela metade */
.product-price-current .currency-symbol {
    font-size: 0.52em;
    font-weight: 700;
    vertical-align: super;
}

.product-installment {
    font-size: 0.9rem;
    color: var(--preto-leve);
    font-weight: 600;
}

.product-installment span {
    color: var(--vermelho-diniz);
    font-weight: 700;
}

/* Stock Info - Check Verde */
.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--sucesso);
    font-weight: 600;
}

.stock-info i {
    font-size: 1rem;
}

.stock-info.out-of-stock {
    color: #ff9800;
}

/* Action Buttons */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transicao);
    text-decoration: none;
    width: 100%;
    text-align: center;
}

/* Botão Primário - COMPRAR AGORA */
.btn-primary {
    background: linear-gradient(135deg, var(--vermelho-diniz) 0%, var(--vermelho-escuro) 100%);
    color: var(--branco);
    box-shadow: 0 4px 15px rgba(227,6,19,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227,6,19,0.4);
}

/* Botão Secundário */
.btn-secondary {
    background: var(--preto);
    color: var(--branco);
}

.btn-secondary:hover {
    background: var(--preto-leve);
    transform: translateY(-2px);
}

/* Botão Outline - CONSULTAR NO WHATSAPP */
.btn-outline {
    background: transparent;
    border: 2px solid #25D366;
    color: #25D366;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 14px 18px;
}

.btn-outline:hover {
    background: #25D366;
    color: var(--branco);
}

/* Botão WhatsApp Verde */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--branco);
    border: none;
    font-size: 0.82rem;
    white-space: nowrap;
    padding: 14px 16px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp.btn-whatsapp--consult {
    font-size: 0.72rem;
}

/* Quick View Link */
.quick-view {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cinza-claro);
}

.quick-view a {
    color: var(--cinza-diniz);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transicao);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-view a:hover {
    color: var(--vermelho-diniz);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease;
}

/* Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        aspect-ratio: 1 / 1;
    }

    .product-price-current {
        font-size: 1.2rem;
    }

    .btn-whatsapp {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        text-align: center;
        font-size: 0.56rem;
        padding: 9px 8px;
        line-height: 1.3;
        gap: 6px;
    }

    .btn-whatsapp i {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .btn-label-full {
        display: none;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-image-link .badge-montagem {
        display: inline-block !important;
        white-space: nowrap !important;
        font-size: 0.38rem !important;
    }
}

@media (max-width: 480px) {
    .btn-whatsapp {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        text-align: center;
        font-size: 0.52rem;
        padding: 8px 6px;
        line-height: 1.3;
        gap: 5px;
    }

    .btn-whatsapp i {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
}

/* Badge Montado e Balanceado */
.badge-montagem,
.product-badges .badge-montagem,
.gallery-main-wrap .badge-montagem {
    background-color: #16a34a !important;
    color: #ffffff !important;
    white-space: nowrap;
}

/* Posicionamento no card — canto inferior esquerdo da imagem */
.product-image-link .badge-montagem {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.62rem;
    z-index: 10;
}

/* Nota do asterisco de montagem (página de detalhe) */
.montagem-note {
    font-size: 0.75rem;
    color: var(--cinza-diniz, #6b7280);
    margin-top: 4px;
    margin-bottom: 0;
}
