/* Great I Am – Pesquisa a ecrã inteiro */

/* A pesquisa original do tema fica escondida enquanto esta estiver ativa */
html.giaw-sr-ready .header-search-dropdown .nav-dropdown {
	display: none !important;
}
html.gsr-lock {
	overflow: hidden;
}

.gsr {
	--gsr-line: #ececec;
	--gsr-muted: #777;
	--gsr-red: #d90000;
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #111;
	font-family: inherit;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.gsr.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
	.gsr { transition: none; transform: none; }
}

/* ---------- Barra ---------- */
.gsr__bar {
	flex: none;
	border-bottom: 1px solid var(--gsr-line);
	background: #fff;
}
.gsr__bar-in {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1240px;
	height: 80px;
	margin: 0 auto;
	padding: 0 24px;
}
.gsr__icon {
	display: flex;
	flex: none;
	color: #111;
}
.gsr .gsr__bar .gsr__input,
.gsr .gsr__bar .gsr__input:focus {
	flex: 1;
	width: auto;
	min-width: 0;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #111;
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.gsr .gsr__input::placeholder {
	color: #aaa;
	font-weight: 400;
	opacity: 1;
}
.gsr .gsr__input::-webkit-search-cancel-button,
.gsr .gsr__input::-webkit-search-decoration {
	-webkit-appearance: none;
	display: none;
}
.gsr button {
	margin: 0;
	text-transform: none;
}
.gsr .gsr__clear {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f1f1;
	box-shadow: none;
	color: #111;
	cursor: pointer;
}
.gsr .gsr__clear[hidden] {
	display: none;
}
.gsr .gsr__clear:hover {
	background: #e6e6e6;
}
.gsr .gsr__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid #d6d6d6;
	border-radius: var(--giaw-r-btn, 5px);
	background: #fff;
	box-shadow: none;
	color: #111;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}
.gsr .gsr__close:hover {
	border-color: #111;
}
.gsr .gsr__close .gsr__close-m {
	display: none;
}

/* ---------- Corpo ---------- */
.gsr__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.gsr__wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 28px 24px 90px;
}
.gsr-sec {
	margin-bottom: 34px;
}
.gsr-h {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 12px;
	color: var(--gsr-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.gsr .gsr-link {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--gsr-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}
.gsr-count {
	margin: 0 0 18px;
	color: #555;
	font-size: 14px;
}
.gsr-count em {
	color: var(--gsr-muted);
	font-style: normal;
}

/* ---------- Atalhos ---------- */
.gsr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.gsr .gsr-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 15px;
	border: 1px solid #dcdcdc;
	border-radius: var(--giaw-r-btn, 5px);
	background: #fff;
	box-shadow: none;
	color: #111;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.gsr .gsr-chip:hover,
.gsr .gsr-chip:focus-visible {
	border-color: #111;
	background: #fafafa;
	color: #111;
}
.gsr .gsr-chip small {
	color: #999;
	font-size: 11px;
}
.gsr-chips--big .gsr-chip {
	height: 46px;
	padding: 0 22px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* ---------- Produtos ---------- */
.gsr-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 22px 16px;
}
.gsr-grid--strip {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
.gsr-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	border-radius: var(--giaw-r-card, 5px);
	color: #111;
	text-decoration: none;
}
.gsr-card:hover .gsr-card__name,
.gsr-card[aria-selected="true"] .gsr-card__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.gsr-card[aria-selected="true"] .gsr-card__img {
	outline: 2px solid #111;
	outline-offset: 2px;
}
.gsr-card__img {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	margin-bottom: 6px;
	border-radius: var(--giaw-r-card, 5px);
	background: #f3f3f3;
}
.gsr-card__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 20%;
	transition: transform .35s ease;
}
.gsr-card:hover .gsr-card__img img {
	transform: scale(1.03);
}
.gsr-card.is-out .gsr-card__img img {
	opacity: .45;
}
.gsr-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 4px 8px;
	border-radius: var(--giaw-r-btn, 5px);
	background: var(--gsr-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}
.gsr-out {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 10px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.gsr-card__name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	text-transform: uppercase;
}
.gsr-card__price {
	font-size: 13px;
	font-weight: 700;
}
.gsr-card__price del {
	color: #888;
	font-size: 12px;
	font-weight: 400;
}
.gsr-card__price .gsr-sale {
	color: var(--gsr-red);
}
.gsr-card.is-out .gsr-card__price {
	color: #888;
}

.gsr-morewrap {
	margin: 30px 0 6px;
	text-align: center;
}
.gsr .gsr-more {
	height: 46px;
	padding: 0 30px;
	border: 1px solid #111;
	border-radius: var(--giaw-r-btn, 5px);
	background: #111;
	box-shadow: none;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}
.gsr .gsr-more:hover {
	background: #000;
}
.gsr-all {
	margin: 26px 0 0;
	text-align: center;
	font-size: 13px;
}
.gsr-all a {
	color: #555;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.gsr-all a:hover {
	color: #111;
}

/* ---------- Sem resultados e carregamento ---------- */
.gsr-none {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	max-width: 480px;
	margin: 10px auto 36px;
	padding: 36px 0 0;
	text-align: center;
}
.gsr-none strong {
	font-size: 18px;
}
.gsr-none span {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}
.gsr-loading {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}
.gsr-loading span {
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: var(--giaw-r-card, 5px);
	background: linear-gradient(90deg, #f3f3f3, #fafafa, #f3f3f3);
	background-size: 200% 100%;
	animation: gsr-shine 1.2s linear infinite;
}
.gsr-loading span:nth-child(n+5) {
	display: none;
}
@keyframes gsr-shine {
	to { background-position: -200% 0; }
}

/* ---------- Ecrãs médios e telemóvel ---------- */
@media (max-width: 1099px) {
	.gsr-grid,
	.gsr-grid--strip,
	.gsr-loading {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 849px) {
	.gsr-grid,
	.gsr-grid--strip,
	.gsr-loading {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.gsr-grid--strip .gsr-card:nth-child(n+7) {
		display: none;
	}
}
@media (max-width: 549px) {
	.gsr__bar-in {
		gap: 10px;
		height: 64px;
		padding: 0 14px;
	}
	.gsr .gsr__bar .gsr__input,
	.gsr .gsr__bar .gsr__input:focus {
		height: 44px;
		font-size: 17px;
	}
	.gsr .gsr__close {
		height: 40px;
		padding: 0 4px;
		border-color: transparent;
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0;
		text-transform: none;
	}
	.gsr .gsr__close .gsr__close-d {
		display: none;
	}
	.gsr .gsr__close .gsr__close-m {
		display: inline;
	}
	/* categorias dos resultados numa só linha deslizante, para os produtos aparecerem logo */
	.gsr-chips--scroll {
		flex-wrap: nowrap;
		margin: 0 -14px;
		padding: 0 14px 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.gsr-chips--scroll::-webkit-scrollbar {
		display: none;
	}
	.gsr-chips--scroll .gsr-chip {
		flex: none;
		height: 36px;
	}
	.gsr-sec--cats {
		margin-bottom: 20px;
	}
	.gsr__wrap {
		padding: 20px 14px 80px;
	}
	.gsr-grid,
	.gsr-grid--strip,
	.gsr-loading {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 10px;
	}
	.gsr-grid--strip .gsr-card:nth-child(n+5) {
		display: none;
	}
	.gsr-loading span:nth-child(n+3) {
		display: none;
	}
	.gsr-chips--big .gsr-chip {
		height: 42px;
		padding: 0 16px;
		font-size: 13px;
	}
	.gsr-sec {
		margin-bottom: 28px;
	}
}

/* Preço a carregar (contas com preços especiais) */
.gsr-wait {
	display: inline-block;
	width: 74px;
	height: 14px;
	border-radius: 7px;
	background: linear-gradient(90deg, #eee, #f8f8f8, #eee);
	background-size: 200% 100%;
	vertical-align: middle;
	animation: gsr-shine 1.2s linear infinite;
}

.gsr-note {
	color: #777;
	font-size: 11px;
	font-weight: 500;
}
.gsr-rec {
	display: block;
	color: #888;
	font-size: 11px;
	font-weight: 400;
}

/* ---------- Botão do shortcode [giaw_search] ---------- */
.giaw-sbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 34px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	/* cor própria: o Flatsome dá cor clara aos elementos HTML do menu móvel (.nav-dark), o ícone ficava branco sobre branco */
	color: var(--giaw-sbtn-color, #111) !important;
	font: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}
.giaw-sbtn:hover,
.giaw-sbtn:focus {
	color: var(--giaw-sbtn-color, #111) !important;
	opacity: .75;
}
.giaw-sbtn__icon {
	flex: none;
}
.giaw-sbtn__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.giaw-sbtn--bar {
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	min-width: 220px;
	max-width: 420px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid #d6d6d6;
	border-radius: var(--giaw-r-btn, 5px);
	background: #fff;
	color: #111 !important;
}
.giaw-sbtn--bar:hover {
	border-color: #111;
	opacity: 1;
}
.giaw-sbtn--bar .giaw-sbtn__ph {
	color: #777;
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gsr-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
