/* -------------------------------------------
    Brands
        Brands Types
            1. Base Style
            2. Type 2
            3. Type 3
------------------------------------------- */

@import '../../../assets/sass/config';
@import '../../assets/sass/mixins/direction';
@import '../../assets/sass/mixins/mixins';

// 1. Base Style
.brand-widget {
    margin-bottom: 2rem;
    font-size: 1rem;
    .brand-name {
        font-size: 1.6em;
        font-weight: 600;
        line-height: 1.2;
        text-transform: uppercase;
    }
    .ratings-container {
        line-height: 1;
        font-size: 1.2em;
    }
}

// 2. Type 2
.brand-widget-2 {
    .brand-product-media {
        max-width: 19rem;
        width: 100%;
        height: auto;
        margin: auto !important;
        border: 0px solid var(--alpha-change-color-light-1);
        img {
            object-fit: cover;
            width: 100%;
        }
    }
    &.brand-widget-circle .brand-product-media {
        border-radius: 50%;
        overflow: hidden;
        transition: border-width .15s, box-shadow .15s;
    }
    .brand-name {
        margin-top: 2em;
        letter-spacing: -.025em;
        text-align: center;
    }
    .brand-product-media {
        &:hover {
            border-width: .8rem;
            box-shadow: 0 .5rem 1.5rem 0 rgba(0,0,0,0.1);
        }
    }
    .ratings-container {
        margin-top: 1.7em;
        text-align: center;
        .star-rating {
            margin-#{$right}: 0;
        }
    }
}

// 3. Type 3
.brand-widget-3 {
    padding: 2rem;
    border: 1px solid var(--alpha-change-border-color);
    transition: border-color .35s;
    &:hover {
        border-color: var(--alpha-primary-color);
    }
    .brand-info {
        max-width: calc(100% - 5em);
        margin-#{$left}: 1rem;
    }
    .brand-detail {
        display: flex;
        align-items: center;
    }
    .brand-products {
        margin-top: 2em;
    }
    .brand-name {
        display: inline-block;
        vertical-align: middle;
        font-size: 1.5em;
        text-overflow: ellipsis;
        text-transform: capitalize;
        margin-bottom: 0;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
    }
    .brand-product-count {
        font-size: 1.2em;
        font-weight: 400;
        color: var(--alpha-body-color);
        white-space: nowrap;
    }
    .brand-logo {
        max-width: 5em;
        height: auto;
        > img {
            object-fit: cover;
        }
    }
    .ratings-container {
        margin-top: .5em;
    }
}