/*-----------------------------------
Product Card Components
Duration badge, formador info, category info, tag badge, formador profile card
-----------------------------------*/

/* Duration Badge */
.product-duration-badge {
    position: absolute;
    top: 30px;
    left: 10px;
    background: var(--e-global-color-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* Formador & Category Info */
.product-formador-info,
.product-category-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 1px 15px 1px 0;
    font-size: 0.81em;
    color: var(--e-global-color-text);
    white-space: nowrap;
}

.product-formador-info .formador-icon,
.product-category-info .category-icon {
    color: var(--e-global-color-text);
    font-size: 0.9em;
}

.product-formador-info .formador-name,
.product-category-info .category-name {
    font-weight: 500;
}

.product-category-info .category-name {
    text-decoration: none;
    color: var(--e-global-color-text);
}

.product-category-info .category-name:hover {
    color: var(--e-global-color-primary);
}

/* Tag Badge (Single Product) */
.woocommerce.single-product .tagproduto {
    display: inline-block;
    background: var(--e-global-color-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-right: 10px;
}

/* Formador Profile Card */
.formador-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 20px;
    background: var(--e-global-color-8706898);
    border-radius: 4px;
}

.formador-image {
    flex: 0 0 200px;
}

.formador-image img {
    width: 100%;
    height: auto;
    border-radius: 200px;
}

.formador-content {
    flex: 1;
}

.formador-content h2 {
    color: var(--e-global-color-primary);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.formador-content p {
    color: var(--e-global-color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .formador-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .formador-image {
        flex: 0 0 auto;
        max-width: 250px;
        margin-bottom: 20px;
    }
}
