/**
 * Trang chi tiết sản phẩm phào chỉ — HM-18.
 * Dựng theo https://www.doric.vn/san-pham/fhaa-040.
 *
 * Con số lấy thẳng từ bảng kiểu của bản mẫu: băng đầu hai cột cách nhau 120px
 * đệm 56px 4vw 80px, ô ảnh cao 30vw phủ kín, tên hàng 2rem nét 600, dòng kích
 * thước 0,85rem với nhãn L H W màu đỏ nét 700 và dấu X màu xám, mô tả 1rem nét
 * 300, dải tính năng nền đen mờ 5% đệm 20px 40px chia năm cột, biểu tượng
 * 2,5rem, khối vật tư thi công đệm dọc 80px với tiêu đề 2rem in hoa và bốn ô
 * ảnh cao 24vh bo 8px.
 *
 * Ba chỗ cố ý làm khác bản mẫu, ghi ở CH-26:
 *
 * 1. Phông chữ giữ Manrope của site, không chép Alexandria, đúng QĐ-13.
 * 2. Năm biểu tượng tính năng vẽ bằng SVG thay vì tải năm file ảnh của họ.
 * 3. Thiếu file CAD thì ẩn hẳn nút tải, không để một ô trống.
 *
 * Mọi quy tắc nằm dưới `.ak-cp`.
 */

.ak-cp {
	--cp-do: var(--ak-mau-do);
	--cp-den: var(--ak-mau-muc);
	--cp-xam: var(--ak-mau-mo);

	width: 100%;
	max-width: 100%;
	background: var(--ak-mau-trang);
}

.ak-cp *,
.ak-cp *::before,
.ak-cp *::after {
	box-sizing: border-box;
}

/* Băng đầu
   ------------------------------------------------------------------------- */

.ak-cp-dau {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--ak-cach-6);
	width: 100%;
	padding: var(--ak-cach-6) 4vw 48px;
}

.ak-cp-anh {
	width: 100%;
	height: 56vw;
	background-position: 50%;
	background-size: cover;
	background-repeat: no-repeat;
}

.ak-cp-tin {
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: flex-start;
	gap: 20px;
	width: 100%;
	text-align: left;
}

.ak-cp-ten {
	width: 100%;
	margin: 0;
	color: var(--cp-den);
	font-size: var(--ak-co-h3);
	font-weight: var(--ak-dam-vua);
	line-height: var(--ak-dong-chat);
	text-align: left;
	text-transform: none;
	letter-spacing: var(--ak-gian-khong);
}

.ak-cp-kich-thuoc {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: var(--ak-cach-3);
	width: 100%;
	font-size: var(--ak-co-nho);
	font-weight: var(--ak-dam-thuong);
}

.ak-cp-so-nhom {
	display: flex;
	gap: var(--ak-cach-1);
}

.ak-cp-so-nhan {
	color: var(--ak-lk-chu);
	font-weight: var(--ak-dam-manh);
}

.ak-cp-so-x {
	color: var(--cp-xam);
}

.ak-cp-mo-ta {
	margin: 0;
	color: var(--cp-den);
	font-size: var(--ak-co-chu);
	font-weight: var(--ak-dam-mong);
	line-height: var(--ak-dong-doc);
	text-align: left;
}

.ak-cp-thong-bao:not(:empty) {
	padding: var(--ak-cach-3) 4vw 0;
}

.ak-cp-thong-bao .woocommerce-message,
.ak-cp-thong-bao .woocommerce-error,
.ak-cp-thong-bao .woocommerce-info {
	margin: 0;
	font-size: var(--ak-co-nho);
}

.ak-cp-gia,
.ak-cp-gia .amount {
	color: var(--cp-den);
	font-size: var(--ak-co-h3);
	font-weight: var(--ak-dam-vua);
}

.ak-cp-gia del,
.ak-cp-gia del .amount {
	color: var(--cp-xam);
	font-size: var(--ak-co-chu);
	font-weight: var(--ak-dam-nhe);
	opacity: 1;
}

.ak-cp-gia ins {
	background: none;
	text-decoration: none;
}

.ak-cp-nut-o {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.ak-cp-mua {
	margin: 0;
}

.ak-cp-nut {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 0;
	margin: 0;
	padding: var(--ak-nut-dem);
	color: var(--ak-nut-chinh-chu);
	background: var(--ak-nut-chinh-nen);
	border: 0;
	border-radius: var(--ak-goc-tron);
	box-shadow: none;
	font-size: var(--ak-nut-co);
	font-weight: var(--ak-nut-dam);
	line-height: var(--ak-dong-chat);
	text-transform: none;
	letter-spacing: var(--ak-gian-khong);
	cursor: pointer;
}

.ak-cp-nut:hover {
	color: var(--ak-mau-trang);
	background: var(--ak-mau-do-tham);
}

.ak-cp-cad {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: auto;
}

.ak-cp-cad-hop {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	width: 64px;
	height: 64px;
	padding-bottom: var(--ak-cach-2);
	background: var(--ak-mau-do-dam);
	border-radius: var(--ak-goc-tron);
	clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%);
}

.ak-cp-cad-chu {
	color: var(--ak-mau-trang);
	font-size: var(--ak-co-vua-nho);
	font-weight: var(--ak-dam-manh);
	letter-spacing: .5px;
}

/* Dải tính năng
   ------------------------------------------------------------------------- */

.ak-cp-tinh-nang {
	margin-bottom: 48px;
	padding: 20px 4vw;
	background-color: var(--ak-mau-den-mo-1);
}

.ak-cp-tinh-nang-o {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--ak-cach-5) var(--ak-cach-4);
	width: 100%;
}

.ak-cp-tinh-nang-mot {
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
	gap: var(--ak-cach-3);
	width: 100%;
}

.ak-cp-hinh {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--ak-lk-chu);
}

.ak-cp-tinh-nang-chu {
	font-size: var(--ak-co-nho);
	font-weight: var(--ak-dam-mong);
	text-align: center;
}

/* Hai ảnh minh hoạ
   ------------------------------------------------------------------------- */

.ak-cp-anh-demo {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2vw;
	margin: 0 4vw 48px;
}

.ak-cp-anh-demo img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ak-goc-nho);
}

/* Vật tư thi công
   ------------------------------------------------------------------------- */

.ak-cp-vat-tu {
	display: flex;
	flex-flow: column;
	gap: var(--ak-cach-7);
	padding: 48px 0;
}

.ak-cp-vat-tu-dau {
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
	align-items: center;
	gap: var(--ak-cach-1);
	width: 100%;
}

.ak-cp-vat-tu-ten {
	margin: 0;
	color: var(--ak-mau-muc);
	font-size: var(--ak-co-h3);
	font-weight: var(--ak-dam-nhe);
	line-height: var(--ak-dong-chat);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: -.5px;
}

.ak-cp-vat-tu-o {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	justify-content: space-between;
	align-items: center;
	padding: 0 4vw;
}

.ak-cp-vat-tu-mot {
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
	gap: var(--ak-cach-4);
	width: 100%;
}

.ak-cp-vat-tu-anh {
	width: 100%;
	height: 24vh;
	min-height: 140px;
	background-color: var(--ak-mau-vien);
	background-position: 50%;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: var(--ak-goc-nho);
	overflow: hidden;
}

.ak-cp-vat-tu-chu {
	font-size: var(--ak-co-chu);
	font-weight: var(--ak-dam-mong);
	text-align: center;
}

/* Máy tính
   ------------------------------------------------------------------------- */

@media (min-width: 992px) {

	.ak-cp-dau {
		flex-direction: row;
		align-content: start;
		align-items: center;
		gap: 120px;
		padding: var(--ak-cach-8) 4vw 80px;
	}

	.ak-cp-anh,
	.ak-cp-tin {
		flex: 1 1 0;
		width: 50%;
	}

	.ak-cp-anh {
		height: 30vw;
	}

	.ak-cp-ten {
		font-size: var(--ak-co-h2);
	}

	.ak-cp-tinh-nang {
		margin-bottom: 80px;
		padding: 20px var(--ak-cach-7);
	}

	.ak-cp-tinh-nang-o {
		grid-template-columns: repeat(5, 1fr);
		gap: var(--ak-cach-4);
	}

	.ak-cp-tinh-nang-chu {
		font-size: var(--ak-co-chu);
	}

	/*
	 * Hai ô ảnh phải cao bằng nhau. Bản mẫu đạt được điều đó vì ảnh của họ cắt
	 * sẵn cùng khuôn, ảnh của A Khoa thì đủ mọi tỉ lệ nên phải chốt chiều cao.
	 */
	.ak-cp-anh-demo {
		grid-template-columns: .75fr .4fr;
		grid-template-rows: 32vw;
		margin-bottom: 0;
	}

	.ak-cp-anh-demo img {
		aspect-ratio: auto;
		min-height: 0;
	}

	.ak-cp-vat-tu {
		gap: 80px;
		padding: 80px 0;
	}

	.ak-cp-vat-tu-ten {
		font-size: var(--ak-co-h2);
	}

	.ak-cp-vat-tu-o {
		grid-template-columns: repeat(4, 1fr);
	}
}
