/* =============================================
   PRODUTOS - Estilos dos Cartoes
   ProdivetZN - Sistema de Cartoes de Produto
   ============================================= */

/* =============================================
   CONTROLOS E FILTROS
   ============================================= */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 15px 20px;
    background-color: var(--gray-light);
    border-radius: 10px;
}

.products-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.catalog-filter-form {
    display: flex;
    align-items: center;
}

.filter-select {
    padding: 12px 35px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-filter {
    padding: 12px 20px;
    white-space: nowrap;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-light);
    transition: var(--transition);
}

.view-btn:hover {
    color: var(--primary-color);
    background-color: var(--gray-light);
}

.view-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Resultados de Pesquisa Info */
.search-results-info {
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: var(--primary-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.search-results-info p {
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-results-info i {
    color: var(--primary-color);
}

.results-count {
    color: var(--primary-color);
    font-weight: 600;
}

/* =============================================
   CARTAO VERTICAL (GRID) - Normal
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card-vertical {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-vertical:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card-vertical .product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--gray-light);
}

.product-card-vertical .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-vertical:hover .product-img {
    transform: scale(1.1);
}

.product-card-vertical .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-vertical:hover .product-overlay {
    opacity: 1;
}

.product-card-vertical .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-category {
    font-size: 11px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-form {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-form i {
    color: var(--primary-color);
    font-size: 11px;
}

.product-card-vertical .product-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* =============================================
   CARTAO HORIZONTAL (LISTA)
   ============================================= */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.product-card-horizontal {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: stretch;
}

.product-card-horizontal:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.product-image-horizontal {
    width: 250px;
    min-width: 250px;
    height: 200px;
    overflow: hidden;
    background-color: var(--gray-light);
    position: relative;
}

.product-image-horizontal .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-horizontal:hover .product-image-horizontal .product-img {
    transform: scale(1.05);
}

.product-content-horizontal {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-header-horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-content-horizontal .product-desc {
    margin: 15px 0;
    -webkit-line-clamp: 2;
}

.product-actions-horizontal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.product-actions-horizontal .product-price {
    font-size: 24px;
}

/* =============================================
   CARTAO DESTACADO (FEATURED)
   ============================================= */
.products-featured {
    margin-bottom: 50px;
}

.product-card-featured {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    min-height: 400px;
}

.product-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.product-featured-badge i {
    font-size: 14px;
}

.product-image-featured {
    position: relative;
    overflow: hidden;
    background-color: var(--gray-light);
}

.product-image-featured .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-featured:hover .product-image-featured .product-img {
    transform: scale(1.08);
}

.product-overlay-featured {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-featured:hover .product-overlay-featured {
    opacity: 1;
}

.product-info-featured {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.product-name-featured {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

.product-desc-featured {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

.product-price-featured {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0 0 0;
}

.product-footer-featured {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Homepage Product Cards - imagens */
.products .product-card .product-image .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.products .product-card:hover .product-image .product-img {
    transform: scale(1.1);
}

/* =============================================
   CARTAO COMPACTO (PESQUISA)
   ============================================= */
.products-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.product-card-compact {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.product-card-compact:hover {
    background-color: var(--gray-light);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.1);
}

.product-image-compact {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--gray-light);
}

.product-image-compact .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder-compact {
    font-size: 28px;
}

.product-info-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-name-compact {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.product-desc-compact {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.product-price-compact {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-arrow-compact {
    color: var(--text-light);
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.product-card-compact:hover .product-arrow-compact {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* =============================================
   SEM PRODUTOS
   ============================================= */
.no-products {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--gray-light);
    border-radius: 12px;
}

.no-products-icon {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-products h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* =============================================
   RESPONSIVO
   ============================================= */

/* Tablet */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-card-featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-image-featured {
        height: 300px;
    }

    .product-info-featured {
        padding: 30px;
    }

    .product-name-featured {
        font-size: 24px;
    }

    .product-image-horizontal {
        width: 200px;
        min-width: 200px;
        height: 180px;
    }

    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .products-filters {
        width: 100%;
    }

    .view-toggle {
        align-self: flex-end;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-horizontal {
        flex-direction: column;
    }

    .product-image-horizontal {
        width: 100%;
        height: 200px;
    }

    .products-filters {
        flex-direction: column;
    }

    .search-filter {
        max-width: 100%;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .btn-filter {
        width: 100%;
    }

    .product-card-featured {
        margin: 0 -15px;
        border-radius: 0;
    }

    .product-image-featured {
        height: 250px;
    }

    .product-info-featured {
        padding: 25px;
    }

    .product-name-featured {
        font-size: 20px;
    }

    .product-price-featured {
        font-size: 26px;
    }

    .product-actions-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .product-actions-horizontal .btn {
        width: 100%;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .products-controls {
        padding: 15px;
    }

    .product-card-compact {
        padding: 12px;
        gap: 12px;
    }

    .product-image-compact {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .product-name-compact {
        font-size: 14px;
    }

    .product-desc-compact {
        display: none;
    }
}
