/* ==========================================================
   D2S Theme — bulk-save.css
   Loads ONLY on the dedicated Bulk & Save page. The hero banner
   itself lives in bulk-save-banner.css; this file covers everything
   below it: value strip, two-paths, explore (search+categories),
   discovery tabs, catalog header, product-card bulk-info line.
   Page flow: hero > value-strip > two-paths > explore > discovery
   > catalog (filters + grid).
   ========================================================== */

/* ---------- Trust strip (angled dark-green "Shop With CONFIDENCE"
   panel + icon row) — same visual language as the homepage's own
   template-parts/trust-badges.php, own class names/4-column grid
   so this file stays self-contained on the Bulk & Save page. ---------- */
.d2s-bs-trust-strip {
	position: relative;
	margin-top: -28px;
	z-index: 5;
	padding-bottom: 24px;
}

.d2s-bs-trust-strip-track {
	display: flex;
	align-items: stretch;
	background: #EEF6F3;
	border-radius: 14px;
	box-shadow: 0 10px 26px -10px rgba(8, 83, 76, 0.18);
	overflow: hidden;
	position: relative;
}

.d2s-bs-trust-strip-brand {
	flex-shrink: 0;
	position: relative;
	width: 212px;
	background: linear-gradient(135deg, #0C5A51, #08534C);
	clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
	margin-right: -18px;
}

.d2s-bs-trust-strip-brand-center {
	position: absolute;
	top: 50%;
	left: 24px;
	right: 40px;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.d2s-bs-trust-strip-brand-line1,
.d2s-bs-trust-strip-brand-line2 {
	margin: 0;
}

.d2s-bs-trust-strip-brand-line1 {
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.2;
	white-space: nowrap;
}

.d2s-bs-trust-strip-brand-line2 {
	position: relative;
	display: inline-block;
	width: fit-content;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #fff;
	line-height: 1.25;
	white-space: nowrap;
}

.d2s-bs-trust-strip-brand-line2::after {
	content: '';
	display: block;
	width: 55%;
	height: 3px;
	margin-top: 4px;
	border-radius: 2px;
	background: var(--d2s-color-gold);
}

.d2s-bs-trust-strip-items {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	position: relative;
	z-index: 1;
}

.d2s-bs-trust-strip-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 12px;
	position: relative;
}

.d2s-bs-trust-strip-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 20%;
	bottom: 20%;
	width: 1px;
	background: rgba(8, 83, 76, 0.12);
}

.d2s-bs-trust-strip-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--d2s-color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 8px rgba(8, 83, 76, 0.12);
}

.d2s-bs-trust-strip-icon svg {
	width: 18px;
	height: 18px;
}

.d2s-bs-trust-strip-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.d2s-bs-trust-strip-text strong {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.1px;
	color: var(--d2s-color-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.d2s-bs-trust-strip-text small {
	font-size: 10.5px;
	color: #4C6B65;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 1024px) {
	.d2s-bs-trust-strip {
		display: none;
	}
}

/* ---------- Two ways to order ---------- */
.d2s-bs-paths {
	padding: 44px 0 8px;
}

.d2s-bs-paths-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.d2s-bs-path-card {
	background: #fff;
	border: 1px solid var(--d2s-color-border);
	border-radius: 14px;
	padding: 26px 28px;
}

.d2s-bs-path-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #EAF5F2;
	color: var(--d2s-color-primary);
	margin-bottom: 14px;
}

.d2s-bs-path-ic svg {
	width: 24px;
	height: 24px;
}

.d2s-bs-path-card h3 {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--d2s-color-text);
}

.d2s-bs-path-card p {
	font-size: 13.5px;
	color: var(--d2s-color-text-muted);
	line-height: 1.6;
	margin: 0 0 16px;
}

.d2s-bs-path-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--d2s-color-primary);
}

.d2s-bs-path-link:hover {
	color: var(--d2s-color-accent);
}

.d2s-bs-path-link span {
	transition: transform 0.2s ease;
}

.d2s-bs-path-link:hover span {
	transform: translateX(3px);
}

@media (max-width: 782px) {
	.d2s-bs-paths-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Explore: search + categories, one visual band ---------- */
.d2s-bs-explore {
	padding: 32px 0 8px;
}

.d2s-bs-explore-head {
	text-align: left;
	margin-bottom: 18px;
}

.d2s-bs-explore-head h2 {
	font-size: 21px;
	font-weight: 700;
	margin: 0 0 3px;
	color: var(--d2s-color-text);
	letter-spacing: -0.2px;
}

.d2s-bs-explore-head p {
	font-size: 13px;
	color: var(--d2s-color-text-muted);
	margin: 0;
	line-height: 1.3;
}

.d2s-bulk-search-bar-form {
	display: flex;
	max-width: 640px;
	margin: 0 auto 24px;
	background: #fff;
	border: 1px solid var(--d2s-color-border);
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 6px 18px -8px rgba(8, 83, 76, 0.18);
}

.d2s-bulk-search-bar-form input {
	flex: 1;
	border: none;
	outline: none;
	padding: 13px 20px;
	font-size: 14px;
	color: var(--d2s-color-text);
}

.d2s-bulk-search-bar-form button {
	background: var(--d2s-color-primary);
	border: none;
	padding: 0 22px;
	cursor: pointer;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.d2s-bulk-search-bar-form button:hover {
	background: var(--d2s-color-accent);
}

.d2s-bulk-categories-track {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 16px;
}

.d2s-bulk-cat-card {
	position: relative;
	width: 180px;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	display: block;
	transition: transform 0.2s ease;
}

.d2s-bulk-cat-card:hover {
	transform: translateY(-2px);
}

.d2s-bulk-cat-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.d2s-bulk-cat-card:hover img {
	transform: scale(1.05);
}

.d2s-bulk-cat-card--noimg {
	background: linear-gradient(135deg, #0C5A51, #08534C);
}

.d2s-bulk-cat-card-fallback-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: rgba(255, 255, 255, 0.3);
}

.d2s-bulk-cat-card-fallback-icon svg {
	width: 48px;
	height: 48px;
}

.d2s-bulk-cat-card-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0) 100%);
}

.d2s-bulk-cat-card-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	line-height: 1.25;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.d2s-bulk-cat-card-arrow {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.d2s-bulk-cat-card:hover .d2s-bulk-cat-card-arrow {
	transform: scale(1.08);
}

@media (max-width: 1024px) {
	.d2s-bulk-search-bar-form {
		max-width: none;
	}
	.d2s-bulk-categories-track {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 4px;
	}
	.d2s-bulk-cat-card {
		flex-shrink: 0;
		width: 140px;
	}
}

/* ---------- Discovery tabs (Featured / Lowest MOQ / Best Savings) ---------- */
.d2s-bs-discovery {
	padding: 44px 0;
}

.d2s-bs-discovery-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--d2s-color-border);
}

.d2s-bs-discovery-head h2 {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 12px;
	color: var(--d2s-color-text);
	flex: 1 1 100%;
}

.d2s-bs-discovery-tabs {
	display: flex;
	gap: 8px;
}

.d2s-bs-discovery-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 0 6px 12px;
	margin-right: 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--d2s-color-text-muted);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.d2s-bs-discovery-tab:hover {
	color: var(--d2s-color-text);
}

.d2s-bs-discovery-tab.is-active {
	color: var(--d2s-color-primary);
	border-bottom-color: var(--d2s-color-primary);
}

.d2s-bs-discovery-pane {
	display: none;
}

.d2s-bs-discovery-pane.is-active {
	display: block;
}

@media (max-width: 560px) {
	.d2s-bs-discovery-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		width: 100%;
	}
	.d2s-bs-discovery-tab {
		white-space: nowrap;
		flex-shrink: 0;
	}
}

/* ---------- Product card bulk info line (MOQ/savings on cards) ---------- */
.d2s-card-bulk-info {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 2px 0 4px;
}

.d2s-card-moq {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--d2s-color-text-muted);
	background: #F2F2F2;
	padding: 3px 8px;
	border-radius: 4px;
}

.d2s-card-savings {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--d2s-color-primary);
	background: #EAF5F2;
	padding: 3px 8px;
	border-radius: 4px;
}

/* ---------- Full-catalog section (filters + grid) ---------- */
.d2s-bs-catalog {
	padding-top: 44px;
}

.d2s-bs-catalog-header {
	margin-bottom: 20px;
}

.d2s-bs-catalog-header h1 {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 6px;
	color: var(--d2s-color-text);
}

.d2s-bs-catalog-header p {
	font-size: 13.5px;
	color: var(--d2s-color-text-muted);
	margin: 0;
}

/* ---------- Custom & Personalized Orders page (page-custom-orders.php) ---------- */
.d2s-co-hero {
	background: #F7FBFA;
	border-bottom: 1px solid var(--d2s-color-border);
	padding: 44px 0;
	text-align: center;
}

.d2s-co-hero h1 {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 10px;
	color: var(--d2s-color-text);
}

.d2s-co-hero p {
	font-size: 14px;
	color: var(--d2s-color-text-muted);
	max-width: 640px;
	margin: 0 auto 24px;
	line-height: 1.6;
}

.d2s-co-hero .d2s-bulk-search-bar-form {
	margin: 0 auto;
}

/* ---------- View Full Catalog CTA (replaces the old filters+grid) ---------- */
.d2s-bs-full-catalog-cta {
	padding: 12px 0 56px;
	text-align: center;
}

.d2s-bs-full-catalog-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 32px;
	background: var(--d2s-color-primary);
	color: #fff;
	font-weight: 700;
	font-size: 14.5px;
	border-radius: var(--d2s-radius, 8px);
	text-decoration: none;
}

.d2s-bs-full-catalog-link:hover {
	background: var(--d2s-color-accent);
	color: #fff;
}

.d2s-bs-full-catalog-cta p {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: var(--d2s-color-text-muted);
}

/* ---------- Half-half promo split (admin-uploaded banner images) ---------- */
.d2s-bs-promo-split {
	padding: 8px 0 44px;
}

.d2s-bs-promo-split-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.d2s-bs-promo-split-grid.d2s-bs-promo-split-single {
	grid-template-columns: 1fr;
}

.d2s-bs-promo-banner {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	line-height: 0;
}

.d2s-bs-promo-banner-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

@media (max-width: 782px) {
	.d2s-bs-promo-split-grid {
		grid-template-columns: 1fr;
	}
}
