/* =========================================================
   TTG PRODUCT TABS
   VERSION 1.6
========================================================= */


/* =========================================================
   CONTAINER
========================================================= */

.ttg-product-tabs-wrap {
    width: 100%;

    margin: 0;
    padding: 0;
}


.ttg-product-tabs-wrap > .row {
    margin-bottom: 0;
}


.ttg-product-tabs-wrap > .row > .col {
    padding-bottom: 0;
}


.ttg-product-tabs {
    width: 100%;

    margin: 0;
    padding: 0;

    font-family: inherit;

    color: #222;
}


/* =========================================================
   HEADER
========================================================= */

.ttg-product-tabs__header {
    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    column-gap: 42px;

    width: 100%;

    min-height: 56px;

    margin:
        0 0 14px;

    border-bottom:
        1px solid #e9e9e9;
}


/* =========================================================
   TITLE
========================================================= */

.ttg-product-tabs__title {
    margin: 0;

    padding: 0;

    color: #222;

    font-family: inherit;

    font-size: 22px;

    line-height: 1.25;

    font-weight: 700;

    letter-spacing: -.2px;

    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   TAB NAV
========================================================= */

.ttg-product-tabs__nav {
    display: flex;

    align-items: stretch;

    gap: 32px;

    width: 100%;

    height: 56px;

    margin: 0;

    padding: 0;
}


.ttg-product-tabs__button {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    height: 56px;

    margin: 0;

    padding: 0;

    border: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    color: #666;

    font-family: inherit;

    font-size: 13px;

    line-height: 1;

    font-weight: 500;

    text-transform: uppercase;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color .2s ease;
}


.ttg-product-tabs__button:hover,
.ttg-product-tabs__button.is-active {
    color: #e3a021;

    background: transparent;

    box-shadow: none;
}


.ttg-product-tabs__button.is-active::after {
    content: "";

    position: absolute;

    right: 0;

    bottom: -1px;

    left: 0;

    height: 2px;

    background: #e3a021;
}


/* =========================================================
   VIEW ALL
========================================================= */

.ttg-product-tabs__view-all {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #333;

    font-family: inherit;

    font-size: 12px;

    line-height: 1;

    font-weight: 500;

    text-transform: uppercase;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color .2s ease;
}


.ttg-product-tabs__view-all:hover {
    color: #e3a021;
}


/* =========================================================
   PANELS
========================================================= */

.ttg-product-tabs__panel {
    display: none;

    width: 100%;

    margin: 0;

    padding: 0;
}


.ttg-product-tabs__panel.is-active {
    display: block;
}


.ttg-product-tabs__panel .row {
    margin-top: 0;

    margin-bottom: 0;
}


/* =========================================================
   PRODUCT COLUMN
========================================================= */

.ttg-product-tabs__panel .product-small {
    margin-bottom: 10px;
}


.ttg-product-tabs__panel
.product-small
.col-inner {
    height: 100%;
}


/* =========================================================
   CARD
========================================================= */

.ttg-product-tabs__panel
.product-small
.box {
    position: relative;

    display: flex;

    flex-direction: column;

    width: 100%;

    height: 100%;

    margin: 0;

    overflow: hidden;

    border:
        1px solid #ececec;

    border-radius:
        7px;

    background:
        #fff;

    box-shadow:
        none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


@media (hover: hover) {

    .ttg-product-tabs__panel
    .product-small
    .box:hover {
        transform:
            translateY(-2px);

        box-shadow:
            0 6px 18px
            rgba(0,0,0,.07);
    }

}


/* =========================================================
   IMAGE
========================================================= */

.ttg-product-tabs__panel
.box-image {
    position: relative;

    width: 100%;

    margin: 0;

    overflow: hidden;

    background:
        #f7f7f7;
}


.ttg-product-tabs__panel
.box-image img {
    display: block;

    width: 100%;

    height: auto;

    aspect-ratio:
        1.25 / 1;

    object-fit: cover;

    object-position: center;
}


/* =========================================================
   QUICK VIEW
========================================================= */

.ttg-product-tabs
.quick-view {
    display: none;
}


/* =========================================================
   SALE BADGE
========================================================= */

.ttg-product-tabs__panel
.badge-container {
    top: 0;

    left: 0;

    margin: 0;
}


.ttg-product-tabs__panel
.badge {
    width: auto;

    height: auto;
}


.ttg-product-tabs__panel
.badge-inner,

.ttg-product-tabs__panel
.onsale {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 45px;

    min-height: 25px;

    margin: 0;

    padding:
        5px 8px;

    border: 0;

    border-radius:
        3px 0 4px 0;

    background:
        #f5a019;

    color:
        #fff;

    font-size:
        11px;

    line-height:
        1;

    font-weight:
        700;
}


/* =========================================================
   CONTENT
========================================================= */

.ttg-product-tabs__panel
.box-text {
    position: relative;

    display: flex;

    flex-direction: column;

    flex: 1 1 auto;

    width: 100%;

    padding:
        10px 10px 12px;

    background:
        #fff;

    text-align:
        left;
}


.ttg-product-tabs__panel
.box-text-inner {
    display: flex;

    flex-direction: column;

    width: 100%;

    height: 100%;
}


/* =========================================================
   HIDE CATEGORY
========================================================= */

.ttg-product-tabs__panel
.category {
    display: none;
}


/* =========================================================
   PRODUCT TITLE
========================================================= */

.ttg-product-tabs__panel
.product-title {
    min-height: 36px;

    margin:
        0 0 5px;
}


.ttg-product-tabs__panel
.product-title a {
    display:
        -webkit-box;

    overflow:
        hidden;

    color:
        #292929;

    font-family:
        inherit;

    font-size:
        13px;

    line-height:
        18px;

    font-weight:
        500;

    text-transform:
        none;

    text-decoration:
        none;

    -webkit-line-clamp:
        2;

    -webkit-box-orient:
        vertical;
}


.ttg-product-tabs__panel
.product-title a:hover {
    color:
        #d99a20;
}


/* =========================================================
   HIDE DEFAULT RATING
========================================================= */

.ttg-product-tabs__panel
.star-rating {
    display: none;
}


/* =========================================================
   CUSTOM RATING
========================================================= */

.ttg-card-meta {
    display: flex;

    align-items: center;

    gap: 6px;

    width: 100%;

    min-height: 17px;

    margin:
        1px 0 7px;

    line-height:
        1;
}


.ttg-card-rating {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        2px;

    margin:
        0;

    padding:
        0;

    line-height:
        1;
}


.ttg-card-star {
    display:
        inline-block;

    width:
        auto;

    height:
        auto;

    margin:
        0;

    padding:
        0;

    color:
        #ddd;

    font-family:
        Arial,
        sans-serif;

    font-size:
        12px;

    line-height:
        1;
}


.ttg-card-star.is-filled {
    color:
        #f5a019;
}


.ttg-card-count {
    display:
        inline-block;

    margin:
        0;

    padding:
        0;

    color:
        #999;

    font-family:
        inherit;

    font-size:
        10px;

    line-height:
        1;

    font-weight:
        400;

    white-space:
        nowrap;
}


/* =========================================================
   PRICE
========================================================= */

.ttg-product-tabs__panel
.price-wrapper {
    margin-top:
        auto;

    padding-right:
        34px;
}


.ttg-product-tabs__panel
.price {
    display:
        flex;

    align-items:
        baseline;

    flex-wrap:
        wrap;

    gap:
        5px 7px;

    width:
        100%;

    margin:
        0;

    line-height:
        1.25;
}


/* CURRENT */

.ttg-product-tabs__panel
.price ins {
    order:
        1;

    margin:
        0;

    text-decoration:
        none;
}


.ttg-product-tabs__panel
.price ins
.woocommerce-Price-amount,

.ttg-product-tabs__panel
.price >
.woocommerce-Price-amount {
    color:
        #d99a20;

    font-size:
        14px;

    line-height:
        1.25;

    font-weight:
        700;
}


/* OLD PRICE */

.ttg-product-tabs__panel
.price del {
    order:
        2;

    margin:
        0;

    color:
        #a3a3a3;

    font-size:
        10px;

    line-height:
        1.25;

    font-weight:
        400;

    opacity:
        1;
}


.ttg-product-tabs__panel
.price del
.woocommerce-Price-amount {
    color:
        inherit;
}


/* =========================================================
   HIDE DEFAULT CART BUTTON
========================================================= */

.ttg-product-tabs__panel
.add-to-cart-button,

.ttg-product-tabs__panel
.button.product_type_simple,

.ttg-product-tabs__panel
.button.product_type_variable {
    display: none;
}


/* =========================================================
   CUSTOM CART
========================================================= */

.ttg-product-tabs__panel
.ttg-card-cart {
    position:
        absolute;

    right:
        9px;

    bottom:
        9px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        28px;

    height:
        28px;

    min-width:
        28px;

    min-height:
        28px;

    max-width:
        28px;

    max-height:
        28px;

    margin:
        0;

    padding:
        0;

    border:
        0;

    border-radius:
        50%;

    background:
        transparent;

    color:
        #777;

    box-shadow:
        none;

    text-decoration:
        none;

    overflow:
        hidden;

    transition:
        color .2s ease,
        background-color .2s ease;
}


.ttg-product-tabs__panel
.ttg-card-cart svg {
    display:
        block;

    width:
        19px;

    height:
        19px;

    min-width:
        19px;

    min-height:
        19px;

    max-width:
        19px;

    max-height:
        19px;

    margin:
        0;

    padding:
        0;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.ttg-product-tabs__panel
.ttg-card-cart:hover {
    background:
        #f5a019;

    color:
        #fff;
}


/* =========================================================
   SLIDER
========================================================= */

.ttg-product-tabs__panel
.slider-wrapper {
    position:
        relative;
}


.ttg-product-tabs__panel
.row-slider {
    margin-bottom:
        0;
}


/* =========================================================
   HIDE ALL SLIDER NAVIGATION
========================================================= */

.ttg-product-tabs__panel
.flickity-prev-next-button,

.ttg-product-tabs__panel
.flickity-page-dots {
    display:
        none;
}


/* =========================================================
   SMOOTH VIEWPORT
========================================================= */

.ttg-product-tabs__panel
.flickity-viewport {
    overflow:
        hidden;
}


/* =========================================================
   EMPTY
========================================================= */

.ttg-product-tabs__empty {
    width:
        100%;

    padding:
        25px;

    border:
        1px dashed #ddd;

    border-radius:
        6px;

    color:
        #888;

    font-size:
        13px;

    text-align:
        center;
}


/* =========================================================
   TABLET
========================================================= */

@media only screen and (max-width: 849px) {

    .ttg-product-tabs__header {
        grid-template-columns:
            1fr auto;

        column-gap:
            20px;

        min-height:
            auto;
    }


    .ttg-product-tabs__title {
        padding:
            11px 0;

        font-size:
            19px;
    }


    .ttg-product-tabs__nav {
        grid-column:
            1 / -1;

        grid-row:
            2;

        width:
            100%;

        height:
            44px;

        gap:
            25px;

        overflow-x:
            auto;

        overflow-y:
            hidden;

        scrollbar-width:
            none;
    }


    .ttg-product-tabs__nav::-webkit-scrollbar {
        display:
            none;
    }


    .ttg-product-tabs__button {
        height:
            44px;

        font-size:
            12px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media only screen and (max-width: 549px) {

    .ttg-product-tabs__title {
        font-size:
            17px;
    }


    .ttg-product-tabs__view-all {
        font-size:
            10px;
    }


    .ttg-product-tabs__nav {
        height:
            40px;

        gap:
            20px;
    }


    .ttg-product-tabs__button {
        height:
            40px;

        font-size:
            10px;
    }


    .ttg-product-tabs__panel
    .box-text {
        padding:
            8px;
    }


    .ttg-product-tabs__panel
    .product-title {
        min-height:
            33px;
    }


    .ttg-product-tabs__panel
    .product-title a {
        font-size:
            11px;

        line-height:
            16px;
    }


    .ttg-card-meta {
        gap:
            4px;

        margin-bottom:
            6px;
    }


    .ttg-card-rating {
        gap:
            1px;
    }


    .ttg-card-star {
        font-size:
            11px;
    }


    .ttg-card-count {
        font-size:
            9px;
    }


    .ttg-product-tabs__panel
    .price ins
    .woocommerce-Price-amount,

    .ttg-product-tabs__panel
    .price >
    .woocommerce-Price-amount {
        font-size:
            12px;
    }


    .ttg-product-tabs__panel
    .price del {
        font-size:
            9px;
    }


    .ttg-product-tabs__panel
    .ttg-card-cart {
        right:
            6px;

        bottom:
            7px;

        width:
            25px;

        height:
            25px;

        min-width:
            25px;

        min-height:
            25px;

        max-width:
            25px;

        max-height:
            25px;
    }


    .ttg-product-tabs__panel
    .ttg-card-cart svg {
        width:
            17px;

        height:
            17px;

        min-width:
            17px;

        min-height:
            17px;

        max-width:
            17px;

        max-height:
            17px;
    }

}