/* ==========================================================================
   Prime Buds redesign 2026 - design system
   Loaded on top of Flatsome. Everything is namespaced .pbx- so nothing here
   can leak into unrelated theme components.
   ========================================================================== */

:root {
	--pbx-ink: #0e1b12;
	--pbx-ink-2: #23342a;
	--pbx-muted: #5f7168;
	--pbx-line: #e3e8e4;
	--pbx-surface: #ffffff;
	--pbx-surface-2: #f5f8f6;
	--pbx-green: #1e7a3c;
	--pbx-green-dark: #14351d;
	--pbx-green-soft: #eaf4ee;
	--pbx-gold: #b8912f;
	--pbx-danger: #b3261e;
	--pbx-radius: 14px;
	--pbx-radius-lg: 22px;
	--pbx-shadow: 0 1px 2px rgba(14, 27, 18, .06), 0 8px 24px rgba(14, 27, 18, .07);
	--pbx-shadow-lg: 0 2px 6px rgba(14, 27, 18, .08), 0 18px 44px rgba(14, 27, 18, .12);
	--pbx-max: 1280px;
}

.pbx { color: var(--pbx-ink); }

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

.pbx-wrap {
	max-width: var(--pbx-max);
	margin: 0 auto;
	padding: 0 20px;
}

.pbx-section { padding: 56px 0; }
.pbx-section--tight { padding: 36px 0; }
.pbx-section--alt { background: var(--pbx-surface-2); }

/* --------------------------------------------------------------- typography */
.pbx h1, .pbx h2, .pbx h3, .pbx h4 {
	color: var(--pbx-ink);
	line-height: 1.15;
	margin: 0 0 .4em;
	letter-spacing: -.015em;
	font-weight: 800;
}

.pbx-h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.pbx-h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.pbx-lede {
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.65;
	color: var(--pbx-ink-2);
	margin: 0 0 1.2em;
	max-width: 62ch;
}

.pbx-eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pbx-green);
	margin: 0 0 .7em;
}

.pbx-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
	flex-wrap: wrap;
}
.pbx-section-head p {
	margin: .3em 0 0;
	color: var(--pbx-muted);
	max-width: 58ch;
}

/* ------------------------------------------------------------------ buttons */
.pbx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 50px;
	padding: 0 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none !important;
	border: 2px solid transparent;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
	cursor: pointer;
}
.pbx-btn:hover { transform: translateY(-1px); }
.pbx-btn--primary {
	background: var(--pbx-green);
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(30, 122, 60, .28);
}
.pbx-btn--primary:hover { background: #176331; }
.pbx-btn--ghost {
	background: transparent;
	color: var(--pbx-ink) !important;
	border-color: var(--pbx-line);
}
.pbx-btn--ghost:hover { border-color: var(--pbx-ink); }
.pbx-btn--onDark {
	background: #fff;
	color: var(--pbx-green-dark) !important;
}
.pbx-btn--onDark-ghost {
	background: transparent;
	color: #fff !important;
	border-color: rgba(255, 255, 255, .5);
}
.pbx-btn--onDark-ghost:hover { border-color: #fff; }

/* --------------------------------------------------------------------- hero */
.pbx-hero {
	position: relative;
	background: linear-gradient(160deg, #10281a 0%, #14351d 45%, #1b4526 100%);
	color: #fff;
	overflow: hidden;
}
.pbx-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1100px 460px at 82% 18%, rgba(184, 145, 47, .20), transparent 60%),
		radial-gradient(760px 420px at 8% 92%, rgba(30, 122, 60, .34), transparent 62%);
	pointer-events: none;
}
.pbx-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 48px;
	align-items: center;
	/* keep the .pbx-wrap gutter - a bare "0" here pushed the hero cards flush to
	   both screen edges on a phone, which read as clipped content */
	padding: 68px 20px 60px;
}
.pbx-hero h1 { color: #fff; }
.pbx-hero .pbx-eyebrow { color: #ffd97a; }
.pbx-hero-lede {
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
	max-width: 52ch;
	margin: 0 0 1.6em;
}
.pbx-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.pbx-hero-points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pbx-hero-points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .95rem;
	color: rgba(255, 255, 255, .9);
	line-height: 1.4;
}
.pbx-hero-points svg { flex: 0 0 20px; margin-top: 1px; }

/* hero product collage */
.pbx-hero-art {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.pbx-hero-card {
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--pbx-radius-lg);
	overflow: hidden;
	backdrop-filter: none;               /* deliberately off: it tanked LCP on TSP */
	text-decoration: none !important;
	display: block;
	transition: transform .2s ease, border-color .2s ease;
}
.pbx-hero-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .38); }
.pbx-hero-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: #0d2114;
}
.pbx-hero-card-body { padding: 12px 14px 15px; }
.pbx-hero-card-title {
	color: #fff;
	font-weight: 700;
	font-size: .93rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pbx-hero-card-price { color: #ffd97a; font-weight: 700; font-size: .9rem; margin-top: 5px; }

/* ------------------------------------------------------------- trust strip */
.pbx-trust {
	background: var(--pbx-green-dark);
	border-top: 1px solid rgba(255, 255, 255, .08);
	color: #fff;
}
.pbx-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 16px 0;
}
.pbx-trust-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: .92rem;
	font-weight: 600;
	color: rgba(255, 255, 255, .93);
	text-align: left;
	line-height: 1.25;
}
.pbx-trust-item svg { flex: 0 0 22px; color: #7fd39b; }

/* ---------------------------------------------------------------- category */
.pbx-cats {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}
.pbx-cat {
	position: relative;
	display: block;
	border-radius: var(--pbx-radius);
	overflow: hidden;
	background: var(--pbx-surface);
	border: 1px solid var(--pbx-line);
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pbx-cat:hover {
	transform: translateY(-3px);
	box-shadow: var(--pbx-shadow);
	border-color: #cfded5;
}
.pbx-cat-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: var(--pbx-surface-2);
}
.pbx-cat-body { padding: 12px 12px 14px; text-align: center; }
.pbx-cat-name {
	font-weight: 700;
	color: var(--pbx-ink);
	font-size: .97rem;
	line-height: 1.25;
	display: block;
}
.pbx-cat-count { color: var(--pbx-muted); font-size: .82rem; margin-top: 3px; display: block; }

/* ----------------------------------------------------------- product rails */
.pbx-rail {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}
.pbx-card {
	display: flex;
	flex-direction: column;
	background: var(--pbx-surface);
	border: 1px solid var(--pbx-line);
	border-radius: var(--pbx-radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	position: relative;
}
.pbx-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--pbx-shadow);
	border-color: #cfded5;
}
.pbx-card-media { position: relative; display: block; }
.pbx-card-media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: var(--pbx-surface-2);
}
.pbx-card-body {
	padding: 13px 14px 15px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 7px;
}
.pbx-card-cat {
	font-size: .73rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pbx-green);
}
.pbx-card-title {
	font-size: .96rem;
	font-weight: 700;
	line-height: 1.32;
	color: var(--pbx-ink) !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}
.pbx-card-title:hover { color: var(--pbx-green) !important; }
.pbx-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
}
.pbx-card-price { font-weight: 800; color: var(--pbx-ink); font-size: 1rem; }
.pbx-card-price del { color: var(--pbx-muted); font-weight: 500; font-size: .85em; margin-right: 5px; }
.pbx-card-price ins { text-decoration: none; }
.pbx-card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--pbx-muted); }
.pbx-card-rating b { color: var(--pbx-ink); font-weight: 700; }
.pbx-card-cta {
	display: block;
	text-align: center;
	margin-top: 4px;
	padding: 11px 12px;
	border-radius: 999px;
	background: var(--pbx-green-soft);
	color: var(--pbx-green) !important;
	font-weight: 700;
	font-size: .9rem;
	text-decoration: none !important;
	border: 1px solid transparent;
	min-height: 44px;
	line-height: 22px;
}
.pbx-card-cta:hover { background: var(--pbx-green); color: #fff !important; }

.pbx-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--pbx-ink);
	color: #fff;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
}
.pbx-badge--sale { background: var(--pbx-danger); }
.pbx-badge--new { background: var(--pbx-green); }

/* -------------------------------------------------------------- promo band */
.pbx-promo {
	background: linear-gradient(135deg, #14351d 0%, #1c4a29 100%);
	color: #fff;
	border-radius: var(--pbx-radius-lg);
	padding: 34px;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 28px;
	align-items: center;
}
.pbx-promo h2 { color: #fff; }
.pbx-promo p { color: rgba(255, 255, 255, .85); margin: 0 0 1em; }
.pbx-codes { display: grid; gap: 10px; }
.pbx-code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: rgba(255, 255, 255, .09);
	border: 1px dashed rgba(255, 255, 255, .38);
	border-radius: 12px;
	padding: 13px 16px;
}
.pbx-code-label { font-size: .93rem; color: rgba(255, 255, 255, .92); line-height: 1.35; }
.pbx-code-tag {
	font-weight: 800;
	letter-spacing: .12em;
	color: #ffd97a;
	font-size: 1.02rem;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- 3 steps */
.pbx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pbx-step {
	background: var(--pbx-surface);
	border: 1px solid var(--pbx-line);
	border-radius: var(--pbx-radius);
	padding: 26px 24px;
}
.pbx-step-n {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--pbx-green-soft);
	color: var(--pbx-green);
	display: flex; align-items: center; justify-content: center;
	font-weight: 800;
	margin-bottom: 14px;
}
.pbx-step h3 { font-size: 1.08rem; margin-bottom: .35em; }
.pbx-step p { color: var(--pbx-muted); margin: 0; line-height: 1.6; font-size: .95rem; }

/* ------------------------------------------------------------------- areas */
.pbx-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.pbx-area {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 15px;
	border: 1px solid var(--pbx-line);
	border-radius: 11px;
	background: var(--pbx-surface);
	color: var(--pbx-ink) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: .93rem;
	min-height: 46px;
	transition: border-color .16s ease, background .16s ease;
}
.pbx-area:hover { border-color: var(--pbx-green); background: var(--pbx-green-soft); }
.pbx-area svg { flex: 0 0 16px; color: var(--pbx-green); }

/* --------------------------------------------------------------------- faq */
.pbx-faq { display: grid; gap: 10px; max-width: 900px; margin: 0 auto; }
.pbx-faq details {
	border: 1px solid var(--pbx-line);
	border-radius: 12px;
	background: var(--pbx-surface);
	padding: 0;
	overflow: hidden;
}
.pbx-faq summary {
	cursor: pointer;
	padding: 17px 20px;
	font-weight: 700;
	color: var(--pbx-ink);
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 54px;
}
.pbx-faq summary::-webkit-details-marker { display: none; }
.pbx-faq summary::after {
	content: "+";
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--pbx-green);
	line-height: 1;
	flex: 0 0 auto;
}
.pbx-faq details[open] summary::after { content: "\2212"; }
.pbx-faq .pbx-faq-body { padding: 0 20px 18px; color: var(--pbx-muted); line-height: 1.65; }
.pbx-faq .pbx-faq-body p { margin: 0 0 .8em; }
.pbx-faq .pbx-faq-body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- reviews */
.pbx-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pbx-review {
	background: var(--pbx-surface);
	border: 1px solid var(--pbx-line);
	border-radius: var(--pbx-radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pbx-stars { color: #e8a922; letter-spacing: 2px; font-size: 1rem; }
.pbx-review-text { color: var(--pbx-ink-2); line-height: 1.6; font-size: .96rem; flex: 1 1 auto; }
.pbx-review-by { color: var(--pbx-muted); font-size: .86rem; }
.pbx-review-by b { color: var(--pbx-ink); }

.pbx-score {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--pbx-green-soft);
	border-radius: 999px;
	padding: 9px 18px;
	font-weight: 700;
	color: var(--pbx-green-dark);
}
.pbx-score b { font-size: 1.2rem; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
	.pbx-cats { grid-template-columns: repeat(4, 1fr); }
	.pbx-rail { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
	.pbx-hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 44px 20px 40px; }
	.pbx-hero-art { grid-template-columns: repeat(2, 1fr); }
	.pbx-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.pbx-promo { grid-template-columns: 1fr; padding: 26px; }
	.pbx-steps { grid-template-columns: 1fr; }
	.pbx-reviews { grid-template-columns: 1fr; }
	.pbx-rail { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
	.pbx-section { padding: 38px 0; }
	.pbx-wrap { padding: 0 16px; }
	.pbx-cats { grid-template-columns: repeat(2, 1fr); gap: 11px; }
	.pbx-rail { grid-template-columns: repeat(2, 1fr); gap: 11px; }
	.pbx-hero-points { grid-template-columns: 1fr; }
	.pbx-hero-cta .pbx-btn { flex: 1 1 100%; }
	.pbx-card-title { font-size: .9rem; min-height: 2.5em; }
	.pbx-areas { grid-template-columns: repeat(2, 1fr); }
	.pbx-section-head { margin-bottom: 18px; }
}

/* horizontal scroll is never acceptable */
.pbx img { max-width: 100%; }

/* --------------------------------------------------------------------------
   Mobile: rails scroll sideways instead of stacking into a 12,000px page.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.pbx-rail {
		display: flex;
		gap: 11px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
		margin-right: -16px;
		padding-right: 16px;
		scrollbar-width: none;
	}
	.pbx-rail::-webkit-scrollbar { display: none; }
	.pbx-rail > .pbx-card {
		flex: 0 0 62%;
		scroll-snap-align: start;
	}
	.pbx-cats { grid-template-columns: repeat(3, 1fr); }
	.pbx-cat-body { padding: 9px 6px 11px; }
	.pbx-cat-name { font-size: .86rem; }
	.pbx-cat-count { font-size: .74rem; }
	.pbx-hero-art { gap: 10px; }
	.pbx-hero-card-title { font-size: .82rem; }
}

/* the legacy Flatsome product-widget footer duplicated our own rails */
.home .pbx-legacy-hidden { display: none !important; }

/* ==========================================================================
   Product loop cards - strain badges, and the price/rating overflow fix
   ========================================================================== */

/* Indica / Sativa / Hybrid badge */
.pbx-strain {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	margin: 0 0 5px;
	line-height: 1.4;
	border: 1px solid transparent;
}
.pbx-strain--indica { background: #efe7f7; color: #5b3d86; border-color: #ddcdf0; }
.pbx-strain--sativa { background: #fdf0e0; color: #8a5312; border-color: #f6dcbb; }
.pbx-strain--hybrid { background: #e6f4ea; color: #1c6b39; border-color: #cbe7d5; }

.pbx-strain-single { margin: 0 0 12px; }
.pbx-strain-single .pbx-strain { font-size: 12px; padding: 5px 12px; }

/* The owner spotted price ranges spilling out of the card border.
   A price range plus a rating on one flex line has nowhere to go on a
   ~235px card, so let the row wrap instead of overflowing. */
.pbx-card-meta {
	flex-wrap: wrap;
	row-gap: 4px;
	min-width: 0;
}
.pbx-card-price,
.pbx-card-rating {
	min-width: 0;
	overflow-wrap: anywhere;
}
.pbx-card-price { flex: 1 1 100%; }
.pbx-card-rating { flex: 0 0 auto; }

/* Same guard on the hero cards */
.pbx-hero-card-price {
	overflow-wrap: anywhere;
	line-height: 1.35;
}

/* Flatsome loop cards inside our rails: keep them tidy and equal height */
.pbx-loop.products {
	margin-left: -8px;
	margin-right: -8px;
}
.pbx-loop .product-small .box-text {
	padding-bottom: 6px;
}
.pbx-loop .price,
.pbx-loop .woocommerce-Price-amount {
	overflow-wrap: anywhere;
}
