/*
 * Conversion Cart — premium theme matched to getvalyxpeptides.com.
 * Mobile-first & fluid: base styles target phones; layout scales with clamp()
 * and viewport units, then enhances to a side drawer at >=600px.
 */

@font-face {
	font-family: "CC Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--cc-primary: #1e3a5f;
	--cc-primary-deep: #14283f;
	--cc-primary-light: #2f5d8f;
	--cc-primary-hover: #18324f;
	--cc-accent: #3b82f6;
	--cc-accent-hover: #2563eb;
	--cc-bg: #ffffff;
	--cc-bg-subtle: #f6f8fb;
	--cc-bg-muted: #eef2f7;
	--cc-card-muted: #f8fafc;
	--cc-text: #111827;
	--cc-text-muted: rgb(17 24 39 / 72%);
	--cc-text-soft: rgb(17 24 39 / 54%);
	--cc-border: #e4e8ef;
	--cc-border-strong: #cfd6e0;
	--cc-success: #15803d;
	--cc-shadow-soft: 0 8px 24px rgb(30 58 95 / 8%);
	--cc-shadow-md: 0 16px 40px rgb(30 58 95 / 12%);
	--cc-shadow-panel: -30px 0 70px rgb(17 24 39 / 14%);
	--cc-shadow-sheet: 0 -24px 60px rgb(17 24 39 / 22%);
	--cc-radius: 7px;
	--cc-radius-lg: 14px;
	--cc-radius-pill: 999px;
	--cc-ease: cubic-bezier(.22, 1, .36, 1);

	/* Fluid scale — grows with the viewport, clamped to sane min/max. */
	--cc-pad: clamp(16px, 4.6vw, 22px);
	--cc-title: clamp(18px, 5.2vw, 21px);
	--cc-total: clamp(19px, 5.6vw, 22px);
	--cc-item-img: clamp(60px, 17vw, 76px);
	--cc-offer-img: clamp(46px, 13vw, 54px);

	--cc-font: "CC Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.conversion-cart-open {
	overflow: hidden;
}

.cc-cart,
.cc-cart * {
	box-sizing: border-box;
}

.cc-cart button,
.cc-cart input {
	font: inherit;
	color: inherit;
}

.cc-cart .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/* ---------- Shell (mobile-first: bottom sheet) ---------- */

.cc-cart {
	align-items: flex-end;
	color: var(--cc-text);
	display: flex;
	font-family: var(--cc-font);
	-webkit-font-smoothing: antialiased;
	inset: 0;
	justify-content: stretch;
	line-height: 1.5;
	pointer-events: none;
	position: fixed;
	z-index: 999999;
}

.cc-cart.is-open {
	pointer-events: auto;
}

.cc-cart__backdrop {
	appearance: none;
	background: rgb(17 24 39 / 44%);
	backdrop-filter: blur(2px);
	border: 0;
	inset: 0;
	opacity: 0;
	padding: 0;
	position: absolute;
	transition: opacity .32s var(--cc-ease);
	width: 100%;
}

.cc-cart.is-open .cc-cart__backdrop {
	opacity: 1;
}

.cc-cart__panel {
	background: var(--cc-bg);
	border-radius: var(--cc-radius-lg) var(--cc-radius-lg) 0 0;
	box-shadow: var(--cc-shadow-sheet);
	display: flex;
	flex-direction: column;
	height: min(93dvh, 900px);
	max-width: 100%;
	outline: none;
	position: relative;
	transform: translateY(102%);
	transition: transform .42s var(--cc-ease);
	width: 100%;
	will-change: transform;
}

.cc-cart.is-open .cc-cart__panel {
	transform: translateY(0);
}

.cc-cart__handle {
	background: var(--cc-border-strong);
	border-radius: 99px;
	flex: 0 0 auto;
	height: 4px;
	margin: 8px auto 0;
	width: 40px;
}

/* ---------- Header ---------- */

.cc-cart__header {
	align-items: center;
	background: var(--cc-bg);
	border-bottom: 1px solid var(--cc-border);
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	justify-content: space-between;
	padding: clamp(12px, 3.4vw, 18px) var(--cc-pad);
}

.cc-cart__heading {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.cc-cart__eyebrow {
	display: none;
}

.cc-cart__title {
	color: var(--cc-text);
	font-size: var(--cc-title);
	font-weight: 700;
	letter-spacing: -.014em;
	margin: 0;
}

.cc-cart__count {
	align-items: center;
	background: var(--cc-bg-muted);
	border-radius: var(--cc-radius-pill);
	color: var(--cc-primary);
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	height: 22px;
	justify-content: center;
	min-width: 22px;
	padding: 0 7px;
}

.cc-cart__close {
	align-items: center;
	appearance: none;
	background: var(--cc-bg);
	border: 1px solid var(--cc-border-strong);
	border-radius: var(--cc-radius);
	color: var(--cc-text);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 38px;
	justify-content: center;
	padding: 0;
	transition: border-color .2s var(--cc-ease), color .2s var(--cc-ease), background-color .2s var(--cc-ease);
	width: 38px;
}

.cc-cart__close:hover {
	background: var(--cc-bg-subtle);
	border-color: var(--cc-primary);
	color: var(--cc-primary);
}

.cc-cart__close svg,
.cc-item__remove svg {
	fill: none;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.7;
	width: 17px;
}

/* ---------- Body / scroll ---------- */

.cc-cart__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--cc-border-strong) transparent;
}

.cc-cart__body::-webkit-scrollbar {
	width: 8px;
}

.cc-cart__body::-webkit-scrollbar-thumb {
	background: var(--cc-border-strong);
	border: 2px solid var(--cc-bg);
	border-radius: 99px;
}

.cc-cart__status {
	background: var(--cc-primary);
	border-radius: var(--cc-radius);
	box-shadow: var(--cc-shadow-md);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	inset-inline: var(--cc-pad);
	letter-spacing: .01em;
	opacity: 1;
	padding: 11px 14px;
	pointer-events: none;
	position: absolute;
	top: clamp(62px, 15vw, 82px);
	transform: translateY(0);
	transition: opacity .22s var(--cc-ease), transform .22s var(--cc-ease);
	z-index: 6;
}

.cc-cart__status:empty {
	opacity: 0;
	transform: translateY(-8px);
}

.cc-cart-content {
	animation: cc-fade .2s var(--cc-ease) both;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

@keyframes cc-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.cc-cart.is-loading .cc-cart__body {
	cursor: progress;
}

.cc-cart.is-loading .cc-cart-content {
	opacity: .72;
	transition: opacity .18s ease;
}

/* ---------- Free-shipping goal ---------- */

.cc-goal {
	background: var(--cc-bg-subtle);
	border-bottom: 1px solid var(--cc-border);
	padding: 14px var(--cc-pad) 15px;
}

.cc-goal p {
	align-items: center;
	color: var(--cc-text);
	display: flex;
	font-size: clamp(12.5px, 3.5vw, 13px);
	gap: 7px;
	line-height: 1.4;
	margin: 0 0 9px;
}

.cc-goal p strong {
	font-weight: 700;
}

.cc-goal p .cc-goal__amount {
	color: var(--cc-primary);
	font-weight: 700;
}

.cc-goal--done p {
	color: var(--cc-success);
	font-weight: 600;
}

.cc-goal__icon {
	color: var(--cc-primary);
	flex: 0 0 auto;
	height: 16px;
	width: 16px;
}

.cc-goal--done .cc-goal__icon {
	color: var(--cc-success);
}

.cc-goal__icon svg {
	display: block;
	fill: none;
	height: 100%;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 100%;
}

.cc-goal__track {
	background: var(--cc-bg-muted);
	border-radius: 99px;
	box-shadow: inset 0 0 0 1px rgb(17 24 39 / 4%);
	height: 6px;
	overflow: hidden;
}

.cc-goal__track span {
	background: linear-gradient(90deg, var(--cc-primary), var(--cc-accent));
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width .5s var(--cc-ease);
}

.cc-goal--done .cc-goal__track span {
	background: var(--cc-success);
}

/* ---------- Items ---------- */

.cc-items {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 6px var(--cc-pad) 4px;
}

.cc-item {
	display: grid;
	gap: clamp(11px, 3.4vw, 14px);
	grid-template-columns: var(--cc-item-img) minmax(0, 1fr);
	padding: clamp(14px, 4vw, 16px) 0;
}

.cc-item + .cc-item {
	border-top: 1px solid var(--cc-border);
}

.cc-item__image {
	align-self: start;
	aspect-ratio: 1;
	background: var(--cc-bg-subtle);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	display: block;
	overflow: hidden;
}

.cc-item__image img,
.cc-offer__image img {
	aspect-ratio: 1;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.cc-item__details {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cc-item__topline {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.cc-item__name {
	color: var(--cc-text);
	font-size: clamp(13.5px, 3.9vw, 14px);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.cc-item__name:hover {
	color: var(--cc-primary);
}

.cc-item__remove {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: var(--cc-radius);
	color: var(--cc-text-soft);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 28px;
	justify-content: center;
	margin: -3px -5px 0 0;
	padding: 0;
	transition: color .2s var(--cc-ease), background-color .2s var(--cc-ease);
	width: 28px;
}

.cc-item__remove:hover {
	background: var(--cc-bg-muted);
	color: var(--cc-primary);
}

.cc-item .variation {
	color: var(--cc-text-muted);
	font-size: 12px;
	line-height: 1.35;
	margin: 4px 0 0;
}

.cc-item .variation dt,
.cc-item .variation dd,
.cc-item .variation p {
	display: inline;
	float: none;
	margin: 0;
	padding: 0;
}

.cc-item__bottomline {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 12px;
}

.cc-item__price {
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Quantity stepper (touch-friendly) ---------- */

.cc-quantity {
	align-items: center;
	background: var(--cc-bg);
	border: 1px solid var(--cc-border-strong);
	border-radius: var(--cc-radius);
	display: inline-flex;
	height: 36px;
	overflow: hidden;
}

.cc-quantity button {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--cc-text-muted);
	cursor: pointer;
	display: inline-flex;
	font-size: 17px;
	height: 100%;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background-color .16s var(--cc-ease), color .16s var(--cc-ease);
	width: 36px;
}

.cc-quantity button:hover {
	background: var(--cc-bg-subtle);
	color: var(--cc-primary);
}

.cc-quantity button:active {
	background: var(--cc-bg-muted);
	transform: scale(.94);
}

.cc-quantity input {
	appearance: none;
	background: transparent;
	border: 0;
	border-inline: 1px solid var(--cc-border);
	border-radius: 0;
	box-shadow: none;
	color: var(--cc-text);
	font-size: 13px;
	font-weight: 700;
	height: 100%;
	margin: 0;
	-moz-appearance: textfield;
	padding: 0;
	text-align: center;
	width: clamp(36px, 10vw, 42px);
}

.cc-quantity input::-webkit-inner-spin-button,
.cc-quantity input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------- Upsell offers ---------- */

.cc-offers {
	background: var(--cc-bg-subtle);
	border-block: 1px solid var(--cc-border);
	padding: 18px var(--cc-pad) 20px;
}

.cc-offers__heading {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-bottom: 13px;
}

.cc-offers__heading h3 {
	color: var(--cc-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	margin: 0;
	text-transform: uppercase;
}

.cc-offers__heading::after {
	background: var(--cc-border);
	content: "";
	flex: 1;
	height: 1px;
}

.cc-offers__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cc-offer {
	align-items: center;
	background: var(--cc-bg);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	display: grid;
	gap: clamp(10px, 3vw, 12px);
	grid-template-columns: var(--cc-offer-img) minmax(0, 1fr) auto;
	padding: 10px;
	transition: border-color .2s var(--cc-ease), box-shadow .2s var(--cc-ease);
}

.cc-offer:hover {
	border-color: var(--cc-border-strong);
	box-shadow: var(--cc-shadow-soft);
}

.cc-offer__image {
	align-self: center;
	aspect-ratio: 1;
	background: var(--cc-bg-subtle);
	border: 1px solid var(--cc-border);
	border-radius: 5px;
	display: block;
	overflow: hidden;
}

.cc-offer__copy {
	min-width: 0;
}

.cc-offer__badge {
	background: rgb(59 130 246 / 12%);
	border-radius: 4px;
	color: var(--cc-accent-hover);
	display: inline-block;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .05em;
	line-height: 1;
	margin-bottom: 5px;
	padding: 4px 6px;
	text-transform: uppercase;
	vertical-align: middle;
}

.cc-offer__name {
	color: var(--cc-text);
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.cc-offer__name:hover {
	color: var(--cc-primary);
}

.cc-offer__copy > p {
	color: var(--cc-text-soft);
	font-size: 11px;
	line-height: 1.35;
	margin: 3px 0 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cc-offer__price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	font-size: 12.5px;
	font-weight: 700;
	gap: 5px;
	margin-top: 5px;
}

.cc-offer__price del {
	color: var(--cc-text-soft);
	font-size: 11px;
	font-weight: 500;
}

.cc-offer__price ins {
	color: var(--cc-primary);
	text-decoration: none;
}

.cc-offer__add {
	align-items: center;
	align-self: center;
	appearance: none;
	background: var(--cc-bg);
	border: 1px solid var(--cc-primary);
	border-radius: var(--cc-radius);
	color: var(--cc-primary);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	gap: 4px;
	justify-content: center;
	letter-spacing: .04em;
	line-height: 1;
	min-height: 36px;
	padding: 0 clamp(12px, 3.5vw, 16px);
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .18s var(--cc-ease), color .18s var(--cc-ease), transform .18s var(--cc-ease);
}

.cc-offer__add:hover {
	background: var(--cc-primary);
	color: #fff;
}

.cc-offer__add:active {
	transform: scale(.96);
}

/* ---------- Summary / footer ---------- */

.cc-summary {
	background: var(--cc-bg);
	border-top: 1px solid var(--cc-border);
	box-shadow: 0 -10px 30px rgb(17 24 39 / 6%);
	flex: 0 0 auto;
	margin-top: auto;
	padding: 16px var(--cc-pad) calc(16px + env(safe-area-inset-bottom));
	position: sticky;
	bottom: 0;
	z-index: 2;
}

.cc-summary__subtotal {
	align-items: baseline;
	color: var(--cc-text);
	display: flex;
	justify-content: space-between;
	margin-bottom: 3px;
}

.cc-summary__subtotal span {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.cc-summary__subtotal strong {
	font-size: var(--cc-total);
	font-weight: 800;
	letter-spacing: -.01em;
}

.cc-summary > p {
	color: var(--cc-text-soft);
	font-size: 11.5px;
	margin: 0 0 13px;
}

.cc-button {
	align-items: center;
	border-radius: var(--cc-radius);
	display: inline-flex;
	font-size: 12.5px;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	letter-spacing: .06em;
	line-height: 1.2;
	min-height: 52px;
	padding: 13px 22px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s var(--cc-ease), transform .12s var(--cc-ease), box-shadow .2s var(--cc-ease);
}

.cc-button--primary {
	background: var(--cc-accent);
	box-shadow: 0 8px 20px rgb(59 130 246 / 26%);
	color: #fff;
	width: 100%;
}

.cc-button--primary:hover {
	background: var(--cc-accent-hover);
	box-shadow: 0 10px 26px rgb(59 130 246 / 32%);
	transform: translateY(-1px);
}

.cc-button--primary:active {
	transform: translateY(0);
}

.cc-button--primary svg {
	fill: none;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
	transition: transform .2s var(--cc-ease);
	width: 17px;
}

.cc-button--primary:hover svg {
	transform: translateX(3px);
}

.cc-button--secondary {
	background: var(--cc-bg);
	border: 1px solid var(--cc-border-strong);
	color: var(--cc-text);
}

.cc-button--secondary:hover {
	border-color: var(--cc-primary);
	color: var(--cc-primary);
}

.cc-trust {
	align-items: center;
	color: var(--cc-text-soft);
	display: flex;
	font-size: 11px;
	font-weight: 500;
	gap: 6px;
	justify-content: center;
	letter-spacing: .01em;
	margin-top: 12px;
}

.cc-trust svg {
	fill: none;
	height: 13px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	width: 13px;
}

/* ---------- Empty state ---------- */

.cc-cart__empty {
	align-items: center;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	padding: clamp(40px, 12vw, 60px) 32px;
	text-align: center;
}

.cc-cart__empty-mark {
	align-items: center;
	background: var(--cc-bg-subtle);
	border: 1px solid var(--cc-border);
	border-radius: 50%;
	color: var(--cc-primary);
	display: flex;
	height: clamp(68px, 20vw, 80px);
	justify-content: center;
	margin-bottom: 20px;
	width: clamp(68px, 20vw, 80px);
}

.cc-cart__empty-mark svg {
	fill: none;
	height: 34%;
	min-height: 30px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	width: 40%;
}

.cc-cart__empty h3 {
	color: var(--cc-text);
	font-size: clamp(18px, 5vw, 20px);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
	margin: 0;
}

.cc-cart__empty p {
	color: var(--cc-text-muted);
	font-size: 13.5px;
	line-height: 1.5;
	margin: 8px 0 22px;
	max-width: 280px;
}

/* ---------- Focus ---------- */

.cc-cart button:focus-visible,
.cc-cart a:focus-visible,
.cc-cart input:focus-visible {
	outline: 2px solid var(--cc-accent);
	outline-offset: 2px;
}

/* ---------- >= 600px: enhance to a right-side drawer ---------- */

@media (min-width: 600px) {
	.cc-cart {
		align-items: stretch;
		justify-content: flex-end;
	}

	.cc-cart__panel {
		border-left: 1px solid var(--cc-border);
		border-radius: 0;
		box-shadow: var(--cc-shadow-panel);
		height: 100%;
		transform: translateX(102%);
		width: min(92vw, 27rem);
	}

	.cc-cart.is-open .cc-cart__panel {
		transform: translateX(0);
	}

	.cc-cart__handle {
		display: none;
	}
}

/* Roomier drawer on large screens */
@media (min-width: 1200px) {
	.cc-cart__panel {
		width: 28rem;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.cc-cart__backdrop,
	.cc-cart__panel,
	.cc-goal__track span,
	.cc-cart-content,
	.cc-button,
	.cc-quantity button,
	.cc-offer,
	.cc-offer__add {
		animation: none !important;
		transition-duration: .01ms !important;
	}
}
