    /*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Button */

.brxe-button.bricks-background-primary:hover {
    background: linear-gradient(90deg, rgb(255, 212, 0) 0%, rgb(199, 49, 48) 50.52%, rgb(102, 54, 149) 99.61%) !important;
    color: white !important;
    border-color: white !important;
}

/* Product card */
li.product.type-product {
    background: #fff;
    height: 100%;
    padding: 0 10px 20px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

li.product.type-product .woocommerce-loop-product__link {
    display: block;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    max-width: calc(100% + 20px);
}

li.product.type-product .woocommerce-loop-product__link img {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

li.product.type-product .brand {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
}

li.product.type-product .woocommerce-loop-product__title {
    font-size: 12px;
    line-height: 2;
    font-weight: 300;
    margin-bottom: 10px;
    margin-top: 0;
}

li.product.type-product .price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    text-decoration: none;
}

li.product.type-product .price ins {
    font-weight: 700;
    text-decoration: none;
}

li.product.type-product .price del {
    opacity: 0.6;
}

li.product.type-product .star-rating-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 4px;
}

li.product.type-product .star-rating-wrapper .rating-count {
    font-size: 14px;
}

li.product.type-product .sale-rating {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

span.sale-percent {
    z-index: 0;
    background-color: rgb(199, 49, 48);
    border-radius: 3px 4px 4px 3px;
    border-left: 1px solid rgb(199, 49, 48);
    margin-left: 19px;
    position: relative;
    color: rgb(255 255 255);
    font-weight: 700;
    font-size: 13px;
    font-weight: 600;
    margin-right: 7px;
    padding: 1.1px 4px;
}

span.sale-percent:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 15px;
    width: 15px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 3px;
    background: rgb(199, 49, 48);
    z-index: -1;
}

/* Shop */

.bricks-archive-title-wrapper {
    margin: 20px auto
}

.bricks-archive-title-wrapper .woocommerce-breadcrumb {
    margin-bottom: 0;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.bricks-archive-title-wrapper .woocommerce-breadcrumb a {
    font-weight: 400;
}

.product-archive-content {
    display: flex;
    gap: 30px;
    padding-bottom: 30px;
}

.product-archive-content .woo-sidebar-wrapper {
    width: 25%;
}

.product-archive-content .brxe-woocommerce-products {
    width: 75%;
}

.woo-sidebar-wrapper .wp-block-heading {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px !important;
}

.woo-sidebar-wrapper .wc-block-product-filters__overlay-content {
    gap: 20px;
}

.woo-sidebar-wrapper input[type=checkbox].wc-block-product-filter-checkbox-list__input,
.woo-sidebar-wrapper svg.wc-block-product-filter-checkbox-list__mark {
    width: 20px;
    height: 20px;
}

.woo-sidebar-wrapper .wc-block-product-filter-checkbox-list__input {
    padding: 0;
}

.woo-sidebar-wrapper .wc-block-product-filter-checkbox-list__input-wrapper:before {
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 5px;
    border: 1px solid #cecece;
    opacity: 1;
}

.woo-sidebar-wrapper .wc-block-product-filter-checkbox-list__text {
    color: #222;
}
@media(max-width: 1280px) {
    .product-archive-content .products.columns-4 {
        grid-template-columns: repeat(3,1fr);
    }
}
@media(max-width: 991px) {
    .product-archive-content .products.columns-4 {
        grid-template-columns: repeat(2,1fr);
    }
}
@media(max-width: 991px) {
    .product-archive-content .products.columns-4 {
        grid-template-columns: repeat(2,1fr);
    }
}
@media(max-width: 767px) {
    .product-archive-content .products.columns-4 {
        grid-template-columns: 1fr;
    }
}
@media(max-width: 600px) {
    .product-archive-content,
    .woocommerce.archive .bricks-before-shop-loop {
        flex-wrap: wrap;
        gap: 10px;
    }
    .product-archive-content .woo-sidebar-wrapper,
    .product-archive-content .brxe-woocommerce-products,
    .woocommerce.archive .bricks-before-shop-loop .woocommerce-result-count,
    .woocommerce.archive .bricks-before-shop-loop .woocommerce-ordering {
        width: 100%;
    }
    .woocommerce.archive .bricks-before-shop-loop .woocommerce-result-count {
        order: 2;
    }
}

/* Single Product */
body.single-product .content-area {
    padding-left: 15px;
    padding-right: 15px;
}

body.single-product .woocommerce-breadcrumb span:last-child {
    display: none;
}

body.single-product #primary {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media(min-width: 992px) {
    body.single-product .woocommerce-product-gallery {
        position: relative;
        padding-left: 120px;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs {
        position: absolute;
        top: 0;
        left: 0;
        width: 110px;
        height: 100%;
        overflow-y: auto;
        display: block;
        padding-right: 10px;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
        width: 5px;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
        background: #e67e22;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs>li:not(:last-child) {
        margin-bottom: 20px;
    }
}

body.single-product .woocommerce-breadcrumb {
    font-size: 13px;
    font-weight: 400;
    color: #797979;
    margin-bottom: 16px;
}

body.single-product .woocommerce-breadcrumb a {
    font-weight: 400;
}

body.single-product .brand {
    font-size: 14px;
    font-weight: 700;
    color: #b0100f;
}

body.single-product .product_title {
    font-size: 20px;
}

body.single-product .product-meta {
    display: flex;
    font-size: 14px;
    color: #000;
    gap: 15px;
}

body.single-product .product-meta span {
    font-weight: 700;
}

body.single-product .product-meta span span {
    font-weight: 400;
}

body.single-product .star-rating-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 4px;
}

body.single-product .star-rating-wrapper .rating-count {
    font-size: 12.6px;
    font-weight: 400;
    color: #334862;
}

body.single-product .price-wrapper {
    display: flex;
    align-items: center;
    margin-top: 7px;
    margin-bottom: 7px;
}

body.single-product .price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    gap: 10px;
}

body.single-product .price .woocommerce-Price-currencySymbol {
    font-size: .75em;
    margin-top: .05em;
    vertical-align: top;
    font-weight: 400;
}

body.single-product .price del {
    font-size: 17px;
    font-weight: 400;
}

body.single-product .summary .woocommerce-product-details__short-description {
    font-size: 15px;
}

body.single-product form.cart {
    display: flex;
    align-items: stretch;
}

body.single-product form.cart button[type="submit"] {
    margin-top: 0;
}

body.single-product .quantity {
    margin-right: 5px;
    border: 2px solid #e8e8e8;
    border-radius: 40px;
    height: 55px;
    width: auto;
}

body.single-product .quantity input[type=number] {
    width: 40px;
    height: 48px;
    border: none;
    font-weight: bold;
    font-size: 20px;
    max-width: 50px;
}

body.single-product .quantity .action {
    border: 0;
}

body.single-product form.cart button[type="submit"] {
    font-weight: 400;
    padding: 5px 50px;
    background: #000;
    color: #fff;
    border-radius: 45px;
    gap: 0;
}

body.single-product form.cart button[type="submit"]:before {
    content: "";
    width: 30px;
    height: 30px;
    display: inline-block;
    background-image: url('images/cart-icon.svg');
    background-repeat: no-repeat;
    background-size: 23px;
    background-position-y: center;
    background-position-x: center;
    top: 8px;
    position: inherit;
}

@media(max-width: 767px) {
    body.single-product form.cart button[type="submit"] {
        padding: 5px 10px;
    }
}

body.single-product .cross-sells .star-rating,
body.single-product .related.products .star-rating,
body.single-product .upsells.products .star-rating {
    display: block;
}

body.single-product .product-description {
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px
}

body.single-product .product-description .content-wrapper {
    font-size: 14px;
}

body.single-product .product-description .content-wrapper h2 {
    font-size: 20px;
}

body.single-product .product-description .content-wrapper h3 {
    font-size: 19px;
}

body.single-product .product-description .content-wrapper h4 {
    font-size: 19px;
}

body.single-product .product-description .content-wrapper :where(h2, h3, h4) {
    margin-bottom: 13px;
}

@media(max-width: 767px) {
    body.single-product .product-description {
        grid-template-columns: 1fr;
    }
}

body.single-product .related.products {
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px
}
@media(max-width: 1024px) {
    body.single-product .related.products ul.products {
        grid-template-columns: 1fr 1fr; 
    }
}
@media(max-width: 767px) {
    body.single-product .related.products,
    body.single-product .related.products ul.products  {
        grid-template-columns: 1fr;
    }
}

/* Product single review */

h2.woocommerce-Reviews-title,
#reply-title {
    display: none;
}

.product-rating-wrapper {
    padding-top: 30px;
    position: relative;
    display: block;
    width: 100%;
}

.product-rating-wrapper .rating-title {
    font-size: 24px;
    margin-bottom: 12px
}

.product-rating-wrapper .product-rating-breakdown {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 10px;
    margin: 10px 0 20px;
}

.product-rating-wrapper .rating-summary {
    width: 100%;
}

.product-rating-wrapper .rating-score {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating-wrapper .rating-score strong {
    font-size: 36px;
    color: #ff9800;
}

.product-rating-wrapper .rating-bars {
    flex: 1;
}

.product-rating-wrapper .rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.product-rating-wrapper .rating-row .stars {
    width: 40px;
}

.product-rating-wrapper .bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.product-rating-wrapper .bar .fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #e91e63);
}

.product-rating-wrapper .rating-cta {
    min-width: 190px;
    flex-shrink: 0;
    align-self: center;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
}

@media(max-width: 767px) {
    .product-rating-wrapper .product-rating-breakdown {
        flex-wrap: wrap;
        justify-content: center;
    }
}