.combo-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.product-list-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 10px;
    align-items: center;
}

.product-list {
    padding: 40px 0;
}

.combo-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 24px;
}

.combo-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.combo-image {
    position: relative;
    padding-top: 137%;
    /* 4:3 aspect ratio */
    overflow: hidden;
    display: block;
}

.combo-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.combo-item:hover .combo-image img {
    transform: scale(1.05);
}

.combo-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Cột giãn theo chiều cao */
}

.combo-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.combo-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.combo-name a:hover {
    color: #252a57;
}

.combo-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    /* Đẩy giá và nút xuống đáy */
}

.combo-desc p {
    margin: 0;
}

.combo-price {
    margin-bottom: 15px;
}

.combo-price .price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.combo-price .price-label {
    font-size: 14px;
    color: #666;
}

.combo-price .price-value {
    font-size: 16px;
    font-weight: 700;
    color: #252a57;
}

.combo-price .price-old {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
}

.combo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #252a57;
    border-radius: 4px;
    color: #252a57;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-add-cart:hover {
    background: #252a57;
    color: #fff;
}

.btn-view-combo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 15px;
    background: #252a57;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    border: 1px solid #252a57;
}

.btn-view-combo:hover {
    background: #fff;
    color: #252a57;
}

/* CSS cho detail combo */
.combo-detail-wrapper {
    padding: 20px 0;
    background: #fff;
    border-radius: 8px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    padding-top: 75%;
    border: 1px solid #eee;
    background: #f9f9f9;
}

.gallery-item.main-item {
    padding-top: 85%;
    /* Slightly taller for the main image */
    margin-bottom: 0;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 40px 15px 15px;
    color: #fff;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: right;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-item-name {
    opacity: 1;
    transform: translateY(0);
}

.item-info-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
    text-align: right;
    /* margin-bottom: 35px;  */
    padding: 0 10px;
}

.item-price {
    background: #252a57;
    color: #fff;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    bottom: 0;
    right: 0;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 8px;
    /* Khớp với border-radius của .gallery-item */
    box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.1);
}

.combo-detail-info {
    padding: 0 0 0 15px;
}

@media (max-width: 991px) {
    .combo-detail-info {
        padding: 20px 0 0;
    }
}

.combo-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.combo-price-detail {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
    padding: 15px;
    background: #fcfcfc;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.combo-price-detail .price-current {
    font-size: 30px;
    font-weight: bold;
    color: #252a57;
}

.combo-price-detail .price-old {
    font-size: 18px;
    color: #999;
}

.combo-short-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #252a57;
}

.combo-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-add-cart-detail {
    background: #fff;
    color: #252a57;
    border: 2px solid #252a57;
}

.btn-add-cart-detail:hover {
    background: #252a57;
    color: #fff;
}

.btn-buy-now {
    background: #252a57;
    color: #fff;
    flex: 1;
    min-width: 100px;
}

.btn-buy-now:hover {
    background: #1a1d3d;
}

.btn-zalo {
    background: #0068ff;
    color: #fff;
}

.btn-zalo:hover {
    background: #0054cc;
    color: #fff;
}

.btn-contact {
    background: #f39c12;
    color: #fff;
}

.btn-contact:hover {
    background: #d68910;
}

.combo-full-content-wrapper {
    position: relative;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.content-heading {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
}

.combo-full-content {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.combo-full-content.expanded {
    max-height: 5000px;
    /* đủ lớn để chứa nội dung */
}

.read-more-overlay {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    transition: opacity 0.3s;
}

.read-more-overlay.hidden {
    opacity: 0;
}

.text-center {
    text-align: center;
}

.btn-read-more {
    background: transparent;
    border: 1px solid #252a57;
    color: #252a57;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: #252a57;
    color: #fff;
}

/* Modal CSS */
.modal-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-custom.show {
    display: flex;
}

.modal-content-custom {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-content-custom h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #252a57;
}

textarea.form-control {
    height: 100px;
    resize: vertical;
}

.btn-submit-contact {
    width: 100%;
    padding: 12px;
    background: #252a57;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-contact:hover {
    background: #1a1d3d;
}

@media (max-width: 768px) {
    .combo-action-buttons {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }

    .combo-price-detail {
        flex-direction: column;
        gap: 5px;
    }
}