/*
 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
*/

:root {
	--primary-color: #e22d33;
	--secondary-color: #1f1f1f;
	--tertiary-color: #333333;
	--quaternary-color: #666666;
	--border-color: #e5e7eb;
	--white-color: #ffffff;
	--bg-1-color: #f2f2f2;
	--bg-2-color: #fafafa;
	--bg-3-color: #fee2e2;
	--rating-color: #fbbc04;
}

body.home #brx-content {
	background-image: url('https://woostore-01.py-media.com/wp-content/uploads/2025/08/bg-img-navbar.webp');
}

.brxe-text-link:hover,
a:not([class]):hover,
.woocommerce-loop-product__title:hover,
.wc-block-components-checkout-return-to-cart-button:hover {
	color: var(--primary-color);
}

/* Global Woocommerce */
.woocommerce .button {
	font-weight: 400;
	font-size: 14px;
	border-radius: 10px;
	transition: all .3s ease-in-out;
}

.wp-singular .wc-block-components-button {
	font-weight: 400;
	font-size: 14px;
	border-radius: 10px;
	color: var(--white-color);
	background-color: var(--primary-color);
	transition: all .3s ease-in-out !important; 
}

.wp-singular .wc-block-components-button:hover {
	color: var(--primary-color);
	background-color: var(--bg-3-color);
}

/* Product Woocommerce */
ul.products.columns-5 {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

li.product {
	padding: 15px;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 10px;
	background-color: var(--white-color);
	box-shadow: 0 1px 2px rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15);
}

li.product .thumb {
	margin-bottom: 20px;
	aspect-ratio: 1 / 1;
}

li.product .thumb img {
	width: 100%;
	height: auto;
}

li.product .content {
	display: flex;
	flex-grow: 1;
	flex-direction: column;
}

li.product .content .woocommerce-loop-product__title {
	margin-bottom: 10px;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.5;
	min-height: 42px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

li.product .content .star-rating {
	margin-bottom: 10px;
}

li.product .content .star-rating span:before {
	color: var(--rating-color);
}

li.product .content .price {
	margin: auto 0 10px 0;
	display: block;
}

li.product .content .price bdi {
	font-weight: 600;
	font-size: 16px;
	color: var(--primary-color);
}

li.product .content .price:has(ins) ins {
	text-decoration: none;
}

li.product .content .price:has(del) del bdi {
	font-weight: 400;
	font-size: 14px;
	color: var(--quaternary-color);
}

li.product .content .btn-add-to-cart {
	display: block;
	border-radius: 10px;
	color: var(--white-color);
	background-color: var(--primary-color);
}

li.product .content .btn-add-to-cart:hover {
	color: var(--primary-color);
	background-color: var(--bg-3-color);
}

.woocommerce-pagination {
	margin-top: 30px;
	justify-content: center;
}

.woocommerce-pagination ul li {
	margin: 0 2px;
}

.woocommerce-pagination ul li:hover {
	font-weight: 400;
}

.woocommerce-pagination ul li .page-numbers {
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--secondary-color);
	color: var(--secondary-color);
	background-color: var(--white-color);
}

.woocommerce-pagination ul li:hover .page-numbers,
.woocommerce-pagination ul li .page-numbers.current {
	color: var(--white-color);
	border-color: var(--primary-color);
	background-color: var(--primary-color);
}

@media (max-width: 1024px) {
	ul.products.columns-5 {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 991px) {
	ul.products.columns-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	ul.products.columns-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 478px) {
	li.product {
		padding: 10px;
	}
}

/* Shop Page */
.archive .layout-default .brxe-container {
	padding: 0;
}

.archive .bricks-archive-title-wrapper {
	margin: 0 0 12px 0;
}

.archive .bricks-before-shop-loop .custom-filter-wrap {
	position: relative;
	display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
	gap: 20px;
}

.archive .bricks-before-shop-loop .custom-filter-wrap .custom-shop-info {
	display: flex;
    align-items: center;
    gap: 20px;
}

.archive .bricks-before-shop-loop .woocommerce-ordering .orderby {
	padding: 0 20px;
	border-radius: 30px;
}

.archive .bricks-before-shop-loop .wp-block-categories {
	margin-top: 0;
	padding-left: 25px;
}

.archive .bricks-before-shop-loop .wc-block-product-filter-price-slider .text input[type=text] {
	line-height: 20px;
	max-width: 115px;
}

@media (max-width: 767px) {
	.archive .bricks-before-shop-loop .custom-filter-wrap {
		padding-bottom: 40px;
	}

	.archive .bricks-before-shop-loop .custom-filter-wrap .custom-shop-info .woocommerce-result-count {
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		text-align: right;
	}
}

/* Single Page */
.single.woocommerce main.site-main {
	width: 100%;
}

.single main.site-main .woocommerce-notices-wrapper {
	width: 100%;
}

.single .product .summary .woocommerce-product-rating .star-rating span:before {
	color: var(--rating-color);
}

.single .product .summary .price bdi {
	font-weight: 600;
	font-size: 26px;
	color: var(--primary-color);
}

.single .product .summary .price:has(ins) ins {
	text-decoration: none;
}

.single .product .summary .price:has(del) del bdi {
	font-weight: 400;
	font-size: 16px;
	color: var(--quaternary-color);
}

.single .product .summary .cart .button {
	color: var(--white-color);
	background-color: var(--primary-color);
	transition: all .3s ease-in-out;
}

.single .product .summary .cart .button:hover {
	color: var(--primary-color);
	background-color: var(--bg-3-color);
}

.single .product .woocommerce-tabs {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	flex-direction: row;
	border: none;
}

.single .product .woocommerce-tabs .woocommerce-tabs-description {
	padding: 20px 10px;
	width: calc(100% - 330px);
	border-radius: 10px;
	box-shadow: 0 0 2px 0 rgba(60, 64, 67, .1), 0 2px 3px 0 rgba(60, 64, 67, .15);
}

.single .product .woocommerce-tabs .woocommerce-tabs-description .title-description {
	margin-bottom: 10px;
}

.single .product .woocommerce-tabs .woocommerce-tabs-additional_information {
	padding: 20px 10px;
	width: 300px;
	border-radius: 10px;
	box-shadow: 0 0 2px 0 rgba(60, 64, 67, .1), 0 2px 3px 0 rgba(60, 64, 67, .15);
}

.single .product .woocommerce-tabs .woocommerce-tabs-additional_information .title-additional_information {
	margin-bottom: 10px;
	padding: 6px 10px;
	border-radius: 6px;
	background-color: var(--bg-1-color);
}

.single .product .woocommerce-tabs .woocommerce-tabs-additional_information table tbody tr:nth-child(even) {
	background-color: var(--bg-2-color);
}

.single .product .woocommerce-tabs .woocommerce-tabs-additional_information table tbody th,
.single .product .woocommerce-tabs .woocommerce-tabs-additional_information table tbody td {
	padding: 8px 10px;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews {
	padding: 20px;
	width: 100%;
	border-radius: 10px;
	box-shadow: 0 0 2px 0 rgba(60, 64, 67, .1), 0 2px 3px 0 rgba(60, 64, 67, .15);
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .star-rating span:before {
	color: var(--rating-color);
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .title-reviews {
	margin-bottom: 12px;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews {
	display: flex;
	gap: 30px;
	align-items: start;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #comments {
	width: 65%;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #comments .commentlist {
	overflow: auto;
	max-height: 425px;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #comments .commentlist .review-images {
	display: flex;
	gap: 5px;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #comments .commentlist .review-images img {
	width: 80px;
	height: 80px;
	border: 1px solid var(--border-color);
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #comments .commentlist .load-more-comments-wrap {
	text-align: center;
} 

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #comments .commentlist #load-more-comments {
	color: var(--primary-color);
	background-color: transparent;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #review_form_wrapper {
	margin-top: 0;
	width: 35%;
	align-self: start;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #review_form_wrapper .comment-reply-title {
	margin-bottom: 12px;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #review_form_wrapper .comment-form-comment {
	margin: 12px 0;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #review_form_wrapper .comment-form-comment textarea {
	height: 90px;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews form .stars.selected a.active~a:before {
	color: #d5d6d7;
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews form .stars.selected a.active:before,
.single .product .woocommerce-tabs .woocommerce-tabs-reviews form .stars.selected a:not(.active):before {
    color: var(--rating-color);
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #review_form_wrapper .button {
	color: var(--white-color);
	background-color: var(--primary-color);
}

.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #review_form_wrapper .button:hover {
	color: var(--primary-color);
	background-color: var(--bg-3-color);
}

.single .product .related .products {
	margin-top: 15px;
}

@media (max-width: 991px) {
	.single .product .woocommerce-tabs {
		flex-direction: column;
	}

	.single .product .woocommerce-tabs .woocommerce-tabs-description {
		width: 100%;
	}

	.single .product .woocommerce-tabs .woocommerce-tabs-additional_information {
		display: none;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews {
		flex-wrap: wrap;
	}

	.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #comments {
		width: 100%;
	}

	.single .product .woocommerce-tabs .woocommerce-tabs-reviews .woocommerce-Reviews #review_form_wrapper {
		width: 100%;
	}
}

/* Cart Page */
.woocommerce-cart .alignwide {
	margin-left: 0;
    width: 100%;
    max-width: 100%;
}