.range-product-card {
    width: 280px;
    max-width: 280px;
    height: 400px;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    padding: 1px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.products,
#products .products,
.product-accessories .products,
.featured-products .products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: start;
}

#category #products .products,
#prices-drop #products .products {
    justify-content: flex-start;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
   .products,
    #products .products,
    .product-accessories .products,
    .featured-products .products {
        justify-content: center;
    }
}

.range-product-card__header {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    z-index: 5;
    flex-shrink: 0;
    height: 36px;
}

.range-product-card__badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.range-product-card__badge {
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 50%;
    max-width: 50%;
    justify-content: center;
    border-radius: 0;
}

.range-product-card__badge:only-child {
    flex: 0 0 50%;
    max-width: 50%;
}

.range-product-card__badge--left {
    border-top-left-radius: 8px;
}

.range-product-card__badge--right {
    border-radius: 0;
}

.range-product-card__badges--only-right {
    justify-content: flex-end;
}

.range-product-card__badges--only-right .range-product-card__badge--right {
    border-top-left-radius: 8px;
}

.range-product-card__badge:first-child {
    border-top-left-radius: 8px;
}

.range-product-card__badge:last-of-type:not(:first-child) {
    border-radius: 0;
}

.range-product-card__badge img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.range-product-card__badge--promo,
.range-product-card__badge--discount,
.range-product-card__badge--on-sale {
    background: #43AE3C;
}

.range-product-card__badge--new {
    background: #2AB8C4;
}

.range-product-card__badge--pack,
.range-product-card__badge--bestseller {
    background: #E91D64 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 36px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
    min-width: 100px !important;
}

.range-product-card__wishlist-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 0 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    border-bottom: solid 1px black;
    border-left: solid 1px black;
    padding: 0;
}

.range-product-card__wishlist-btn:hover {
    background: #f5f5f5;
}

.range-product-card__wishlist-btn.an_wishlist-in {
    background: #E91D63;
}

.range-product-card__wishlist-btn.an_wishlist-in img {
    filter: brightness(0) invert(1);
}

.range-product-card__wishlist-btn img {
    width: 18px;
    height: 16px;
    transition: filter 0.2s;
}

/* Toast wishlist */
.wishlist-toast {
    position: fixed;
    top: 80px;
    right: -380px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-left: 4px solid #E91D63;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 14px 16px;
    max-width: 360px;
    font-size: 13px;
    color: #333;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wishlist-toast--show {
    right: 20px;
}

.wishlist-toast--hide {
    right: -380px;
}

.wishlist-toast__icon {
    flex-shrink: 0;
    color: #E91D63;
    display: flex;
    align-items: center;
}

.wishlist-toast__text {
    flex: 1;
    line-height: 1.4;
}

.wishlist-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #999;
    padding: 0 0 0 8px;
    transition: color 0.2s;
}

.wishlist-toast__close:hover {
    color: #333;
}

.range-product-card__image-link {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.range-product-card__image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

hr.range-product-card__separator {
    width: 90%;
    margin: 0 auto;
    border: none;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.range-product-card__info {
    display: flex;
    flex-direction: column;
    padding: 12px 15px 0;
    flex-shrink: 0;
}

.range-product-card__price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.range-product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-product-card__current-price {
    font-size: 18px;
    font-weight: bold;
    color: black;
}

.range-product-card__old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.range-product-card__rating {
    display: flex;
    align-items: center;
}

.range-product-card__rating .skeepers_product__stars {
    display: flex;
    align-items: center;
    margin: 0 !important;
}

.range-product-card__rating .skeepers_product__stars .review__header {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.range-product-card__rating .skeepers_product__stars .stars {
    display: none !important;
}

.range-product-card__rating .skeepers_product__stars .stars__rating {
    display: flex;
    align-items: center;
}

.range-product-card__rating .skeepers_product__stars .text__rating {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.range-product-card__rating .skeepers_product__stars .text__rating::after {
    content: '\2605';
    color: #FFB800;
    font-size: 14px;
    margin-left: 4px;
}

.range-product-card__rating .skeepers_product__stars .rate-aggregate__max span,
.range-product-card__rating .skeepers_product__stars .rate-total {
    display: none !important;
}

.range-product-card__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

h3.range-product-card__title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.range-product-card__title a {
    color: #000000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    text-align: left;
}

.range-product-card__variants {
    flex-shrink: 0;
}

.variant-dropdown {
    position: relative;
}

.variant-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.variant-dropdown__toggle:hover {
    border-color: #E91D64;
}

.variant-dropdown__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.variant-dropdown__toggle svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.variant-dropdown.open .variant-dropdown__toggle svg {
    transform: rotate(180deg);
}

.variant-dropdown__list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin: 2px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 100%;
    white-space: nowrap;
}

.variant-dropdown.open .variant-dropdown__list {
    display: block;
}

.variant-dropdown__item {
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    color: #333;
}

.variant-dropdown__item:hover {
    background: #f5f5f5;
}

.variant-dropdown__item--active {
    font-weight: 600;
    color: #E91D64;
}

.range-product-card__form {
    margin-top: auto;
    flex-shrink: 0;
}

.range-product-card__add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
    padding: 14px 15px;
    background: #E91D64;
    color: #fff;
    border: none;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.range-product-card__add-to-cart:hover {
    background: #a82248;
}

.range-product-card__add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.range-product-card__add-to-cart svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

@media (max-width: 992px) {
    .range-product-card {
        height: 360px;
    }

    .range-product-card__badge {
        padding: 6px 8px;
        font-size: 10px;
    }

    .range-product-card__current-price {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .range-product-card {
        height: 340px;
    }
    
    h3.range-product-card__title {
        height: auto;
        font-size: 12px;
    }
    
    .range-product-card__add-to-cart {
        padding: 10px 12px;
        font-size: 12px;
    }
}
