/* ==========================================================================
   T Blings – smooth scroll extras: progress bar, back-to-top, header,
   parallax helpers and premium (softer, longer) reveals.
   ========================================================================== */

/* Smooth engine handles scrolling itself */
html.tb-smooth { scroll-behavior: auto !important; }

/* ---------- Scroll progress bar ---------- */
.tb-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000;
	background: linear-gradient(90deg, #e2457f, #9b1b4a 60%, #ff9cc2);
	transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
	box-shadow: 0 0 10px rgba(226, 69, 127, .55);
}
.admin-bar .tb-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .tb-progress { top: 46px; } }

/* ---------- Header hides when scrolling down, returns when scrolling up ---------- */
.tb-header.is-sticky { transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
.tb-header.is-sticky.is-hidden { transform: translateY(-110%); box-shadow: none; }

/* ---------- Back to top (with progress ring) ---------- */
.tb-totop {
	position: fixed; right: 22px; bottom: 26px; z-index: 940; width: 50px; height: 50px; border: 0; padding: 0;
	border-radius: 50%; background: #fff; color: var(--tb-primary); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 26px rgba(155, 27, 74, .25);
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85);
	transition: opacity .35s, visibility .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}
.tb-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.tb-totop:hover { background: var(--tb-primary); color: #fff; }
.tb-totop .tb-icon { width: 22px; height: 22px; position: relative; z-index: 1; transition: transform .3s; }
.tb-totop:hover .tb-icon { transform: translateY(-3px); }
.tb-totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tb-totop__ring circle { fill: none; stroke: #e2457f; stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
@media (max-width: 767px) {
	.tb-totop { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
	.single-product .tb-totop { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .single-product .tb-totop { bottom: 96px; } }

/* ---------- Parallax helpers ---------- */
.tb-par { will-change: translate; }
.tb-slider__slide picture { display: block; scale: none; translate: none; } /* hero banner always shown in full (no crop) */
.tb-slider { isolation: isolate; }
.tb-insta { overflow: hidden; }
.tb-insta__grid { padding-inline: 8px; }
.tb-products-sec, .tb-cats { padding-bottom: 44px; }

/* ---------- Premium reveals: longer glide, soft blur-to-sharp ---------- */
:root {
	--tb-rev-dist: 54px;
	--tb-rev-time: 1.15s;
	--tb-ease: cubic-bezier(.16, 1, .3, 1);
}
.tb-anim [data-tb-rev] {
	transition: opacity var(--tb-rev-time) var(--tb-ease), transform var(--tb-rev-time) var(--tb-ease), filter var(--tb-rev-time) var(--tb-ease);
	transition-delay: var(--tb-d, 0ms);
}
@media (min-width: 768px) {
	.tb-anim [data-tb-rev="up"], .tb-anim [data-tb-rev="left"], .tb-anim [data-tb-rev="right"], .tb-anim [data-tb-rev="tilt"] { filter: blur(8px); }
	.tb-anim [data-tb-rev].is-in { filter: blur(0); }
}
.tb-anim [data-tb-rev="zoom"] { transform: translate3d(0, 30px, 0) scale(.88); }
.tb-anim [data-tb-rev="tilt"] { transform: translate3d(-60px, 24px, 0) rotate(-12deg) scale(.9); }
/* Section headings: words rise with a mask */
.tb-anim .tb-heading[data-tb-rev] { transform: none; filter: none; }
.tb-anim .tb-heading[data-tb-rev] .tb-heading__title { display: inline-block; clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s var(--tb-ease) .05s, transform 1s var(--tb-ease) .05s; }
.tb-anim .tb-heading[data-tb-rev].is-in .tb-heading__title { clip-path: inset(0 0 -20% 0); transform: none; }
@media (max-width: 767px) {
	:root { --tb-rev-dist: 30px; --tb-rev-time: .9s; }
}

/* Reduced motion (unless previewing with ?tb_motion=full) */
@media (prefers-reduced-motion: reduce) {
	html:not(.tb-motion-full) .tb-par { translate: none !important; }
	html:not(.tb-motion-full) .tb-anim [data-tb-rev] { filter: none !important; }
}

/* Hero: track height follows the active slide (set by JS) */
.tb-slider__track { align-items: flex-start; transition: transform .7s cubic-bezier(.65, .05, .36, 1), height .5s ease; }
.tb-slider--fade .tb-slider__track { align-items: start; }
