/**
 * One Elementor - One Brand Card Widget
 */

/* ========================================
   Card Wrapper
======================================== */
.oe-brand-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.oe-brand-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Image Section
======================================== */
.oe-brand-card-image-section {
    background: #FFE5E5;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.oe-brand-card-image-section img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* ========================================
   Content Section
======================================== */
.oe-brand-card-content {
    padding: 20px;
}

/* ========================================
   Header
======================================== */
.oe-brand-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.oe-brand-card-title-group {
    flex: 1;
    min-width: 0;
}

.oe-brand-card-name {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #000000;
}

.oe-brand-card-category {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #666666;
}

/* ========================================
   Badge
======================================== */
.oe-brand-card-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.oe-brand-card-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.oe-brand-card-badge-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.oe-brand-card-badge-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #000000;
    white-space: nowrap;
}

/* ========================================
   Description
======================================== */
.oe-brand-card-description {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
}

/* ========================================
   Statistics
======================================== */
.oe-brand-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E5E5;
}

.oe-brand-card-stats-item {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oe-brand-card-growth {
    color: #22C55E;
}

.oe-brand-card-growth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.oe-brand-card-growth-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.oe-brand-card-growth-text {
    font-weight: 600;
}

.oe-brand-card-revenue {
    color: #333333;
    margin-left: auto;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .oe-brand-card-image-section {
        padding: 15px;
        min-height: 150px;
    }

    .oe-brand-card-content {
        padding: 16px;
    }

    .oe-brand-card-name {
        font-size: 20px;
    }

    .oe-brand-card-category {
        font-size: 13px;
    }

    .oe-brand-card-badge-text {
        font-size: 11px;
    }

    .oe-brand-card-description {
        font-size: 13px;
    }

    /* Keep header layout: Brand name + category left, badge right */
    .oe-brand-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .oe-brand-card-title-group {
        flex: 1;
        min-width: 0;
    }

    .oe-brand-card-badge {
        flex-shrink: 0;
    }

    /* Keep stats layout: Growth left, Revenue right */
    .oe-brand-card-stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .oe-brand-card-growth {
        flex: 0 0 auto;
    }

    .oe-brand-card-revenue {
        margin-left: auto;
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    /* Keep header layout even on small screens */
    .oe-brand-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .oe-brand-card-title-group {
        flex: 1;
        min-width: 0;
    }

    .oe-brand-card-badge {
        flex-shrink: 0;
        align-self: flex-start;
    }

    /* Keep stats layout even on small screens */
    .oe-brand-card-stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .oe-brand-card-revenue {
        margin-left: auto;
    }
}

