/* ---------- Banner đầu trang ---------- */
.spi-product-banner {
	max-width: 1200px;
	margin: 0 auto 20px;
}
.spi-product-banner img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
}

/* ---------- Badge giảm giá ---------- */
.product .onsale {
	background: #cc0000 !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	border-radius: 4px !important;
	padding: 4px 10px !important;
	min-width: unset !important;
	height: auto !important;
	line-height: 1.3 !important;
	top: 10px;
	left: 10px;
}

/* ---------- Mô tả ngắn dạng bullet ---------- */
.spi-feature-list {
	margin: 10px 0 20px;
	padding: 0;
	list-style: none;
}
.spi-feature-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.5;
}
.spi-feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #cc0000;
	font-weight: 700;
}

/* ---------- Feature icon row (4 cột) ---------- */
.spi-feature-icons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 20px 0;
	padding: 16px 10px;
	background: #e6fbfb;
	border-radius: 6px;
}
.spi-feature-icon-item {
	text-align: center;
	padding: 6px;
}
.spi-feature-icon-item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	margin-bottom: 6px;
}
.spi-feature-icon-item h4 {
	font-size: 13px;
	font-weight: 700;
	margin: 4px 0 2px;
}
.spi-feature-icon-item p {
	font-size: 12px;
	color: #555;
	margin: 0;
}
@media (max-width: 600px) {
	.spi-feature-icons { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Bảng thông số kỹ thuật ---------- */
.spi-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
}
.spi-specs-table td {
	border: 1px solid #000;
	padding: 10px 14px;
	font-size: 14px;
}
.spi-specs-table .spi-spec-label {
	background: #cc0000;
	color: #fff;
	font-weight: 700;
	width: 35%;
}
.spi-specs-table .spi-spec-value {
	background: #e6fbfb;
}
@media (max-width: 600px) {
	.spi-specs-table td { font-size: 12px; padding: 8px 10px; }
}

/* ---------- Content block ảnh - text xen kẽ (frontend) ---------- */
.spi-content-block-front {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 30px 0;
	flex-wrap: wrap;
}
.spi-content-block-front.spi-block-right {
	flex-direction: row-reverse;
}
.spi-content-block-front .spi-block-image,
.spi-content-block-front .spi-block-text {
	flex: 1 1 320px;
}
.spi-content-block-front .spi-block-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}
.spi-content-block-front .spi-block-text h3 {
	font-size: 20px;
	margin-top: 0;
	color: #cc0000;
}
.spi-content-block-front .spi-block-text p {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
}

/* ---------- Đánh giá khách hàng ---------- */
.spi-reviews-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eee;
}
.spi-reviews-avg {
	font-size: 28px;
	font-weight: 700;
	color: #cc0000;
}
.spi-reviews-stars {
	color: #f5a623;
	font-size: 18px;
}
.spi-reviews-count {
	color: #777;
	font-size: 13px;
}
.spi-review-card {
	background: #f9f9f9;
	border-radius: 6px;
	padding: 14px 16px;
	margin-bottom: 12px;
}
.spi-review-head {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 14px;
}
.spi-review-date {
	font-weight: 400;
	color: #999;
	font-size: 12px;
}
.spi-review-stars {
	color: #f5a623;
	font-size: 14px;
	margin: 4px 0;
}
.spi-review-title {
	font-weight: 700;
	margin-bottom: 4px;
}
.spi-review-text {
	font-size: 14px;
	color: #444;
	line-height: 1.6;
}

/* =====================================================================
   Restyle tổng thể cho trang mua hàng - giảm cảm giác "mặc định Woo"
   ===================================================================== */

/* ---------- Gallery: thumbnail dọc bên trái ----------
   TẠM TẮT: đoạn CSS này ép display:flex lên .product-gallery nhưng chưa xác minh
   đúng cấu trúc HTML thật của theme "fashion" -> có thể gây vỡ layout 2 cột ảnh/thông tin.
   Sẽ bật lại sau khi có ảnh chụp DevTools (tab Elements) khối .product-gallery thật.
------------------------------------------------------------------------------ */

/* ---------- Giá sản phẩm ---------- */
.summary .price {
	font-size: 30px !important;
	font-weight: 800 !important;
	color: #cc0000 !important;
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 12px 0 18px;
}
.summary .price ins {
	text-decoration: none;
	color: #cc0000;
}
.summary .price del {
	font-size: 17px !important;
	font-weight: 400 !important;
	color: #999 !important;
	opacity: 1 !important;
}

/* ---------- Biến thể dạng nút bấm (swatch) ---------- */
.spi-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 4px;
}
.spi-swatch-btn {
	border: 1.5px solid #ddd;
	background: #fff;
	color: #333;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: all .15s;
}
.spi-swatch-btn:hover {
	border-color: #cc0000;
}
.spi-swatch-btn.selected {
	border-color: #cc0000;
	background: #cc0000;
	color: #fff;
	font-weight: 600;
}
table.variations {
	border: none !important;
}
table.variations td, table.variations th {
	border: none !important;
	padding: 4px 0 !important;
}
table.variations .label {
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	color: #555;
}

/* ---------- Số lượng + nút mua ---------- */
.cart.variations_form, form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}
.quantity .qty {
	height: 46px;
	width: 65px;
	border: 1.5px solid #ddd;
	border-radius: 6px;
	text-align: center;
	font-size: 15px;
}
.single_add_to_cart_button,
.spi-buy-now-button {
	height: 46px;
	padding: 0 26px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	transition: opacity .15s, transform .1s;
}
.single_add_to_cart_button {
	background: #1a1a1a !important;
	color: #fff !important;
}
.single_add_to_cart_button:hover {
	opacity: .88;
}
.spi-buy-now-button {
	background: #cc0000 !important;
	color: #fff !important;
}
.spi-buy-now-button:hover {
	opacity: .88;
}
.single_add_to_cart_button:active,
.spi-buy-now-button:active {
	transform: scale(0.97);
}

/* =====================================================================
   Section liên tục (thay cho tab) - thông số / content block / đánh giá
   ===================================================================== */
.spi-section {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}
.spi-section-title {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 18px;
}
.spi-section-description {
	line-height: 1.7;
	color: #444;
}

/* ---------- Tăng độ ưu tiên để không bị theme "fashion" đè màu nút ---------- */
.single-product div.product .summary form.cart .button.single_add_to_cart_button,
.single-product div.product .summary form.cart button.single_add_to_cart_button,
body.single-product .summary .single_add_to_cart_button {
	background: #1a1a1a !important;
	color: #fff !important;
	border-color: #1a1a1a !important;
}
.single-product div.product .summary form.cart .spi-buy-now-button,
body.single-product .summary .spi-buy-now-button {
	background: #cc0000 !important;
	color: #fff !important;
	border-color: #cc0000 !important;
}
