/* CompleteGrow Recommended Products. Everything is scoped to .cgr so the theme can't reach in. */

.cgr {
	--cgr-ink: #1E3329;
	--cgr-body: #3E5146;
	--cgr-muted: #5E6E64;
	--cgr-green: #2F5845;
	--cgr-deep: #23402F;
	--cgr-hand: #5E7F52;
	--cgr-line: #E2E8DF;
	--cgr-panel: #EEF4EA;
	--cgr-media: #F2F5EF;
	--cgr-sans: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
	--cgr-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--cgr-hand-font: Caveat, "Segoe Print", "Bradley Hand", cursive;
	container: cgr / inline-size;
	clear: both;
	margin: 48px 0;
	font-family: var(--cgr-sans);
	color: var(--cgr-body);
	text-align: left;
}
.cgr *, .cgr *::before, .cgr *::after { box-sizing: border-box; }
.cgr p, .cgr h2, .cgr h3 { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.cgr a { text-decoration: none; box-shadow: none; }
.cgr .cgr-ic { display: block; flex: none; }

.cgr .cgr__panel { padding: 28px 28px 30px; border-radius: 24px; background: var(--cgr-panel); }
.cgr--nohead .cgr__panel { padding: 14px; }

/* Heading row */
.cgr .cgr__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.cgr .cgr__eyebrow {
	display: flex; align-items: center; gap: 6px;
	font-family: var(--cgr-hand-font); font-size: 24px; font-weight: 600; line-height: 1; color: var(--cgr-hand);
}
.cgr .cgr__eyebrow .cgr-ic { color: #7FA06F; margin-top: -2px; }
.cgr .cgr__title {
	margin-top: 6px;
	font-family: var(--cgr-serif); font-size: 30px; font-weight: 600; line-height: 1.15; color: var(--cgr-ink);
}
.cgr .cgr__all {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
	font-size: 14.5px; font-weight: 600; line-height: 1.2; color: var(--cgr-green);
	text-decoration: underline; text-decoration-color: rgba(47, 88, 69, .3); text-underline-offset: 4px;
}
.cgr .cgr__all:hover { color: var(--cgr-ink); text-decoration-color: currentColor; }

/* Cards */
.cgr .cgr__list { display: grid; gap: 16px; }
.cgr .cgr-card {
	position: relative; min-width: 0;
	display: flex; flex-direction: column; gap: 12px;
	padding: 10px 10px 16px;
	border: 1px solid var(--cgr-line); border-radius: 20px;
	background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(30, 51, 41, .04), 0 14px 30px rgba(30, 51, 41, .05);
}
.cgr .cgr-card.is-oos { opacity: .75; }

/* Photos: swipe on phones, arrows on hover. */
.cgr .cgr-card__media { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--cgr-media); }
.cgr .cgr-card__track {
	display: flex; width: 100%; height: 100%;
	overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cgr .cgr-card__track::-webkit-scrollbar { display: none; }
.cgr .cgr-card__slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; display: block; }
.cgr .cgr-card__media img.cgr-card__img {
	display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
	margin: 0 !important; padding: 0; border: 0; border-radius: 0; box-shadow: none;
	object-fit: cover;
}
.cgr .cgr-card__badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	padding: 6px 11px; border-radius: 999px;
	background: #B3361F; color: #FFFFFF;
	font-size: 12px; font-weight: 700; line-height: 1;
	box-shadow: 0 2px 8px rgba(120, 30, 15, .25);
}
.cgr .cgr-card__badge--oos { background: #3E5146; box-shadow: none; }
.cgr .cgr-card__nav {
	position: absolute; top: 50%; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; margin: -18px 0 0; padding: 0;
	border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--cgr-ink);
	box-shadow: 0 2px 8px rgba(30, 51, 41, .16);
	cursor: pointer; opacity: 0; transition: opacity .15s, background-color .15s;
}
.cgr .cgr-card__nav:hover, .cgr .cgr-card__nav:focus { background: #FFFFFF; color: var(--cgr-ink); }
.cgr .cgr-card__nav--prev { left: 10px; }
.cgr .cgr-card__nav--next { right: 10px; }
.cgr .cgr-card__nav[hidden] { display: none; }
.cgr .cgr-card__media:hover .cgr-card__nav,
.cgr .cgr-card__nav:focus-visible { opacity: 1; }
@media (hover: none) { .cgr .cgr-card__nav { display: none; } }
.cgr .cgr-card__dots {
	position: absolute; left: 50%; bottom: 10px; z-index: 2; transform: translateX(-50%);
	display: flex; gap: 5px; padding: 5px 7px; border-radius: 999px; background: rgba(255, 255, 255, .78);
}
.cgr .cgr-card__dots i { display: block; width: 6px; height: 6px; border-radius: 999px; background: #B9C4B4; transition: background-color .15s, width .15s; }
.cgr .cgr-card__dots i.is-on { width: 14px; background: var(--cgr-green); }

/* Details */
.cgr .cgr-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 4px 6px 0; }
.cgr .cgr-card__type {
	display: flex; align-items: center; gap: 7px;
	font-size: 11.5px; font-weight: 700; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; color: #4A5D52;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cgr .cgr-card__type i { flex: none; width: 7px; height: 7px; border-radius: 999px; background: #8FA196; }
.cgr .cgr-card__type--liquid i { background: #4F8FC0; }
.cgr .cgr-card__type--powder i { background: #A39585; }
.cgr .cgr-card__name { font-family: var(--cgr-serif); font-size: 19px; font-weight: 600; line-height: 1.22; color: var(--cgr-ink); }
.cgr .cgr-card__name a { color: inherit; }
.cgr .cgr-card__name a:hover { color: var(--cgr-green); }
.cgr .cgr-card__name .cg-bb__title-main { font: inherit; color: inherit; }
.cgr .cgr-card__name .cg-bb__title-sub {
	display: block; margin-top: 5px;
	font-family: var(--cgr-sans); font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--cgr-muted);
}
.cgr .cgr-card__name .cg-bb__title-micro { display: none; }
.cgr .cgr-card__sub { margin-top: -3px; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--cgr-muted); }
.cgr .cgr-card__note { font-size: 15px; line-height: 1.6; color: var(--cgr-body); }

.cgr .cgr-card__rate { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1; color: var(--cgr-muted); }
.cgr .cgr-card__rate b { font-weight: 700; color: var(--cgr-ink); }
.cgr .cgr-card__count { white-space: nowrap; }
.cgr .cgr-card__count-short { display: none; }
.cgr--many .cgr-card__count-long { display: none; }
.cgr--many .cgr-card__count-short { display: inline; }
.cgr .cgr-stars {
	position: relative; display: inline-block; flex: none; width: 78px; height: 15px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z' fill='%23D9DFD6'/%3E%3C/svg%3E") repeat-x left center / 15.6px 15px;
}
.cgr .cgr-stars__on {
	position: absolute; inset: 0 auto 0 0; overflow: hidden;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z' fill='%23B7790A'/%3E%3C/svg%3E") repeat-x left center / 15.6px 15px;
}

/* Price and buttons */
.cgr .cgr-card__buy { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 6px; }
.cgr .cgr-card__price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--cgr-ink); }
.cgr .cgr-card__price .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.cgr .cgr-card__price ins { order: 1; text-decoration: none; background: none; color: var(--cgr-ink); }
.cgr .cgr-card__price del { order: 2; font-size: 13.5px; font-weight: 500; color: var(--cgr-muted); opacity: 1; }
.cgr .cgr-card__price .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cgr .cgr-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.cgr .cgr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: 46px; padding: 0 24px; margin: 0;
	border: 0; border-radius: 999px;
	background: var(--cgr-green); color: #FFFFFF;
	font-family: var(--cgr-sans); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: normal; text-transform: none;
	white-space: nowrap; cursor: pointer;
	transition: background-color .15s, opacity .15s;
}
.cgr .cgr-btn:hover, .cgr .cgr-btn:focus { background: var(--cgr-deep); color: #FFFFFF; }
.cgr .cgr-btn:focus-visible, .cgr .cgr-link:focus-visible, .cgr .cgr__all:focus-visible, .cgr .cgr-card__name a:focus-visible { outline: 2px solid var(--cgr-green); outline-offset: 3px; }
.cgr .cgr-btn.loading { opacity: .6; pointer-events: none; }
.cgr .cgr-btn.loading::after, .cgr .cgr-btn.added::after { display: none !important; content: none !important; }
.cgr .cgr-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14.5px; font-weight: 600; color: var(--cgr-green);
}
.cgr .cgr-link:hover { color: var(--cgr-ink); }
/* WooCommerce adds a "View cart" link after the button once it's added. */
.cgr .added_to_cart {
	display: inline-flex; white-space: nowrap; align-items: center; padding: 0; margin: 0; border: 0; background: none;
	font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--cgr-green);
	text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- One product: a wide card, photo beside the details ---------- */
.cgr--one .cgr-card {
	display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 34px;
	padding: 12px 34px 12px 12px;
}
.cgr--one .cgr-card__body { gap: 10px; padding: 8px 0; }
.cgr--one .cgr-card__name { font-size: 26px; line-height: 1.18; }
.cgr--one .cgr-card__note { max-width: 52ch; }
.cgr--one .cgr-card__buy { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 6px; padding-top: 16px; border-top: 1px solid #EDF1EB; }
.cgr--one .cgr-card__price { font-size: 24px; }
.cgr--one .cgr-card__actions { flex-wrap: wrap; }
.cgr--one .cgr-btn { width: auto; min-width: 160px; height: 48px; }

/* ---------- Two to four products: side by side ---------- */
.cgr--many .cgr__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cgr--many .cgr-card__body { flex: 1 1 auto; }
.cgr--many .cgr-card__actions { flex-direction: column; align-items: stretch; }
.cgr--many .added_to_cart { justify-content: center; }
@container cgr (min-width: 720px) {
	.cgr--n3 .cgr__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container cgr (min-width: 940px) {
	.cgr--n4 .cgr__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Narrow spaces (sidebars, phones) ---------- */
@container cgr (max-width: 700px) {
	.cgr .cgr__panel { padding: 22px 18px 20px; border-radius: 20px; }
	.cgr .cgr__title { font-size: 26px; }
	.cgr--one .cgr-card { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; padding: 10px 22px 10px 10px; }
	.cgr--one .cgr-card__name { font-size: 22px; }
	.cgr--one .cgr-card__note { font-size: 14.5px; }
}
@container cgr (max-width: 520px) {
	.cgr .cgr__panel { padding: 20px 14px 16px; }
	.cgr .cgr__head { margin-bottom: 14px; }
	.cgr .cgr__eyebrow { font-size: 22px; }
	.cgr .cgr__title { font-size: 24px; }
	.cgr--one .cgr-card { display: flex; flex-direction: column; gap: 12px; padding: 8px 8px 16px; }
	.cgr--one .cgr-card__body { padding: 4px 8px 0; }
	.cgr--one .cgr-card__name { font-size: 22px; }
	.cgr--one .cgr-card__buy { flex-direction: column; align-items: stretch; gap: 12px; }
	.cgr--one .cgr-card__actions { flex-direction: column; align-items: stretch; gap: 10px; }
	.cgr--one .cgr-btn { width: 100%; }
	.cgr--one .cgr-link, .cgr--one .added_to_cart { justify-content: center; }
	.cgr--many .cgr__list { gap: 10px; }
	.cgr--many .cgr-card { padding: 6px 6px 12px; gap: 10px; border-radius: 16px; }
	.cgr--many .cgr-card__media { border-radius: 11px; }
	.cgr--many .cgr-card__body { gap: 6px; padding: 2px 4px 0; }
	.cgr--many .cgr-card__type { font-size: 10.5px; letter-spacing: .05em; }
	.cgr--many .cgr-card__name { font-size: 16px; }
	.cgr--many .cgr-card__name .cg-bb__title-sub,
	.cgr--many .cgr-card__sub { display: none; }
	.cgr--many .cgr-card__count { display: none; }
	.cgr--many .cgr-card__price { font-size: 18px; }
	.cgr--many .cgr-card__price del { font-size: 11.5px; }
	.cgr--many .cgr-btn { height: 42px; padding: 0 10px; font-size: 14px; }
	.cgr .cgr-card__badge { top: 8px; left: 8px; padding: 5px 9px; font-size: 11px; }
}
@container cgr (max-width: 520px) {
	.cgr--nohead .cgr__panel { padding: 10px; }
}
@container cgr (max-width: 330px) {
	.cgr--many .cgr__list { grid-template-columns: minmax(0, 1fr); }
}

/* Elementor editor: shown when no product is picked yet. */
.cgr-empty {
	padding: 22px; border: 2px dashed #C9D6C2; border-radius: 16px;
	background: #F6FAF3; color: #3E5146; font: 500 14px/1.5 Inter, system-ui, sans-serif; text-align: center;
}

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