.product-card {
    background: #ffffff;
    border: 1px solid #c9d6e4;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s;
    margin-top: 20px;
    min-width: 0;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05)
}

.product-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    margin-bottom: 16px;
    background: #f3f4f6;
    display: block
}

.product-card__img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease
}

.product-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative
}

.product-card__img--secondary {
    opacity: 0
}

.product-card:hover .product-card__img--secondary {
    opacity: 1
}

.product-card__actions {
    position: absolute;
    top: -27px;
    right: -10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2
}

.product-card:hover .product-card__actions {
    opacity: 1;
    visibility: visible;
    transform: translateX(0)
}

.product-card__action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #9bbced;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s
}

.product-card__action-btn:hover {
    background: #5a79b8
}

.product-card__action-btn--active {
    background: #e74c3c
}

.product-card__action-btn--active:hover {
    background: #c0392b
}

.product-card__action-btn svg {
    width: 16px;
    height: 16px
}

.product-card__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1
}

.product-card__title {
    font-size: 15px;
    font-weight: 500;
    color: #4b3e36;
    line-height: 1.4;
    margin-bottom: 9px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease
}

.product-card__title a:hover {
    color: #5a79b8
}

.product-card__unit-price {
    font-size: 12px;
    color: #999999;
    margin-bottom: 12px
}

.product-card__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 4;
    pointer-events: none
}

.product-card__badges .product-card__badge {
    position: static;
    top: auto;
    left: auto
}

.product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #c0392b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1.3;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12)
}

.product-card__badge--sale {
    background: #dc2626
}

.product-card__badge--out-of-stock {
    background: #475569;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 700
}

.product-card--out-of-stock .product-card__img-link {
    opacity: 0.72;
    filter: grayscale(18%);
    transition: opacity 0.3s ease, filter 0.3s ease
}

.product-card--out-of-stock:hover .product-card__img-link {
    opacity: 0.88;
    filter: grayscale(0)
}

.product-card__sold-out-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2)
}

.product-card__bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%
}

.product-card__price-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    width: 100%;
    color: #3f462d
}

.product-card__price-label {
    font-size: 13px;
    color: #3f462d;
    font-weight: 300
}

.product-card__brand {
    font-size: 13px;
    color: #696969;
    font-weight: 500;
    text-decoration: line-through;
    white-space: nowrap
}

.product-card__price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end
}

.product-card__price-old {
    font-size: 12px;
    color: #999999;
    text-decoration: line-through;
    font-weight: 400;
    margin-bottom: 2px
}

.product-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #4b3e36;
    white-space: nowrap
}

.product-card__wholesale-prompt {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px
}

.product-card__wholesale-text {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.2
}

.product-card__wholesale-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #3f462d;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s;
    line-height: 1.5
}

.product-card__wholesale-btn:hover {
    background-color: #7da8e5;
    color: #ffffff
}

@media(max-width:990px) {
    .product-card__info {
        min-height: 125px
    }
}

@media(max-width:550px) {
    .product-card__price-wrapper {
        flex-direction: column
    }
}

/* Home bestsellers & shared product card styles */
.home-bestsellers__card {
    position: relative;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 12px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-bestsellers__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border-color: #fbcfe8;
}

.home-bestsellers__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.home-bestsellers__badges .home-bestsellers__badge {
    position: static;
    top: auto;
    left: auto;
}

.home-bestsellers__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px 3px;
    font-size: 9.5px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: #4a5248;
}

.home-bestsellers__badge--hot {
    background: linear-gradient(135deg, #4a5248 0%, #4a5248 100%);
}

.home-bestsellers__badge--auth {
    background: linear-gradient(135deg, #4a5248 0%, #4a5248 100%);
}

.home-bestsellers__wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    padding: 0;
    outline: none;
}

.home-bestsellers__wishlist:hover {
    color: #4a5248;
    border-color: #fbcfe8;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
    transform: translateY(-2px);
}

.home-bestsellers__wishlist svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.home-bestsellers__wishlist:hover svg {
    fill: #4a5248;
    transform: scale(1.1);
}

.home-bestsellers__wishlist.product-card__action-btn--active {
    background-color: #fff1f2;
    border-color: #fecdd3;
    color: #4a5248;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.18);
}

.home-bestsellers__wishlist.product-card__action-btn--active svg {
    fill: #4a5248;
    color: #4a5248;
}

.home-bestsellers__wishlist.product-card__action-btn--active:hover {
    background-color: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.home-bestsellers__wishlist.product-card__action-btn--active:hover svg {
    fill: #be123c;
    color: #be123c;
    transform: scale(1.1);
}

.badge-primary {
    background-color: #0d6efd;
    color: #ffffff;
}

.badge-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.badge-success {
    background-color: #198754;
    color: #ffffff;
}

.badge-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #0dcaf0;
    color: #212529;
}

.badge-dark {
    background-color: #212529;
    color: #ffffff;
}

.home-bestsellers__img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* aspect-ratio: 16 / 9; */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #fbfbfb;
}

.home-bestsellers__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.home-bestsellers__card:hover .home-bestsellers__img {
    transform: scale(1.05);
}

.home-bestsellers__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.home-bestsellers__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 3px 0;
    color: #1e293b;
}

.home-bestsellers__name a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    height: 40.5px;
}

.home-bestsellers__name a:hover {
    color: #cb2556;
}

.home-bestsellers__sub {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.home-bestsellers__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.home-bestsellers__avg {
    font-weight: 600;
    font-size: 13px;
    margin-right: 5px;
    color: #1e293b;
}

.home-bestsellers__stars {
    display: inline-flex;
    align-items: center;
    gap: 1.5px;
}

.home-bestsellers__star {
    width: 13px;
    height: 13px;
    fill: #e4e5e9;
    flex-shrink: 0;
}

.home-bestsellers__star--active {
    fill: #ffc107;
}

.home-bestsellers__star--inactive {
    fill: #e4e5e9;
}

.home-bestsellers__count {
    font-size: 11.5px;
    color: #8c95a6;
}

.home-bestsellers__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.home-bestsellers__price {
    font-size: 15.5px;
    font-weight: 700;
    color: #4a5248;
    line-height: 1;
}

.home-bestsellers__old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    line-height: 1;
}

.home-bestsellers__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 12px;
    border-radius: 9999px;
    border: 1.5px solid #4a5248;
    background-color: #ffffff;
    color: #4a5248;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
}

.home-bestsellers__btn:hover {
    background-color: #4a5248;
    border-color: #4a5248;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.home-bestsellers__btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.home-bestsellers__btn:hover svg {
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .home-bestsellers__card {
        padding: 10px 8px 12px 8px;
        border-radius: 10px;
    }

    .home-bestsellers__badge {
        top: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 8.5px;
    }

    .home-bestsellers__name {
        font-size: 12.5px;
    }

    .home-bestsellers__sub {
        font-size: 11px;
    }

    .home-bestsellers__price {
        font-size: 13.5px;
    }

    .home-bestsellers__old-price {
        font-size: 11px;
    }

    .home-bestsellers__btn {
        padding: 6px 8px;
        font-size: 11px;
        gap: 4px;
    }

    .home-bestsellers__btn svg {
        width: 13px;
        height: 13px;
    }

    .home-bestsellers__wishlist {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

    .home-bestsellers__wishlist svg {
        width: 14px;
        height: 14px;
    }
}

.home-bestsellers__btn--disabled {
    border-color: #e2e8f0;
    color: #94a3b8;
    background-color: #f8fafc;
    cursor: not-allowed;
}

.home-bestsellers__btn--disabled:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
}

.home-bestsellers__btn--disabled:hover svg {
    transform: none;
}

/* ==========================================================
   Home Products Card (Redesigned from reference image)
   ========================================================== */
.home-products__card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.3s ease;
}

.home-products__card .pd-price-discount {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    background-color: #fef2f2;
    color: #ef4444;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.home-products__card .home-products__fav {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.home-products__card .home-products__fav:hover {
    transform: scale(1.08);
    color: #ef4444;
}

.home-products__card .home-products__fav.product-card__action-btn--active {
    color: #ef4444;
}

.home-products__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.8;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fbfbfb;
    margin-bottom: 12px;
    display: block;
    padding: 0;
    height: auto;
}

.home-products__img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.home-products__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-products__card:hover .home-products__img-wrap img {
    transform: scale(1.05);
}

.home-products__sold-out {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.65);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-products__sold-out span {
    background-color: #ef4444;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.home-products__card .pro-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
    padding: 0 10px;
}

.home-products__card .pro-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-products__card:hover .pro-name a {
    color: #794324;
}

.home-products__card .box-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.home-products__card .price {
    font-size: 18px;
    font-weight: 700;
    color: #794324 !important;
    margin: 0;
    line-height: 1.2;
}

.home-products__card .price u {
    text-decoration: underline;
}

.home-products__card .price-old {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    font-weight: 400;
}

.home-products__card .price-old del {
    color: #9ca3af;
}

.home-products__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 0 10px;
}

.home-products__btn-detail {
    flex: 1;
    /* height: 40px; */
    /* background-color: #3f462d; */
    /* color: #ffffff !important; */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.home-products__btn-detail svg {
    transition: transform 0.2s ease;
}

.home-products__btn-detail:hover svg {
    transform: translateX(2px);
}

.home-products__btn-cart {
    /* width: 40px; */
    /* height: 40px; */
    flex: 0 0 40px;
    /* background-color: #fbf5ee; */
    /* border: 1px solid #ebd9c8; */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f462d;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

/* .home-products__btn-cart:hover {
    background-color: #3f462d;
    border-color: #3f462d;
    color: #ffffff;
} */