/*
 * The Total Office Shop – homepage styles.
 * Loaded only on pages using the "TTO Homepage" template.
 * Every rule is scoped to .tto-home so nothing else on the site is affected.
 */

@font-face {
	font-family: "TTO Montserrat";
	src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

body.tto-home-body {
	margin: 0;
	background: #fff;
}

.tto-home {
	--tto-black: #000;
	--tto-text: #222;
	--tto-muted: #444;
	--tto-faint: #9a9a9a;
	--tto-field: #f2f2f2;
	--tto-hero-bg: #f5f5f4;
	--tto-line: #e6e6e6;
	--tto-radius: 24px;
	--tto-gutter: clamp(20px, 4.9vw, 70px);
	--tto-max: 1300px;

	font-family: "TTO Montserrat", Montserrat, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--tto-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ---------- Local reset (protects against site-wide theme styles) ---------- */

.tto-home *,
.tto-home *::before,
.tto-home *::after {
	box-sizing: border-box;
}

.tto-home h1,
.tto-home h2,
.tto-home p,
.tto-home ul,
.tto-home address,
.tto-home figure {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	text-transform: none;
	letter-spacing: normal;
	color: inherit;
}

.tto-home ul {
	list-style: none;
}

.tto-home a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.tto-home img {
	display: block;
	max-width: 100%;
	height: auto;
}

.tto-home svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tto-home svg.tto-fill,
.tto-home svg .tto-fill {
	fill: currentColor;
	stroke: none;
}

.tto-home :focus-visible {
	outline: 2px solid var(--tto-black);
	outline-offset: 3px;
}

.tto-home .tto-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.tto-home .tto-skip {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--tto-black);
	color: #fff;
	border-radius: 9999px;
	font-size: 14px;
}

.tto-home .tto-skip:focus {
	top: 16px;
}

.tto-home .tto-wrap {
	width: 100%;
	max-width: calc(var(--tto-max) + 2 * var(--tto-gutter));
	margin-inline: auto;
	padding-inline: var(--tto-gutter);
}

/* ---------- Buttons: one pill system, two styles ---------- */

.tto-home .tto-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1.5px solid var(--tto-black);
	border-radius: 9999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.tto-home .tto-btn--solid {
	background: var(--tto-black);
	color: #fff;
}

.tto-home .tto-btn--solid:hover {
	background: #fff;
	color: var(--tto-black);
}

.tto-home .tto-btn--outline {
	background: #fff;
	color: var(--tto-black);
}

.tto-home .tto-btn--outline:hover {
	background: var(--tto-black);
	color: #fff;
}

.tto-home .tto-btn:active {
	transform: translateY(1px);
}

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

.tto-home .tto-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 48px;
	padding-bottom: 48px;
}

.tto-home .tto-logo {
	flex: 0 0 auto;
}

.tto-home .tto-logo img {
	width: 130px;
}

.tto-home .tto-search {
	position: relative;
	flex: 0 1 640px;
	margin: 0 0 0 50px;
}

.tto-home .tto-search__icon {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: var(--tto-faint);
	pointer-events: none;
}

.tto-home .tto-search__input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0 18px 0 46px;
	border: 1px solid transparent;
	border-radius: 9999px;
	background: var(--tto-field);
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	color: var(--tto-black);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tto-home .tto-search__input::placeholder {
	color: var(--tto-faint);
	opacity: 1;
}

.tto-home .tto-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.tto-home .tto-search__input:focus {
	outline: none;
	border-color: var(--tto-black);
	background: #fff;
}

.tto-home .tto-actions {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}

.tto-home .tto-cart {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--tto-black);
}

.tto-home .tto-icon {
	width: 36px;
	height: 36px;
	stroke-width: 2;
}

.tto-home .tto-cart-subtotal {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.tto-home .tto-cart:hover,
.tto-home .tto-account:hover {
	opacity: 0.6;
}

.tto-home .tto-account {
	color: var(--tto-black);
}

/* Live search dropdown */

.tto-home .tto-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 100;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--tto-line);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.tto-home .tto-search__results[hidden] {
	display: none;
}

.tto-home .tto-result {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 14px;
	align-items: center;
	padding: 8px;
	border-radius: 10px;
	color: var(--tto-text);
}

.tto-home .tto-result:hover,
.tto-home .tto-result.is-active {
	background: var(--tto-field);
}

.tto-home .tto-result__thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: var(--tto-field);
	object-fit: cover;
}

.tto-home .tto-result__name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--tto-black);
}

.tto-home .tto-result__price {
	margin-top: 2px;
	font-size: 13px;
	color: var(--tto-muted);
}

.tto-home .tto-search__status {
	padding: 12px 10px;
	font-size: 14px;
	color: var(--tto-muted);
}

.tto-home .tto-search__all {
	display: block;
	margin-top: 4px;
	padding: 12px 10px 6px;
	border-top: 1px solid var(--tto-line);
	font-size: 13px;
	font-weight: 600;
	color: var(--tto-black);
}

.tto-home .tto-search__all:hover,
.tto-home .tto-search__all.is-active {
	text-decoration: underline;
}

/* ---------- Hero ---------- */

.tto-home .tto-hero__card {
	position: relative;
	overflow: hidden;
	border-radius: var(--tto-radius);
	background: var(--tto-hero-bg);
}

.tto-home .tto-hero__img {
	width: 100%;
}

.tto-home .tto-hero__content {
	position: absolute;
	top: 50%;
	left: 3.6%;
	width: 46%;
	transform: translateY(-40%);
}

.tto-home .tto-hero__title {
	font-size: clamp(34px, 3.82vw, 55px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--tto-black);
}

.tto-home .tto-hero__text {
	max-width: 17em;
	margin-top: 24px;
	font-size: clamp(16px, 1.39vw, 20px);
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--tto-text);
}

.tto-home .tto-hero__content .tto-btn {
	margin-top: clamp(28px, 4.2vw, 60px);
}

.tto-home .tto-br-wide {
	display: inline;
}

/* ---------- Curated collections ---------- */

.tto-home .tto-collections {
	padding-top: 64px;
}

.tto-home .tto-collections__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 40px;
}

.tto-home .tto-eyebrow {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tto-black);
}

.tto-home .tto-collections__title {
	margin-top: 10px;
	font-size: clamp(28px, 2.92vw, 42px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: 0.005em;
	color: var(--tto-black);
}

.tto-home .tto-collections__intro {
	padding-bottom: 4px;
	font-size: 16px;
	color: var(--tto-text);
}

.tto-home .tto-collections__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 56px;
}

.tto-home .tto-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--tto-radius);
	background: var(--tto-hero-bg);
}

.tto-home .tto-card__media img {
	width: 100%;
	aspect-ratio: 1272 / 840;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.tto-home .tto-card__media:hover img {
	transform: scale(1.02);
}

.tto-home .tto-tag {
	position: absolute;
	top: 44px;
	left: 26px;
	padding: 6px 12px;
	border-radius: 9999px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tto-black);
}

.tto-home .tto-card__body {
	padding: 36px 20px 0;
}

.tto-home .tto-card__body p {
	max-width: 31em;
	font-size: 16px;
	line-height: 1.3;
	color: var(--tto-text);
}

.tto-home .tto-card__body .tto-btn {
	margin-top: 22px;
}

/* ---------- Footer ---------- */

.tto-home .tto-footer {
	margin-top: 112px;
	padding-bottom: 64px;
}

.tto-home .tto-footer__grid {
	display: grid;
	grid-template-columns: 290fr 262fr 222fr 226fr 300fr;
	gap: 40px 24px;
}

.tto-home .tto-social {
	display: flex;
	gap: 4px;
	margin-top: 44px;
}

.tto-home .tto-social a {
	display: block;
	padding: 2px;
	color: var(--tto-black);
}

.tto-home .tto-social a:hover {
	opacity: 0.6;
}

.tto-home .tto-social svg {
	width: 20px;
	height: 20px;
	stroke-width: 2;
}

.tto-home .tto-footer__title {
	margin-top: 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--tto-black);
}

.tto-home .tto-footer__col ul {
	margin-top: 10px;
}

.tto-home .tto-footer__col li {
	font-size: 14px;
	line-height: 31px;
	color: var(--tto-muted);
}

.tto-home .tto-footer__col a:hover {
	color: var(--tto-black);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tto-home .tto-footer__contact li {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 15px;
	align-items: start;
}

.tto-home .tto-footer__contact svg {
	width: 16px;
	height: 16px;
	margin-top: 7px;
	color: var(--tto-black);
}

.tto-home .tto-footer__contact a {
	overflow-wrap: anywhere;
}

.tto-home .tto-footer__contact address {
	line-height: 31px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
	.tto-home .tto-search {
		margin-left: 12px;
	}

	.tto-home .tto-actions {
		gap: 20px;
	}

	.tto-home .tto-icon {
		width: 30px;
		height: 30px;
	}

	.tto-home .tto-cart {
		gap: 10px;
	}

	.tto-home .tto-cart-subtotal {
		font-size: 16px;
	}

	.tto-home .tto-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr);
	}

	.tto-home .tto-footer__brand {
		grid-column: 1 / -1;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.tto-home .tto-social {
		margin-top: 0;
	}
}

/* ---------- Hero stacks: text above image (tablet portrait and phones) ---------- */

@media (max-width: 860px) {
	.tto-home .tto-hero__card {
		display: flex;
		flex-direction: column-reverse;
		border-radius: 20px;
	}

	.tto-home .tto-hero__img {
		aspect-ratio: 16 / 10;
		object-fit: cover;
		object-position: 78% 50%;
	}

	.tto-home .tto-hero__content {
		position: static;
		width: auto;
		padding: 40px 32px 8px;
		transform: none;
	}

	.tto-home .tto-hero__title {
		font-size: clamp(32px, 6vw, 44px);
	}

	.tto-home .tto-hero__text {
		margin-top: 16px;
		font-size: 17px;
	}

	.tto-home .tto-hero__content .tto-btn {
		margin-top: 24px;
	}
}

@media (max-width: 600px) {
	.tto-home .tto-hero__img {
		aspect-ratio: 4 / 3;
	}

	.tto-home .tto-hero__content {
		padding: 32px 24px 8px;
	}

	.tto-home .tto-hero__title {
		font-size: clamp(28px, 8vw, 36px);
	}

	.tto-home .tto-hero__text {
		font-size: 16px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.tto-home .tto-header__inner {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"logo actions"
			"search search";
		gap: 18px 12px;
		padding-top: 20px;
		padding-bottom: 24px;
	}

	.tto-home .tto-logo {
		grid-area: logo;
	}

	.tto-home .tto-logo img {
		width: 104px;
	}

	.tto-home .tto-actions {
		grid-area: actions;
		gap: 16px;
	}

	.tto-home .tto-search {
		grid-area: search;
		margin: 0;
	}

	.tto-home .tto-search__input {
		height: 44px;
		font-size: 16px; /* 16px stops iPhones zooming in on focus */
	}

	.tto-home .tto-icon {
		width: 28px;
		height: 28px;
	}

	.tto-home .tto-cart-subtotal {
		font-size: 15px;
	}

	.tto-home .tto-collections {
		padding-top: 48px;
	}

	.tto-home .tto-collections__head {
		display: block;
	}

	.tto-home .tto-collections__intro {
		margin-top: 12px;
	}

	.tto-home .tto-collections__grid {
		grid-template-columns: 1fr;
		gap: 48px;
		margin-top: 32px;
	}

	.tto-home .tto-card__media,
	.tto-home .tto-card__media img {
		border-radius: 20px;
	}

	.tto-home .tto-tag {
		top: 20px;
		left: 20px;
	}

	.tto-home .tto-card__body {
		padding: 24px 4px 0;
	}

	.tto-home .tto-footer {
		margin-top: 80px;
		padding-bottom: 40px;
	}

	.tto-home .tto-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}

	.tto-home .tto-footer__contact {
		grid-column: 1 / -1;
	}
}

@media (max-width: 380px) {
	.tto-home .tto-cart-subtotal {
		font-size: 14px;
	}

	.tto-home .tto-actions {
		gap: 12px;
	}
}

/* ---------- Respect reduced-motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.tto-home *,
	.tto-home *::before,
	.tto-home *::after {
		transition: none !important;
	}
}


/* ---------- Guard against site-wide link styles (Elementor/WoodMart) ---------- */

.tto-home.tto-home a,
.tto-home.tto-home input {
	font-family: inherit;
}

.tto-home .tto-footer__col a,
.tto-home .tto-footer__col address {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
}