/* ==========================
   1. LAYOUT & GRID
========================== */
.creed-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.creed-slider-custom .creed-slide-item {
    /* width: 20.18%; */
    padding: .5em;
    box-sizing: border-box;
}

/* ==========================
   2. SẢN PHẨM (PRODUCT CARD)
========================== */
.creed-product-card {
    padding: 10px;
    text-align: left;
    border-radius: 10px;
}
.creed_custom-featured-product{
        background-image: url(https://lh3.googleusercontent.com/VRobmSCO5FiKsyls97AUcyVgBmGHJ8YOJnLngTnwD5VrvuF9jLfh7oOCmQ5rZpikZGev4Vgz8Fc0IoPD-dZJtJENDO2rkld7mQ=w1232);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cat-title{
    padding: .5em .7em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.creed_custom-featured-product .flickity-page-dots{
    bottom: 0;
}
.product-card {
    position: relative;
    background-color: rgb(var(--background));
    color: rgb(var(--text-color));
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.08);
}

.product-card__figure {
    position: relative;
}

.product-card__info {
    padding-top: 10px;
    text-align: left;
}

/* ==========================
   3. HÌNH ẢNH & HOVER
========================== */

.product-card__figure {
    aspect-ratio: 16 / 12;; /* hoặc giữ 16 / 9 nếu bạn muốn */
    width: 100%; /* Tăng chiều rộng */
    max-width: 100%; /* Giới hạn để không vỡ layout */
    overflow: hidden;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 
.creed-slide-item:hover .product-card__image {
    transform: scale(1.05);
}

.product-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.product-card__figure:hover .product-hover-image {
    opacity: 1;
}

.product-card__figure:hover .product-main-image {
    opacity: 0;
} */
.button.css-16gdkk6 {
    opacity: 1;
    /* height: 2rem; */
    margin-right: 0;
    padding: 0rem;
    border-radius: 0.25rem;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(20, 53, 195);
    position: relative;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    outline: none;
    min-width: 2rem;
    color: rgb(20, 53, 195);
    width: 100%;
    cursor: pointer;
    transition-duration: 80ms;
    font-size: 12px;
    margin-top: 1em;
}
.price span.amount {
    color: rgb(20, 53, 195);
        font-size: 15px;
}
.price del span.amount {
        color: rgb(130, 134, 158);
        font-size: 12px;
}
.creed_product-cat .box-image img {
    max-height: 172px;
    width: 100%;
    object-fit: contain;
}

/* ==========================
   4. THÔNG TIN SẢN PHẨM
========================== */
.creed-product-title {
    font-size: 16px;
    margin: 10px 0;
}

.creed-product-price {
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.price-sale {
    color: #e74c3c;
    font-weight: bold;
}

.product-card__variant-list {
    margin-top: 10px;
    text-align: center;
}

.thumbnail-swatch {
    width: 24px;
    height: 24px;
    object-fit: cover;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: inline-block;
}

.variant-thumb {
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 3px;
    width: 48px !important;
    height: 48px !important;
    transition: border-color 0.3s ease;
}

.variant-thumb.is-active {
    border-color: #000;
}

/* ==========================
   5. NÚT & HÀNH ĐỘNG
========================== */
.creed-add-to-cart .button {
    background-color: #008c44;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
}


/* ==========================
   7. RESPONSIVE
========================== */
@media (max-width: 768px) {
    .creed-slider-custom .creed-slide-item,
    .creed-grid-products .medium-3{
        width: 50%;
        flex-basis: 50%;
        max-width: 50%;
    }
}


@media (max-width: 480px) {
    .creed-slider-custom .creed-slide-item,
    .creed-grid-products .medium-3 {
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
    }
}
