/**
 * BCE Product Showcase - Horizontal Card Styles v1.5
 * Cập nhật theo yêu cầu:
 * - Thêm padding cho ảnh sản phẩm để trông nhỏ lại và có khoảng đệm.
 * - Giảm kích thước font chữ cho tên và giá sản phẩm.
 * - Bỏ in đậm cho giá sản phẩm.
 */

.product-card-horizontal {
    display: flex;
    gap: 15px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.product-card-horizontal:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

/* === THAY ĐỔI SỐ 1: Thêm padding cho container ảnh === */
.product-card-horizontal__image {
    flex-shrink: 0;
    flex-basis: 120px; /* Cố định chiều rộng cột ảnh */
    padding: 10px; /* Thêm 10px đệm xung quanh ảnh */
    box-sizing: border-box; /* Đảm bảo padding không làm vỡ layout flex */
}

.product-card-horizontal__image a {
    display: block;
    height: 100%;
}

.product-card-horizontal__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px; /* Thêm bo góc nhẹ cho ảnh bên trong */
}

.product-card-horizontal__details {
    display: flex;
    flex-direction: column;
    padding: 15px;
    flex-grow: 1;
    min-width: 0; /* Quan trọng để text-overflow hoạt động trong flexbox */
}

/* === THAY ĐỔI SỐ 2: Giảm cỡ chữ tiêu đề === */
.product-card-horizontal__title {
    font-size: 13px; /* Giảm từ 14px */
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
    color: #222;

    /* Đảm bảo chỉ hiển thị 1 dòng */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-horizontal__title a {
    color: inherit;
    text-decoration: none;
}
.product-card-horizontal__title a:hover {
    text-decoration: underline;
}

.product-card-horizontal__description {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 10px;
    flex-grow: 1; /* Đẩy footer xuống dưới */
    
    /* Giới hạn 2 dòng */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(1.5em * 2); /* Đảm bảo chiều cao tối thiểu */
}

.product-card-horizontal__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Đảm bảo footer luôn ở dưới cùng */
    gap: 10px;
}

/* === THAY ĐỔI SỐ 3: Giảm cỡ chữ và bỏ in đậm cho giá === */
.product-card-horizontal__price {
    font-size: 14px; /* Giảm từ 15px */
    font-weight: 400; /* Bỏ in đậm (từ 700) */
    color: #111;
}

.product-card-horizontal__wishlist button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-card-horizontal__wishlist button:hover {
    color: #d90429;
    transform: scale(1.1);
    background-color: transparent !important;
}

.product-card-horizontal__wishlist button.is-in-wishlist {
    color: #d90429;
}

.product-card-horizontal__wishlist button.is-in-wishlist svg {
    fill: #d90429;
}

.product-card-horizontal__wishlist button.loading {
    opacity: 0.5;
    cursor: wait;
}

.product-card-horizontal__wishlist button svg {
    width: 22px;
    height: 22px;
    fill: none;
}

/**
 * =================================================================
 * CĂN CHỈNH LẠI MŨI TÊN CHO BỐ CỤC NGANG
 * =================================================================
 */
.bce-showcase--horizontal .bce-product-showcase-carousel .swiper-button-next,
.bce-showcase--horizontal .bce-product-showcase-carousel .swiper-button-prev {
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
}