/*
Theme Name: Septanil
Description: Septanil child theme based on Storefront
Author: Septanil
Template: storefront
Version: 1.0.0
*/

/*
Your custom CSS will go below.
*/
/*
|--------------------------------------------------------------------------
| REMOVE STOREFRONT HEADER
|--------------------------------------------------------------------------
*/

.post-type-archive-product .site-header,
.tax-product_cat .site-header,
.tax-product_tag .site-header {
    display: none !important;
}


/*
|--------------------------------------------------------------------------
| REMOVE STOREFRONT LAYOUT CONSTRAINTS
|--------------------------------------------------------------------------
*/

.post-type-archive-product .site-content,
.tax-product_cat .site-content,
.tax-product_tag .site-content {
    margin: 0 !important;
    padding: 0 !important;
}

.post-type-archive-product .col-full,
.tax-product_cat .col-full,
.tax-product_tag .col-full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/*
|--------------------------------------------------------------------------
| SEPTANIL HEADER
|--------------------------------------------------------------------------
*/




.brand-logo {
    display: block;

    margin: 0 0 28px;

    line-height: 1;
}


.brand-logo img {
    display: block;

    width: 180px;
    height: auto;

    margin: 0;
}


.brand-nav {
    display: flex;

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

    gap: 42px;
}


.brand-nav a {
    color: #111;

    font-size: 13px;
    font-weight: 500;

    letter-spacing: .09em;
    text-transform: uppercase;

    text-decoration: none;
}


.brand-nav a:hover {
    color: #111;
    opacity: .55;
}


/*
|--------------------------------------------------------------------------
| SHOP CONTAINER
|--------------------------------------------------------------------------
*/

.septanil-shop {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 50px 35px 80px;
}


/*
|--------------------------------------------------------------------------
| CATEGORY TITLE
|--------------------------------------------------------------------------
*/

.septanil-shop .woocommerce-products-header {
    text-align: center;

    margin: 0 0 50px;
}


.septanil-shop .woocommerce-products-header__title {
    margin: 0;

    font-size: 42px;
    font-weight: 400;

    line-height: 1.2;
}


/*
|--------------------------------------------------------------------------
| RESULT COUNT / SORT
|--------------------------------------------------------------------------
*/

.septanil-shop .woocommerce-before-shop-loop {
    margin-bottom: 35px;
}


/*
|--------------------------------------------------------------------------
| PRODUCT GRID
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products {
    width: 100% !important;

    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 50px 30px;

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

    list-style: none;
}


.septanil-shop ul.products::before,
.septanil-shop ul.products::after {
    display: none !important;
    content: none !important;
}


/*
|--------------------------------------------------------------------------
| PRODUCT ITEM
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product {
    width: 100% !important;

    float: none !important;
    clear: none !important;

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

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| PRODUCT IMAGE
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product a img {
    display: block;

    width: 100% !important;
    height: auto;

    margin: 0 0 20px !important;

    object-fit: contain;
}


/*
|--------------------------------------------------------------------------
| PRODUCT TITLE
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product
.woocommerce-loop-product__title {
    margin: 0 0 8px;

    padding: 0;

    color: #111;

    font-size: 16px;
    font-weight: 500;

    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| PRICE
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product .price {
    margin: 0;

    color: #666;

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product .button {
    margin-top: 15px;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 991px) {

    .septanil-shop ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .brand-header {
        padding: 25px 20px;
    }

    .brand-logo {
        margin-bottom: 22px;
    }

    .brand-logo img {
        width: 145px;
    }

    .brand-nav {
        gap: 22px;
    }

    .brand-nav a {
        font-size: 11px;
    }


    .septanil-shop {
        padding: 35px 20px 60px;
    }


    .septanil-shop .woocommerce-products-header {
        margin-bottom: 35px;
    }

    .septanil-shop .woocommerce-products-header__title {
        font-size: 32px;
    }


    .septanil-shop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 35px 15px;
    }

}

/*
|--------------------------------------------------------------------------
| PRODUCT CARD
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product {
    width: 100% !important;
    float: none !important;
    clear: none !important;

    margin: 0 !important;
    padding: 0 0 25px !important;

    position: relative;

    background: #fff;

    text-align: left;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


/*
|--------------------------------------------------------------------------
| PRODUCT IMAGE
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product > a:first-child {
    display: block;
    text-decoration: none;
}


/*
 * Image area
 */

.septanil-shop ul.products li.product a img {
    display: block;

    width: 100% !important;
    aspect-ratio: 1 / 1;

    margin: 0 0 22px !important;

    padding: 25px;

    object-fit: contain;

    background: #f6f6f6;

    transition:
        transform .45s ease,
        background-color .3s ease;
}


/*
 * Subtle product zoom
 */

.septanil-shop ul.products li.product:hover a img {
    transform: scale(1.025);
    background: #f2f2f2;
}


/*
|--------------------------------------------------------------------------
| PRODUCT TITLE
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product
.woocommerce-loop-product__title {

    margin: 0 0 8px !important;
    padding: 0 !important;

    color: #111;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;

    letter-spacing: .01em;

    transition: opacity .25s ease;
}


.septanil-shop ul.products li.product:hover
.woocommerce-loop-product__title {
    opacity: .65;
}


/*
|--------------------------------------------------------------------------
| PRICE
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product .price {

    display: block;

    margin: 0 0 18px !important;

    color: #777;

    font-size: 14px;
    font-weight: 400;
}


/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product .button {

    display: inline-flex;

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

    min-height: 42px;

    margin: 5px 0 0 !important;
    padding: 0 22px;

    border: 1px solid #111;
    border-radius: 0;

    background: #111;

    color: #fff;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: .08em;
    text-transform: uppercase;

    transition:
        background-color .25s ease,
        color .25s ease;
}


.septanil-shop ul.products li.product .button:hover {

    background: #fff;

    color: #111;
}


/*
|--------------------------------------------------------------------------
| SALE BADGE
|--------------------------------------------------------------------------
*/

.septanil-shop ul.products li.product .onsale {

    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 5;

    min-width: auto;
    min-height: auto;

    margin: 0;
    padding: 7px 10px;

    border: 0;
    border-radius: 0;

    background: #111;

    color: #fff;

    font-size: 10px;
    font-weight: 500;
    line-height: 1;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .septanil-shop ul.products li.product a img {
        padding: 15px;
        margin-bottom: 15px !important;
    }

    .septanil-shop ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 14px;
    }

    .septanil-shop ul.products li.product .price {
        font-size: 13px;
    }

    .septanil-shop ul.products li.product .button {
        min-height: 38px;

        padding: 0 15px;

        font-size: 10px;
    }

}