.zbpc {
	--zbpc-per: var(--zbpc-d, 2);
	background: var(--zbpc-bg, #fff5f2);
	padding: 36px 48px 44px;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}
@media (max-width: 1024px) { .zbpc { --zbpc-per: var(--zbpc-t, 2); } }
@media (max-width: 767px)  { .zbpc { --zbpc-per: var(--zbpc-m, 1); padding: 24px 0 30px; } }

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

/* Heading row */
.zbpc .zbpc-head {
	display: flex; align-items: center; justify-content: space-between;
	margin: 0 0 24px; gap: 16px;
}
.zbpc .zbpc-heading {
	margin: 0; padding: 0; font-size: 32px; line-height: 1.2; font-weight: 400; color: #111;
}
.zbpc .zbpc-viewall {
	display: inline-flex; align-items: center; gap: 8px; color: #111; text-decoration: none;
	font-size: 18px; white-space: nowrap;
}
.zbpc .zbpc-viewall:hover { opacity: .7; }
@media (max-width: 767px) {
	.zbpc .zbpc-heading { font-size: 22px; }
	.zbpc .zbpc-viewall { font-size: 15px; }
}

/* Track */
.zbpc-wrap { position: relative; background: var(--zbpc-card, #fff); }
.zbpc-track {
	display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
.zbpc-track::-webkit-scrollbar { display: none; }
.zbpc-slide {
	flex: 0 0 calc(100% / var(--zbpc-per));
	scroll-snap-align: start; min-width: 0;
	background: var(--zbpc-card, #fff);
	border-right: 1px solid #e6e6e6;
}

/* Card */
.zbpc-card {
	display: flex; align-items: flex-start; gap: 36px; padding: 40px; height: 100%;
}
.zbpc-img {
	flex: 0 0 48%; max-width: 247px; aspect-ratio: 247 / 240; background: #ececec;
	display: block; overflow: hidden;
}
.zbpc-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.zbpc-info { flex: 1; min-width: 0; }
.zbpc .zbpc-title { margin: 0 0 6px; padding: 0; font-size: 18px; line-height: 1.5; font-weight: 400; text-transform: uppercase; }
.zbpc .zbpc-title a {
	color: #1d1d1f; text-decoration: none; transition: color .2s;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zbpc .zbpc-title a:hover, .zbpc .zbpc-title a:focus-visible { color: var(--zbpc-btn, #1e9e3a); opacity: 1; }

/* Price: sale price first, old price struck through after it */
.zbpc .zbpc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 18px; color: #1d1d1f; }
.zbpc .zbpc-price ins { order: 1; text-decoration: none; background: none; font-weight: 400; }
.zbpc .zbpc-price del { order: 2; font-size: 13px; color: #8a7f7a; opacity: 1; }
.zbpc .zbpc-price .screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* Image badge */
.zbpc .zbpc-img { position: relative; }
.zbpc .zbpc-badge {
	position: absolute; top: 8px; left: 8px; z-index: 2;
	background: var(--zbpc-badge-bg, #1e9e3a); color: var(--zbpc-badge-color, #fff);
	font-size: 12px; line-height: 1; font-weight: 700; padding: 6px 10px; border-radius: 3px;
	white-space: nowrap; pointer-events: none;
}
.zbpc.zbpc-badge-right .zbpc-badge { left: auto; right: 8px; }

/* Add to cart: outlined, fills on hover */
.zbpc .zbpc-btn {
	display: block; width: 100%; margin-top: 16px; padding: 11px 14px; text-align: center;
	font-size: 14px; line-height: 1.2; font-weight: 700; text-transform: uppercase; text-decoration: none; cursor: pointer;
	color: var(--zbpc-btn-text, #111); background: var(--zbpc-card, #fff);
	border: 1px solid var(--zbpc-btn, #1e9e3a); border-radius: 0;
	transition: background .25s, color .25s, border-color .25s, opacity .2s;
}
.zbpc .zbpc-btn:hover, .zbpc .zbpc-btn:focus-visible { background: var(--zbpc-btn, #1e9e3a); color: var(--zbpc-btn-hover-text, #fff); }
.zbpc .zbpc-btn.loading { opacity: .6; pointer-events: none; }
/* Hide WooCommerce's extra "View cart" link that appears after adding */
.zbpc .added_to_cart { display: none !important; }

/* Arrows: round white button with soft shadow, centered on the card edge */
.zbpc-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
	background: #fff; color: #1d2430; cursor: pointer; z-index: 3;
	box-shadow: 0 3px 14px rgba(0, 0, 0, .22);
	display: flex; align-items: center; justify-content: center;
	transition: background .2s, color .2s, box-shadow .2s;
}
.zbpc-arrow svg { width: 7px; height: 12px; display: block; }
.zbpc-arrow:hover, .zbpc-arrow:focus-visible { background: var(--zbpc-accent, #e63946); color: #fff; }
.zbpc-prev { left: -21px; }
.zbpc-next { right: -21px; }

/* Dots: small grey dot, active one stretches into a pill */
.zbpc-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; min-height: 9px; }
.zbpc-dot {
	width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
	background: var(--zbpc-dot, #c9ced6); cursor: pointer;
	transition: width .25s ease, background .25s ease, border-radius .25s ease;
}
.zbpc-dot::after { display: none; }
.zbpc-dot.is-active { width: 24px; border-radius: 6px; background: var(--zbpc-accent, #e63946); }

.zbpc.zbpc-single .zbpc-arrow, .zbpc.zbpc-single .zbpc-dots { display: none; }

/* Smaller screens */
@media (max-width: 900px) {
	.zbpc-card { gap: 22px; padding: 28px; }
	.zbpc .zbpc-title { font-size: 16px; }
	.zbpc .zbpc-price { font-size: 16px; }
}
@media (max-width: 767px) {
	.zbpc-card { gap: 16px; padding: 18px; }
	.zbpc-img { flex-basis: 40%; }
	.zbpc .zbpc-title { font-size: 15px; }
	.zbpc .zbpc-btn { padding: 8px 14px; font-size: 13px; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.zbpc-track { scroll-behavior: auto; }
}

/* ---------- Mobile: stacked layout (image on top, text below) ---------- */
@media (max-width: 767px) {
	.zbpc { padding: 22px 24px 30px !important; }

	.zbpc .zbpc-head { flex-direction: column !important; align-items: flex-start !important; gap: 14px; margin-bottom: 22px; }
	.zbpc .zbpc-heading { font-size: 28px; }
	.zbpc .zbpc-viewall { font-size: 16px; }

	.zbpc .zbpc-wrap { border: 1px solid #e6e6e6; }
	.zbpc .zbpc-slide { border-right: 0; }

	.zbpc .zbpc-card { flex-direction: column !important; align-items: stretch !important; gap: 20px; padding: 26px; }
	.zbpc .zbpc-img { flex: none !important; width: 100% !important; max-width: none !important; }
	.zbpc .zbpc-info { width: 100%; flex: none !important; }
	.zbpc .zbpc-title { font-size: 17px; margin-bottom: 4px; }
	.zbpc .zbpc-price { font-size: 17px; }
	.zbpc .zbpc-btn { margin-top: 14px; padding: 10px 18px; font-size: 14px; }

	.zbpc .zbpc-arrow { width: 38px; height: 38px; }
	.zbpc .zbpc-prev { left: -19px; }
	.zbpc .zbpc-next { right: -19px; }

	.zbpc .zbpc-dots { margin-top: 24px; }
}
