/* Trang Cửa hàng /san-pham/ — khổ MÁY TÍNH (>700px), 01/11/2026.
 *
 * Anh Mừng gửi mẫu thẻ sản phẩm kiểu Finish: dải màu trên đầu thẻ, tên chữ in
 * hoa căn giữa, mô tả ngắn, ảnh sản phẩm nằm dưới. Froga giữ thêm giá + nút mua
 * (cửa hàng phải mua được ngay trên thẻ). Thứ tự hiện đổi bằng `order` +
 * `display: contents` chứ không đổi HTML: CSS điện thoại trong dieu-huong.css
 * bám theo chuỗi style của thẻ (div[style*="height:240px"]…), đổi HTML là vỡ
 * bản điện thoại. Mọi luật ở đây nằm trong @media (min-width: 701px).
 *
 * Màu theo từng mã qua data-sp (theme.mjs gắn). Từ 01/11/2026 thẻ đổi sang kiểu
 * "máy mở cửa" như trang chủ (xem ghi chú ở .froga-the-sp bên dưới).
 */

@media (min-width: 701px) {
	/* Phần đầu trang: tiêu đề chữ in hoa như trang chủ */
	.post-type-archive-product h1[style*="Be Vietnam Pro"] {
		text-transform: uppercase; letter-spacing: .02em;
		font-size:clamp(29px,4.2vw,52px) !important; line-height: 1.24 !important;
	}

	/* Lưới: đủ 4 thẻ một hàng */
	.post-type-archive-product [data-rail] {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 28px !important; padding-top: 16px; align-items: stretch;
	}

	/* Kiểu "máy mở cửa" như ba thẻ trang chủ (anh Mừng 01/11/2026: "thẻ sản phẩm bên
	 * trang cửa hàng làm luôn"). Trên: máy rửa bát mở cửa chỉ minh hoạ (.froga-may,
	 * theme.mjs chèn), sản phẩm TÁCH NỀN (.froga-anh-tach, ảnh trang chủ) đứng trên
	 * cửa; ảnh nền trắng gốc ẩn đi (đặt trước lòng máy tối sẽ lộ ô trắng). Dưới: tấm
	 * thông tin trắng hợp nền kem của trang (khối chữ div:nth-child(2) của khuôn),
	 * nhãn bước của dữ liệu đặt lên đầu tấm, giá + nút Mua giữ nguyên để mua ngay.
	 * Kích thước hình theo % của khung ảnh (tỉ lệ 336:378) nên co đều theo cột.
	 * Thứ tự: muối → viên rửa → nước làm bóng → bộ ba. Viên rửa ánh vàng. */
	.froga-the-sp {
		position: relative; overflow: visible !important;
		background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	}
	.froga-the-sp[data-sp="daily-salt"] { order: 1; }
	.froga-the-sp[data-sp="daily-clean"] { order: 2; }
	.froga-the-sp[data-sp="aqua-shine"] { order: 3; }
	.froga-the-sp[data-sp="combo-bo-3"] { order: 4; }
	.froga-the-sp:hover { transform: none !important; box-shadow: none !important; }

	/* khung ảnh = khung máy */
	.froga-the-sp > div:first-child {
		position: relative !important; z-index: 3; height: auto !important; aspect-ratio: 336 / 378;
		background: none !important; overflow: visible !important;
		/* z-index + overflow: nhãn bước (con của khung, đặt dưới khung) nằm trên tấm thông tin;
		 * một luật chung ép overflow:hidden cho khung ảnh thẻ nên phải !important */
	}
	.froga-the-sp > div:first-child:has(.froga-anh-tach) > img:not(.froga-anh-tach) { display: none !important; }
	.froga-the-sp .froga-may { display: block; position: absolute; inset: 0; }
	.froga-the-sp .ftc-may-than {
		position: absolute; left: 14.6%; width: 70.8%; top: 0; height: 65.6%; border-radius: 8px 8px 0 0;
		background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 1px, rgba(0, 0, 0, .02) 1px 3px),
			linear-gradient(90deg, #8A949A 0, #C9D0D4 18%, #E8ECEE 50%, #C9D0D4 82%, #8A949A 100%);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 28px rgba(30, 59, 39, .18);
	}
	.froga-the-sp .ftc-may-long {
		position: absolute; left: 4.6%; right: 4.6%; top: 4.4%; bottom: 0; overflow: hidden;
		background: radial-gradient(70% 55% at 50% 0, rgba(190, 255, 215, .16), rgba(190, 255, 215, 0) 70%),
			repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px),
			linear-gradient(180deg, #3F4B45 0, #26302B 55%, #1A211E 100%);
		box-shadow: inset 0 8px 16px rgba(0, 0, 0, .45), inset 6px 0 10px rgba(0, 0, 0, .3), inset -6px 0 10px rgba(0, 0, 0, .3);
	}
	.froga-the-sp .ftc-may-long::before {
		content: ""; position: absolute; left: 30%; right: 30%; top: 3.5%; height: 3px; border-radius: 2px;
		background: #7CF29A; box-shadow: 0 0 10px rgba(124, 242, 154, .9);
	}
	.froga-the-sp .ftc-may-long::after {
		content: ""; position: absolute; left: 8%; right: 8%; top: 4%; bottom: 0; opacity: .8; transition: opacity .35s;
		clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
		background: linear-gradient(180deg, rgba(124, 242, 154, .22), rgba(124, 242, 154, .05) 70%, rgba(124, 242, 154, 0));
	}
	.froga-the-sp:hover .ftc-may-long::after { opacity: 1; }
	.froga-the-sp .ftc-may-long i {
		position: absolute; left: 5%; right: 5%; height: 12.5%; border-radius: 3px; opacity: .38;
		background: linear-gradient(#E3E8EA, #AAB4B9) top / 100% 2px no-repeat, linear-gradient(#E3E8EA, #AAB4B9) bottom / 100% 2px no-repeat,
			repeating-linear-gradient(90deg, rgba(214, 221, 224, .85) 0 1.5px, transparent 1.5px 10px);
	}
	.froga-the-sp .ftc-may-long i:nth-child(1) { top: 17%; }
	.froga-the-sp .ftc-may-long i:nth-child(2) { bottom: 10.5%; height: 16.5%; }
	.froga-the-sp .ftc-may-cua {
		position: absolute; left: 1.8%; width: 96.4%; top: 65.6%; height: 28%; z-index: 2;
		clip-path: polygon(13.3% 0, 86.7% 0, 100% 90%, 100% 100%, 0 100%, 0 90%);
		background: linear-gradient(180deg, transparent 90%, #737E84 90%, #4E585D 100%),
			repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 1px, rgba(0, 0, 0, .02) 1px 3px),
			linear-gradient(180deg, #949FA4 0, #C3CBCF 40%, #E1E6E8 90%);
	}
	.froga-the-sp .ftc-may-cua::before {
		content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90%;
		clip-path: polygon(18% 7%, 82% 7%, 92% 86%, 8% 86%);
		background: linear-gradient(180deg, #8A959A 0, #B4BDC1 55%, #D0D7DA 100%);
	}
	/* bóng sản phẩm trên cửa */
	.froga-the-sp > div:first-child::after {
		content: ""; position: absolute; left: 17.5%; width: 65%; bottom: 11.6%; height: 5.3%; z-index: 2;
		background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0) 70%);
	}
	/* sản phẩm tách nền đứng trên cửa */
	.froga-the-sp .froga-anh-tach {
		display: block; position: absolute; left: 50%; bottom: 13.8%; z-index: 3;
		width: auto !important; height: 66.7% !important; max-width: 92%; object-fit: contain !important;
		transform: translateX(-50%); transition: transform .35s ease;
		filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .4));
		-webkit-box-reflect: below 1px linear-gradient(transparent 84%, rgba(255, 255, 255, .22));
	}
	.froga-the-sp[data-sp="combo-bo-3"] .froga-anh-tach { height: 48% !important; max-width: 98%; }
	.froga-the-sp:hover .froga-anh-tach { transform: translateX(-50%) translateY(-6px) scale(1.03); }
	/* quy cách: tem nhỏ góc trên phải khung */
	.froga-the-sp div[style*="bottom:14px;right:14px"] {
		top: 2px !important; bottom: auto !important; right: 0 !important; z-index: 4;
		border-radius: 999px !important; font-size: 12px !important;
	}

	/* tấm thông tin trắng: khối chữ của khuôn */
	.froga-the-sp > div:nth-child(2) {
		position: relative; z-index: 2; margin-top: -8px;
		padding: 46px 20px 20px !important; gap: 6px !important;
		background: #FFFFFF; border-radius: 16px;
		box-shadow: inset 0 0 0 1px #E4DDC9, 0 14px 30px rgba(30, 59, 39, .08);
	}
	/* nhãn bước của dữ liệu ("Làm mềm nước"…): chữ xanh có gạch, đầu tấm thông tin */
	.froga-the-sp div[style*="top:14px;left:14px"] {
		top: calc(100% + 20px) !important; left: 20px !important; z-index: 4;
		background: none !important; color: #23773C !important; padding: 0 !important; border-radius: 0 !important;
		font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: 1.4px !important; white-space: nowrap;
	}
	.froga-the-sp div[style*="top:14px;left:14px"]::before {
		content: ""; display: inline-block; width: 20px; height: 2px; margin-right: 8px; vertical-align: middle; background: currentColor;
	}
	.froga-the-sp[data-sp="combo-bo-3"] > div:first-child::before {
		content: "Đủ bộ ba món"; position: absolute; top: calc(100% + 20px); left: 20px; z-index: 4; padding-left: 28px;
		background: linear-gradient(currentColor, currentColor) 0 50% / 20px 2px no-repeat;
		color: #23773C; font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap;
	}
	/* tên */
	.froga-the-sp a.x4, .froga-the-sp > div:nth-child(2) > a {
		display: block; color: #1A582C !important; font-size: 17px !important; line-height: 1.3 !important;
		text-transform: uppercase; letter-spacing: .02em; min-height: 3.9em;
	}
	/* dòng phụ + mô tả */
	.froga-the-sp [data-mob-an] { font-size: 12.5px !important; min-height: 1.5em; color: #5F6B58 !important; }
	.froga-the-sp div[style*="font-size:14.5px;line-height:1.55"] {
		margin-top: 2px; padding-top: 10px; border-top: 1px solid #EFE9D8;
		font-size: 13.5px !important; line-height: 1.6 !important; color: #42563F !important;
		display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.8em; margin-bottom: 12px;
	}
	/* giá + nút mua */
	.froga-the-sp div[style*="margin-top:auto"] {
		margin-top: auto !important; padding-top: 14px !important; border-top: 1px solid #E4DDC9;   /* giá + nút thẳng hàng giữa các thẻ */
		flex-direction: column; align-items: stretch !important; gap: 12px !important;
	}
	.froga-the-sp div[style*="margin-top:auto"] > div:first-child > div { font-size: 22px !important; color: #1A582C !important; }

	/* viên rửa: ánh vàng */
	.froga-the-sp[data-sp="daily-clean"] .ftc-may-long::before { background: #FCC232; box-shadow: 0 0 10px rgba(252, 194, 50, .95); }
	.froga-the-sp[data-sp="daily-clean"] .ftc-may-long::after { background: linear-gradient(180deg, rgba(252, 194, 50, .3), rgba(252, 194, 50, .07) 70%, rgba(252, 194, 50, 0)); }
	.froga-the-sp[data-sp="daily-clean"] .ftc-may-than { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 2px #FCC232, 0 16px 28px rgba(30, 59, 39, .18); }
	.froga-the-sp[data-sp="daily-clean"] > div:nth-child(2) { background: #FFF8E2; box-shadow: inset 0 0 0 1.5px #FCC232, 0 14px 30px rgba(201, 142, 18, .14); }
	.froga-the-sp[data-sp="daily-clean"] .froga-nut-mua { background: #FCC232 !important; border-color: #FCC232 !important; color: #123F20 !important; }
}

/* Hình máy + ảnh tách nền chỉ dành cho khổ máy tính: điện thoại giữ thẻ cũ. */
@media (max-width: 700px) {
	.froga-the-sp .froga-may, .froga-the-sp .froga-anh-tach { display: none !important; }
}
