/* 篩選modal */
.modal-search {
	border-radius: 0;
	color: #85939b;
	box-shadow: none;
	display: block;
	height: 34px;
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.42857143;
	border: 1px solid #cccccc;
}

.set-block {
	background-color: #F3F3F3 !important;
	padding: 10px;
	width: 100%;
}

.set-block button {
	font-size: 13px;
}

.set-col {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 15px;
	margin-top: 15px;
}

#white_list_product, #exclude_product {
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media ( max-width :991px) {
	#white_list_product, #exclude_product {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.set-col {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}

@media ( max-width :768px) {
	.set-col {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media ( max-width :576px) {
	#white_list_product, #exclude_product {
		grid-template-columns: 1fr 1fr;
	}
	.set-col {
		grid-template-columns: 1fr 1fr;
	}
}

.col-wbg {
	position: relative;
	background-color: #ffffff;
	padding: 10px;
	border-radius: 10px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.col-rt-btn {
	position: absolute;
	top: -8px;
	right: -10px;
	padding: 2px;
	cursor: pointer;
}

.col-rt-btn i {
	font-size: 20px;
}

.col-wbg .minus, .col-wbg .plus {
	display: inline-block;
	border: 1px solid lightgray;
	padding: 0px 7px;
	margin: 0px 5px;
}

.text-center {
	text-align: center;
}

.col-brand {
	height: 120px;
	width: 120px;
	margin: auto;
	background: url(../img/brand-img.png) center center/cover no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
}

.col-brand img {
	width: 100%;
	object-fit: contain;
}

.set-brand-text {
	text-align: center;
	color: #000000;
	line-height: 1.3;
}

.btn.letter {
	border: 1px solid #c0c0c0;
	border-radius: 0;
}

.div_letter_area {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.btn.letter:hover {
	background: var(--header_link_hover_color);
	color: #ffffff !important;
}

.div_brand_area {
	max-height: 50vh;
	overflow: auto;
}

.brand_area {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	align-items: center;
	gap: 10px;
}

.brand-block {
	width: 155px;
	height: 100%;
	border: 1px solid #c0c0c0
}

.brand-block .brandName {
	font-size: 10px;
	margin: 5px 0px 3px;
}

/*
.brand-block:hover, .brand-block.selected, .product-card:hover,
	.product-card.selected {
	border: 2px solid var(--header_link_hover_color);
}
*/

.brand-block img {
	margin: auto;
	height: 100%;
	object-fit: contain;
	padding: 5px;
}

.div_modal_tabs {
	display: inline-block;
	background: var(--header_link_hover_color);
	padding: 5px;
	margin: 10px 5px 0px 0px;
}

.div_modal_tabs span {
	color: white;
}

.div_modal_tabs i {
	color: white;
	margin-left: 5px;
}

.modal-body-hidden {
	max-height: 75vh;
	overflow: hidden;
}

.modal-body-scroll {
	max-height: 75vh;
	overflow: scroll;
}

.product_filter_area {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	column-gap: 10px;
}

.div_product_area {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	gap: 10px;
	background: #e0e0e0;
	padding: 30px 10px;
}

.product-card {
	width: 100%;
	flex: 0 0 32%;

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 10px 0px;
	border: 2px solid transparent;
}

@media ( max-width :768px) {
	.product-card {
		width: 48%;
		flex: 0 0 48%;
	}
}

@media ( max-width :575px) {
	.product-card {
		width: 100%;
		flex: 0 0 100%;
	}
}

.product-card .brand {
	font-size: 13px;
}

.product-card .price {
	color: #787878;
}

.div_product_img {
	height: 150px;
	display: flex;
	border-radius: 0.25rem;
}

.div_product_img img {
	flex: 1;
	object-fit: contain;
}

.div_category_sub {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.div_category_sub>div {
	width: 100%;
	background: #f5f5f5;
	padding: 10px;
	border: 1px solid #ccc
}

.div_category_third {
	max-height: 200px;
	overflow: auto;
}

.div_category_third>div {
	width: 100%;
	background: #ffffff;
	padding: 10px 10px 1px;
}

.div_category_fourth>div {
	width: 100%;
	background: #f5f5f5;
	padding: 10px;
}

input[name="exclude_category"] {
	border-radius: 4px;
	margin-top: -3px;
}

input[name="exclude_category"]:disabled {
	background: #ddd;
}