/*
Theme Name: Petio Child
Theme URI: http://www.wpbingosite.com/petio
Author: wpbingo
Description: This is a child theme for Petio
Version: 1.0
Author URI: http://wpbingosite.com
Template: petio
Text Domain: petio-child
*/
/*************** ADD YOUR CUSTOM CSS HERE  ***************/

/*---------------------------   Label Product   ---------------------------*/

/* Direct positioning with !important to override theme styles */
div.product-labels {
	display: flex !important;
	position: relative !important;
	top: unset !important;
	left: unset !important;
	flex-wrap: wrap !important;
	gap: 5px 8px!important;
	z-index: unset !important;
	margin-bottom: .5rem;
	font-family: Arial, Helvetica, sans-serif;
    margin: 7px;

}

/* Strong styling for labels */
.product-label {
	display: inline-block !important;
	border: 1px solid #e2e7e3;
	border-radius: 4px !important;
	background-color: whitesmoke !important;
	padding: 1.5px 6px !important;
	color: hsl(0, 0%, 34%) !important;
	font-weight: normal !important;
	font-size: 12px !important;
	line-height: 1.4 !important;

	&:hover {
		color: var(--global-palette-highlight) !important;
	}

}
/*---------------------------   hiện danh mục con trong product catalog   ---------------------------*/
.shop-products-col {
	overflow: hidden;     /* Chặn con bên trong mở rộng */
	display: flex;
	flex-direction: column;
}

.subcategories-wrapper {
	max-width: 100%;     /* Đảm bảo không vượt quá parent */
	overflow: hidden;     /* Ngăn tràn */
	display: block;     /* Không để flex làm giãn */
}

.subcat-wrapper {
	position: relative;
	margin: 20px 0;
}

.subcat-scroll {
	display: flex;
	overflow-x: auto;
	gap: 8px;
	padding: 6px 0;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.subcat-scroll::-webkit-scrollbar {
	height: 6px;
}

.subcat-scroll::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.subcat-item {
	scroll-snap-align: start;
	flex-shrink: 0;
}

.subcat-item a {
	display: inline-block;
	padding: 3px 10px;
	font-size: 14px;
	font-weight: 400;
	border-radius: 6px;
	background: #f8f8f8;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}

.subcat-item a:hover {
	background: #333;
	color: #fff;
}

.subcat-item a.active-subcat {
	background: var(--color_accent);
	border-color: var(--color_accent);
	color: #fff;
}

.subcat-arrow {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: #fff;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	cursor: pointer;
	animation: blinkArrow 1s infinite;
	z-index: 10;
}

.subcat-arrow.hidden {
	display: none !important;
}

.subcat-arrow i {
	font-size: 14px;
	color: #444;
}

@keyframes blinkArrow {
	0%, 100% {
		opacity: 1;
	}

	50% {
		opacity: 0.3;
	}

}

@media (max-width:600px) {
	.subcat-item a {
		font-size: 12px;
		padding: 2px 8px;
		border-radius: 4px;
	}

}
