/* Compact product cards for Pranish Store */
.tp-product-item,
.tp-product-item-2,
.tp-product-item-3,
.tp-product-item-4,
.tp-product-item-5 {
    margin-bottom: 16px !important;
}

.tp-product-item .tp-product-thumb,
.tp-product-item-2 .tp-product-thumb-2,
.tp-product-item-3 .tp-product-thumb-3,
.tp-product-item-4 .tp-product-thumb-4,
.tp-product-item-5 .tp-product-thumb-5 {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.tp-product-item .tp-product-thumb img,
.tp-product-item-2 .tp-product-thumb-2 img,
.tp-product-item-3 .tp-product-thumb-3 img,
.tp-product-item-4 .tp-product-thumb-4 img,
.tp-product-item-5 .tp-product-thumb-5 img {
    max-height: 180px;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.tp-product-item .tp-product-content,
.tp-product-item-2 .tp-product-content-2,
.tp-product-item-3 .tp-product-content-3,
.tp-product-item-4 .tp-product-content-4,
.tp-product-item-5 .tp-product-content-2 {
    padding: 12px 12px 14px !important;
}

.tp-product-item .tp-product-title,
.tp-product-item .tp-product-title a,
.tp-product-item-2 .tp-product-title-2,
.tp-product-item-2 .tp-product-title-2 a {
    font-size: 14px !important;
    line-height: 1.35 !important;
    min-height: auto !important;
    margin-bottom: 4px !important;
}

.tp-product-item .tp-product-price-wrapper,
.tp-product-item .tp-product-price,
.tp-product-item-2 .tp-product-price-2 {
    font-size: 14px !important;
    margin-top: 4px !important;
}

.tp-product-item .tp-product-rating,
.tp-product-item-2 .tp-product-rating-icon {
    margin-bottom: 4px !important;
    font-size: 12px;
}

/* Product listing / homepage grids denser */
.tp-product-area .row > .col,
.tp-product-arrival-area .row > .col,
.bb-product-items-wrapper .row > .col {
    padding-left: 8px;
    padding-right: 8px;
}

@media (max-width: 767px) {
    .tp-product-item .tp-product-thumb,
    .tp-product-item-2 .tp-product-thumb-2,
    .tp-product-item-3 .tp-product-thumb-3,
    .tp-product-item-4 .tp-product-thumb-4,
    .tp-product-item-5 .tp-product-thumb-5 {
        height: 150px;
    }

    .tp-product-item .tp-product-thumb img,
    .tp-product-item-2 .tp-product-thumb-2 img,
    .tp-product-item-3 .tp-product-thumb-3 img,
    .tp-product-item-4 .tp-product-thumb-4 img,
    .tp-product-item-5 .tp-product-thumb-5 img {
        max-height: 150px;
    }
}

/* Brand logos — equal box, auto-fit any aspect ratio */
.tp-brand-area .tp-brand-item,
.tp-brand-grid .tp-brand-item,
.tp-brand-slider .tp-brand-item {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 1px solid #edeff2;
    border-radius: 10px;
    background: #fff;
    margin: 0;
}

.tp-brand-area .tp-brand-item a,
.tp-brand-grid .tp-brand-item a,
.tp-brand-slider .tp-brand-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tp-brand-area .tp-brand-item img,
.tp-brand-grid .tp-brand-item img,
.tp-brand-slider .tp-brand-item img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 64px !important;
    object-fit: contain !important;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.tp-brand-area .row.g-3 > .col > h6 {
    margin-top: 10px !important;
    font-size: 13px;
    font-weight: 500;
}

/* Brands page directory (grid list) — equal logo height */
.tp-brand-directory .tp-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: 100%;
    min-height: 132px;
    padding: 18px 12px 14px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tp-brand-directory .tp-brand-card:hover {
    border-color: var(--tp-theme-primary, #0989ff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
    color: inherit;
}

.tp-brand-directory .tp-brand-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 100%;
    height: 56px;
    max-height: 56px;
    overflow: hidden;
}

.tp-brand-directory .tp-brand-card__logo img,
.tp-brand-directory .tp-brand-card__img,
.tp-brand-directory .tp-brand-card img {
    width: auto !important;
    height: auto !important;
    max-width: 120px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
}

.tp-brand-directory .tp-brand-card__name {
    display: block;
    width: 100%;
    min-height: 34px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1d1d1f;
    letter-spacing: .01em;
}

.tp-brand-directory .tp-brand-card:hover .tp-brand-card__name {
    color: var(--tp-theme-primary, #0989ff);
}

@media (max-width: 575px) {
    .tp-brand-area .tp-brand-item,
    .tp-brand-grid .tp-brand-item,
    .tp-brand-slider .tp-brand-item {
        height: 90px;
        padding: 12px 8px;
    }

    .tp-brand-area .tp-brand-item img,
    .tp-brand-grid .tp-brand-item img,
    .tp-brand-slider .tp-brand-item img {
        max-height: 48px !important;
    }

    .tp-brand-directory .tp-brand-card {
        min-height: 118px;
        padding: 14px 10px 12px;
        gap: 8px;
    }

    .tp-brand-directory .tp-brand-card__logo {
        flex-basis: 48px;
        height: 48px;
        max-height: 48px;
    }

    .tp-brand-directory .tp-brand-card__logo img,
    .tp-brand-directory .tp-brand-card__img,
    .tp-brand-directory .tp-brand-card img {
        max-height: 40px !important;
        max-width: 100px !important;
    }

    .tp-brand-directory .tp-brand-card__name {
        font-size: 12px;
        min-height: 30px;
    }
}
