/*----------------------------------------
    Home Sellers Section
        - "Meet the sellers" cards
        - Shares the hero's card vocabulary
-----------------------------------------*/

.q2u-sellers {
    padding: 6rem 0;
    background-color: #faf7f0;
    font-family: Poppins, sans-serif;
}

.q2u-sellers__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 3rem;
}

.q2u-sellers__heading {
    max-width: 620px;
}

.q2u-sellers__title {
    margin: 0 0 0.8rem;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
    color: #333;
}

.q2u-sellers__text {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.7;
    color: #666;
    text-wrap: pretty;
}

.q2u-sellers__all {
    flex-shrink: 0;
    padding-bottom: 3px;
    border-bottom: 2px solid #e3d9bb;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.q2u-sellers__all:hover {
    color: var(--q2u-primary-dark, #c09c35);
    border-bottom-color: var(--q2u-primary, #cfad3c);
}

.q2u-sellers__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Card */

.q2u-seller {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 10px 26px rgba(51, 51, 51, 0.09);
    transition: transform 0.3s, box-shadow 0.3s;
}

.q2u-seller:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(51, 51, 51, 0.14);
}

.q2u-seller__banner {
    overflow: hidden;
    height: 84px;
    margin: 0;
    background-color: #f4eedd;
}

.q2u-seller__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q2u-seller__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    padding: 0 18px 18px;
}

.q2u-seller__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 56px;
    height: 56px;
    margin: -28px 0 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background-color: #f4eedd;
}

.q2u-seller__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q2u-seller__initial {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--q2u-primary-dark, #c09c35);
}

.q2u-seller__name {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    color: #333;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.q2u-seller__meta {
    margin: 0 0 14px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
}

.q2u-seller__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.q2u-seller__cta svg {
    flex-shrink: 0;
    stroke: var(--q2u-primary, #cfad3c);
    transition: transform 0.3s;
}

.q2u-seller:hover .q2u-seller__cta svg {
    transform: translateX(3px);
}

/* lg and down */

@media (max-width: 991px) {
    .q2u-sellers {
        padding: 4.5rem 0;
    }

    .q2u-sellers__title {
        font-size: 2.4rem;
    }

    .q2u-sellers__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Phone */

@media (max-width: 767px) {
    .q2u-sellers {
        padding: 3.6rem 0;
    }

    .q2u-sellers__head {
        margin-bottom: 2.2rem;
    }

    .q2u-sellers__title {
        font-size: 2.2rem;
    }

    .q2u-sellers__grid {
        gap: 14px;
    }

    .q2u-seller__banner {
        height: 64px;
    }

    .q2u-seller__body {
        padding: 0 14px 16px;
    }

    .q2u-seller__logo {
        width: 46px;
        height: 46px;
        margin: -23px 0 10px;
    }

    .q2u-seller__name {
        font-size: 1.4rem;
    }
}
