/* Base container */
.box-img.img-hover-anim {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

/* Static three-color border (default) */
.box-img.img-hover-anim::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 14px;
    z-index: 3;

    background: linear-gradient(90deg,
            #FF5846,
            #354EA2,
            #2B2A29);

    /* Border-only mask */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Animate ONLY on hover */
.project-card4:hover .box-img.img-hover-anim::before {
    background: linear-gradient(90deg,
            #FF5846,
            #354EA2,
            #2B2A29,
            #FF5846);
    background-size: 300% 300%;
    animation: borderMove 3s linear infinite;
}

/* Keep internal layers above background */
.box-img>* {
    position: relative;
    z-index: 2;
}

/* Border movement */
@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}


/* product image wrapper */
.pe-product-img {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

/* gradient border */
.pe-product-img::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 30px;
    background: linear-gradient(90deg, #FF5846, #354EA2);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    z-index: 3;
    pointer-events: none;
}

.pe-product-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    z-index: 1;
    position: relative;
}

/* shine  */
.pe-product-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    z-index: 2; 
    pointer-events: none;
}

.pe-product-img:hover img {
    transform: scale(1.08);
}

.pe-product-img:hover::after {
    left: 130%;
}

/*name*/
.pe-products-name a {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: #2B2A29;
    transition: color 0.3s ease;
}


/* two-color effect on hover */

.pe-products-name {
    margin-top: 16px;
    text-align: center;
}

.pe-products-name a {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: #2B2A29;
    transition: transform 0.4s ease;
}

.pe-products:hover .pe-products-name a {
    transform: translateZ(20px) scale(1.1);
    background: linear-gradient(90deg, #FF5846, #354EA2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gcolor {
    color: #2B2A29;
    transition: all 0.3s ease;
}

.gcolor:hover {
    background: linear-gradient(90deg, #FF5846, #354EA2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.product-details h3, h5{
    color: #354EA2;
}
.product-details h5 i{
    color: #FF5846;
}

.product-details ul{
    list-style: none;
    padding: 0;
}
.product-details h6{
    color: #354EA2;
}
.product-details h6 i{
    color: #FF5846;
}
.product-details li i{
    color: #FF5846;
}

/* red - FF5846
 blue - 354EA2
 black - 2B2A29*/