﻿/* Product card styles */
.product-card-ct {
    margin-bottom: 1.5rem;
}

    .product-card-ct .card {
        border: 1px solid #eee;
        transition: all 0.3s ease;
        height: 100%;
    }

    .product-card-ct .image-container {
        padding: 1rem;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-card-ct .product-image {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }
    .product-card-ct .product-image {
        transition: none;
    }
    .product-card-ct .card:hover .product-image {
        transform: none;
        cursor: pointer;
    }

    .product-card-ct .product-title {
        font-size: 0.9rem;
        line-height: 1.4;
        height: 2.8em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-card-ct .btn-outline-danger:hover {
        transform: none;
    }

    .product-card-ct .price-text {
        flex-wrap: nowrap;
    }

    .product-card-ct .price-wrapper {
        min-height: 3.2rem; /* set cứng chiều cao */
        align-items: center;
    }

    .product-card-ct .price-text {
        font-size: 1rem;
        white-space: nowrap;
    }

    .product-card-ct .text-decoration-line-through {
        font-size: 0.85rem;
    }

/* Shared storefront product card contract */
.product-card,
.product-card-ct .card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover,
.product-card-ct .card:hover {
    border-color: rgba(220, 53, 69, 0.28);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    transform: none;
}

.product-card .product-link,
.product-card-ct .product-link {
    display: flex;
    flex: 1 1 auto;
    min-height: 100%;
    flex-direction: column;
    color: inherit;
}

.product-card .image-container,
.product-card-ct .image-container {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: clamp(0.75rem, 2vw, 1rem);
    background: #fff;
    overflow: hidden;
}

.product-card .product-image,
.product-card .product-image-csl-hotSale,
.product-card-ct .product-image,
.product-card-ct .product-image-csl-hotSale {
    inset: 0;
    width: 82%;
    height: 82%;
    max-width: 82%;
    max-height: 82%;
    margin: auto;
    object-fit: contain;
    padding: 0;
    transition: transform 0.14s ease;
}

.product-card .card-body,
.product-card-ct .card-body {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0.85rem !important;
}

.product-card .product-title,
.product-card-ct .product-title {
    display: -webkit-box !important;
    min-height: 2.7em;
    height: 2.7em;
    max-height: 2.7em;
    margin-bottom: 0.65rem !important;
    color: #111827;
    font-size: 0.92rem !important;
    font-weight: 650;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.product-card .price-wrapper,
.product-card-ct .price-wrapper {
    min-height: 3.2rem;
    margin-bottom: 0.75rem !important;
    align-content: flex-start;
    align-items: flex-start !important;
}

.product-card .price-text,
.product-card-ct .price-text,
.product-card .card-body .text-danger.fw-bold,
.product-card-ct .card-body .text-danger.fw-bold {
    font-size: clamp(0.88rem, 1.6vw, 1rem) !important;
    line-height: 1.25;
}

.product-card .addToWishList,
.product-card-ct .addToWishList {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    margin-top: auto !important;
    border-radius: 10px;
    font-weight: 650;
    line-height: 1.1;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.product-card-promos {
    position: absolute;
    top: 0.65rem;
    z-index: 4;
    display: flex;
    max-width: calc(50% - 0.75rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    pointer-events: none;
}

.product-card-promos--left {
    left: 0.65rem;
}

.product-card-promos--right {
    right: 0.65rem;
    align-items: flex-end;
}

.product-promo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 100%;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.1;
    white-space: normal;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.product-promo-badge--sale {
    background: #dc2626;
    color: #fff;
}

.product-promo-badge--installment {
    background: #ffffff;
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, 0.24);
}

.product-card.is-wishlisted,
.product-card-ct .card.is-wishlisted {
    border-color: rgba(220, 53, 69, 0.42);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.1);
}

.product-card.is-wishlisted::after,
.product-card-ct .card.is-wishlisted::after {
    content: "Đã thích";
    position: absolute;
    right: 0.65rem;
    top: auto;
    bottom: 4.8rem;
    z-index: 3;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #fff1f2;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.08);
}

.product-card .addToWishList.is-active,
.product-card-ct .addToWishList.is-active {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    box-shadow: none;
}

.product-card .addToWishList.is-active:hover,
.product-card-ct .addToWishList.is-active:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

@media (max-width: 767.98px) {
    .product-card .card-body,
    .product-card-ct .card-body {
        padding: 0.7rem !important;
    }

    .product-card .product-title,
    .product-card-ct .product-title {
        font-size: 0.86rem !important;
    }

    .product-card .addToWishList,
    .product-card-ct .addToWishList {
        min-height: 36px;
        font-size: 0.82rem;
    }

    .product-card.is-wishlisted::after,
    .product-card-ct .card.is-wishlisted::after {
        font-size: 0.66rem;
        right: 0.45rem;
        bottom: 4.55rem;
    }

    .product-card-promos {
        top: 0.45rem;
        max-width: calc(50% - 0.55rem);
        gap: 0.25rem;
    }

    .product-card-promos--left {
        left: 0.45rem;
    }

    .product-card-promos--right {
        right: 0.45rem;
    }

    .product-promo-badge {
        min-height: 22px;
        padding: 0.22rem 0.45rem;
        font-size: 0.64rem;
    }
}



    /* Filter form styles */
    .filter-section {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .filter-section .form-group {
        margin-bottom: 0;
    }

    .filter-section .form-label {
        font-size: 0.9rem;
        font-weight: 500;
        color: #6c757d;
        margin-bottom: 0.3rem;
    }

    .filter-section .form-control {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        border-color: #dee2e6;
    }

        .filter-section .form-control:focus {
            box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25);
            border-color: #dc3545;
        }

@media (max-width: 768px) {
    .filter-section .form-group

{
    margin-bottom: 1rem;
}

.filter-section .col-md-4:last-child .form-group {
    margin-bottom: 0;
}

}

/* Breadcrumb styles */
.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #6c757d;
}

    .breadcrumb-item a:hover {
        color: #dc3545;
    }

.breadcrumb-item.active {
    color: #212529;
}

/* Filter toolbar styles */
.filter-toolbar {
    border: 1px solid rgba(0,0,0,0.1);
}

    .filter-toolbar .form-select {
        min-width: 140px;
        font-size: 0.875rem;
        cursor: pointer;
        padding-right: 2rem;
    }

        .filter-toolbar .form-select:focus {
            box-shadow: 0 0 0 0.15rem rgba(220,53,69,0.25);
        }

    .filter-toolbar .btn-outline-danger {
        font-size: 0.875rem;
        border-width: 1px;
    }

        .filter-toolbar .btn-outline-danger:hover {
            background-color: #dc3545;
            border-color: #dc3545;
            color: white;
        }

@media (max-width: 768px) {
    .filter-toolbar .row

{
    row-gap: 0.5rem !important;
}

.filter-toolbar .col-auto {
    width: 100%;
}

.filter-toolbar .form-select {
    width: 100%;
}

.filter-toolbar .ms-auto {
    margin-left: 0 !important;
}
}

/* Client motion moderation */
.product-card:hover .product-image,
.product-card:hover .product-image-csl-hotSale,
.product-card-ct .card:hover .product-image,
.product-card-ct .card:hover .product-image-csl-hotSale,
.client-list-card:hover .client-list-card__image img,
.btn-buy-now:hover,
.btn-cart:hover,
.card:hover,
.site-footer__links a:hover,
.site-footer__social a:hover,
.dropdown-item:hover,
.transition-icon,
.rating i:hover {
    transform: none !important;
}

.product-card .product-image,
.product-card .product-image-csl-hotSale,
.product-card-ct .product-image,
.product-card-ct .product-image-csl-hotSale,
.client-list-card__image img,
.thumbnail,
.variant-card,
.btn,
.card,
.dropdown-item,
.notification-item {
    transition-duration: 0.12s !important;
}

.animate,
.slideIn,
.hot-sale-txt {
    animation: none !important;
}

.product-card:hover .product-image,
.product-card:hover .product-image-csl-hotSale,
.product-card-ct .card:hover .product-image,
.product-card-ct .card:hover .product-image-csl-hotSale {
    transform: scale(1.04) !important;
}
