/* ============================================
   MELHORIAS NOS CARDS DE PRODUTOS
   ============================================ */

/* Cards de Produtos */
#produtos .card,
#prod-module .card {
    background: linear-gradient(135deg, #151515 0%, #1a1a1a 100%);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#produtos .card::before,
#prod-module .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.8), rgba(245, 166, 35, 0.4), rgba(245, 166, 35, 0.8));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    z-index: 2;
    animation: shimmer 3s linear infinite;
}

#produtos .card:hover::before,
#prod-module .card:hover::before {
    transform: scaleX(1);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

#produtos .card:hover,
#prod-module .card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.25);
    background: linear-gradient(135deg, #1a1a1a 0%, #1f1f1f 100%);
}

/* Imagens dos Produtos */
#produtos .card img,
#prod-module .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px 16px 0 0;
    transition: all 0.4s ease;
    filter: brightness(0.95) contrast(1.05);
    border-bottom: 2px solid rgba(245, 166, 35, 0.1);
}

#produtos .card:hover img,
#prod-module .card:hover img {
    filter: brightness(1.1) contrast(1.15);
    transform: scale(1.05);
    border-bottom-color: rgba(245, 166, 35, 0.3);
}

/* Card Body */
#produtos .card-body,
#prod-module .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 166, 35, 0.02) 100%);
}

/* Nome do Produto */
#produtos .produto-name,
#prod-module .produto-name,
.card-body h5.produto-name {
    color: #f5a623 !important;
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(245, 166, 35, 0.4);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0;
}

#produtos .card-body .produto-name,
#prod-module .card-body .produto-name {
    margin-top: 0;
}

/* Preço */
#produtos .show-preco h1,
#prod-module .show-preco h1,
.show-preco h1 {
    background: linear-gradient(135deg, #f5a623 0%, #ffd93d 50%, #f5a623 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    font-size: 2rem;
    font-weight: 900;
    margin: 1rem 0;
    letter-spacing: 1px;
    animation: shimmer 3s linear infinite;
    text-align: center;
    position: relative;
}

.show-preco h1::after {
    content: ' R$';
    -webkit-text-fill-color: #f5a623;
    font-size: 1.2rem;
    margin-left: 0.25rem;
}

.show-preco h6 {
    color: #999;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Quantity Selector */
#produtos .quantity-selector,
#prod-module .quantity-selector {
    margin: 1rem 0;
}

#produtos .quantity-selector .input-group,
#prod-module .quantity-selector .input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(245, 166, 35, 0.2);
    background: rgba(245, 166, 35, 0.05);
}

#produtos .quantity-selector .form-control,
#prod-module .quantity-selector .form-control {
    background: rgba(245, 166, 35, 0.1);
    border: none;
    color: #f5a623;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

#produtos .quantity-selector .btn,
#prod-module .quantity-selector .btn {
    background: rgba(245, 166, 35, 0.2);
    border: none;
    color: #f5a623;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
}

#produtos .quantity-selector .btn:hover,
#prod-module .quantity-selector .btn:hover {
    background: rgba(245, 166, 35, 0.4);
    color: #ffd93d;
    transform: scale(1.1);
}

/* Botões */
#produtos .card-buttons-wrapper,
#prod-module .card-buttons-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#produtos .card-buttons-wrapper .btn,
#prod-module .card-buttons-wrapper .btn {
    flex: 1;
    min-width: 120px;
    border-radius: 8px;
    font-weight: 700;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

#produtos .btn-outline-info,
#prod-module .btn-outline-info {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

#produtos .btn-outline-info:hover,
#prod-module .btn-outline-info:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

#produtos .btn-success,
#prod-module .btn-success,
#produtos .btn-simple-blue-2,
#prod-module .btn-simple-blue-2 {
    background: linear-gradient(135deg, #f5a623 0%, #d4920a 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

#produtos .btn-success:hover,
#prod-module .btn-success:hover,
#produtos .btn-simple-blue-2:hover,
#prod-module .btn-simple-blue-2:hover {
    background: linear-gradient(135deg, #ffd93d 0%, #f5a623 100%);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.4);
}

/* Grid de Produtos */
#produtos .row {
    gap: 1.5rem 0;
}

#produtos .col-md-4 {
    margin-bottom: 1.5rem;
}

/* Efeito de brilho no hover */
#produtos .card::after,
#prod-module .card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#produtos .card:hover::after,
#prod-module .card:hover::after {
    opacity: 1;
}

/* Responsivo */
@media (max-width: 768px) {
    #produtos .card img,
    #prod-module .card img {
        height: 180px;
    }
    
    #produtos .produto-name,
    #prod-module .produto-name {
        font-size: 1rem;
        min-height: 45px;
    }
    
    .show-preco h1 {
        font-size: 1.5rem;
    }
    
    #produtos .card-buttons-wrapper,
    #prod-module .card-buttons-wrapper {
        flex-direction: column;
    }
    
    #produtos .card-buttons-wrapper .btn,
    #prod-module .card-buttons-wrapper .btn {
        width: 100%;
    }
}
