/* ==========================================================================
 * TipTop Toolkit — base: tokens, type, buttons, utilities.
 *
 * Every widget renders inside `.tt`. Component rules are written as
 * `.tt .tt-x` (0,2,0) so they beat Hello's resets (`a`, `button:hover` at
 * 0,1,1) and Elementor's `.elementor img { height: auto }` (0,1,1), while
 * Elementor's own control CSS ({{WRAPPER}} …, 0,3,0+) still wins over them.
 *
 * Token names are prefixed (--tt-…): never reuse Elementor's container
 * variables (--display, --gap, --width, --padding-*, --content-width).
 * ======================================================================== */

:root {
	/* Palette (retune here). */
	/* Clean sneaker shop: white page, grey image wells, ink text, red for sale prices. */
	--tt-ink: #111111;      /* text, solid buttons */
	--tt-paper: #ffffff;    /* page */
	--tt-white: #ffffff;    /* cards, fields */
	--tt-mist: #f2f2f2;     /* panels, image wells — same grey as the product packshots */
	--tt-line: #e3e3e3;     /* hairlines, field borders */
	--tt-mute: #636363;     /* secondary text — 6:1 on white */
	--tt-accent: #c8361f;   /* sale red: focus ring, prices off, details */
	--tt-red: #c8361f;      /* sale red — white text on it is 4.9:1 */
	--tt-red-deep: #a92b17; /* hover on red */
	--tt-kraft: #e6c79b;    /* swing-tag card */
	--tt-kraft-ink: #3f3122;
	--tt-stone: #f2f2f2;    /* image wells */
	--tt-deep: #2a2724;     /* dark sections, hover on solid buttons */
	--tt-soft: #ebe7df;     /* hover wells, chips */
	--tt-grey: #45413c;

	--tt-font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tt-font-serif: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; /* display role: used condensed + heavy */
	--tt-pad: clamp(16px, 3.4vw, 48px);
	--tt-max: 1440px;
	--tt-ease: cubic-bezier(.2, .7, .2, 1);
	--tt-r: 4px;            /* cards, images, fields */
	--tt-r-btn: 4px;        /* buttons */

	--tt-fs-display: clamp(40px, 1.4rem + 4vw, 84px);
	--tt-fs-h2: clamp(24px, 1.2rem + 1vw, 34px);
	--tt-fs-lead: clamp(16px, 1.2vw, 19px);
}

body.tt-site {
	margin: 0;
	background: var(--tt-paper);
	color: var(--tt-ink);
	font: 400 16px/1.6 var(--tt-font-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
/* iOS Safari doesn't take overflow-x from <body>: also on <html>. */
html:has(body.tt-site) { overflow-x: hidden; }
body.tt-site .site-main,
body.tt-site .page-content { margin: 0; padding: 0; max-width: none; }

.tt {
	position: relative;
	font-family: var(--tt-font-sans);
	color: var(--tt-ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.tt *, .tt *::before, .tt *::after { box-sizing: border-box; }
.tt img, .tt video, .tt svg { display: block; max-width: 100%; }
.tt a { color: inherit; }
.tt h1, .tt h2, .tt h3, .tt h4, .tt p, .tt figure, .tt ul, .tt ol, .tt dl, .tt dd, .tt blockquote { margin: 0; }
.tt ul, .tt ol { padding: 0; list-style: none; }
.tt h1, .tt h2 { font-family: var(--tt-font-serif); font-weight: 800; font-stretch: 100%; text-transform: none; letter-spacing: -.015em; line-height: 1.1; color: inherit; }
.tt h3, .tt h4 { font-family: var(--tt-font-sans); font-weight: 700; letter-spacing: 0; line-height: 1.25; color: inherit; }
/* Display text: condensed, heavy, upper case (headings, big prices, labels on photos). */
.tt .tt-display { font-family: var(--tt-font-serif); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .9; }
.tt .tt-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tt-mute); }
.tt button, .tt input, .tt select, .tt textarea { font-family: var(--tt-font-sans); }
.tt :focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 3px; }

.tt .tt-wrap { max-width: var(--tt-max); margin: 0 auto; padding: 0 var(--tt-pad); }
.tt .tt-sr, .tt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tt .tt-lead { font-size: var(--tt-fs-lead); color: var(--tt-mute); max-width: 44ch; }
.tt .tt-link { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tt .tt-link:hover { text-decoration-thickness: 2px; }

/* Sections sit above anything a hero layers under them. */
.elementor .tt { z-index: 2; }
/* Every toolkit widget fills its container's width (flex items otherwise size to content). */
.elementor-widget[class*="elementor-widget-tiptop_"] { width: 100%; align-self: stretch; }

/* ---------------------------------------------------------------- buttons */
.tt .tt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 30px;
	border-radius: var(--tt-r-btn); border: 2px solid currentColor;
	font-family: var(--tt-font-sans); font-size: 14px; font-weight: 700; line-height: 1;
	letter-spacing: .07em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--tt-ease);
}
.tt .tt-btn:active { transform: translateY(1px); }
.tt .tt-btn--solid { background-color: var(--tt-ink); border-color: var(--tt-ink); color: var(--tt-white); }
.tt .tt-btn--solid:hover, .tt .tt-btn--solid:focus-visible { background-color: var(--tt-red); border-color: var(--tt-red); color: var(--tt-white); }
.tt .tt-btn--red { background-color: var(--tt-red); border-color: var(--tt-red); color: var(--tt-white); }
.tt .tt-btn--red:hover, .tt .tt-btn--red:focus-visible { background-color: var(--tt-red-deep); border-color: var(--tt-red-deep); color: var(--tt-white); }
.tt .tt-btn--line { background-color: transparent; color: var(--tt-ink); }
.tt .tt-btn--line:hover, .tt .tt-btn--line:focus-visible { background-color: var(--tt-ink); color: var(--tt-paper); border-color: var(--tt-ink); }
.tt .tt-btn--text { min-height: 0; padding: 0 0 4px; border: 0; border-bottom: 2px solid currentColor; background: none; color: var(--tt-ink); font-size: 13px; letter-spacing: .08em; }
.tt .tt-btn--text:hover { color: var(--tt-mute); }
.tt .tt-btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }
.tt .tt-btn[disabled], .tt .tt-btn.is-busy { opacity: .6; pointer-events: none; }

.tt.tt-dark, .tt .tt-dark { color: var(--tt-paper); }
.tt.tt-dark .tt-btn--solid, .tt .tt-dark .tt-btn--solid { background-color: var(--tt-paper); border-color: var(--tt-paper); color: var(--tt-ink); }
.tt.tt-dark .tt-btn--solid:hover, .tt .tt-dark .tt-btn--solid:hover { background-color: var(--tt-soft); border-color: var(--tt-soft); color: var(--tt-ink); }
.tt.tt-dark .tt-btn--line, .tt .tt-dark .tt-btn--line { color: var(--tt-paper); }
.tt.tt-dark .tt-btn--line:hover, .tt .tt-dark .tt-btn--line:hover { background-color: var(--tt-paper); color: var(--tt-ink); border-color: var(--tt-paper); }

/* Plain reset for <button>s the widgets use as controls (beats Hello's pink hover). */
.tt .tt-plain { background-color: transparent; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.tt .tt-plain:hover, .tt .tt-plain:focus { background-color: transparent; color: inherit; }

/* ---------------------------------------------------------------- page hero + first section
   The hero's bottom padding and the next section's top padding would stack into a big gap. */
.e-con:has(.tt.tt-ph) + .e-con .tt.tt-rt,
.e-con:has(.tt.tt-ph) + .e-con .tt.tt-shop-a,
.e-con:has(.tt.tt-ph) + .e-con .tt.tt-pg { padding-top: clamp(8px, 1.6vw, 24px); }
.e-con:has(.tt.tt-ph:not(.is-split):not(.is-image)) + .e-con .tt.tt-cat { padding-top: 0; }

/* ---------------------------------------------------------------- other plugins' forms inside TipTop text
   WPForms (contact, returns) and WooCommerce order tracking. */
.tt.tt-rt .wpforms-container { margin: 24px 0 0; }
.tt.tt-rt input[type="text"], .tt.tt-rt input[type="email"], .tt.tt-rt input[type="tel"], .tt.tt-rt input[type="number"], .tt.tt-rt textarea, .tt.tt-rt select,
.tt.tt-rt .wpforms-form input.wpforms-field-medium, .tt.tt-rt .wpforms-form textarea.wpforms-field-medium { max-width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--tt-line); border-radius: var(--tt-r); background: #fff; box-shadow: none; font-family: var(--tt-font-sans); font-size: 15px; color: var(--tt-ink); }
.tt.tt-rt textarea, .tt.tt-rt .wpforms-form textarea.wpforms-field-medium { min-height: 140px; }
.tt.tt-rt input:focus, .tt.tt-rt textarea:focus, .tt.tt-rt select:focus { border-color: var(--tt-ink); outline: none; box-shadow: none; }
.tt.tt-rt .wpforms-form .wpforms-field-label, .tt.tt-rt label { font-family: var(--tt-font-sans); font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--tt-ink); }
.tt.tt-rt .wpforms-form button[type="submit"], .tt.tt-rt .wpforms-form .wpforms-submit, .tt.tt-rt button[type="submit"], .tt.tt-rt input[type="submit"], .tt.tt-rt .track_order .button {
	display: inline-flex !important; align-items: center; justify-content: center; min-height: 52px !important; padding: 0 30px !important;
	border: 1px solid var(--tt-ink) !important; border-radius: var(--tt-r-btn) !important; background: var(--tt-ink) !important; color: var(--tt-paper) !important;
	font-family: var(--tt-font-sans) !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: .14em; text-transform: uppercase; line-height: 1 !important; cursor: pointer;
}
.tt.tt-rt .wpforms-form button[type="submit"]:hover, .tt.tt-rt button[type="submit"]:hover, .tt.tt-rt input[type="submit"]:hover, .tt.tt-rt .track_order .button:hover { background: var(--tt-deep) !important; }
.tt.tt-rt .tt-rt-kicker { margin: 40px 0 -8px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--tt-mute); }

/* ---------------------------------------------------------------- section heading row */
.tt .tt-sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.6vw, 48px); }
.tt .tt-sec-head .tt-h2 { font-size: var(--tt-fs-h2); max-width: 16ch; }

/* ---------------------------------------------------------------- toast */
.tt-toast {
	position: fixed; z-index: 9990; right: 20px; bottom: 20px;
	display: flex; align-items: center;
	width: 420px; max-width: calc(100vw - 40px);
	background: var(--tt-ink); color: #fff; border-radius: var(--tt-r);
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55);
	font: 400 15px/1.4 var(--tt-font-sans);
	transform: translateY(calc(100% + 40px)); visibility: hidden;
	transition: transform .5s var(--tt-ease), visibility 0s .5s;
}
.tt-toast.is-on { transform: none; visibility: visible; transition: transform .5s var(--tt-ease); }
.tt-toast.is-error { background: #6b1d1d; }
.tt-toast .tt-toast__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 6px 12px 12px; color: #fff; text-decoration: none; }
.tt-toast a.tt-toast__main:hover .tt-toast__go, .tt-toast a.tt-toast__main:focus-visible .tt-toast__go { background: #fff; color: var(--tt-ink); }
.tt-toast a.tt-toast__main:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.tt-toast img { flex: none; width: 46px; height: 58px; object-fit: cover; background: var(--tt-mist); }
.tt-toast img[src=""], .tt-toast img[hidden] { display: none; }
.tt-toast .tt-toast__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tt-toast b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-toast .tt-toast__txt span { font-size: 14px; color: rgba(255, 255, 255, .72); }
.tt-toast .tt-toast__go { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--tt-r-btn); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: background-color .2s, color .2s; }
.tt-toast .tt-toast__go[hidden] { display: none; }
.tt-toast .tt-toast__x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-right: 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer; }
.tt-toast .tt-toast__x:hover, .tt-toast .tt-toast__x:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.tt-toast .tt-toast__x svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
	/* Phones: a full-width bar above the home indicator; the whole bar opens the bag. */
	.tt-toast { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; }
	.tt-toast .tt-toast__main { gap: 12px; padding: 10px 4px 10px 10px; }
	.tt-toast img { width: 42px; height: 52px; }
	.tt-toast .tt-toast__go { min-height: 36px; padding: 0 14px; }
	.tt-toast .tt-toast__x { width: 36px; height: 36px; margin-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	/* transition: none (not a tiny duration): a near-zero transition on font-size breaks fit scripts. */
	.tt *, .tt *::before, .tt *::after, .tt-toast { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
