.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
}

.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;
    align-items: baseline;
    gap: 6px 10px;
    width: 100%;
    color: #9abbeb
}

.product-card__price-label {
    font-size: 13px;
    color: #9abbeb;
    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: #9abbeb;
    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:768px) {
    .product-card {
      margin-top:0
    }
}

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