/**
 * URBE Shop — loja e categorias
 */

/* ---------------------------------------------------------------------------
 * Cabeçalho da listagem
 * ------------------------------------------------------------------------- */

.urbe-shop-shop-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	padding: 32px 16px;
	overflow: hidden;
	text-align: center;
}

@media (min-width: 1024px) {
	.urbe-shop-shop-banner {
		min-height: 180px;
	}
}

.urbe-shop-shop-banner--dark {
	background: var(--urbe-shop-color-dark);
	color: #fff;
}

.urbe-shop-shop-banner--soft {
	background: var(--urbe-shop-color-soft);
}

.urbe-shop-shop-banner--plain {
	min-height: 0;
	padding-block: 40px 16px;
}

.urbe-shop-shop-banner--image {
	min-height: 240px;
	color: #fff;
}

@media (min-width: 1024px) {
	.urbe-shop-shop-banner--image {
		min-height: 320px;
	}
}

.urbe-shop-site .urbe-shop-shop-banner__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.urbe-shop-shop-banner--image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.urbe-shop-shop-banner__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.urbe-shop-shop-banner__title {
	font-size: 32px;
}

@media (min-width: 1024px) {
	.urbe-shop-shop-banner__title {
		font-size: 40px;
	}
}

.urbe-shop-shop-description {
	max-width: 860px;
	margin: 24px auto 0;
	color: var(--urbe-shop-color-muted);
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * Layout (filtros + resultados)
 * ------------------------------------------------------------------------- */

.urbe-shop-shop {
	padding-block: 28px 72px;
}

@media (min-width: 1024px) {
	.urbe-shop-shop {
		padding-block: 56px 100px;
	}

	.urbe-shop-shop.has-filters {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 40px;
		align-items: start;
	}
}

@media (min-width: 1280px) {
	.urbe-shop-shop.has-filters {
		grid-template-columns: 280px minmax(0, 1fr);
		gap: 56px;
	}
}

/* ---------------------------------------------------------------------------
 * Filtros
 * ------------------------------------------------------------------------- */

.urbe-shop-filters__title {
	font-size: 26px;
}

@media (min-width: 1024px) {
	.urbe-shop-filters__title {
		font-size: 30px;
	}
}

.urbe-shop-filter {
	padding-block: 18px;
	border-bottom: 1px solid var(--urbe-shop-color-border);
}

.urbe-shop-filter__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 17px;
	cursor: pointer;
	list-style: none;
}

.urbe-shop-filter__title::-webkit-details-marker {
	display: none;
}

.urbe-shop-filter__title .urbe-shop-icon {
	width: 16px;
	height: 16px;
	transition: transform var(--urbe-shop-duration) var(--urbe-shop-ease);
}

.urbe-shop-filter[open] .urbe-shop-filter__title .urbe-shop-icon {
	transform: rotate(180deg);
}

.urbe-shop-filter__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.urbe-shop-filter__link {
	font-size: 15px;
}

/* Subcategorias do menu (ex.: Nike → Air Force). */
.urbe-shop-filter__list--sub {
	margin: 6px 0 4px;
	padding-left: 16px;
	border-left: 1px solid var(--urbe-shop-color-border, #e5e5e5);
}

.urbe-shop-filter__list--sub .urbe-shop-filter__link {
	font-size: 14px;
}

.urbe-shop-filter__link span {
	color: var(--urbe-shop-color-muted);
}

.urbe-shop-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

/* Faixa de preço. */
.urbe-shop-price-filter {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 20px;
}

.urbe-shop-range {
	position: relative;
	height: 22px;
	margin-inline: 9px;
}

.urbe-shop-range__track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--urbe-shop-color-border);
	transform: translateY(-50%);
}

.urbe-shop-range__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	background: var(--urbe-shop-color-text);
}

.urbe-shop-range__input {
	position: absolute;
	top: 0;
	left: -9px;
	width: calc(100% + 18px);
	height: 22px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.urbe-shop-range__input::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background: var(--urbe-shop-color-text);
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
}

.urbe-shop-range__input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background: var(--urbe-shop-color-text);
	cursor: pointer;
	pointer-events: auto;
}

.urbe-shop-range__input::-moz-range-track {
	background: none;
}

.urbe-shop-price-filter__inputs {
	display: flex;
	align-items: center;
	gap: 10px;
}

.urbe-shop-price-filter__field {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 10px;
	border: 1px solid var(--urbe-shop-color-border);
	border-radius: var(--urbe-shop-radius);
	font-size: 14px;
}

.urbe-shop-price-filter__field input {
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: right;
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.urbe-shop-price-filter__field input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.urbe-shop-price-filter__sep {
	font-size: 14px;
}

.urbe-shop-price-filter__apply {
	align-self: flex-start;
}

.urbe-shop-js .urbe-shop-price-filter__apply {
	display: none;
}

.urbe-shop-filters__footer {
	display: none;
}

.urbe-shop-filters__close {
	display: none;
}

/* Gaveta de filtros (mobile e tablet). */
@media (max-width: 1023px) {
	.urbe-shop-filters {
		position: fixed;
		inset: 0;
		z-index: var(--urbe-shop-z-drawer);
		visibility: hidden;
		pointer-events: none;
	}

	.admin-bar .urbe-shop-filters {
		top: var(--urbe-shop-admin-bar);
	}

	.urbe-shop-filters.is-open {
		visibility: visible;
		pointer-events: auto;
	}

	.urbe-shop-filters__overlay {
		position: absolute;
		inset: 0;
		background: var(--urbe-shop-color-overlay);
		opacity: 0;
		transition: opacity 0.3s var(--urbe-shop-ease);
	}

	.urbe-shop-filters.is-open .urbe-shop-filters__overlay {
		opacity: 1;
	}

	.urbe-shop-filters__panel {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		width: min(90vw, 380px);
		background: var(--urbe-shop-color-bg);
		transform: translateX(-100%);
		transition: transform 0.35s var(--urbe-shop-ease);
		outline: none;
	}

	.urbe-shop-filters.is-open .urbe-shop-filters__panel {
		transform: none;
	}

	.urbe-shop-filters__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 12px 16px 20px;
		border-bottom: 1px solid var(--urbe-shop-color-border);
	}

	.urbe-shop-filters__close {
		display: inline-flex;
	}

	.urbe-shop-filters__body {
		flex: 1;
		padding: 0 20px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.urbe-shop-filters__footer {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 16px 20px;
		border-top: 1px solid var(--urbe-shop-color-border);
	}
}

@media (min-width: 1024px) {
	.urbe-shop-filters {
		position: sticky;
		top: calc(var(--urbe-shop-admin-bar) + 140px);
	}

	.urbe-shop-filters__overlay {
		display: none;
	}

	.urbe-shop-filters__head {
		margin-bottom: 8px;
	}
}

/* ---------------------------------------------------------------------------
 * Barra de ferramentas
 * ------------------------------------------------------------------------- */

.urbe-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

@media (min-width: 1024px) {
	.urbe-shop-toolbar {
		margin-bottom: 32px;
	}
}

.urbe-shop-toolbar__left,
.urbe-shop-toolbar__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.urbe-shop-toolbar__filters-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--urbe-shop-color-border);
	border-radius: var(--urbe-shop-radius);
	background: var(--urbe-shop-color-bg);
	color: inherit;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.urbe-shop-toolbar__filters-btn .urbe-shop-icon {
	width: 18px;
	height: 18px;
}

@media (min-width: 1024px) {
	.urbe-shop-toolbar__filters-btn {
		display: none;
	}
}

.urbe-shop-toolbar__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--urbe-shop-color-text);
	color: var(--urbe-shop-color-bg);
	font-size: 12px;
}

.urbe-shop-toolbar__count {
	color: var(--urbe-shop-color-muted);
	font-size: 14px;
}

@media (max-width: 599px) {
	.urbe-shop-toolbar__count {
		display: none;
	}
}

/* Seletor de colunas. */
.urbe-shop-columns {
	display: none;
	gap: 6px;
}

@media (min-width: 1024px) {
	.urbe-shop-columns {
		display: flex;
	}
}

.urbe-shop-columns__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: var(--urbe-shop-radius);
	background: #f1f1f1;
	color: var(--urbe-shop-color-text);
	cursor: pointer;
}

.urbe-shop-columns__btn[aria-pressed="true"] {
	background: var(--urbe-shop-color-text);
	color: var(--urbe-shop-color-bg);
}

.urbe-shop-columns__bars {
	display: flex;
	gap: 2px;
	height: 12px;
}

.urbe-shop-columns__bars i {
	width: 2px;
	height: 100%;
	background: currentColor;
}

.urbe-shop-columns__btn--1 .urbe-shop-columns__bars {
	flex-direction: column;
	gap: 3px;
	width: 12px;
	height: auto;
}

.urbe-shop-columns__btn--1 .urbe-shop-columns__bars i {
	width: 100%;
	height: 2px;
	box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

/* Vista em lista (1 coluna). */
.urbe-shop-product-grid.is-list {
	grid-template-columns: 1fr;
	gap: 24px;
}

.urbe-shop-product-grid.is-list .urbe-shop-card {
	display: grid;
	grid-template-columns: minmax(160px, 260px) 1fr;
	gap: 32px;
	align-items: center;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--urbe-shop-color-border);
}

.urbe-shop-product-grid.is-list .urbe-shop-card__title {
	font-size: 18px;
}

/* Filtros ativos. */
.urbe-shop-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 28px;
	font-size: 14px;
}

/* ---------------------------------------------------------------------------
 * Paginação
 * ------------------------------------------------------------------------- */

.urbe-shop-pagination {
	margin-top: 56px;
}

.urbe-shop-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.urbe-shop-pagination a,
.urbe-shop-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 20px;
	font-size: 15px;
}

.urbe-shop-pagination a:hover {
	background: #f1f1f1;
}

.urbe-shop-pagination .current {
	background: var(--urbe-shop-color-text);
	color: var(--urbe-shop-color-bg);
}

.urbe-shop-pagination .urbe-shop-icon {
	width: 16px;
	height: 16px;
}

/* Mensagens do WooCommerce acima da grelha. */
.urbe-shop-shop__main .woocommerce-notices-wrapper:empty {
	display: none;
}
