/* ============================================
   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: 4px;
    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: 4px;
}

.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: 2px;
}

/* ============================================
   BOTOES DE ACAO
   ============================================ */
.product-card-unified .product-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    position: static;
    opacity: 1;
    transform: none;
    z-index: 1;
}

.product-card-unified .product-actions a,
.product-card-unified .product-actions button {
    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.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.product-card-unified .btn-view-details {
    background: #C7A333;
    color: #000000;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-card-unified .btn-view-details::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #4C3F01 0%, #8A6623 20%, #D4AF37 40%, #F7EF8A 50%, #D4AF37 60%, #8A6623 80%, #4C3F01 100%);
    background-size: 300% 300%;
    animation: goldFlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes goldFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.product-card-unified .btn-view-details:hover {
    background: transparent;
    color: #000000;
    transform: scale(1.02);
}

.product-card-unified .btn-view-details span {
    color: #000000;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.product-card-unified .btn-buy-modern {
    background: #111111;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-card-unified .btn-buy-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #000000 0%, #1a1a1a 20%, #f2f2f2 40%, #ffffff 50%, #f2f2f2 60%, #1a1a1a 80%, #000000 100%);
    background-size: 300% 300%;
    animation: monoFlow 4s ease-in-out infinite;
    z-index: -1;
}

.product-card-unified .btn-buy-modern i {
    color: #ffffff;
}

.product-card-unified .btn-buy-modern span {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(120deg, #4C3F01 0%, #8A6623 20%, #D4AF37 40%, #F7EF8A 50%, #D4AF37 60%, #8A6623 80%, #4C3F01 100%);
    background-size: 300% 300%;
    animation: goldTextFlow 3.5s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: #F7EF8A;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

@keyframes monoFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes goldTextFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   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;
        position: static;
        opacity: 1;
        transform: none;
    }
    
    .product-card-unified .product-actions a {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    .product-card-unified .product-actions button {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .product-card-unified .btn-buy-modern 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;
    }
}
