/*
Theme Name: Cricket Store Child
Description: Child theme for Blocksy cricket WooCommerce store
Author: Cricket Store
Template: blocksy
Version: 1.0.0
Text Domain: cricket-store-child
*/

/* =====================================================
   CRICKET STORE - PRODUCT ARCHIVE
===================================================== */

.cs-shop-archive {
    width: 100%;
}


/* =====================================================
   HIDE BLOCKSY DEFAULT ARCHIVE HERO
===================================================== */

body.tax-product_cat .hero-section {
    display: none !important;
}


/* =====================================================
   CATEGORY HERO
===================================================== */

.cs-category-hero {
    max-width: 1200px;
    margin: 0 auto 24px;

    border-radius: 0 0 18px 18px;
    overflow: hidden;

    background: linear-gradient(
        110deg,
        #082c50 0%,
        #205fa8 55%,
        #1398ba 100%
    );
}

.cs-category-hero-content {
    padding: 32px 28px 25px;
}


/* =====================================================
   BREADCRUMB
===================================================== */

.cs-category-breadcrumb,
.cs-category-breadcrumb a,
.cs-category-breadcrumb .woocommerce-breadcrumb {
    color: rgba(255, 255, 255, 0.58);

    font-size: 13px;

    margin: 0 0 13px;
}

.cs-category-breadcrumb a {
    text-decoration: none;
}

.cs-category-breadcrumb a:hover {
    color: #ffffff;
}

.cs-breadcrumb-separator {
    display: inline-block;
    padding: 0 7px;
}


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

.cs-category-title {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
}


/* =====================================================
   CATEGORY DESCRIPTION
===================================================== */

.cs-category-description {
    max-width: 680px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 15px;
    line-height: 1.6;
}

.cs-category-description p {
    margin: 0;
}


/* =====================================================
   CATEGORY TABS
===================================================== */

.cs-category-tabs {
    display: flex;

    overflow-x: auto;

    background: rgba(2, 34, 65, 0.72);

    scrollbar-width: none;
}

.cs-category-tabs::-webkit-scrollbar {
    display: none;
}

.cs-category-tab {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 49px;

    padding: 10px 21px;

    color: #ffffff;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    border-right: 1px solid rgba(255, 255, 255, 0.15);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cs-category-tab:hover,
.cs-category-tab.active {
    color: #ffffff;

    background: rgba(0, 20, 40, 0.50);
}


/* =====================================================
   PRODUCTS TOOLBAR
===================================================== */

.cs-products-toolbar {
    max-width: 1200px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.cs-products-toolbar .woocommerce-result-count {
    margin: 0;

    color: #26364a;

    font-size: 14px;
}

.cs-products-toolbar .woocommerce-ordering {
    margin: 0;
}

.cs-products-toolbar .woocommerce-ordering select {
    min-width: 220px;
    height: 40px;

    padding: 0 42px 0 14px;

    border: 1px solid #d8e1ec;
    border-radius: 10px;

    background-color: #ffffff;

    color: #26364a;

    font-size: 14px;
}


/* =====================================================
   MAIN SHOP AREA
===================================================== */

.cs-shop-main {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 240px minmax(0, 1fr);

    gap: 20px;
}


/* =====================================================
   FILTER SIDEBAR
===================================================== */

.cs-filter-sidebar {
    align-self: start;

    padding: 17px 16px;

    background: #ffffff;

    border: 1px solid #d8e1ec;
    border-radius: 12px;
}

.cs-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.cs-filter-heading > span {
    color: #646464;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.04em;
}

.cs-clear-filters {
    padding: 0;

    border: 0;

    background: transparent;

    color: #2462bc;

    font-size: 12px;

    cursor: pointer;
}

.cs-filter-placeholder {
    padding: 20px 0;

    color: #777777;

    font-size: 13px;

    border-top: 1px solid #e5e8ec;
}


/* =====================================================
   PRODUCTS AREA
===================================================== */

.cs-products-area {
    min-width: 0;
}


/* =====================================================
   PRODUCT GRID
===================================================== */

.cs-products-area ul.products {
    display: grid !important;

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 16px !important;

    margin: 0 !important;

    padding: 0 !important;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.cs-products-area ul.products li.product {
    position: relative;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    border: 1px solid #d8e1ec;
    border-radius: 12px;

    overflow: hidden;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}


/* Card Hover */

.cs-products-area ul.products li.product:hover {
    transform: translateY(-3px);

    border-color: #c8d5e4;

    box-shadow:
        0 4px 8px rgba(17, 41, 69, 0.04),
        0 12px 24px rgba(17, 41, 69, 0.11);
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.cs-products-area ul.products li.product .ct-media-container,
.cs-products-area ul.products li.product .woocommerce-loop-product__link {
    display: block;

    overflow: hidden;
}

.cs-products-area ul.products li.product img {
    display: block;

    width: 100% !important;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    margin: 0 !important;

    transition: transform 0.42s ease;
}

.cs-products-area ul.products li.product:hover img {
    transform: scale(1.055);
}


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

.cs-products-area ul.products li.product .woocommerce-loop-product__title {
    margin: 12px 12px 5px !important;

    color: #172033 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;

    transition: color 0.2s ease;
}

.cs-products-area ul.products li.product:hover .woocommerce-loop-product__title {
    color: #0b4e8a !important;
}


/* =====================================================
   PRODUCT PRICE
===================================================== */

.cs-products-area ul.products li.product .price {
    display: block;

    margin: 0 12px 14px !important;

    color: #172033 !important;

    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}


/* =====================================================
   HIDE PRODUCT CATEGORY TEXT
===================================================== */

.cs-products-area ul.products li.product .product-categories,
.cs-products-area ul.products li.product .ct-product-categories,
.cs-products-area ul.products li.product .entry-meta {
    display: none !important;
}


/* =====================================================
   HIDE ARCHIVE BUTTONS
===================================================== */

.cs-products-area ul.products li.product .button,
.cs-products-area ul.products li.product .added_to_cart {
    display: none !important;
}


/* =====================================================
   SOLD OUT / SALE BADGE
===================================================== */

.cs-products-area ul.products li.product .onsale,
.cs-products-area ul.products li.product .out-of-stock-badge,
.cs-products-area ul.products li.product .ct-out-of-stock {
    z-index: 5;

    top: 12px !important;
    left: 12px !important;

    border-radius: 4px !important;

    font-size: 11px !important;
    font-weight: 700 !important;
}


/* =====================================================
   PRODUCT LINKS
===================================================== */

.cs-products-area ul.products li.product a {
    text-decoration: none;
}


/* =====================================================
   PAGINATION
===================================================== */

.cs-products-area .woocommerce-pagination {
    margin-top: 30px;
}

.cs-products-area .woocommerce-pagination ul {
    display: flex;

    gap: 7px;

    border: 0 !important;
}

.cs-products-area .woocommerce-pagination ul li {
    border: 0 !important;
}

.cs-products-area .woocommerce-pagination ul li a,
.cs-products-area .woocommerce-pagination ul li span {
    min-width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d8e1ec;
    border-radius: 8px;

    background: #ffffff;

    color: #26364a;
}

.cs-products-area .woocommerce-pagination ul li span.current,
.cs-products-area .woocommerce-pagination ul li a:hover {
    background: #0d4b7c;

    color: #ffffff;

    border-color: #0d4b7c;
}


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

@media (max-width: 1024px) {

    .cs-category-hero,
    .cs-products-toolbar,
    .cs-shop-main {
        max-width: calc(100% - 30px);
    }

    .cs-shop-main {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .cs-products-area ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


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

@media (max-width: 767px) {

    .cs-category-hero {
        max-width: 100%;

        margin-bottom: 18px;

        border-radius: 0;
    }

    .cs-category-hero-content {
        padding: 24px 18px 20px;
    }

    .cs-category-title {
        font-size: 29px;
    }

    .cs-category-description {
        font-size: 14px;
    }

    .cs-category-tab {
        min-height: 45px;

        padding: 9px 16px;

        font-size: 11px;
    }

    .cs-products-toolbar {
        max-width: 100%;

        padding: 0 15px;

        flex-direction: column;
        align-items: stretch;

        gap: 12px;
    }

    .cs-products-toolbar .woocommerce-ordering {
        width: 100%;
    }

    .cs-products-toolbar .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }

    .cs-shop-main {
        display: block;

        max-width: 100%;

        padding: 0 15px;
    }

    .cs-filter-sidebar {
        margin-bottom: 20px;
    }

    .cs-products-area ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }

    .cs-products-area ul.products li.product .woocommerce-loop-product__title {
        margin: 9px 9px 4px !important;

        font-size: 13px !important;
    }

    .cs-products-area ul.products li.product .price {
        margin: 0 9px 10px !important;

        font-size: 13px !important;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 430px) {

    .cs-products-area ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}