/*
Theme Name: Th-Store
Theme URI: https://themehunk.com/product/th-store/
Author: ThemeHunk
Author URI: https://www.themehunk.com
Description: Th-Store child theme of Big Store.
Version: 1.0.5
Template: big-store
Text Domain: th-store
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/


/* =========================================================
   BLOG
   ========================================================= */

article.thunk-post-article {
    width: 49%;
    float: left;
    clear: none;
    margin-right: 2%;
    margin-bottom: 25px;

    box-shadow: 0 5px 10px 0 rgb(0 0 0 / 3%);

    padding: 1.2rem;
    border-radius: 4px;

    box-sizing: border-box;
}

article.thunk-post-article:nth-child(2n+2) {
    margin-right: 0;
}

.thunk-post-img-wrapper img {
    border-radius: 4px;
}

article.thunk-post-article .thunk-readmore.button {
    background: #ffd200;
    color: #fff !important;
}

p.read-more {
    margin-bottom: 0;
}


/* =========================================================
   WOOCOMMERCE PRODUCTS
   ========================================================= */

.thunk-woo-product-list,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    text-align: center;
}

.woocommerce .thunk-product-content .star-rating {
    margin: auto;
    margin-bottom: .5rem;
}

.thunk-woo-product-list .woocommerce-loop-product__title a,
.thunk-cat-title a,
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
    font-size: .9rem;
}

.thunk-product-hover {
    display: inline-flex;
}


/* =========================================================
   PRODUCT BUTTONS
   ========================================================= */

.woocommerce .thunk-product-hover a.add_to_cart_button,
.woocommerce .thunk-product-hover .thunk-wishlist a.add_to_wishlist,
.thunk-wishlist .yith-wcwl-wishlistaddedbrowse,
.thunk-wishlist .yith-wcwl-wishlistexistsbrowse,
.thunk-compare .compare-button a.compare.button,
.woocommerce .thunk-product-hover .button.th-button,
.woocommerce ul.products li.product .button,
.thunk-product-hover .thunk-quickview a,
.thunk-product .woosw-btn,
.woosw-btn,
.thunk-product .wooscp-btn,
.wooscp-btn {
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
}

.woocommerce .thunk-product-hover .button.th-button::before,
.thunk-product-hover .button.product_type_simple::before,
.thunk-product-hover .button.product_type_variable::before,
.thunk-product-hover .button.product_type_external::before,
.woocommerce .thunk-product-hover a.add_to_cart_button.ajax_add_to_cart::before,
.thunk-product .yith-wcwl-wishlistexistsbrowse::before,
.thunk-product .yith-wcwl-wishlistaddedbrowse::before,
.thunk-product .woosw-btn::before,
.thunk-product .wooscp-btn::before,
.wooscp-btn::before,
a.opn-quick-view-text::before {
    font-size: 14px;
}


/* =========================================================
   PRICE
   ========================================================= */

.woocommerce .thunk-woo-product-list .price {
    font-size: 15px;
    margin-bottom: .8rem !important;
    left: 0;
    right: 0;
}

.woocommerce .thunk-woo-product-list .price::before {
    content: '';

    display: block;

    width: 50px;
    height: 1px;

    background-color: #111;

    margin: auto;
    margin-bottom: .7rem;

    transition: all .3s ease;
}

.woocommerce .thunk-product:hover .price::before {
    width: 100px;
}

.thunk-woo-product-list .woocommerce-loop-product__title {
    margin-bottom: .7rem;
}

.woocommerce-page .thunk-list-view ul.products li.product {
    text-align: left;
}

.woocommerce .thunk-list-view ul.products li.product .price {
    margin-bottom: 0 !important;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

div.wpcf7 {
    background-color: #fff;

    padding: 45px;
    max-width: 550px;

    margin: 0 auto !important;

    box-shadow:
        0 16px 38px -12px rgba(0, 0, 0, .56),
        0 4px 25px 0 rgba(0, 0, 0, .12),
        0 8px 10px -5px rgba(0, 0, 0, .20);
}

div.wpcf7 label {
    text-align: left !important;
    color: #333;
}

.wpcf7-text,
.wpcf7-textarea,
.wpcf7-captchar {
    background-color: #ddd !important;
    border: none !important;

    width: 100% !important;

    font-size: 14px;
    color: #333 !important;

    padding: 15px !important;

    box-sizing: border-box;
}

.wpcf7-textarea {
    height: 120px;
}

.wpcf7-submit {
    float: left;

    width: 100%;

    display: inline-block;

    color: #eee !important;

    margin: 8px auto 0 !important;

    cursor: pointer;

    font-size: 16px;

    border-radius: 5px !important;

    padding: 20px 40px !important;

    line-height: 1.6em;

    background: #ed9d25 !important;

    border: 2px solid !important;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-content {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-start !important;

    min-width: 0;
}

.logo-content .site-title,
.logo-content .site-description {
    display: none !important;
}

.logo-content .thstore-fixed-logo {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-start !important;

    text-decoration: none !important;

    line-height: 0;
}

.logo-content img.thstore-logo-image,
.logo-content img.custom-logo {
    display: block !important;

    width: auto !important;

    height: auto !important;

    max-width: 220px !important;

    max-height: 70px !important;

    object-fit: contain;
}


/* =========================================================
   HEADER ALIGNMENT
   ========================================================= */

.main-header-bar {
    display: flex;

    align-items: center;
}

.main-header-col1,
.main-header-col2,
.main-header-col3 {
    display: flex;

    align-items: center;
}

.main-header-col1 {
    min-width: 0;
}

.main-header-col2 {
    min-width: 0;
}

.main-header-col3 {
    flex-shrink: 0;
}


/* =========================================================
   CATEGORY AREA
   ========================================================= */

.below-header-col1 {
    position: relative;

    display: flex;

    align-items: stretch;
}

.menu-category-list {
    width: 100%;

    position: relative;

    z-index: 9999;
}

.menu-category-list .cat-toggle {
    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 48px;

    margin: 0;

    padding: 12px 16px;

    cursor: pointer;

    box-sizing: border-box;

    user-select: none;
}

.menu-category-list .toggle-title {
    flex: 1;

    text-align: left;

    margin-left: 10px;
}

.menu-category-list .cat-icon {
    flex-shrink: 0;

    width: 22px;

    height: 18px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.menu-category-list .cat-icon span {
    display: block;

    width: 100%;

    height: 2px;

    margin: 0;
}


/* =========================================================
   CATEGORY DROPDOWN
   ========================================================= */

.menu-category-list .product-cat-list {
    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    min-width: 220px;

    background: #fff;

    margin: 0;

    padding: 0;

    z-index: 99999;

    box-sizing: border-box;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
}

.menu-category-list.toogleclose .product-cat-list {
    display: none;
}

.menu-category-list.toogleopen .product-cat-list {
    display: block;
}


/* =========================================================
   CUSTOM DYNAMIC CATEGORY LIST
   ========================================================= */

.menu-category-list .product-category-list {
    list-style: none;

    width: 100%;

    margin: 0;

    padding: 0;

    background: #fff;
}

.menu-category-list .product-category-item {
    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}

.menu-category-list .product-category-item a {
    display: flex;

    align-items: center;

    width: 100%;

    padding: 11px 15px;

    box-sizing: border-box;

    line-height: 1.4;

    text-decoration: none;

    white-space: normal;
}

.menu-category-list .product-category-item a:hover {
    text-decoration: none;
}


/* =========================================================
   ORIGINAL BIG STORE CATEGORY COMPATIBILITY
   ========================================================= */

.menu-category-list .product-cat-list ul {
    list-style: none;

    margin: 0;

    padding: 0;

    width: 100%;
}

.menu-category-list .product-cat-list li {
    width: 100%;

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}

.menu-category-list .product-cat-list li a {
    display: flex;

    align-items: center;

    width: 100%;

    padding: 11px 15px;

    box-sizing: border-box;

    line-height: 1.4;

    text-decoration: none;

    white-space: normal;
}


/* =========================================================
   CATEGORY HOVER
   ========================================================= */

.menu-category-list .product-category-item a:hover,
.menu-category-list .product-cat-list li a:hover {
    text-decoration: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    article.thunk-post-article {
        width: 100%;

        float: none;

        margin-right: 0;
    }

    .logo-content img.thstore-logo-image,
    .logo-content img.custom-logo {
        max-width: 160px !important;

        max-height: 48px !important;
    }

    .menu-category-list .product-cat-list,
    .menu-category-list .product-category-list {
        position: relative;

        top: auto;

        left: auto;

        width: 100%;

        min-width: 0;
    }

    .menu-category-list .product-category-item a {
        padding: 11px 15px;
    }
}


/* =========================================================
   PURPLE D2 CRACKERS - TOP FEATURE BAR
   ========================================================= */

.thstore-crackers-top-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-sizing: border-box;
}

.thstore-crackers-top-header .container {
    width: 100%;
}

.thstore-top-features {
    width: 100%;
    min-height: 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    box-sizing: border-box;
}

.thstore-top-feature {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    border-right: 1px solid #eeeeee;
    box-sizing: border-box;
}

.thstore-top-feature:last-child {
    border-right: none;
}

.thstore-feature-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    font-size: 24px;
    line-height: 1;
}

.thstore-feature-content {
    min-width: 0;
}

.thstore-top-feature strong {
    display: block;
    margin: 0 0 2px;
    color: #222222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.thstore-top-feature small {
    display: block;
    margin: 0;
    color: #777777;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   TOP FEATURE BAR - TABLET
   ========================================================= */

@media (max-width: 991px) {

    .thstore-top-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .thstore-top-feature:nth-child(2) {
        border-right: none;
    }

    .thstore-top-feature:nth-child(-n+2) {
        border-bottom: 1px solid #eeeeee;
    }

}


/* =========================================================
   TOP FEATURE BAR - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .thstore-top-features {
        grid-template-columns: repeat(2, 1fr);
        min-height: 0;
    }

    .thstore-top-feature {
        min-height: 64px;
        justify-content: flex-start;
        gap: 7px;
        padding: 8px 7px;
    }

    .thstore-feature-icon {
        width: 24px;
        font-size: 20px;
    }

    .thstore-top-feature strong {
        font-size: 12px;
    }

    .thstore-top-feature small {
        font-size: 10px;
        line-height: 1.3;
    }

}


/* =========================================================
   BEST SELLING CRACKERS
   NORMAL GRID - NO CAROUSEL
   ========================================================= */

/*
 * JavaScript adds .thstore-best-selling-grid
 * ONLY to the Best Selling Crackers section.
 */

.thstore-best-selling-grid {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}


/* Main product list */

.thstore-best-selling-grid ul.products,
.thstore-best-selling-grid .products {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    gap: 24px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    transform: none !important;
}


/* Product items */

.thstore-best-selling-grid ul.products > li.product,
.thstore-best-selling-grid .products > li.product {
    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    float: none !important;

    left: auto !important;

    right: auto !important;

    position: relative !important;

    transform: none !important;
}


/* If Big Store uses Owl */

.thstore-best-selling-grid .owl-stage-outer {
    width: 100% !important;

    max-width: 100% !important;

    overflow: visible !important;
}

.thstore-best-selling-grid .owl-stage {
    width: 100% !important;

    max-width: 100% !important;

    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    gap: 24px !important;

    transform: none !important;
}

.thstore-best-selling-grid .owl-item {
    width: auto !important;

    min-width: 0 !important;

    max-width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    float: none !important;

    transform: none !important;
}


/* If Big Store uses Swiper */

.thstore-best-selling-grid .swiper {
    width: 100% !important;

    max-width: 100% !important;

    overflow: visible !important;
}

.thstore-best-selling-grid .swiper-wrapper {
    width: 100% !important;

    max-width: 100% !important;

    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    gap: 24px !important;

    transform: none !important;
}

.thstore-best-selling-grid .swiper-slide {
    width: auto !important;

    min-width: 0 !important;

    max-width: 100% !important;

    margin: 0 !important;

    transform: none !important;
}


/* Remove carousel arrows */

.thstore-best-selling-grid .owl-nav,
.thstore-best-selling-grid .owl-prev,
.thstore-best-selling-grid .owl-next,
.thstore-best-selling-grid .swiper-button-prev,
.thstore-best-selling-grid .swiper-button-next,
.thstore-best-selling-grid .thunk-product-nav,
.thstore-best-selling-grid .thunk-product-nav-left,
.thstore-best-selling-grid .thunk-product-nav-right {
    display: none !important;

    visibility: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* Remove carousel dots */

.thstore-best-selling-grid .owl-dots,
.thstore-best-selling-grid .swiper-pagination {
    display: none !important;

    visibility: hidden !important;

    opacity: 0 !important;

    height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;
}


/* Prevent horizontal scrolling */

.thstore-best-selling-grid,
.thstore-best-selling-grid .owl-stage-outer,
.thstore-best-selling-grid .owl-stage,
.thstore-best-selling-grid .swiper,
.thstore-best-selling-grid .swiper-wrapper {
    overflow-x: visible !important;

    overflow-y: visible !important;
}


/* Product images */

.thstore-best-selling-grid .woocommerce-loop-product__link {
    display: block;

    width: 100%;

    max-width: 100%;
}

.thstore-best-selling-grid img {
    max-width: 100% !important;

    height: auto !important;

    display: block;

    margin-left: auto;

    margin-right: auto;
}


/* =========================================================
   BEST SELLING - TABLET
   ========================================================= */

@media (max-width: 991px) {

    .thstore-best-selling-grid ul.products,
    .thstore-best-selling-grid .products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 20px !important;
    }

    .thstore-best-selling-grid .owl-stage {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 20px !important;
    }

    .thstore-best-selling-grid .swiper-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 20px !important;
    }

}


/* =========================================================
   BEST SELLING - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .thstore-best-selling-grid ul.products,
    .thstore-best-selling-grid .products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 15px !important;
    }

    .thstore-best-selling-grid .owl-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 15px !important;
    }

    .thstore-best-selling-grid .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 15px !important;
    }

    .thstore-best-selling-grid ul.products > li.product,
    .thstore-best-selling-grid .products > li.product {
        width: 100% !important;

        margin: 0 !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .thstore-best-selling-grid ul.products,
    .thstore-best-selling-grid .products {
        gap: 12px !important;
    }

    .thstore-best-selling-grid .owl-stage {
        gap: 12px !important;
    }

    .thstore-best-selling-grid .swiper-wrapper {
        gap: 12px !important;
    }

}