﻿:root {
    --brand: #2f3db6
}

.prod-card {
    overflow: visible;
    cursor: pointer
}

.prod-mask {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,rgba(0,0,0,.55) 0,rgba(0,0,0,.35) 40%,rgba(0,0,0,.12) 70%,rgba(0,0,0,0) 100%)
}

@keyframes packFloatY {
    0% {
        transform: translateY(-50%)
    }

    50% {
        transform: translateY(calc(-50% + 10px))
    }

    100% {
        transform: translateY(calc(-50% - 6px))
    }
}

.hover-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 3
}

.pack-protocol-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: clamp(260px,100%,360px) !important;
    width: auto;
    object-fit: contain;
    z-index: 2;
    animation: packFloatY 2s ease-in-out infinite;
    transition: opacity .12s ease
}

.prod-card:hover .pack-img {
    opacity: 0;
    animation-play-state: paused
}

.prod-title {
    line-height: 35px;
    font-style: italic !important;
    position: absolute;
    top: 12px;
    left: 14px;
    margin: 0;
    z-index: 4;
    text-shadow: 0 2px 8px rgba(0,0,0,.35)
}

.prod-actions {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2
}

.price-protocol-brand {
    color: #fff;
    transition: color .2s ease
}

.btn-outline-protocol-brand {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    transition: color .2s ease,border-color .2s ease,background-color .2s ease
}

.btn-outline-brand:hover {
    background: var(--brand);
    color: #fff
}

.btn-icon-outline-protocol {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    transition: color .2s ease,border-color .2s ease,background-color .2s ease
}

.prod-card:hover .price-brand {
    color: #fff
}

.prod-card:hover .btn-outline-brand, .prod-card:hover .btn-outline-brand:hover, .prod-card:hover .btn-icon-outline, .prod-card:hover .btn-icon-outline:hover {
    border-color: #fff;
    color: #fff;
    background: transparent
}

@media (max-width:576.98px) {
    .pack-img {
        right: -10px;
        height: min(38vw,130px)
    }
}

.prod-card:hover .prod-mask {
    opacity: 1
}

.prod-card:hover .hover-center {
    opacity: 1
}

.btn-white {
    color: #fff;
    border: 1px solid #fff
}
