/*
Theme Name:   Janelas child theme
Description:  Write here a brief description about your child-theme
Author:       Themesflat
Author URL:   https://janelaswp.themesflat.com/
Template:     janelas
Version:      1.0.1
Tested up to: 5.9.3
Requires PHP: 5.6
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  janelas-child-theme
*/

/* ==============================
   CUSTOM WOOCOMMERCE SHOP
============================== */

.custom-shop-page {
    color: #202b3a;
    background: #fff;
    font-family: inherit;
}

.custom-shop-page * {
    box-sizing: border-box;
}

.shop-container {
    width: min(100% - 36px, 1140px);
    margin-inline: auto;
}

/* Hero */

.shop-hero {
    padding: 55px 0;
        text-align: center;
        background: linear-gradient(90deg, #eef2f9 0%, #eef2f9 55%, #ffffff 100%);
}

.shop-eyebrow {
    font-size: 0.85rem;
        font-weight: 700;
        color: #0B3EA8;
}

.shop-hero h1 {
font-size: 2.5rem;
    line-height: 1.2em;
    color: #212529;
}

.shop-hero h1 span {
    color: #1749ae;
}

.shop-hero p {
max-width: 540px;
    margin: 0 auto;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

.shop-main-content {
    position: relative;
    margin-top: -20px;
    padding-bottom: 28px;
}

/* Filter toolbar */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 14px;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(20, 38, 65, .08);
}

.shop-filter-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.shop-filter {
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 30px;
    margin: 4px 6px 4px 0;
    transition: all .2s ease;
}

.shop-filter:hover,
.shop-filter.active {
    color: #fff;
    background: #1749ae;
    border-color: #1749ae;
}

.shop-sorting {
    flex-shrink: 0;
}

.shop-sorting .woocommerce-ordering {
    float: none;
    margin: 0;
}

.shop-sorting select {
    max-width: 155px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    background: #fff;
    color: #414a56;
    font-size: 12px;
}

/* WooCommerce loop */

.custom-shop-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
    margin: 0 !important;
    padding: 0 !important;
}

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

.custom-shop-page ul.products li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e9edf2;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(25, 42, 66, .045);
    transition: box-shadow .25s ease, transform .25s ease;
}

.custom-shop-page ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(25, 42, 66, .10);
}

/* Product image */

.custom-product-image {
    position: relative;
    overflow: hidden;
    background: #f0f3f6;
    aspect-ratio: 4 / 3;
}

.custom-product-image .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-product-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform .35s ease;
}

.custom-product-card:hover .custom-product-image img {
    transform: scale(1.04);
}

.custom-product-image .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 20px;
    background: #1749ae;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.custom-product-image .product-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #606975;
    font-size: 21px;
    line-height: 1;
    text-decoration: none;
}

/* Product information */

.custom-product-info {
    padding: 16px 18px;
    text-align: left;
}

.custom-product-category {
    font-size: 0.78rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custom-product-title {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

.custom-product-title a {
    color: #202936;
    text-decoration: none;
}

.custom-product-title a:hover {
    color: #1749ae;
}

.custom-product-rating {
    min-height: 17px;
    margin-bottom:0;
}

.custom-product-rating .star-rating {
    float: none !important;
    display: inline-block;
    margin: 0 !important;
    color: #f2a900;
    font-size: 13px;
}

.custom-product-rating .star-rating span::before {
    color: #f2a900;
}
.products li .star-rating {
    position: static !important;
    background: transparent !important;
    transform: translate(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
}
/* Price and cart */

.custom-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.custom-product-price {
    color: #153c76;
    font-size: 15px;
    font-weight: 800;
}

.custom-product-price .price {
    color: inherit;
}

.custom-product-price del {
    color: #9ba2ac;
    font-size: 11px;
    font-weight: 400;
}

.custom-product-price ins {
    text-decoration: none;
}
.custom-product-bottom span.woocommerce-Price-amount.amount {
    font-weight: 700;
    color: #1749ae;
    font-size: 1.05rem;
}
.custom-product-cart .button {

    font-size: 0 !important;
}
.custom-product-price del span.woocommerce-Price-amount.amount {
    color: #999;
    margin-right: 5px;
}
/*.custom-product-cart .button::before {
        font-family: "Font Awesome 5 Free";
            content: "\f07a";
            font-weight: 900;
            margin-right: 8px;
            display: inline-block;
}*/
.custom-product-cart {
    position: relative;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 8px;
    background: #edf3fc;
}
.custom-product-cart .custom-cart-button i,
.custom-product-cart a.button i {
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
}
.custom-product-cart .button:hover {
    background: #1749ae !important;
    color: #fff !important;
}

.custom-product-cart .added_to_cart {
    display: none;
}

/* Benefits */

.shop-benefits {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
    padding: 25px 18px;
    border-radius: 9px;
    background: #edf3fa;
    text-align: center;
}

.shop-benefit .benefit-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 9px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #1749ae;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(0,0,0,.04);
}

.shop-benefit h3 {
font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #333;
}

.shop-benefit p {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0;
}

.custom-product-cart a.add_to_cart_button::after {
    content: "\f07a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
}
/* CTA */

.shop-custom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 25px 30px;
    border-radius: 8px;
    background: #1749ae;
    color: #fff;
}

.shop-custom-cta h2 {
    color: #fff;
        font-size: 1.5rem;
}

.shop-custom-cta p {
        margin: 0;
            line-height: 1.6;
            color: #dbe6ff;
            font-size: 1rem;
}

.shop-custom-cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 13px 18px;
    border-radius: 5px;
    background: #fff;
    color: #1749ae;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
        
}

.shop-custom-cta > a:hover {
    background: #edf3fa;
    color: #12367f;
}
.custom-product-cart {
    position: relative;
}

.custom-product-cart i.fas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1749ae;
}
.custom-product-cart:hover {
    background: #0b3ea8;
}

.custom-product-cart:hover i {
    color: #fff;
}
/* Pagination */

.custom-shop-page .woocommerce-pagination {
    margin-top: 30px;
        display: none;
}

.custom-shop-page .woocommerce-pagination ul {
    border: 0 !important;
}

.custom-shop-page .woocommerce-pagination ul li {
    border: 0 !important;
    margin: 3px !important;
}

/* Responsive */

@media (max-width: 1024px) {
    .custom-shop-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-sorting {
        align-self: flex-end;
    }
}

@media (max-width: 767px) {
    .shop-hero {
        padding: 35px 16px 45px;
    }

    .shop-main-content {
        margin-top: -16px;
    }

    .shop-container {
        width: min(100% - 24px, 1140px);
    }

    .custom-shop-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .custom-product-info {
        padding: 10px;
    }

    .custom-product-title {
        font-size: 12px !important;
    }

    .custom-product-price {
        font-size: 13px;
    }

    .custom-product-cart .button {
        width: 31px;
        height: 31px;
        min-width: 31px;
    }

    .shop-filter-buttons {
        gap: 6px;
    }

    .shop-filter {
        padding: 8px 10px;
        font-size: 11px;
    }

    .shop-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
        padding: 22px 12px;
    }

    .shop-custom-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px 20px;
    }

    .shop-custom-cta h2 {
        font-size: 19px;
    }
}

@media (max-width: 380px) {
    .custom-shop-page ul.products {
        gap: 9px;
    }

    .custom-product-info {
        padding: 8px;
    }

    .custom-product-image .product-heart {
        width: 26px;
        height: 26px;
    }
}

