/**
 * Twentytrue Global Main Layout & Core Utilities
 * Typography: Cormorant Garamond Display & Heading Stack
 * Author: Mahendra_K
 */

/* 1. Lightweight Branded Preloader Overlay */
.tt-preloader {
	position: fixed;
	inset: 0;
	z-index: var(--tt-z-preloader, 99999);
	background: #FAF6F7;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	pointer-events: all;
}

.tt-preloader.is-loaded {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.tt-preloader-inner {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.tt-preloader-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.tt-preloader-img {
	width: auto;
	height: 36px;
	max-width: 170px;
	object-fit: contain;
	display: block;
}

.tt-preloader-bar {
	width: 120px;
	height: 2px;
	background: var(--tt-color-border);
	border-radius: var(--tt-radius-full);
	overflow: hidden;
	margin-top: 2px;
}

.tt-preloader-progress {
	width: 40%;
	height: 100%;
	background: linear-gradient(90deg, var(--tt-color-rose), var(--tt-color-gold));
	border-radius: var(--tt-radius-full);
	animation: ttPreloadPulse 1.2s infinite ease-in-out;
}

@keyframes ttPreloadPulse {
	0% { transform: translateX(-100%); }
	50% { transform: translateX(100%); width: 70%; }
	100% { transform: translateX(250%); }
}

/* 2. Page & Container Shell */
#page,
.site {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.site-main {
	flex: 1;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.tt-container {
	width: 100%;
	max-width: var(--tt-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--tt-space-4);
	padding-right: var(--tt-space-4);
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.tt-container {
		padding-left: var(--tt-space-6);
		padding-right: var(--tt-space-6);
	}
}

.tt-container-wide {
	width: 100%;
	max-width: var(--tt-container-wide);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--tt-space-4);
	padding-right: var(--tt-space-4);
}

/* 3. Typography Defaults with Cormorant Garamond */
h1, h2, h3, h4, h5, h6,
.tt-font-display,
.tt-section-title,
.tt-hero-title,
.tt-brand-logo-text,
.tt-pdp-title {
	font-family: var(--tt-font-display);
	color: var(--tt-color-ink);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: var(--tt-tracking-wide);
	margin-bottom: var(--tt-space-3);
}

h1 { font-size: var(--tt-font-size-h1); font-weight: 700; }
h2 { font-size: var(--tt-font-size-h2); }
h3 { font-size: var(--tt-font-size-h3); }
h4 { font-size: var(--tt-font-size-h4); }

p {
	margin-bottom: var(--tt-space-4);
	color: var(--tt-color-ink-light);
	line-height: 1.65;
}

.tt-section-title-wrap {
	text-align: center;
	margin-bottom: var(--tt-space-10);
}

.tt-section-subtitle {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tt-tracking-widest);
	color: var(--tt-color-rose);
	margin-bottom: var(--tt-space-2);
	display: block;
}

.tt-section-title {
	font-size: var(--tt-font-size-h2);
	font-weight: 600;
	margin-bottom: var(--tt-space-2);
}

.tt-section-desc {
	font-size: var(--tt-font-size-body);
	color: var(--tt-color-text-muted);
	max-width: 620px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Brand Logo Text */
.tt-brand-logo-text {
	font-family: var(--tt-font-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--tt-color-ink);
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.tt-brand-logo-text span {
	color: var(--tt-color-rose);
}

/* Visually Hidden */
.tt-visually-hidden,
.tt-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}