/* =====================================================
   ST305N CUSTOM PRODUCT CARDS
   grangaro.ru/souvenirs
===================================================== */

/* =====================================================
   CARD CONTENT
===================================================== */

.t-store__card__wrap_txt-and-btns {

    display: flex;
    flex-direction: column;

    gap: 14px;

    padding-top: 14px;
}

/* =====================================================
   TITLE
===================================================== */

.t-store__card__title {

    min-height: 72px;

    margin-bottom: 0 !important;

    color: #ffffff !important;

    font-family: 'TildaSans', Arial, sans-serif !important;

    font-size: 18px !important;

    line-height: 1.45 !important;

    font-weight: 700 !important;
}

/* =====================================================
   PRICE ROW
===================================================== */

.t-store__card__price-wrapper {

    display: flex !important;

    align-items: flex-end;

    justify-content: flex-start;

    position: relative;

    margin-top: 0 !important;

    padding-top: 6px;

    transform: translateY(-1px);
}

/* =====================================================
   "ПОДРОБНЕЕ"
===================================================== */

.t-store__card__price-wrapper::before {

    content: "Подробнее";

    display: inline-flex;

    align-items: center;

    height: 38px;

    padding-right: 42px;

    margin-right: -12px;

    margin-left: 8px;

    color: #ffffff;

    font-family: 'TildaSans', Arial, sans-serif;

    font-size: 18px;

    font-weight: 400;

    line-height: 1;

    letter-spacing: 0.2px;

    border-bottom: 2px solid #ffffff;
}

/* =====================================================
   PRICE BLOCK
===================================================== */

.t-store__card__price {

    position: relative;

    display: flex !important;

    align-items: center;

    justify-content: center;

    width: 132px;

    height: 38px;

    background: transparent;

    overflow: visible;
}

/* =====================================================
   TRAPEZOID TOP/BOTTOM
===================================================== */

.t-store__card__price::before {

    content: "";

    position: absolute;

    inset: 0;

    border-top: 2px solid #ffffff;

    border-bottom: 2px solid #ffffff;

    transform: skewX(-22deg);

    z-index: 1;
}

/* =====================================================
   TRAPEZOID SIDES
===================================================== */

.t-store__card__price::after {

    content: "";

    position: absolute;

    inset: 0;

    border-left: 2px solid #ffffff;

    border-right: 2px solid #ffffff;

    transform: skewX(-22deg);

    z-index: 1;
}

/* =====================================================
   PRICE VALUE
===================================================== */

.js-product-price {

    position: relative;

    z-index: 2;

    color: #ff00a8 !important;

    font-family: 'TildaSans', Arial, sans-serif !important;

    font-size: 20px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    letter-spacing: 0.2px;
}

/* =====================================================
   CURRENCY
===================================================== */

.t-store__card__price-currency {

    position: relative;

    z-index: 2;

    color: #ff00a8 !important;

    font-family: 'TildaSans', Arial, sans-serif !important;

    font-size: 20px !important;

    font-weight: 700 !important;

    margin-left: 4px;
}

/* =====================================================
   REMOVE OLD PRICE
===================================================== */

.t-store__card__price_old {

    display: none !important;
}

/* =====================================================
   HOVER
===================================================== */

.js-product:hover .t-store__card__price::before,
.js-product:hover .t-store__card__price::after {

    border-color: #ff00a8;
}

.js-product:hover .t-store__card__price-wrapper::before {

    border-color: #ff00a8;
}

/* =====================================================
   MOBILE
===================================================== */

@media screen and (max-width: 640px) {

    .t-store__card__wrap_txt-and-btns {

        gap: 10px;

        padding-top: 10px;
    }

    .t-store__card__title {

        min-height: auto;

        font-size: 16px !important;

        line-height: 1.4 !important;
    }

    .t-store__card__price-wrapper {

        padding-top: 2px;
    }

    .t-store__card__price-wrapper::before {

        height: 32px;

        padding-right: 30px;

        margin-left: 4px;

        font-size: 15px;
    }

    .t-store__card__price {

        width: 112px;

        height: 32px;
    }

    .js-product-price,
    .t-store__card__price-currency {

        font-size: 16px !important;
    }
}




/* контейнер миниатюр */
/* ==========================================
   THUMBNAILS
========================================== */

/* контейнер миниатюр */
.t-slds__bullet_wrapper {

    position: absolute !important;

    left: 0 !important;

    right: auto !important;

    width: auto !important;

    bottom: -92px !important; /* 70px миниатюра + 22px отступ */

    display: flex !important;

    justify-content: flex-start !important;

    align-items: center !important;
}

/* миниатюра */
.t-slds__bullet {

    width: 70px !important;
    height: 70px !important;

    margin: 0 8px 0 0 !important;

    border: 2px solid transparent !important;

    border-radius: 0 !important;

    overflow: hidden;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    cursor: pointer;

    transition: border-color .2s ease;
}

/* последняя без отступа */
.t-slds__bullet:last-child {
    margin-right: 0 !important;
}

/* скрываем штатную точку */
.t-slds__bullet_body {
    display: none !important;
}

/* активная миниатюра */
.t-slds__bullet_active {
    border-color: #7abf45 !important;
}

/* ==========================================
   TABLET
========================================== */

@media screen and (max-width: 1200px) {

    .t-slds__bullet {
        width: 60px !important;
        height: 60px !important;
    }

    .t-slds__bullet_wrapper {
        bottom: -82px !important;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width: 640px) {

    .t-slds__bullet {
        width: 50px !important;
        height: 50px !important;
    }

    .t-slds__bullet_wrapper {

        bottom: -70px !important;

        overflow-x: auto;

        flex-wrap: nowrap;

        scrollbar-width: none;
    }

    .t-slds__bullet_wrapper::-webkit-scrollbar {
        display: none;
    }
}