/* Homepage product cards — scoped overrides */

.home-products-section,
.most-visited-section {
    padding: 55px 0;
}

.home-products-section .section-tittle h2,
.most-visited-section .section-tittle h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.home-products-section .section-tittle h2::after,
.most-visited-section .section-tittle h2::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: #00a4a6;
}

.home-products-grid > [class*="col-"] {
    display: flex;
}

.home-products-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1.25rem;
}

.home-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.home-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 164, 166, 0.35);
    box-shadow: 0 10px 24px rgba(0, 164, 166, 0.12);
}

.home-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    height: 168px;
    padding: 12px 16px;
    background: #f4f7f9;
    border-bottom: 1px solid #e8edf2;
    text-decoration: none;
    overflow: hidden;
}

.home-product-card__image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 144px !important;
    object-fit: contain !important;
    object-position: center center;
    border-radius: 0 !important;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.home-product-card:hover .home-product-card__image img {
    transform: scale(1.03);
}

.home-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 14px 14px;
    min-height: 148px;
}

.home-product-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 6px;
    min-height: 2.75em;
}

.home-product-card__title a {
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-card__title a:hover {
    color: #00a4a6;
}

.home-product-card__author {
    font-size: 0.75rem;
    color: #64748b;
    min-height: 1.25em;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    min-height: 52px;
}

.home-product-rating {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-product-rating__stars {
    display: flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.home-product-rating__stars i {
    font-size: 0.7rem;
}

.home-product-rating__stars .star-filled {
    color: #f59e0b;
}

.home-product-rating__stars .star-empty {
    color: #cbd5e1;
}

.home-product-rating__meta,
.home-product-rating__empty {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
}

.home-product-card__price {
    text-align: left;
    flex-shrink: 0;
}

.home-product-card__price .product-price {
    align-items: flex-end;
}

.home-product-card__price p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #00a4a6;
    line-height: 1.2;
}

.home-product-card__price p span {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: #94a3b8;
}

.home-products-tabs .nav-link {
    color: #64748b;
    border: none;
    padding: 7px 15px;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.home-products-tabs .nav-link:hover {
    color: #00a4a6;
    background: rgba(0, 164, 166, 0.08);
}

.home-products-tabs .nav-link.active {
    color: #fff;
    background: #00a4a6;
    box-shadow: 0 4px 12px rgba(0, 164, 166, 0.22);
}

.most-visited-section .selling-active .properties {
    margin: 0 6px;
    padding-bottom: 8px;
    height: 100%;
    display: flex;
}

.most-visited-section .selling-active .slick-track {
    display: flex !important;
    align-items: stretch;
}

.most-visited-section .selling-active .slick-slide {
    height: auto;
    display: flex !important;
}

.most-visited-section .selling-active .slick-slide > div {
    display: flex;
    width: 100%;
    height: 100%;
}

.most-visited-section .selling-active .home-product-card {
    width: 100%;
}

.most-visited-section .selling-active .slick-list {
    padding: 6px 0 14px;
}

.home-more-btn .border-btn2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 2px solid #00a4a6;
    color: #00a4a6;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.home-more-btn .border-btn2:hover {
    background: #00a4a6;
    color: #fff;
}

@media (max-width: 991px) {
    .home-product-card__image {
        height: 155px;
    }

    .home-product-card__image img {
        max-height: 131px !important;
    }
}

@media (max-width: 767px) {
    .home-product-card__image {
        height: 140px;
        padding: 10px 12px;
    }

    .home-product-card__image img {
        max-height: 120px !important;
    }

    .home-product-card__body {
        min-height: 132px;
        padding: 10px 12px 12px;
    }

    .home-products-section,
    .most-visited-section {
        padding: 38px 0;
    }
}
