/**
 * Estilos da seção de Lojas (post type Lojas).
 *
 * Autossuficiente: o layout (grade, lista, painel e botões) é replicado aqui
 * escopado em .tf-lojas, para funcionar em qualquer página — inclusive onde o
 * CSS de layout do tema (home.css) não é carregado. As variáveis --tf-* vêm do
 * style.css do tema (carregado em todas as páginas); há fallbacks por garantia.
 */

/* ---------- Layout: grade, lista e painel ---------- */

.tf-lojas .units-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 32px;
	align-items: start;
}

.tf-lojas .units-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tf-lojas .unit-row {
	text-align: left;
	cursor: pointer;
	width: 100%;
	background: transparent;
	border: 1.5px solid #e4e6f1;
	border-radius: 13px;
	padding: 16px 18px;
	transition: all 0.18s ease;
}

.tf-lojas .unit-row.is-active {
	background: #fff;
	border: 1.5px solid var(--tf-navy, #0a146b);
	box-shadow: 0 12px 26px -18px rgba(10, 20, 107, 0.5);
}

.tf-lojas .unit-row-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tf-lojas .unit-row-city {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--tf-navy, #0a146b);
}

.tf-lojas .unit-row-name {
	display: block;
	font-size: 13px;
	color: var(--tf-muted-2, #6b7089);
	margin-top: 3px;
}

.tf-lojas .units-panel {
	background: #fff;
	border: 1px solid var(--tf-border, #eceef5);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 40px -26px rgba(10, 20, 107, 0.35);
}

/* ---------- Foto da loja (topo do painel) ---------- */

.tf-lojas .tf-lojas-photo {
	position: relative;
	aspect-ratio: 16 / 8;
	background: #e7eaf5;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tf-lojas .tf-lojas-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tf-lojas .tf-lojas-photo-ph {
	font-family: ui-monospace, Menlo, monospace;
	font-size: 12px;
	color: var(--tf-muted-3, #9aa0b8);
}

.tf-lojas .units-info {
	padding: 26px;
}

.tf-lojas .units-info-label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tf-blue, #1a73e8);
}

.tf-lojas .units-info-name {
	font-family: var(--tf-font, inherit);
	font-weight: 700;
	font-size: 22px;
	color: var(--tf-navy, #0a146b);
	margin: 6px 0 0;
}

.tf-lojas .units-info-address {
	font-size: 14px;
	color: var(--tf-muted, #5b607a);
	margin: 8px 0 0;
}

.tf-lojas .units-info-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.tf-lojas .units-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	padding: 11px 17px;
	border-radius: 9px;
	text-decoration: none;
}

.tf-lojas .units-btn--wa {
	background: var(--tf-yellow, #fedb00);
	color: var(--tf-navy, #0a146b);
	font-weight: 700;
}

.tf-lojas .units-btn--maps {
	background: #fff;
	color: var(--tf-navy, #0a146b);
	font-weight: 600;
	border: 1.5px solid #d7dae9;
}

/* ---------- Campos novos: horário de funcionamento ---------- */

.tf-lojas .tf-lojas-hours {
	margin-top: 18px;
	border-top: 1px solid var(--tf-border, #eceef5);
	padding-top: 14px;
}

.tf-lojas .tf-lojas-hours-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tf-blue, #1a73e8);
}

.tf-lojas .tf-lojas-hours-chevron {
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-bottom: 3px;
	flex: 0 0 auto;
}

.tf-lojas .tf-lojas-hours-title[aria-expanded="true"] .tf-lojas-hours-chevron {
	transform: rotate(-135deg);
	margin-bottom: -2px;
}

.tf-lojas .tf-lojas-hours-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.tf-lojas .tf-lojas-hours-list[hidden] {
	display: none;
}

.tf-lojas .tf-lojas-hours-list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 13.5px;
	padding: 3px 0;
	border-bottom: 1px solid var(--tf-border, #eceef5);
}

.tf-lojas .tf-lojas-hours-list li:last-child {
	border-bottom: 0;
}

.tf-lojas .tf-lojas-hours-day {
	color: var(--tf-navy, #0a146b);
	font-weight: 600;
}

.tf-lojas .tf-lojas-hours-time {
	color: var(--tf-muted, #5b607a);
	font-variant-numeric: tabular-nums;
}

/* ---------- Campo novo: telefone ---------- */

.tf-lojas .tf-lojas-phone {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--tf-muted, #5b607a);
}

.tf-lojas .tf-lojas-phone-label {
	font-weight: 600;
	color: var(--tf-navy, #0a146b);
	margin-right: 6px;
}

.tf-lojas .tf-lojas-phone a {
	color: var(--tf-blue, #1a73e8);
	text-decoration: none;
}

.tf-lojas .tf-lojas-phone a:hover {
	text-decoration: underline;
}

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
	.tf-lojas .units-grid {
		grid-template-columns: 1fr;
	}
}
