/* =============================================================================
   Green Skyline — Content type "Sản phẩm" (CPT product)
   Loaded after ui-2026.css (handle: gsky-products).
   Markup from flatsome-child/inc/gsky-products.php + single/archive templates.
   Dark-green tone to match the homepage sections (bg rgb(1,33,27)).
   ========================================================================== */

.gsky-products { --gsky-accent: #8fe6ad; }

/* ---- tab lọc "Mua bán / Cho thuê" (filter="loai") ---- */
.gsky-products__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 26px;
}
.gsky-products__tab {
	appearance: none;
	cursor: pointer;
	padding: 8px 20px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, .82);
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .18);
	transition: border-color .15s, background-color .15s, color .15s;
}
.gsky-products__tab:hover { border-color: rgba(143, 230, 173, .5); }
.gsky-products__tab.is-active {
	color: #0a2e22;
	background: var(--gsky-accent);
	border-color: var(--gsky-accent);
}
.gsky-product-card.is-hidden { display: none !important; }
.gsky-products__empty-loai { text-align: center; color: rgba(255, 255, 255, .6); padding: 16px 0; }

/* mobile: 3 tab (Tất cả / Mua bán / Cho thuê) gọn lại cho vừa 1 hàng */
@media (max-width: 480px) {
	.gsky-products__tabs { gap: 8px; margin-bottom: 20px; }
	.gsky-products__tab { padding: 7px 14px; font-size: 12px; }
}

/* light variant */
.gsky-products--light .gsky-products__tab { color: rgba(0, 0, 0, .7); background: rgba(0, 0, 0, .04); border-color: rgba(0, 0, 0, .12); }
.gsky-products--light .gsky-products__tab.is-active { color: #fff; background: #0e7a33; border-color: #0e7a33; }

/* ---- grid ---- */
.gsky-products__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, 1fr);
}
.gsky-products__grid.is-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gsky-products__grid.is-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.gsky-products__grid,
	.gsky-products__grid.is-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.gsky-products__grid,
	.gsky-products__grid.is-cols-2,
	.gsky-products__grid.is-cols-4 { grid-template-columns: 1fr; }
}

/* ---- card ---- */
.gsky-product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 14px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .1);
	text-decoration: none !important;
	color: inherit;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gsky-product-card:hover {
	transform: translateY(-4px);
	border-color: rgba(143, 230, 173, .4);
	box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .55);
}

.gsky-product-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	background: #123227 center / cover no-repeat;
	overflow: hidden;
}
/* fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 1) {
	.gsky-product-card__media { height: 0; padding-bottom: 66.66%; }
}
.gsky-product-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 18, 13, 0) 45%, rgba(4, 18, 13, .35) 100%);
	transition: transform .3s ease;
}
.gsky-product-card:hover .gsky-product-card__media { transition: transform .3s ease; }
.gsky-product-card:hover .gsky-product-card__media::after { background: linear-gradient(180deg, rgba(4, 18, 13, 0) 30%, rgba(4, 18, 13, .45) 100%); }

.gsky-product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: #0a2e22;
	background: var(--gsky-accent);
	border-radius: 999px;
}

.gsky-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 18px 20px;
}
.gsky-product-card__cat {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--gsky-accent);
}
.gsky-product-card__title {
	margin: 0 !important;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.gsky-product-card__specs {
	font-size: 13px;
	color: rgba(255, 255, 255, .68);
}
.gsky-product-card__specs .gsky-dot { opacity: .5; margin: 0 2px; }
.gsky-product-card__price {
	margin-top: 4px;
	font-size: 17px;
	font-weight: 800;
	color: #ffd98a; /* gold accent for the number */
}

/* ---- "Xem tất cả" ---- */
.gsky-products__more {
	margin-top: 28px;
	text-align: center;
}
.gsky-products__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	color: #0a2e22 !important;
	background: linear-gradient(180deg, #a7e8bc 0%, #86dba0 100%);
	text-decoration: none !important;
	transition: filter .16s ease, transform .16s ease;
}
.gsky-products__more-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

.gsky-products__empty {
	text-align: center;
	color: rgba(255, 255, 255, .6);
	padding: 20px 0;
}
.gsky-products__heading {
	text-align: center;
	color: #ffffff;
	margin: 0 0 24px;
}

/* ---- light variant (if placed on a light background) ---- */
.gsky-products--light .gsky-product-card { background: #fff; border-color: rgba(0, 0, 0, .08); }
.gsky-products--light .gsky-product-card__title { color: #13324a; }
.gsky-products--light .gsky-product-card__specs { color: rgba(0, 0, 0, .6); }
.gsky-products--light .gsky-product-card__cat { color: #0e7a33; }
.gsky-products--light .gsky-product-card__price { color: #b9862d; }
.gsky-products--light .gsky-products__heading { color: #13324a; }


/* =============================================================================
   ARCHIVE  (/san-pham/  and  /loai-san-pham/{slug}/)
   ========================================================================== */

.gsky-products-archive {
	background: #01211b;
	color: #eaf2ec;
	padding: 60px 0 72px;
}
.gsky-products-archive .gsky-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.gsky-products-archive__head { text-align: center; margin-bottom: 30px; }
.gsky-products-archive__eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #8fe6ad;
}
.gsky-products-archive__title {
	margin: 8px 0 0;
	font-size: clamp(26px, 4vw, 40px);
	color: #ffffff;
}
.gsky-products-archive__filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 34px;
}
.gsky-products-archive__filter a {
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, .82);
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .16);
	text-decoration: none !important;
	transition: .15s;
}
.gsky-products-archive__filter a:hover { border-color: rgba(143, 230, 173, .5); }
.gsky-products-archive__filter a.is-active {
	color: #0a2e22;
	background: #8fe6ad;
	border-color: #8fe6ad;
}

.gsky-products-archive .gsky-pagination,
.gsky-products-archive .wp-pagenavi {
	margin-top: 40px;
	text-align: center;
}
.gsky-products-archive .wp-pagenavi a,
.gsky-products-archive .wp-pagenavi span {
	display: inline-block;
	min-width: 40px;
	padding: 8px 10px;
	margin: 0 3px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .16);
	color: #eaf2ec;
	text-decoration: none;
}
.gsky-products-archive .wp-pagenavi span.current,
.gsky-products-archive .wp-pagenavi a:hover {
	background: #8fe6ad;
	border-color: #8fe6ad;
	color: #0a2e22;
}


/* =============================================================================
   SINGLE PRODUCT  (/san-pham/{slug}/)
   ========================================================================== */

.gsky-product-detail {
	background: #01211b;
	color: #eaf2ec;
	padding: 48px 0 72px;
}
.gsky-product-detail .gsky-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}
.gsky-product-detail__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: rgba(255, 255, 255, .7);
	text-decoration: none;
	margin-bottom: 18px;
}
.gsky-product-detail__back:hover { color: #8fe6ad; }

.gsky-product-detail__row {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 40px;
	align-items: start;
}
@media (max-width: 860px) {
	.gsky-product-detail__row { grid-template-columns: 1fr; gap: 26px; }
}

.gsky-product-detail__gallery { display: flex; flex-direction: column; gap: 12px; }
.gsky-product-detail__gallery-main {
	width: 100%;
	aspect-ratio: 3 / 2;
	border-radius: 14px;
	background: #123227 center / cover no-repeat;
}
.gsky-product-detail__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.gsky-product-detail__thumbs img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .12);
	transition: border-color .15s;
}
.gsky-product-detail__thumbs img:hover,
.gsky-product-detail__thumbs img.is-active { border-color: #8fe6ad; }

.gsky-product-detail__cat {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #8fe6ad;
}
.gsky-product-detail__title {
	margin: 6px 0 4px;
	font-size: clamp(22px, 3.4vw, 32px);
	color: #ffffff;
}
.gsky-product-detail__price {
	font-size: 22px;
	font-weight: 800;
	color: #ffd98a;
	margin-bottom: 18px;
}
.gsky-product-detail__specs {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 22px;
	font-size: 14px;
}
.gsky-product-detail__specs th,
.gsky-product-detail__specs td {
	text-align: left;
	padding: 10px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	vertical-align: top;
}
.gsky-product-detail__specs th {
	width: 42%;
	font-weight: 600;
	color: rgba(255, 255, 255, .6);
}
.gsky-product-detail__specs td { color: #ffffff; font-weight: 600; }

.gsky-product-detail__content {
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .82);
	margin-bottom: 24px;
}
.gsky-product-detail__form {
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	padding: 22px;
}
.gsky-product-detail__form h3 { margin: 0 0 14px; color: #fff; font-size: 18px; }
