/**
 * KSF Mua Si Wholesale Page Stylesheet
 * Native CSS decoupled from Elementor
 *
 * ==========================================================================
 * [DPS CUSTOM FIX] - 2026-10-17 - Dev: DPS
 * Mục đích: Decouple trang Mua Sỉ khỏi Elementor, chuẩn hóa 1:1 theo bản thiết kế
 *           PDF gốc ("Mua Sỉ - Khải San Food.pdf"). Tải thuần nhẹ, siêu tốc,
 *           giữ trọn vẹn bố cục, màu sắc và typography nguyên bản.
 * ==========================================================================
 */

/* Triệt tiêu hoàn toàn breadcrumb / title banner thừa của theme Freshio */
.page-template-wholesale .freshio-breadcrumb,
.page-id-51466 .freshio-breadcrumb {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

.page-template-wholesale #content.site-content {
	padding: 0 !important;
	margin: 0 !important;
}
.page-template-wholesale #content.site-content .col-full {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ksf-wholesale-wrapper {
	width: 100%;
	overflow-x: hidden;
	color: #1f2937;
	font-family: inherit;
	background-color: #ffffff;
}

.ksf-ws-container {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   0. TOP BREADCRUMB / PAGE TITLE BANNER
   ------------------------------------------------------------------------- */
.ksf-ws-breadcrumb-banner {
	background-color: #f7f3ed;
	padding: 42px 0 38px;
	width: 100%;
	border-bottom: 1px solid #efe8dd;
}
.ksf-ws-breadcrumb-title {
	font-size: 38px;
	font-weight: 700;
	color: #0a472e;
	margin: 0 0 10px;
	line-height: 1.2;
}
.ksf-ws-breadcrumb-nav {
	font-size: 14px;
	font-weight: 500;
	color: #718096;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ksf-ws-breadcrumb-nav a {
	color: #008848;
	text-decoration: none;
	transition: color 0.2s;
}
.ksf-ws-breadcrumb-nav a:hover {
	text-decoration: underline;
}
.ksf-ws-breadcrumb-nav .delimiter {
	color: #a0aec0;
}
.ksf-ws-breadcrumb-nav .current {
	color: #1a202c;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   SUB-BADGES & COMMON HEADERS
   ------------------------------------------------------------------------- */
.ksf-ws-subbadge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: 0.3px;
}
.ksf-ws-subbadge img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}
.ksf-ws-subbadge.green-badge {
	color: #008848;
}
.ksf-ws-subbadge.yellow-badge {
	color: #eab308;
}

.ksf-ws-sec-header {
	text-align: center;
	margin-bottom: 45px;
}
.ksf-ws-sec-title {
	font-size: 34px;
	line-height: 1.3;
	font-weight: 700;
	color: #008848;
	margin: 8px 0 0;
}

/* -------------------------------------------------------------------------
   1. HERO SECTION
   ------------------------------------------------------------------------- */
.ksf-ws-hero {
	padding: 60px 0 50px;
	background: #ffffff;
}
.ksf-ws-hero-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}
.ksf-ws-hero-media {
	flex: 1;
	max-width: 520px;
	text-align: center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: url('https://khaisanfood.vn/wp-content/uploads/2025/06/khoi-khai-san-1-1-e1749450908430.png');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	padding: 20px 0;
}
.ksf-ws-hero-img {
	max-width: 100%;
	height: auto;
	display: block;
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}
.ksf-ws-hero-content {
	flex: 1.15;
}
.ksf-ws-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #eab308;
	font-size: 19px;
	font-weight: 700;
	font-family: Georgia, serif;
	margin-bottom: 14px;
}
.ksf-ws-hero-badge img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}
.ksf-ws-hero-title {
	font-size: 40px;
	line-height: 1.25;
	font-weight: 700;
	color: #00a651;
	margin: 0 0 20px;
}
.ksf-ws-hero-desc {
	font-size: 15px;
	line-height: 1.7;
	color: #374151;
	margin-bottom: 16px;
}
.ksf-ws-hero-cta {
	margin-top: 28px;
}
.ksf-ws-btn-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #008848;
	color: #ffffff !important;
	padding: 13px 32px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(0, 136, 72, 0.28);
	transition: all 0.2s ease-in-out;
}
.ksf-ws-btn-pill:hover {
	background: #006d38;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 136, 72, 0.36);
	color: #ffffff !important;
}
.ksf-ws-btn-symbol {
	font-size: 18px;
	line-height: 1;
}

/* -------------------------------------------------------------------------
   2. TWO BANNERS SECTION (70% + 30%)
   ------------------------------------------------------------------------- */
.ksf-ws-banners-section {
	padding: 20px 0 60px;
}
.ksf-ws-banners-grid {
	display: flex;
	gap: 20px;
	align-items: stretch;
}
.ksf-ws-banner-card {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	background: #f3f4f6;
}
.ksf-ws-banner-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.ksf-ws-banner-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ksf-ws-banner-card.banner-70 {
	flex: 0 0 calc(70% - 10px);
}
.ksf-ws-banner-card.banner-30 {
	flex: 0 0 calc(30% - 10px);
}

/* -------------------------------------------------------------------------
   3. BENEFITS SECTION (6 CARDS WITH REAL PHOTOS, DASHED ICONS & ARROWS)
   ------------------------------------------------------------------------- */
.ksf-ws-benefits-section {
	padding: 80px 0 90px;
	background-color: #ebf8ef;
}
.ksf-ws-benefits-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	align-items: flex-start;
}
.ksf-ws-benefit-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.25s ease;
}
.ksf-ws-benefit-card:hover {
	transform: translateY(-4px);
}
.ksf-ws-benefit-media {
	width: 100%;
	height: 260px;
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	background: #e5e7eb;
	position: relative;
}
.ksf-ws-benefit-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ksf-ws-benefit-icon-badge {
	position: absolute;
	top: 65px;
	left: 50%;
	transform: translateX(-50%);
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: #008848;
	border: 3px dashed #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	z-index: 5;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.ksf-ws-benefit-pill {
	width: 92%;
	background: #ffffff;
	border-radius: 28px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	padding: 22px 14px 28px;
	text-align: center;
	position: relative;
	margin-top: -30px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 140px;
	box-sizing: border-box;
}
.ksf-ws-benefit-title {
	font-size: 15px;
	font-weight: 700;
	color: #0a472e;
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.ksf-ws-benefit-desc {
	font-size: 13px;
	color: #4b5563;
	line-height: 1.45;
	margin: 0;
}
.ksf-ws-benefit-arrow-btn {
	position: absolute;
	bottom: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #F2D338;
	color: #ffffff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(242, 211, 56, 0.45);
	text-decoration: none;
	transition: transform 0.2s, background 0.2s;
	z-index: 4;
}
.ksf-ws-benefit-arrow-btn:hover {
	background: #e5c325;
	transform: translateX(-50%) scale(1.1);
	color: #ffffff !important;
}

/* -------------------------------------------------------------------------
   4. BRANDS SECTION (GREEN BORDER, BEIGE BOX, NO PDF BADGE)
   ------------------------------------------------------------------------- */
.ksf-ws-brands-section {
	padding: 80px 0;
	background-color: #ffffff;
}
.ksf-ws-brands-header-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 35px;
}
.ksf-ws-brands-header-left .ksf-ws-sec-title {
	text-align: left;
	margin: 8px 0 0;
}
.ksf-ws-brands-nav-arrows {
	display: flex;
	gap: 10px;
}
.ksf-ws-brand-nav-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #008848;
	color: #ffffff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	box-shadow: 0 4px 12px rgba(0, 136, 72, 0.25);
}
.ksf-ws-brand-nav-btn:hover {
	background: #006d38;
	transform: scale(1.05);
}
.ksf-ws-brands-carousel {
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 6px 0 16px;
}
.ksf-ws-brands-carousel::-webkit-scrollbar {
	display: none;
}
.ksf-ws-brands-track {
	display: flex;
	gap: 20px;
}
.ksf-ws-brand-card {
	flex: 0 0 calc(25% - 15px);
	border: 2px solid #008848;
	border-radius: 16px;
	background: #ffffff;
	padding: 14px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
	box-sizing: border-box;
}
.ksf-ws-brand-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0, 136, 72, 0.15);
}
.ksf-ws-brand-box {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #faf6ef;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	margin-bottom: 12px;
}
.ksf-ws-brand-box img {
	max-width: 95%;
	max-height: 90%;
	object-fit: contain;
	display: block;
}
.ksf-ws-brand-name {
	font-size: 17px;
	font-weight: 700;
	color: #008848;
	text-align: center;
	margin: 4px 0 0;
}

/* -------------------------------------------------------------------------
   5. STEPS SECTION (DIAMOND PHOTOS & GREEN CIRCLE BADGES)
   ------------------------------------------------------------------------- */
.ksf-ws-steps-section {
	padding: 80px 0 90px;
	background-color: #ffffff;
	background-image: url('https://khaisanfood.vn/wp-content/uploads/2025/06/testi_bg_2.png');
	background-repeat: repeat;
}
.ksf-ws-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: flex-start;
	max-width: 1050px;
	margin: 0 auto;
}
.ksf-ws-step-col.step-2 {
	margin-top: 40px;
}
.ksf-ws-step-visual {
	position: relative;
	width: 250px;
	height: 250px;
	margin: 20px auto 20px;
}
.ksf-ws-step-circle-badge {
	position: absolute;
	top: 8px;
	left: 16px;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #008848;
	border: 4px solid #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
}
.ksf-ws-step-circle-badge img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	display: block;
}
.ksf-ws-step-diamond {
	width: 195px;
	height: 195px;
	transform: rotate(45deg);
	border-radius: 36px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	border: 4px solid #ffffff;
	margin: 25px auto 0;
	position: relative;
}
.ksf-ws-step-diamond img {
	width: 145%;
	height: 145%;
	object-fit: cover;
	transform: rotate(-45deg) translate(-15%, -15%);
	display: block;
}
.ksf-ws-step-num {
	font-size: 20px;
	font-weight: 700;
	color: #008848;
	margin: 0 0 10px;
	text-align: center;
}
.ksf-ws-step-text {
	font-size: 14px;
	color: #374151;
	line-height: 1.6;
	text-align: center;
	max-width: 280px;
	margin: 0 auto;
}

/* -------------------------------------------------------------------------
   6. BOTTOM SECTION: FORM ĐĂNG KÝ & CHIA SẺ CỦA KHÁCH HÀNG
   ------------------------------------------------------------------------- */
.ksf-ws-bottom-section {
	padding: 80px 0 100px;
	background-color: #ebf8ef;
}
.ksf-ws-bottom-layout {
	display: flex;
	gap: 36px;
	align-items: stretch;
}
.ksf-ws-card-white {
	background-color: #ffffff;
	background-image: url('https://khaisanfood.vn/wp-content/uploads/2025/06/testi_bg_2.png');
	background-repeat: repeat;
	border-radius: 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
	padding: 40px 36px;
	box-sizing: border-box;
}
.ksf-ws-form-box {
	flex: 1.15;
}
.ksf-ws-card-heading {
	font-size: 32px;
	font-weight: 700;
	color: #00a651;
	margin: 0 0 24px;
	line-height: 1.3;
}
.ksf-ws-testimonials-box {
	flex: 0.95;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ksf-ws-testimonials-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}
.ksf-ws-testimonials-content {
	flex: 1;
}
.ksf-ws-testimonials-quote-art {
	flex: 0 0 115px;
	text-align: right;
}
.ksf-ws-testimonials-quote-art img {
	width: 115px;
	height: auto;
	display: block;
}

.ksf-ws-review-slide {
	display: none;
}
.ksf-ws-review-slide.active {
	display: block;
	animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}
.ksf-ws-review-quote {
	font-size: 16px;
	line-height: 1.65;
	color: #374151;
	margin: 0 0 16px;
}
.ksf-ws-review-author {
	font-size: 15px;
	font-weight: 700;
	color: #008848;
}
.ksf-ws-review-dots {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}
.ksf-ws-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #d1d5db;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.25s ease;
}
.ksf-ws-dot.active {
	background: #008848;
	width: 24px;
	border-radius: 6px;
}

/* WPForms styling tweaks */
.ksf-ws-form-body div.wpforms-container-full {
	margin: 0 !important;
}
.ksf-ws-form-body .wpforms-form .wpforms-field {
	padding: 8px 0 !important;
	margin: 0 !important;
}
.ksf-ws-form-body .wpforms-form .wpforms-field-label {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #374151 !important;
	margin-bottom: 6px !important;
}
.ksf-ws-form-body .wpforms-form input[type="text"],
.ksf-ws-form-body .wpforms-form input[type="email"],
.ksf-ws-form-body .wpforms-form input[type="tel"],
.ksf-ws-form-body .wpforms-form select,
.ksf-ws-form-body .wpforms-form textarea {
	width: 100% !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	font-size: 14px !important;
	color: #111827 !important;
	background: #ffffff !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s !important;
}
.ksf-ws-form-body .wpforms-form input:focus,
.ksf-ws-form-body .wpforms-form textarea:focus {
	border-color: #008848 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.12) !important;
}
.ksf-ws-form-body .wpforms-form .wpforms-submit-container {
	padding: 12px 0 0 !important;
	margin: 0 !important;
}
.ksf-ws-form-body .wpforms-form button.wpforms-submit {
	width: 100% !important;
	height: 48px !important;
	background: #008848 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	cursor: pointer !important;
	transition: background 0.2s ease !important;
}
.ksf-ws-form-body .wpforms-form button.wpforms-submit:hover {
	background: #006d38 !important;
}

.ksf-ws-form-direct-contact {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px dashed #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
	color: #4b5563;
}
.ksf-ws-hotline-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eaf6ef;
	color: #008848 !important;
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s ease;
}
.ksf-ws-hotline-pill:hover {
	background: #008848;
	color: #ffffff !important;
}

/* -------------------------------------------------------------------------
   RESPONSIVE (TABLET & MOBILE)
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ksf-ws-benefits-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
	.ksf-ws-brand-card {
		flex: 0 0 calc(33.333% - 14px);
	}
}

@media (max-width: 992px) {
	.ksf-ws-hero-inner {
		flex-direction: column-reverse;
		text-align: center;
		gap: 32px;
	}
	.ksf-ws-hero-media {
		max-width: 420px;
	}
	.ksf-ws-hero-badge {
		margin-left: auto;
		margin-right: auto;
	}
	.ksf-ws-hero-cta {
		display: flex;
		justify-content: center;
	}
	.ksf-ws-banners-grid {
		flex-direction: column;
	}
	.ksf-ws-banner-card.banner-70,
	.ksf-ws-banner-card.banner-30 {
		flex: 0 0 100%;
		width: 100%;
	}
	.ksf-ws-brand-card {
		flex: 0 0 calc(50% - 10px);
	}
	.ksf-ws-steps-grid {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin-left: auto;
		margin-right: auto;
	}
	.ksf-ws-step-col.step-2 {
		margin-top: 0;
	}
	.ksf-ws-bottom-layout {
		flex-direction: column;
		gap: 32px;
	}
	.ksf-ws-form-box,
	.ksf-ws-testimonials-box {
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 640px) {
	.ksf-ws-breadcrumb-banner {
		padding: 28px 0 24px;
	}
	.ksf-ws-breadcrumb-title {
		font-size: 28px;
	}
	.ksf-ws-hero {
		padding: 30px 0;
	}
	.ksf-ws-hero-title {
		font-size: 28px;
	}
	.ksf-ws-sec-title {
		font-size: 24px;
	}
	.ksf-ws-card-heading {
		font-size: 24px;
	}
	.ksf-ws-benefits-grid {
		grid-template-columns: 1fr;
		max-width: 320px;
		margin: 0 auto;
		gap: 36px;
	}
	.ksf-ws-brand-card {
		flex: 0 0 80%;
	}
	.ksf-ws-card-white {
		padding: 28px 20px;
	}
	.ksf-ws-testimonials-inner {
		flex-direction: column-reverse;
		text-align: center;
	}
	.ksf-ws-review-dots {
		justify-content: center;
	}
}
