.text_loader {
    width: 30px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
    background:
        var(--_g) 0% 50%,
        var(--_g) 50% 50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l7 1s infinite linear;
}

@keyframes l7 {
    33% {
        background-size: calc(100%/3) 0%, calc(100%/3) 100%, calc(100%/3) 100%
    }

    50% {
        background-size: calc(100%/3) 100%, calc(100%/3) 0%, calc(100%/3) 100%
    }

    66% {
        background-size: calc(100%/3) 100%, calc(100%/3) 100%, calc(100%/3) 0%
    }
}

/* ========== product card css start ========= */
.md_pc_wrapper a {
    text-decoration: none;
}

.md_pc {
    overflow: hidden;
    width: 154px;
    height: 246px;
}

/* card body */
.md_pc_body {
    position: relative;
    overflow: hidden;
}

.md_pc_product__img {
    position: relative;
    display: flex;
}

.md_pc_product__img img {
    width: 154px;
    height: 170px;
    display: block;
    object-fit: cover;
}

.md_pc .md_pc_product__img img:nth-child(2) {
    transform: translateX(-100%) scale(0.8);
    visibility: hidden;
    opacity: 0;
}

.md_pc_badge__text_wrapper,
.md_pc_product__attr {
    position: absolute;
}

.md_pc_badge__text_wrapper {
    top: 12px;
    left: 12px;
}

.md_pc_product__attr {
    left: 12px;
    bottom: 12px;
}

.md_pc_product__attr span {
    display: flex;
}

.md_pc_badge__text {
    font-size: 10px;
    line-height: 16px;
    font-weight: 600;
    color: var(--secondaryColor);
    background-color: var(--primaryColor);
    padding: 2px 5px;
    border-radius: 3px;
}

.md_pc_wrap__hover__btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.md_pc_quick__modal_link {
    position: relative;
}

.md_pc_quick__modal_icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.md_pc_quick__modal_link p {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    right: calc(100% + 10px);
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    padding: 5px 10px;
    color: #fff;
    background-color: #333333;
    height: 30px;
    display: none;
}

.md_pc_quick__modal_link p::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #333333;
    right: -4px;
}

.md_pc_active__quick_btn {
    background-color: #333333;
}

.md_pc_active__quick_btn svg path {
    fill: #fff;
}

/* card footer */
.md_pc_card__footer {
    margin-top: 10px;
}

.md_pc_product__title__wrapper {
    margin-bottom: 2px;
}

.md_pc_product__title,
.md_pc_product__price .md_pc_price,
.md_pc_card__btn,
.md_pc_product__attr span {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    color: #333333;
}

.md_pc_product__price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.md_pc_product__price .md_pc_price,
.md_pc_product__attr span {
    color: #555555;
    position: relative;
}

.md_pc_product__price .md_pc_old__price::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background-color: #999999;
}

.md_pc_product__price .md_pc_old__price {
    color: #999999;
}

.md_pc_card__btn {
    font-weight: 600;
    position: relative;
    text-decoration: none;
    box-shadow: 0 1px 0 0 #ececec;
}


.md_pc .md_pc_product__title__wrapper .md_pc_product__price {
    display: none;
}

@media (min-width: 724px) {

    /* ========== product card css start ======= */
    .md_pc {
        width: 228px;
        height: 317px;
    }

    .md_pc_product__img img {
        width: 228px;
        height: 251px;
    }

    /* footer */
    .md_pc_card__footer {
        margin-top: 15px;
    }

    .md_pc_product__title,
    .md_pc_product__price .price,
    .md_pc_card__btn,
    .md_pc_product__attr span {
        font-size: 14px;
        line-height: 22px;
    }
}

@media (min-width: 972px) {

    /* product card css start  */
    /* card body */
    .md_pc:hover .md_pc_product__img img {
        transform: scale(1.1);
        animation-name: bounce;
        animation-timing-function: ease;
        transition: 1s;
    }

    .md_pc:hover .md_pc_product__img img:nth-child(2) {
        transform: translateX(-100%);
        visibility: visible;
        opacity: 1;
    }

    @keyframes bounce {
        0% {
            transform: scale(0);
        }

        50% {
            transform: scale(0.5);
        }

        100% {
            transform: scale(1);
        }
    }

    .md_pc_product__attr {
        visibility: hidden;
        opacity: 0;
        transition: 0.3s;
    }

    .md_pc_body:hover .md_pc_product__attr {
        visibility: visible;
        opacity: 1;
    }

    .md_pc_wrap__hover__btn {
        transform: translateX(20px);
        visibility: hidden;
        opacity: 0;
        transition: 0.3s;
    }

    .md_pc:hover .md_pc_wrap__hover__btn {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .md_pc_quick__modal_link p {
        display: block;
        transform: translate(15px, -50%);
        transition: 0.3s;
        visibility: hidden;
        opacity: 0;
    }

    .md_pc_quick__modal_link:hover p {
        transform: translate(0px, -50%);
        visibility: visible;
        opacity: 1;
    }

    /* card footer */
    .md_pc_card__footer {
        margin-top: 15px;
    }

    .md_pc_product__title__wrapper {
        margin-bottom: 4px;
    }

    .md_pc_product__title,
    .md_pc_product__price .md_pc_price,
    .md_pc_card__btn,
    .md_pc_product__attr span {
        font-size: 16px;
        line-height: 24px;
    }

    .md_pc_wrap__price_and__btn {
        height: 24px;
        overflow: hidden;
    }

    .md_pc_card__btn_groups,
    .md_pc_product__price,
    .md_pc_product__img img,
    .md_pc_compare__btn .md_pc_quick__modal_icon svg {
        transition: 0.3s;
    }

    .md_pc:hover .md_pc_product__price,
    .md_pc:hover .md_pc_card__btn_groups {
        transform: translateY(-26px);
    }

    .md_pc_compare__btn:hover .md_pc_quick__modal_icon svg {
        transform: rotate(180deg);
    }

    .md_pc_card__btn {
        cursor: pointer;
    }
}