/* AG Giao diện Cửa hàng & Tin tức – Author: August - https://augustcsgo.com */
.agas-shop, .agas-blog { --as-g1: #0b6b4a; --as-g2: #0f9d6c; --as-g3: #22b07d; --as-red: #ef4444; --as-line: #e5efe9; }

/* ===== Dải tiêu đề ===== */
.agas-hero {
	position: relative;
	overflow: hidden;
	padding: 28px 0 22px;
	color: #fff;
	background: linear-gradient(120deg, #0b6b4a 0%, #0f9d6c 55%, #4cc38a 100%);
}
.agas-hero::before,
.agas-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	pointer-events: none;
}
.agas-hero::before { top: -80px; right: 6%; width: 240px; height: 240px; }
.agas-hero::after { bottom: -110px; right: 26%; width: 200px; height: 200px; }
.agas-hero__in { position: relative; z-index: 1; }
.agas-hero__t { margin: 0 0 4px; font-size: 30px; font-weight: 800; line-height: 1.25; color: #fff; }
.agas-hero__s { max-width: 720px; margin: 0 0 14px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.agas-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agas-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	transition: background .2s, color .2s;
}
.agas-chip span { padding: 1px 7px; font-size: 11.5px; background: rgba(255, 255, 255, .2); border-radius: 999px; }
.agas-chip:hover { background: rgba(255, 255, 255, .26); }
.agas-chip.is-on { color: var(--as-g1) !important; background: #fff; border-color: #fff; }
.agas-chip.is-on span { color: #fff; background: var(--as-g2); }

/* ===== Cửa hàng: thanh breadcrumb + sắp xếp ===== */
.agas-shop .shop-page-title { padding: 0; background: #fff; border-bottom: 1px solid var(--as-line); }
.agas-shop .shop-page-title .page-title-inner { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
.agas-shop .woocommerce-breadcrumb { font-size: 13px; letter-spacing: 0; text-transform: none; color: #6b7280; }
.agas-shop .woocommerce-breadcrumb a { color: var(--as-g2); }
.agas-shop .woocommerce-result-count { margin: 0 12px 0 0; font-size: 13.5px; color: #6b7280; }
.agas-shop .woocommerce-ordering { margin: 0; }
.agas-shop .woocommerce-ordering select {
	height: 40px;
	margin: 0;
	padding: 0 34px 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	background-color: #fff;
	border: 1px solid #d7e6dd;
	border-radius: 999px;
	box-shadow: none;
}
.agas-shop .filter-button { padding: 7px 14px; color: var(--as-g1); background: #ecfdf5; border-radius: 999px; }

/* ===== Cửa hàng: thanh bên ===== */
.agas-shop #shop-sidebar .widget {
	margin: 0 0 16px;
	padding: 16px 16px 14px;
	background: #fff;
	border: 1px solid var(--as-line);
	border-radius: 16px;
}
.agas-shop #shop-sidebar .widget-title { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--as-g1); }
.agas-shop #shop-sidebar .is-divider { display: none; }
.agas-shop .widget_price_filter .ui-slider .ui-slider-range { background: var(--as-g2); }
.agas-shop .widget_price_filter .ui-slider .ui-slider-handle { background: #fff; border: 3px solid var(--as-g2); }
.agas-shop .widget_price_filter .price_slider_amount .button {
	min-height: 34px;
	padding: 0 16px;
	font-size: 13px;
	line-height: 34px;
	color: #fff;
	text-transform: none;
	background: var(--as-g2);
	border-radius: 999px;
}
.agas-shop #shop-sidebar .searchform input[type="search"] { height: 40px; border: 1px solid #d7e6dd; border-radius: 999px 0 0 999px; box-shadow: none; }
.agas-shop #shop-sidebar .searchform .button { height: 40px; background: var(--as-g2); border-radius: 0 999px 999px 0; }
.agas-shop #shop-sidebar .product-categories li { padding: 6px 0; border-top: 1px dashed var(--as-line); }
.agas-shop #shop-sidebar .product-categories li:first-child { border-top: 0; }
.agas-shop #shop-sidebar .product-categories a { font-weight: 600; color: #374151; }
.agas-shop #shop-sidebar .product-categories .current-cat > a { color: var(--as-g2); }
.agas-shop #shop-sidebar .product-categories .count { float: right; padding: 0 8px; font-size: 12px; color: var(--as-g1); background: #ecfdf5; border-radius: 999px; opacity: 1; }

/* ===== Cửa hàng: thẻ sản phẩm ===== */
.agas-shop .products .product-small.col { padding-bottom: 18px; }
.agas-shop .products .product-small > .col-inner {
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--as-line);
	border-radius: 16px;
	transition: transform .2s, box-shadow .2s;
}
.agas-shop .products .product-small > .col-inner:hover { box-shadow: 0 14px 30px rgba(11, 107, 74, .13); transform: translateY(-3px); }
.agas-shop .products .box-image { overflow: hidden; background: #f6f7f8; }
.agas-shop .products .box-image img { transition: transform .45s; }
.agas-shop .products .product-small:hover .box-image img { transform: scale(1.04); }
.agas-shop .products .box-text-products { padding: 10px 12px 14px; }
.agas-shop .products .product-cat { display: none; }
.agas-shop .products .name.product-title { margin: 4px 0 4px; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.agas-shop .products .name.product-title a {
	display: -webkit-box;
	overflow: hidden;
	color: #1f2937;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.agas-shop .products .name.product-title a:hover { color: var(--as-g2); }
.agas-shop .products .price { font-size: 15.5px; font-weight: 800; color: var(--as-red); }
.agas-shop .products .price del { margin-right: 4px; font-size: 12.5px; font-weight: 500; color: #9ca3af; opacity: 1; }
.agas-shop .products .price ins { text-decoration: none; }
.agas-shop .products .price .amount { color: inherit; }
/* Nút "Chọn nhanh" trên ảnh */
.agas-shop .products .grid-tools { padding: 0 10px 10px; background: none; }
.agas-shop .products .grid-tools a.quick-view {
	display: block;
	width: 100%;
	padding: 9px 10px;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	background: rgba(11, 107, 74, .92);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.agas-shop .products .grid-tools a.quick-view:hover { background: var(--as-g2); }

/* ===== Tin tức ===== */
.agas-blog .blog-archive { padding-top: 28px; }
.agas-blog #post-list .post-item { padding-bottom: 22px; }
.agas-blog #post-list .post-item > .col-inner {
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--as-line);
	border-radius: 16px;
	transition: transform .2s, box-shadow .2s;
}
.agas-blog #post-list .post-item > .col-inner:hover { box-shadow: 0 14px 30px rgba(11, 107, 74, .13); transform: translateY(-3px); }
.agas-blog #post-list .box-blog-post { height: 100%; }
.agas-blog #post-list .box-image .image-cover { padding-top: 60% !important; }
.agas-blog #post-list .box-image img { transition: transform .45s; }
.agas-blog #post-list .post-item:hover .box-image img { transform: scale(1.05); }
.agas-blog #post-list .box-text { padding: 14px 16px 18px; text-align: left !important; }
.agas-blog #post-list .post-title { margin: 0 0 8px; font-size: 17px; font-weight: 800; line-height: 1.4; }
.agas-blog #post-list .post-title a {
	display: -webkit-box;
	overflow: hidden;
	color: #1f2937;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.agas-blog #post-list .post-title a:hover { color: var(--as-g2); }
.agas-blog #post-list .is-divider { display: none; }
.agas-blog #post-list .from_the_blog_excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #6b7280;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.agas-blog #post-list .badge.post-date { top: 12px; left: 12px; }
.agas-blog #post-list .badge.post-date .badge-inner { color: #fff; background: var(--as-g2); border: 0; border-radius: 12px; }
/* Thanh bên Tin tức */
.agas-blog .blog-archive .row-divided > .col + .col { border-left: 0; }
.agas-blog .blog-archive .widget {
	margin: 0 0 16px;
	padding: 16px 16px 12px;
	background: #fff;
	border: 1px solid var(--as-line);
	border-radius: 16px;
}
.agas-blog .blog-archive .widget-title { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--as-g1); }
.agas-blog .blog-archive .widget .is-divider { display: none; }
.agas-blog .blog-archive .widget li { padding: 7px 0; border-top: 1px dashed var(--as-line); }
.agas-blog .blog-archive .widget li:first-child { border-top: 0; }
.agas-blog .blog-archive .widget li a { font-weight: 600; color: #374151; }
.agas-blog .blog-archive .widget li a:hover { color: var(--as-g2); }

/* ===== Điện thoại / tablet ===== */
@media (max-width: 849px) {
	.agas-hero { padding: 20px 0 16px; }
	.agas-hero__t { font-size: 24px; }
	.agas-hero__s { font-size: 14px; }
	.agas-chips { flex-wrap: nowrap; margin-right: -15px; padding-right: 15px; overflow-x: auto; scrollbar-width: none; }
	.agas-chips::-webkit-scrollbar { display: none; }
	.agas-chip { flex: 0 0 auto; }
	/* Flatsome ẩn nút xem nhanh trên điện thoại => để khách bấm thẻ vào trang sản phẩm. */
}
@media (max-width: 549px) {
	.agas-shop .products .product-small.col { padding-bottom: 12px; }
	.agas-shop .products .box-text-products { padding: 8px 10px 12px; }
	.agas-shop .products .name.product-title { font-size: 13.5px; }
	.agas-shop .products .price { font-size: 14.5px; }
	.agas-blog .blog-archive { padding-top: 18px; }
	.agas-blog #post-list .post-title { font-size: 16px; }
}
