/*
Theme Name: Curly Brackets
Theme URI: https://growingcreativesprouts.com
Description: Editorial custom theme for Growing Creative Sprouts.
Version: 1.0
Author: Panagiotis Taramigos
Text Domain: trmgs
*/

/* =========================================================
   Global container + overflow fixes
   ========================================================= */

html,
body {
	overflow-x: hidden;
}

.container {
	width: min(calc(100% - 40px), 1240px);
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	background: var(--color-cream);
	transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.site-header__topbar {
	background: var(--color-mustard);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	max-height: 46px;
	opacity: 1;
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.25s ease;
}

.site-header.is-scrolled .site-header__topbar {
	max-height: 0;
	opacity: 0;
	border:none;
}

.site-header__topbar-inner {
	width: min(calc(100% - 40px), 1240px);
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 0 11px;
	text-align: center;
}

.site-header__topbar-text {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #3a342d;
}

.site-header__main {
	background: var(--color-cream);
}

.site-header__grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 24px;
	width: 100%;
	min-height: 168px;
	transition: min-height 0.35s ease;
}

.site-header.is-scrolled .site-header__grid {
	min-height: 86px;
}

.site-header__col--left {
	justify-self: start;
}

.site-header__col--center {
	justify-self: center;
}

.site-header__col--right {
	justify-self: end;
}

.site-header__nav .menu,
.site-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-header__nav a,
.site-header__menu a {
	font-family: var(--font-ui);
	font-size: 20px;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: #2f2a25;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.site-header__nav a:hover,
.site-header__menu a:hover {
	opacity: 0.7;
}

.site-header__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.site-header__logo a:hover {
	opacity: 1 !important;
}

.site-header__logo-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 135px;
	height: 135px;
	text-decoration: none;
	color: inherit;
	transition: width 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled .site-header__logo-link {
	width: 64px;
	height: 44px;
}

.site-header__logo-full,
.site-header__logo-short {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease, transform 0.35s ease;
}

.site-header__logo-full {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.site-header__logo-short {
	opacity: 0;
	transform: scale(0.75);
	pointer-events: none;
}

.site-header.is-scrolled .site-header__logo-full {
	opacity: 0;
	transform: scale(0.75);
	pointer-events: none;
}

.site-header.is-scrolled .site-header__logo-short {
	opacity: 1;
	transform: scale(1.8);
	pointer-events: auto;
}

.site-header__logo img,
.site-header__logo-full img {
	display: block;
	max-width: 135px !important;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.site-header__logo-short {
	max-width: 64px !important;
	width: 64px;
	height: auto;
	margin: 0 auto;
}

.site-header__logo-fallback {
	font-family: var(--font-heading);
	font-size: 36px;
	line-height: 1;
	letter-spacing: -0.03em;
}

/* fixed header offset */

.site-main {
	margin-top: 206px;
}

.home .site-main {
	padding-top: 0;
}

/* =========================================================
   HERO BANNER
   ========================================================= */

.trmgs-hero-banner {
	width: 100%;
	margin: 0;
}

.trmgs-hero-banner__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background: var(--color-clay);
}

.trmgs-hero-banner__content {
	min-height: inherit;
	padding: clamp(36px, 6vw, 84px) clamp(22px, 5vw, 72px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.wc-block-checkout__form .wc-blocks-components-select{margin-top:0px !important;}
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button{padding-left:25px !important;}
.trmgs-hero-banner__eyebrow {
	margin: 0 0 20px;
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(20, 19, 17, 0.85);
}

.trmgs-hero-banner__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 400;
	color: #141311;
}

.trmgs-hero-banner__title p {
	font-size: 36px;
	line-height: 1.3;
}

.trmgs-hero-banner__text {
	max-width: 32rem;
	margin-top: 22px;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(20, 19, 17, 0.82);
}

.trmgs-hero-banner__text p:last-child {
	margin-bottom: 0;
}

.trmgs-hero-banner__footer {
	margin-top: 48px;
}

.trmgs-hero-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	min-width: 230px;
	min-height: 54px;
	padding: 14px 18px;
	background: #313038;
	border: 1px solid #313038;
	border-radius: 6px;
	color: #f0ece1;
	text-decoration: none;
	font-family: var(--font-heading);
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.06em;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.trmgs-hero-banner__button:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.trmgs-hero-banner__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	font-size: 20px;
	line-height: 1;
}

.trmgs-hero-banner__media,
.trmgs-hero-banner__media-link {
	display: block;
	min-height: inherit;
	height: 100%;
}

.trmgs-hero-banner__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
	object-position: center center;
}

.trmgs-hero-banner__placeholder {
	width: 100%;
	height: 100%;
	min-height: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: rgba(0, 0, 0, 0.08);
	color: #141311;
	text-align: center;
}

.trmgs-hero-banner__placeholder span {
	font-family: var(--font-heading);
	font-size: 32px;
	line-height: 1.1;
	margin-bottom: 10px;
}

.trmgs-hero-banner__placeholder small {
	font-family: var(--font-ui);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.collab_cont {
	position: absolute;
	top: -22px;
	left: 0;
	padding: 8px 16px;
	border-radius: 5px;
	background: var(--color-clay);
	color: #fff;
}

/* =========================================================
   Front page fixes
   ========================================================= */

.home .site-main > .container {
	width: min(calc(100% - 40px), 1240px);
	max-width: 1240px;
	padding-left: 0;
	padding-right: 0;
}

.home .trmgs-hero-banner {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	max-width: none;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow: hidden;
}

.home .site-main > .container > *:first-child.trmgs-hero-banner {
	margin-top: 0;
}

.home .trmgs-hero-banner + * {
	margin-top: 0;
}

/* =========================================================
   Related products / editorial shop grid
   ========================================================= */

.trmgs-related-products {
	margin-top: var(--space-3xl);
	padding-top: var(--space-lg);
}

.trmgs-related-products__head {
	margin-bottom: 34px;
}

.trmgs-related-products__label-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px 0;
	border-top: 1px solid rgba(31, 31, 27, 0.22);
	border-bottom: 1px solid rgba(31, 31, 27, 0.22);
}

.trmgs-related-products__label-index,
.trmgs-related-products__label-text {
	font-family: var(--font-ui);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(31, 31, 27, 0.75);
}

.trmgs-related-products__label-index {
	min-width: 18px;
}

.trmgs-related-products__title {
	margin: 22px 0 0;
	font-family: var(--font-heading);
	font-size: clamp(34px, 4vw, 56px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--color-text);
}

.trmgs-related-products__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 30px;
	align-items: start;
}

.trmgs-product-card {
	position: relative;
}

.trmgs-product-card__media-wrap {
	position: relative;
	background: #f8f8f6;
	overflow: hidden;
}

.trmgs-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	background: #f8f8f6;
}

.trmgs-product-card__image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.trmgs-product-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(15, 15, 15, 0.16);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.trmgs-product-card:hover .trmgs-product-card__overlay,
.trmgs-product-card:focus-within .trmgs-product-card__overlay {
	opacity: 1;
	visibility: visible;
}

.trmgs-product-card:hover .trmgs-product-card__image,
.trmgs-product-card:focus-within .trmgs-product-card__image {
	transform: scale(1.04);
}

.trmgs-product-card__action {
	width: 50px;
	height: 50px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.96);
	color: #161616;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.trmgs-product-card__action:hover {
	transform: translateY(-2px);
	opacity: 1;
	background: #ffffff;
}

.trmgs-product-card__action svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	display: block;
}

.trmgs-product-card__meta {
	padding-top: 14px;
}

.trmgs-product-card__title {
	margin: 0 0 6px;
	font-family: var(--font-heading);
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.trmgs-product-card__title a {
	text-decoration: none;
}

.trmgs-product-card__price {
	font-family: var(--font-ui);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(31, 31, 27, 0.82);
}

.trmgs-product-card__price .amount {
	font-family: var(--font-ui);
	font-size: 13px;
	letter-spacing: 0.06em;
}

.trmgs-product-card__price del {
	opacity: 0.5;
	margin-right: 6px;
}

.trmgs-product-card__price ins {
	text-decoration: none;
}

/* =========================================================
   Latest posts - editorial card layout
   ========================================================= */

.trmgs-latest-posts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 72px 42px;
}

.trmgs-latest-posts-card {
	margin: 0;
}

.trmgs-latest-posts-card__link {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: start;
	text-decoration: none;
	color: inherit;
}

.trmgs-latest-posts-card__date-col {
	position: relative;
	min-height: 100%;
	overflow: visible;
}

.trmgs-latest-posts-card__date {
	display: inline-block;
	position: absolute;
	top: 6px;
	left: 0;
	transform: rotate(-90deg) translateX(-100%);
	transform-origin: top left;
	white-space: nowrap;
	font-family: var(--font-ui);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-soft);
}

.trmgs-latest-posts-card__body {
	min-width: 0;
}

.trmgs-latest-posts-card__image,
.trmgs-latest-posts-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
}

.trmgs-latest-posts-card__content {
	padding-top: 0;
}

.trmgs-latest-posts-card__title {
	border-top: solid thin var(--color-border);
	border-bottom: solid thin var(--color-border);
	margin: 14px 0 14px;
	padding: 16px 0;
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.12;
	letter-spacing: 0.08em;
	font-weight: 400;
	color: #141311;
}

.trmgs-latest-posts-card__excerpt {
	font-family: var(--font-body);
	font-size: clamp(18px, 1.7vw, 24px);
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #141311;
	padding-right: 88px;
}

.trmgs-latest-posts-card__excerpt p {
	margin: 0;
}

.trmgs-latest-posts-card__excerpt p + p {
	margin-top: 0.18em;
}

.trmgs-latest-posts-card .journal-card__title,
.trmgs-latest-posts-card .journal-card__excerpt,
.trmgs-latest-posts-card .journal-card__cta,
.trmgs-latest-posts-card .journal-card__eyebrow {
	display: none;
}

/* =========================================================
   Pagination design
   ========================================================= */

.trmgs-shortcode-pagination {
	margin-top: 56px;
	padding: 0;
}

.trmgs-shortcode-pagination .page-numbers {
	list-style: none;
	margin: 0;
	padding: 0 120px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.trmgs-shortcode-pagination .page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.trmgs-shortcode-pagination a.page-numbers,
.trmgs-shortcode-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border-radius: 8px;
	font-family: var(--font-ui);
	font-size: 18px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--color-text);
	text-decoration: none;
	border: 1px solid transparent;
	background: transparent;
	transition: all 0.2s ease;
}

.trmgs-shortcode-pagination a.page-numbers:hover {
	opacity: 1;
	border-color: rgba(31, 31, 27, 0.22);
}

.trmgs-shortcode-pagination span.page-numbers.current {
	border-color: rgba(31, 31, 27, 0.75);
	background: transparent;
	color: var(--font-body);
}

.trmgs-shortcode-pagination .page-numbers.prev,
.trmgs-shortcode-pagination .page-numbers.next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	min-width: auto;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 42px;
	line-height: 1;
	font-family: var(--font-heading);
}

.trmgs-shortcode-pagination .page-numbers.prev {
	left: 0;
}

.trmgs-shortcode-pagination .page-numbers.next {
	right: 0;
}

.trmgs-shortcode-pagination .page-numbers.prev:hover,
.trmgs-shortcode-pagination .page-numbers.next:hover {
	border: 0;
	opacity: 0.7;
}

.trmgs-shortcode-pagination .page-numbers.dots {
	min-width: auto;
	height: auto;
	padding: 0 2px;
	border: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199px) {
	.trmgs-hero-banner__title {
		font-size: clamp(38px, 4.2vw, 58px);
	}
}

@media (max-width: 991px) {
	.site-header__grid {
		grid-template-columns: 1fr;
		row-gap: 20px;
		padding: 24px 0;
		min-height: auto;
	}

	.site-header.is-scrolled .site-header__grid {
		min-height: auto;
		padding: 16px 0;
	}

	.site-header__col--left,
	.site-header__col--center,
	.site-header__col--right {
		justify-self: center;
	}

	.site-header__nav .menu,
	.site-header__menu {
		justify-content: center;
		flex-wrap: wrap;
	}

	.site-header__nav a,
	.site-header__menu a {
		font-size: 18px;
	}

	.site-header__logo-link {
		width: 135px;
		height: 135px;
	}

	.site-header.is-scrolled .site-header__logo-link {
		width: 64px;
		height: 44px;
	}

	.site-main {
		margin-top: 285px;
	}

	.trmgs-hero-banner__grid {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.trmgs-hero-banner__content {
		min-height: auto;
		padding: 36px 22px;
		gap: 36px;
	}

	.trmgs-hero-banner__title {
		max-width: none;
	}

	.trmgs-hero-banner__media,
	.trmgs-hero-banner__media-link,
	.trmgs-hero-banner__image,
	.trmgs-hero-banner__placeholder {
		min-height: auto;
		height: auto;
	}

	.trmgs-hero-banner__image {
		aspect-ratio: 4 / 5;
	}

	.trmgs-related-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 22px;
	}

	.trmgs-product-card__title {
		font-size: 20px;
	}

	.trmgs-latest-posts-grid {
		grid-template-columns: 1fr;
		gap: 54px;
	}

	.trmgs-latest-posts-card__link {
		grid-template-columns: 26px minmax(0, 1fr);
		column-gap: 16px;
	}

	.trmgs-latest-posts-card__title {
		font-size: clamp(26px, 7vw, 38px);
	}

	.trmgs-latest-posts-card__excerpt {
		max-width: none;
		font-size: 20px;
	}
}

@media (max-width: 767px) {
	.trmgs-shortcode-pagination {
		margin-top: 40px;
	}

	.trmgs-shortcode-pagination .page-numbers {
		padding: 0 64px;
		gap: 12px;
	}

	.trmgs-shortcode-pagination a.page-numbers,
	.trmgs-shortcode-pagination span.page-numbers {
		min-width: 28px;
		height: 28px;
		font-size: 16px;
	}

	.trmgs-shortcode-pagination .page-numbers.prev,
	.trmgs-shortcode-pagination .page-numbers.next {
		font-size: 32px;
	}
}

@media (max-width: 640px) {
	.container,
	.site-header__topbar-inner {
		width: min(calc(100% - 24px), 1240px);
	}

	.site-header__topbar-text {
		font-size: 11px;
		line-height: 1.35;
	}

	.site-header__nav a,
	.site-header__menu a {
		font-size: 16px;
	}

	.site-header__logo-link {
		width: 110px;
		height: 110px;
	}

	.site-header__logo img,
	.site-header__logo-full img {
		max-width: 110px !important;
	}

	.site-header.is-scrolled .site-header__logo-link {
		width: 58px;
		height: 58px;
	}

	.site-header__logo-short {
		max-width: 58px !important;
		width: 58px;
	}

	.site-main {
		margin-top: 270px;
	}

	.trmgs-related-products__grid {
		grid-template-columns: 1fr;
	}

	.trmgs-product-card__action {
		width: 46px;
		height: 46px;
	}
}


/* =========================================================
   Home hero desktop max size
   ========================================================= */

@media (min-width: 992px) {
	.home .trmgs-hero-banner {
		position: relative;
		left: 50%;
		width: min(100vw, 1920px);
		max-width: 1920px;
		margin-left: calc(-1 * min(50vw, 960px));
		margin-right: 0;
		overflow: hidden;
	}

	.home .trmgs-hero-banner__grid {
		height: min(52vw, 700px);
		max-height: 700px;
		min-height: 0;
		overflow: hidden;
	}

	.home .trmgs-hero-banner__content {
		height: 100%;
		min-height: 0;
		overflow: hidden;
	}

	.home .trmgs-hero-banner__media,
	.home .trmgs-hero-banner__media-link,
	.home .trmgs-hero-banner__image {
		height: 100%;
		min-height: 0;
		max-height: 700px;
	}

	.home .trmgs-hero-banner__image {
		width: 100%;
		object-fit: cover;
	}
}
