﻿
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    display: block;
}

.carousel-item img {
    max-height: 200px;
    object-fit: contain;
    margin: auto;
}
.variant-item.selected {
    border-color: #0d6efd !important;
    background-color: #f0f8ff !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    transition: all 0.2s ease-in-out;
}
.variant-item.disabled:hover {
    box-shadow: none !important;
    transform: none !important;
}

.product-title {
    font-size: 0.9rem;
    line-height: 1.25rem;
    min-height: 2.5rem; /* giữ chiều cao đồng đều giữa các thẻ */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* cho phép tối đa 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-img {
    transition: transform .3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ff512f, #f09819);
}
.thumb-box {
    cursor: pointer;
    transition: all 0.2s ease;
}

    .thumb-box:hover {
        box-shadow: 0 0 0 2px #0d6efd inset;
    }

.pswp__img {
    object-fit: contain;
    object-position: center center;
    background-color: #000; /* hoặc #fff tùy theme */
}