/* POOP theme — bright, modern, friendly */

:root {
	--accent: #06b6d4; /* cyan 500 */
	--accent-600: #0891b2;
	--amber: #f59e0b;
	--bg: #f8fafc; /* slate-50 */
	--ink: #0f172a; /* slate-900 */
	--muted: #64748b; /* slate-500 */
	--card: #ffffff;
	--ring: rgba(6, 182, 212, 0.35);
}

html { scroll-behavior: smooth; }
body {
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--ink);
	background: var(--bg);
}

/* Checkout: colour preview next to select */
.color-preview {
	width: 160px;
	height: 112px;
	border-radius: 10px;
	border: 1px solid rgba(2, 6, 23, 0.08);
	background:
		radial-gradient(22px 12px at 75% 20%, rgba(6,182,212,.08), transparent 60%),
		linear-gradient(180deg, #ffffff, #f8fafc);
	box-shadow: 0 4px 16px rgba(2,6,23,.06);
	overflow: hidden;
	display: grid;
	place-items: center;
	position: relative;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.color-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .2s ease, transform .25s ease;
	opacity: 1;
}
.color-preview.is-loading img { opacity: 0; transform: scale(.98); }

/* Small color chip overlay for clarity on mobile */
.color-dot {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	border: 2px solid #ffffff; /* ring for contrast over image */
	box-shadow: 0 2px 6px rgba(2,6,23,.25);
	transform: scale(1);
	transition: transform .18s ease, box-shadow .2s ease;
	display: none; /* hidden by default on larger screens */
}
.color-dot.pop { transform: scale(1.12); }

@media (max-width: 575.98px) {
	/* Make the colour preview larger on mobile for better visibility */
	.color-preview { width: 160px; height: 112px; }
	.color-dot { display: none; width: 16px; height: 16px; right: 5px; bottom: 5px; }
    /* Align colour preview with the Colour label by nudging it upward */
    .checkout-color-section .color-preview { margin-top: -36px; }
}

/* Checkout — payment section polish */
.pay-section { margin-bottom: .75rem; }
.pay-section-title {
	font-size: .825rem;
	font-weight: 600;
	color: #334155;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	letter-spacing: .2px;
	margin-bottom: .5rem;
}
.pay-card-container {
	border: 1px solid rgba(2,6,23,.12);
	border-radius: .75rem;
	padding: .75rem;
	background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
	box-shadow: 0 6px 18px rgba(2,6,23,.06);
}
.form-sep {
	display: flex;
	align-items: center;
	gap: .75rem;
	color: var(--muted);
	font-size: .875rem;
	margin: .75rem 0 1rem;
}
.form-sep::before, .form-sep::after {
	content: "";
	height: 1px;
	background: rgba(2,6,23,.08);
	flex: 1;
}
.form-sep > span { white-space: nowrap; }
.checkout-trust { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.checkout-trust i { color: var(--accent); }
.checkout-total { font-weight: 700; color: var(--ink); }

/* Removed conflicting tiny mobile size; using the larger mobile size above */

/* Checkout: widen controls on mobile */
@media (max-width: 575.98px) {
	.qty-group { width: 100%; max-width: none !important; }
	#shipCountryCustom, #shipCountryTrigger { width: 100%; max-width: none !important; }
}

/* Custom select styling (matches site aesthetics) */
.select-custom { position: relative; max-width: 100%; }
.select-trigger {
	background: #fff;
	border: 1px solid rgba(2,6,23,.12);
	border-radius: .75rem;
	padding: .5rem .75rem;
	min-height: 42px;
	cursor: pointer;
}
.select-trigger:focus { outline: 0; box-shadow: 0 0 0 .25rem var(--ring); border-color: var(--accent); }
.select-menu {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px);
	background: #fff;
	border: 1px solid rgba(2,6,23,.12);
	border-radius: .75rem;
	box-shadow: 0 12px 30px rgba(2,6,23,.12);
	padding: .25rem; margin: 0; list-style: none;
	display: none;
	z-index: 1050;
}
.select-custom.open .select-menu { display: block; }
.select-option { padding: .5rem .5rem; border-radius: .5rem; cursor: pointer; }
.select-option:hover { background: rgba(6,182,212,.08); }

.text-accent { color: var(--accent) !important; }
.bg-light-alt { background: #f9fbfd; }
.bg-amber-subtle { background: rgba(245, 158, 11, 0.1) !important; }
.text-amber { color: var(--amber) !important; }

.navbar { transition: background-color .2s ease, box-shadow .2s ease; }
.navbar-scrolled { box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06); backdrop-filter: saturate(1.1) blur(6px); }
.navbar .nav-link { padding: .5rem .75rem; }
.navbar .nav-link:hover { color: var(--accent); }

.logo-poop { letter-spacing: .5px; background: linear-gradient(90deg, var(--accent), #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent;}

.hero-section {
	position: relative;
	overflow: hidden;
	min-height: 88vh;
	padding-top: 7rem;
	padding-bottom: 3rem;
}

.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.48); }

.hero-section > .container { position: relative; z-index: 1; }

.gradient-text { background: linear-gradient(90deg, var(--ink), #334155); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-text-hero { background: linear-gradient(90deg, #ffffff, #e2e8f0); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.hero-lead { color: rgba(255,255,255,.9); }

/* Hero benefits chips */
.hero-benefits { color: #fff; }
.benefit-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .75rem 1rem;
	width: 100%;
	background: rgba(15, 23, 42, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	box-shadow: 0 10px 25px rgba(0,0,0,.25);
	backdrop-filter: blur(6px) saturate(1.1);
	-webkit-backdrop-filter: blur(6px) saturate(1.1);
}
.benefit-icon i { font-size: 1.25rem; color: var(--accent); }
.benefit-text { font-weight: 600; letter-spacing: .2px; }

@media (min-width: 768px) {
	.benefit-chip { padding: .9rem 1.25rem; }
	.benefit-icon i { font-size: 1.35rem; }
	.benefit-text { font-size: 1.05rem; }
}

/* Hero primary CTA */
.btn-hero-cta {
	font-weight: 800;
	letter-spacing: .2px;
	border-radius: 999px;
	padding: 0.15rem 1.75rem;
	font-size: clamp(1.05rem, 1.2vw + 1rem, 1.45rem);
	box-shadow: 0 18px 40px rgba(6, 182, 212, .35), 0 4px 10px rgba(0,0,0,.15);
	position: relative;
	overflow: visible;
	isolation: isolate; /* keep ring behind label */
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}
.btn-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 22px 48px rgba(6,182,212,.42), 0 6px 14px rgba(0,0,0,.18); }
.btn-hero-cta:active { transform: translateY(0); }

/* Gentle pulse ring to draw attention */
.btn-hero-cta::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: inherit;
	border: 2px solid rgba(6,182,212,.8);
	opacity: 0;
	animation: cta-ring 2.8s ease-out infinite;
	z-index: -1;
}
@keyframes cta-ring {
	0% { transform: scale(.9); opacity: .55; }
	60% { transform: scale(1.15); opacity: 0; }
	100% { transform: scale(1.15); opacity: 0; }
}

@media (max-width: 575.98px) {
	.btn-hero-cta { width: auto; padding: .15rem 1.5rem; font-size: 1.15rem; margin-bottom: 15px;}
}

/* CTA arrow and trust line */
.btn-hero-cta .cta-arrow { font-size: 1.25em; margin-left: .35rem; transition: transform .2s ease; }
.btn-hero-cta:hover .cta-arrow { transform: translateX(3px); }
.hero-trust { color: rgba(255,255,255,.78); }
.hero-trust i { color: var(--accent); }

.gradient-text { background: linear-gradient(90deg, var(--ink), #334155); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fw-extrabold { font-weight: 800; }

.btn-accent {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--accent);
	--bs-btn-border-color: var(--accent);
	--bs-btn-hover-bg: var(--accent-600);
	--bs-btn-hover-border-color: var(--accent-600);
	--bs-btn-focus-shadow-rgb: 6, 182, 212;
}

.section-pad { padding: 5rem 0; }
.section-pad-cta { padding: 6rem 0; }

.feature-card {
	background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.98)) padding-box,
	            linear-gradient(135deg, rgba(6,182,212,.35), rgba(34,211,238,.15)) border-box;
	border: 1px solid transparent;
	border-radius: 1rem;
	box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}
.feature-card:hover { box-shadow: 0 16px 36px rgba(2,6,23,0.09); }
.icon-badge { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(6,182,212,.12); color: var(--accent); font-size: 1.1rem; }

.gallery-tile { position: relative; overflow: hidden; background: linear-gradient(135deg, #e0f7fa, #fdf2e9); }
.gallery-tile.alt { background: linear-gradient(135deg, #e6fffb, #eef2ff); }
.gallery-tile .overlay { position: absolute; inset: 0; display: grid; place-items: end start; padding: .75rem 1rem; color: #0f172a; font-weight: 600; opacity: .9; }
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 75% 25%, rgba(6,182,212,.18), transparent 60%); mix-blend-mode: multiply; }
/* Gallery images and playful hover */
.gallery-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.gallery-tile:hover img { transform: scale(1.03); }
.gallery-tile .overlay { background: linear-gradient(180deg, transparent 55%, rgba(255,255,255,.9)); }

.spec-list li { margin-bottom: .5rem; color: #334155; }
.spec-list i { color: var(--accent); margin-right: .5rem; }
.spec-block { background: linear-gradient(180deg, rgba(6,182,212,.08), rgba(6,182,212,0)); border: 1px solid rgba(2,6,23,0.06); }
.bg-spec { background: #ffffff; border: 1px dashed rgba(2,6,23,.12); }
/* Utility in case needed */
.object-fit-cover { object-fit: cover; }

.review-card { background: var(--card); border: 1px solid rgba(2,6,23,0.06); border-radius: 1rem; box-shadow: 0 10px 30px rgba(2,6,23,0.05); }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: rgba(6,182,212,.12); color: var(--accent); display: grid; place-items: center; font-weight: 700; }

.cta-card { background: linear-gradient(180deg, rgba(34,211,238,.12), rgba(6,182,212,.08)); border: 1px solid rgba(2,6,23,0.08); box-shadow: 0 20px 50px rgba(6,182,212,.15); }

/* Accordions */
.accordion-button:focus { box-shadow: 0 0 0 .25rem var(--ring); }
.accordion-button:not(.collapsed) { color: var(--ink); background-color: rgba(6,182,212,.08); }

/* Utilities */
code { background: rgba(15, 23, 42, 0.05); padding: .15rem .35rem; border-radius: .35rem; }

@media (max-width: 575.98px) {
	/* Tighter hero on small phones */
	.hero-section { padding-top: 4rem; padding-bottom: 1.25rem; min-height: 72vh; }
	.hero-overlay { background: rgba(0,0,0,.52); }
	.hero-section .badge { margin-bottom: .5rem !important; }
	.hero-section .display-4 { margin-bottom: .5rem !important; font-size: 2.25rem; line-height: 1.15; }
	.hero-section .hero-lead { margin-bottom: .75rem; }
	.btn-hero-cta { margin-top: .25rem; }
	.hero-trust { margin-top: .35rem !important; margin-bottom: 0 !important; }
	/* Hide hero benefit chips on small phones */
	.hero-benefits { display: none !important; }
	/* Sticky mobile buy bar */
	.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding: .5rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.7); backdrop-filter: blur(8px) saturate(1.2); border-top: 1px solid rgba(2,6,23,.08); }
	.sticky-cta-btn { width: 100%; border-radius: 999px; font-weight: 800; padding: .9rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; box-shadow: 0 12px 28px rgba(6,182,212,.28); }
	body { padding-bottom: 84px; }
	/* But on checkout we don't show the sticky CTA, so remove the extra bottom space */
	body.page-checkout { padding-bottom: 0 !important; }

	/* Features: horizontal scroller and larger icons on phones */
	#features .features-row { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 1rem; margin-left: 0; margin-right: 0; padding: 0 .75rem 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
	#features .features-row > [class*="col-"] { flex: 0 0 85%; max-width: 85%; padding-left: 0; padding-right: 0; scroll-snap-align: center; }
	#features .feature-card { min-height: 200px; }
	#features .icon-badge { width: 52px; height: 52px; font-size: 1.25rem; }
	.swipe-hint { opacity: .85; }
}

.logo-icon {
	width: 32px;
	height: 32px;
	vertical-align: middle;
	margin-right: 8px;
}

/* Mobile: nudge brand text down for visual alignment with emoji and toggler */
@media (max-width: 575.98px) {
	.navbar .navbar-brand .logo-poop,
	.navbar .navbar-brand .text-muted,
	.logo-poop-holder {
		display: inline-block; /* ensure transform applies as expected */
		transform: translateY(5px);
	}
}