/* ========================================
   SWIFT WooCommerce Brand Card
   ======================================== */

.swcbg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;

    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

/* Optional subtle hover */
.swcbg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}


/* ========================================
   Brand Image
   ======================================== */

.swcbg-image-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 150px;

    margin-bottom: 16px;

    text-decoration: none;
}

.swcbg-image {
    display: block;

    width: auto;
    max-width: 160px;
    height: 130px;

    object-fit: contain;
    object-position: center;
}


/* ========================================
   Card Content
   ======================================== */

.swcbg-content {
    display: flex;
    flex-direction: column;

    width: 100%;

    margin-top: auto;
}


/* ========================================
   Brand Name
   ======================================== */

.swcbg-name {
    margin: 0 0 14px;

    text-align: center;

    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.swcbg-name a {
    color: inherit;
    text-decoration: none;
}

.swcbg-name a:hover,
.swcbg-name a:focus {
    text-decoration: none;
}


/* ========================================
   Product Count + View Products
   ======================================== */

/*
 * We turn .swcbg-content into a wrapping flex container.
 * Brand name occupies the full first row.
 * Product count and button share the second row.
 */

.swcbg-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}


/* Brand name takes the entire row */

.swcbg-name {
    flex: 0 0 100%;
}


/* Product count */

.swcbg-count {
    flex: 0 1 auto;
		padding-left: 22px;
    margin-bottom: 0 !important;

    font-size: 0.9rem;
    line-height: 1.3;

    color: #666;
}


/* Separator after product count */

.swcbg-count::after {
    content: "|";
    margin: 0 10px;
    color: #bbb;
}


/* View Products link */

.swcbg-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    flex: 0 1 auto;

    margin: 0;
    padding: 0;

    background: transparent !important;
    border: 0;
    border-radius: 0;

    color: #228b22 !important;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;
    box-shadow: none;
}


/* Arrow */

.swcbg-button::after {
    content: "›";

    display: inline-block;

    font-size: 1.4em;
    font-weight: 700;
    line-height: 1;

    transition: transform 0.2s ease;
}

.swcbg-button:hover::after {
    transform: translateX(3px);
}

.swcbg-button:hover,
.swcbg-button:focus {
    background: transparent !important;
    color: #176b17;
    text-decoration: none;
}


/* ========================================
   Mobile
   ======================================== */

@media (max-width: 767px) {

    .swcbg-card {
        padding: 18px;
    }

    .swcbg-image-link {
        min-height: 120px;
    }

    .swcbg-image {
        max-width: 130px;
        height: 105px;
    }

    .swcbg-name {
        font-size: 1rem;
    }

    .swcbg-count,
    .swcbg-button {
        font-size: 0.82rem;
    }

    .swcbg-count::after {
        margin: 0 7px;
    }
}