/* Sunlife Custom - storefront styles.
   "body" prefix wins over the theme and the mystery-bundle inline styles. */

/* ===== Homepage product cards (mystery-bundle slider) ===== */

body .mystery-bundle-card {
	transition: transform .2s ease, box-shadow .2s ease;
}

body .mystery-bundle-card.slb-clickable {
	cursor: pointer;
}

@media (hover: hover) {
	body .mystery-bundle-card.slb-clickable:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
	}
}

body .mystery-bundle-product-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body .mystery-bundle-product-title a {
	color: inherit;
}

/* Phones: two products side by side */
@media (max-width: 600px) {
	body .mystery-bundle-slide {
		flex: 0 0 50%;
		max-width: 50%;
		padding: 5px;
	}

	body .mystery-bundle-card {
		padding: 10px;
		border-radius: 14px;
		min-height: 0;
	}

	body .mystery-bundle-image {
		min-height: 0;
		padding: 6px 0 0;
		border-radius: 10px;
	}

	body .mystery-bundle-image img {
		max-height: 130px;
	}

	body .mystery-featured-badge {
		font-size: 9px;
		padding: 3px 6px;
	}

	body .mystery-bundle-product-title {
		font-size: 13px;
		margin: 8px 0 6px;
	}

	body .mystery-bundle-price-container {
		padding-top: 13px;
		min-height: 0;
	}

	body .mystery-bundle-price-container:before {
		font-size: 11px;
	}

	body .mystery-bundle-price-container .price {
		font-size: 18px;
	}

	body .mystery-bundle-entries,
	body .mystery-bundle-multiplier {
		float: none;
		clear: none;
		margin: 6px 4px 0 0;
		padding: 4px 8px;
		font-size: 11px;
	}

	body .mystery-bundle-selection,
	body .mystery-bundle-actions {
		margin-top: 8px;
	}

	body .mystery-variation-select {
		padding: 8px;
		font-size: 12px;
		border-radius: 8px;
	}

	body .mystery-add-to-cart-btn {
		padding: 10px 6px;
		font-size: 12px;
		border-radius: 8px;
	}
}

/* ===== Shop / category pages (WooCommerce loop) ===== */

body ul.products li.product.slb-clickable {
	cursor: pointer;
}

body ul.products li.product .woocommerce-loop-product__title,
body ul.products li.product h2,
body ul.products li.product h3 {
	font-size: 15px;
	line-height: 1.3;
}

@media (max-width: 600px) {
	body ul.products li.product .woocommerce-loop-product__title,
	body ul.products li.product h2,
	body ul.products li.product h3 {
		font-size: 13px;
	}
}

/* ===== Shop by Category [slb_shop_by_category] ===== */

.slb-sbc {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 16px;
}

.slb-sbc__title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: .5px;
	text-align: center;
	text-transform: uppercase;
}

.slb-sbc__grid {
	display: grid;
	grid-template-columns: repeat(var(--slb-sbc-cols, 4), minmax(0, 1fr));
	gap: 16px;
}

.slb-sbc__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
	color: #111;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.slb-sbc__item:hover,
.slb-sbc__item:focus {
	color: #111;
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.slb-sbc__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
}

.slb-sbc__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.slb-sbc__name {
	margin-top: 10px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .3px;
	text-align: center;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	.slb-sbc__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.slb-sbc__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.slb-sbc__item {
		padding: 10px;
	}

	.slb-sbc__name {
		font-size: 13px;
	}
}

/* ===== Giveaway banner [slb_giveaway_banner] =====
   One continuous banner: the whole bag (cut-out photo, transparent background) sits in a warm
   golden spotlight and the text sits on the same background. Phones: bag on top, text below. */

.slb-banner {
	container-type: inline-size;
	width: 100%;
}

.slb-banner__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	color: #f7ecd9;
	background:
		radial-gradient(ellipse 82% 46% at 50% 29%, rgba(255, 249, 235, 1) 0%, rgba(248, 224, 172, .92) 26%, rgba(200, 145, 82, .5) 56%, rgba(34, 22, 14, 0) 84%),
		linear-gradient(180deg, #4a3020 0%, #2c1c12 50%, #1e140c 100%);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(217, 183, 122, .3);
}

.slb-banner__media {
	position: relative;
	display: block;
	aspect-ratio: 1.15 / 1;
}

/* Soft shadow on the "floor" under the bag. */
.slb-banner__media::before {
	content: "";
	position: absolute;
	left: 24%;
	right: 24%;
	bottom: 4%;
	height: 8%;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(40, 22, 8, .7) 0%, rgba(40, 22, 8, .25) 45%, rgba(40, 22, 8, 0) 72%);
	pointer-events: none;
}

body .slb-banner__img {
	position: absolute;
	top: 7%;
	left: 8%;
	width: 84% !important;
	height: 85% !important;
	max-width: none !important;
	margin: 0;
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 16px 18px rgba(30, 16, 6, .35));
	transition: transform .4s ease;
}

.slb-banner__media:hover .slb-banner__img {
	transform: scale(1.03);
}

.slb-banner__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 8px 20px 26px;
	text-align: center;
}

.slb-banner__eyebrow {
	color: #e2c288;
	font: 700 11px/1 Arial, Helvetica, sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
}

body .slb-banner__title {
	margin: 0;
	color: #f6dfae;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 7cqi, 32px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.slb-banner__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
}

.slb-banner__badge {
	padding: 8px 14px;
	border-radius: 999px;
	background: #39ff14;
	color: #111;
	font: 900 13px/1 Arial, Helvetica, sans-serif;
	text-transform: uppercase;
}

.slb-banner__value {
	color: #f7ecd9;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
}

body a.slb-banner__btn {
	display: inline-block;
	margin-top: 4px;
	padding: 14px 34px;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8e4b3 0%, #d8ae5e 100%);
	box-shadow: 0 8px 20px rgba(216, 174, 94, .35);
	color: #2a1b12;
	font: 900 15px/1 Arial, Helvetica, sans-serif;
	letter-spacing: .12em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform .15s ease, box-shadow .15s ease;
}

body a.slb-banner__btn:hover,
body a.slb-banner__btn:focus {
	color: #2a1b12;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(216, 174, 94, .45);
}

body .slb-banner__note {
	margin: 2px 0 0;
	color: #f3d9a4;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
}

body .slb-banner__fine {
	max-width: 46ch;
	margin: 0;
	color: rgba(247, 236, 217, .65);
	font: 400 11px/1.4 Arial, Helvetica, sans-serif;
}

/* Wide banner: text on the left, the bag on the right, one background. */
@container (min-width: 820px) {
	.slb-banner__inner {
		display: grid;
		grid-template-columns: 52% 48%;
		min-height: clamp(400px, 38cqi, 560px);
		background:
			radial-gradient(ellipse 36% 74% at 74% 54%, rgba(255, 249, 235, 1) 0%, rgba(248, 224, 172, .92) 26%, rgba(200, 145, 82, .5) 56%, rgba(34, 22, 14, 0) 86%),
			linear-gradient(100deg, #1c120b 0%, #2a1a10 40%, #4a3020 75%, #36231a 100%);
	}

	.slb-banner__media {
		grid-column: 2;
		grid-row: 1;
		aspect-ratio: auto;
	}

	.slb-banner__media::before {
		left: 26%;
		right: 26%;
		bottom: 5%;
		height: 7%;
	}

	body .slb-banner__img {
		top: 6%;
		left: 6%;
		width: 88% !important;
		height: 86% !important;
	}

	.slb-banner__content {
		grid-column: 1;
		grid-row: 1;
		align-items: flex-start;
		justify-content: center;
		gap: 14px;
		padding: 36px 12px 36px 56px;
		text-align: left;
	}

	body .slb-banner__title {
		font-size: clamp(30px, 3.7cqi, 46px);
	}

	.slb-banner__meta {
		justify-content: flex-start;
	}

	.slb-banner__value {
		font-size: 20px;
	}

	body a.slb-banner__btn {
		padding: 16px 42px;
		font-size: 16px;
	}
}

/* ===== Featured tabs (one per main-menu category) ===== */

.slb-ftabs__nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 4px 4px 14px;
	overflow-x: auto;
	scrollbar-width: none;
}

.slb-ftabs__nav::-webkit-scrollbar {
	display: none;
}

body .slb-ftabs button.slb-ftabs__tab {
	flex: 0 0 auto;
	margin: 0;
	padding: 10px 20px;
	border: 2px solid #111;
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: #111;
	font: 800 14px/1 Arial, Helvetica, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

body .slb-ftabs button.slb-ftabs__tab:hover {
	background: #f2f2f2;
	color: #111;
}

body .slb-ftabs button.slb-ftabs__tab.is-active {
	background: #111;
	color: #39ff14;
}

.slb-ftabs__panel[hidden] {
	display: none;
}

@media (max-width: 600px) {
	.slb-ftabs__nav {
		justify-content: flex-start;
	}

	body .slb-ftabs button.slb-ftabs__tab {
		padding: 8px 14px;
		font-size: 12px;
	}
}

/* ===== Overrides for the theme's "Responsive Typography" =====
   The theme forces h2 (16px / 56px) and h3 (43px / 49px) with !important on screens up to 1024px,
   which made product names huge on phones. These win over it (higher specificity + !important). */

body .mystery-bundle-product-title,
body ul.products li.product .woocommerce-loop-product__title,
body ul.products li.product h2,
body ul.products li.product h3 {
	font-size: 15px !important;
	line-height: 1.3 !important;
}

body .slb-banner__title {
	font-size: clamp(24px, 7cqi, 32px) !important;
	line-height: 1.12 !important;
}

@container (min-width: 820px) {
	body .slb-banner__title {
		font-size: clamp(30px, 3.7cqi, 46px) !important;
	}
}

body .slb-sbc__title {
	font-size: 22px !important;
	line-height: 1.2 !important;
}

@media (max-width: 600px) {
	body .mystery-bundle-product-title,
	body ul.products li.product .woocommerce-loop-product__title,
	body ul.products li.product h2,
	body ul.products li.product h3 {
		font-size: 13px !important;
	}

	body .slb-sbc__title {
		font-size: 18px !important;
	}
}

/* ===== Monthly Membership section [slb_memberships] ===== */

.slb-members {
	max-width: 1200px;
	margin: 50px auto 20px;
	padding: 0 16px;
	text-align: center;
}

body .slb-members__title {
	margin: 0 0 6px;
	font-size: 28px !important;
	line-height: 1.2 !important;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.slb-members__sub {
	margin: 0 0 22px;
	color: #555;
	font-size: 16px;
}

.slb-members__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	text-align: left;
}

.slb-tier {
	--tier: #cd7f32;
	display: flex;
	flex-direction: column;
	padding: 20px 18px 18px;
	border: 1px solid #eee;
	border-top: 6px solid var(--tier);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.slb-tier--silver { --tier: #a8a9ad; }
.slb-tier--gold { --tier: #d4af37; }
.slb-tier--platinum { --tier: #4b5563; }

.slb-tier__name {
	color: var(--tier);
	font: 900 14px/1 Arial, Helvetica, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.slb-tier__price {
	margin: 10px 0 12px;
}

.slb-tier__price strong {
	color: #111;
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
}

.slb-tier__price span {
	color: #777;
	font-size: 15px;
	font-weight: 600;
}

.slb-tier__perks {
	flex: 1 1 auto;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.slb-tier__perks li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 22px;
	color: #333;
	font-size: 14px;
	line-height: 1.35;
}

.slb-tier__perks li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: #1aa32a;
	font-weight: 900;
}

body a.slb-tier__btn {
	display: block;
	padding: 13px 10px;
	border-radius: 12px;
	background: #111;
	color: #39ff14;
	font: 900 14px/1 Arial, Helvetica, sans-serif;
	letter-spacing: .08em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background .15s ease;
}

body a.slb-tier__btn:hover,
body a.slb-tier__btn:focus {
	background: #000;
	color: #39ff14;
}

@media (max-width: 1024px) {
	.slb-members__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.slb-members__grid {
		gap: 10px;
	}

	.slb-tier {
		padding: 14px 12px 12px;
	}

	.slb-tier__price strong {
		font-size: 26px;
	}

	.slb-tier__perks li {
		font-size: 12px;
		padding-left: 18px;
	}

	body a.slb-tier__btn {
		padding: 11px 6px;
		font-size: 12px;
	}

	body .slb-members__title {
		font-size: 22px !important;
	}
}

/* Theme styles .woocommerce-Price-amount; keep membership prices big and bold. */
body .slb-tier__price strong,
body .slb-tier__price strong .woocommerce-Price-amount,
body .slb-tier__price strong .woocommerce-Price-currencySymbol,
body .slb-tier__price strong bdi {
	color: #111 !important;
	font-size: 34px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
}

body .slb-tier__perks b .woocommerce-Price-amount,
body .slb-tier__perks b bdi {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: 800 !important;
}

@media (max-width: 600px) {
	body .slb-tier__price strong,
	body .slb-tier__price strong .woocommerce-Price-amount,
	body .slb-tier__price strong .woocommerce-Price-currencySymbol,
	body .slb-tier__price strong bdi {
		font-size: 26px !important;
	}
}
