/* ============================================
   PRODUCT CARD UNIFIED STYLES
   Arquivo unico para todos os cards de produto
   ============================================ */

/* Container do Card */
.product-card-unified {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card-unified:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Link wrapper */
.product-card-unified .product-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

/* ============================================
   IMAGEM DO PRODUTO
   ============================================ */
.product-card-unified .product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    overflow: hidden;
}

.product-card-unified .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-unified:hover .product-img {
    transform: scale(1.05);
}

.product-card-unified .product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #ccc;
    font-size: 3rem;
}

/* Badge de quantidade de imagens */
.product-card-unified .product-images-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Badge de desconto */
.product-card-unified .product-badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

/* Badge VIP */
.product-card-unified .product-badge-vip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #C7A333, #d4af37);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

/* ============================================
   INFORMACOES DO PRODUTO
   ============================================ */
.product-card-unified .product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-card-unified .product-brand {
    margin: 0;
    font-size: 0.75rem;
    color: #C7A333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-card-unified .product-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   PRECOS
   ============================================ */
.product-card-unified .product-pricing {
    margin-top: auto;
    padding-top: 8px;
}

.product-card-unified .price-original {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.product-card-unified .price-from {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
}

.product-card-unified .price-old {
    font-size: 0.8rem;
    color: #888;
    text-decoration: line-through;
}

.product-card-unified .price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.product-card-unified .price-current.price-discount {
    color: #22c55e;
}

.product-card-unified .price-current .price-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    margin-right: 4px;
}

.product-card-unified .price-installments {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    margin-top: 4px;
}

/* ============================================
   BOTOES DE ACAO
   ============================================ */
.product-card-unified .product-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.product-card-unified .product-actions a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* Botao Ver */
.product-card-unified .btn-product-view {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
}

.product-card-unified .btn-product-view:hover {
    background: #333;
}

.product-card-unified .btn-product-view i {
    font-size: 0.9rem;
}

/* Botao Adicionar ao Carrinho */
.product-card-unified .btn-product-cart {
    background: #0f0f0f;
    color: #d4af37;
    border: 1px solid #b8860b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 8px rgba(184, 134, 11, 0.15);
}

.product-card-unified .btn-product-cart:hover {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.product-card-unified .btn-product-cart i {
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #d4af37, #b8860b);
    color: #0f0f0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .product-card-unified .product-info {
        padding: 12px;
    }
    
    .product-card-unified .product-name {
        font-size: 0.85rem;
    }
    
    .product-card-unified .price-current {
        font-size: 1.1rem;
    }
    
    .product-card-unified .product-actions {
        padding: 0 12px 12px;
        gap: 6px;
    }
    
    .product-card-unified .product-actions a {
        padding: 10px 6px;
        font-size: 0.75rem;
    }
    
    .product-card-unified .product-actions a span {
        display: none;
    }
    
    .product-card-unified .product-actions a i {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .product-card-unified .product-actions a span {
        display: inline;
    }
    
    .product-card-unified .btn-product-cart i {
        display: none;
    }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.products-grid-unified {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .products-grid-unified {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .products-grid-unified {
        grid-template-columns: 1fr;
    }
}

/* Swiper slide adjustment */
.swiper-slide .product-card-unified {
    height: 100%;
}

/* ============================================
   SHOWCASE CARD ADJUSTMENTS
   Para cards dentro de carrosseis
   ============================================ */
.showcase-card.product-card-unified {
    min-width: 200px;
    max-width: 280px;
}

.showcase-card .product-info {
    padding: 12px;
}

.showcase-card .product-actions {
    padding: 0 12px 12px;
}

@media (max-width: 768px) {
    .showcase-card.product-card-unified {
        min-width: 160px;
        max-width: 200px;
    }
}
