/* ==========================================================================
   Smartlub Auto Peças — CSS do tema
   Somente o que o Elementor não faz nativamente. Cores/tipografia globais
   ficam no Kit do Elementor (Configurações do site).
   ========================================================================== */

:root {
	--sl-grafite: #333333;
	--sl-laranja: #E23918;
	--sl-fundo: #F4F4F4;
	--sl-branco: #FFFFFF;
	--sl-preto: #000000;
	--sl-titulo: #101828;
	--sl-texto: #364153;
	--sl-muted: #6A7282;
	--sl-borda: #E5E7EB;
	--sl-borda-2: #D1D5DC;
	--sl-verde: #008236;
	--sl-verde-bg: #DBFCE7;
	--sl-radius: 8px;
	--sl-font: Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sl-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--sl-preto);
	background: var(--sl-fundo);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { vertical-align: middle; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sl-main { display: block; min-height: 40vh; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sl-skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100000;
	top: 8px; left: 8px; padding: 12px 16px; background: #fff; color: #000; border-radius: 6px;
}
:focus-visible { outline: 2px solid var(--sl-laranja); outline-offset: 2px; }

.sl-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* Header fixo (CSS puro, sem JS) ----------------------------------------- */
.elementor-location-header,
.sl-location--header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 99;
}
.sl-location { display: block; }

/* Utilitários aplicados pelos templates ---------------------------------- */
.sl-clamp-2 .elementor-heading-title,
.sl-clamp-2 > * {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sl-clamp-2 .elementor-heading-title a { text-decoration: none; }

/* Card de produto (Loop Item) */
.sl-card { transition: border-color .2s ease, box-shadow .2s ease; }
.sl-card:hover { border-color: var(--sl-laranja) !important; box-shadow: 0 4px 16px rgba(16, 24, 40, .08); }
.sl-card .elementor-widget-theme-post-featured-image img {
	width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff;
}
.sl-card .sl-card__push { margin-top: auto; }

/* Card de categoria (imagem + nome) */
.sl-cat { transition: box-shadow .2s ease, transform .2s ease; text-decoration: none; }
.sl-cat:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .1); transform: translateY(-2px); }
.sl-cat img { width: 100%; object-fit: contain; }

/* Setas dos carrosséis (Loop Carousel / Image Carousel) no canto superior direito */
.sl-carousel { position: relative; }
.sl-carousel .elementor-swiper-button {
	top: -46px !important; transform: none !important;
	width: 32px; height: 32px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--sl-borda-2); color: #000;
	font-size: 12px; transition: background .2s ease, color .2s ease;
}
.sl-carousel .elementor-swiper-button svg { width: 12px; height: 12px; fill: currentColor; }
.sl-carousel .elementor-swiper-button:hover { background: var(--sl-grafite); color: #fff; }
.sl-carousel .elementor-swiper-button-prev { left: auto !important; right: 44px !important; }
.sl-carousel .elementor-swiper-button-next { right: 0 !important; }
.sl-carousel .swiper-slide { height: auto; }
.sl-carousel .swiper-slide > .e-loop-item,
.sl-carousel .swiper-slide > .elementor { height: 100%; }
.sl-carousel .e-loop-item > .e-con,
.sl-carousel .e-loop-item > .elementor-element { height: 100%; }

/* Blog: setas nas laterais, fora dos cards */
.sl-carousel--sides .elementor-swiper-button { top: 50% !important; transform: translateY(-50%) !important; }
.sl-carousel--sides .elementor-swiper-button-prev { left: -16px !important; right: auto !important; }
.sl-carousel--sides .elementor-swiper-button-next { right: -16px !important; }

/* Banner principal -------------------------------------------------------- */
.sl-hero { position: relative; }
.sl-hero__viewport { position: relative; }
.sl-hero__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.sl-hero__track::-webkit-scrollbar { display: none; }
.sl-hero__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.sl-picture, .sl-picture img { display: block; width: 100%; height: auto; }
.sl-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: #fff; color: #000; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2); z-index: 2;
}
.sl-hero__arrow--prev { left: 20px; }
.sl-hero__arrow--next { right: 20px; }
.sl-hero__dots { display: flex; gap: 8px; justify-content: center; padding: 10px 0 0; }
.sl-hero__dot {
	width: 12px; height: 12px; border-radius: 50%; padding: 0;
	border: 1.5px solid var(--sl-preto); background: transparent;
}
.sl-hero__dot.is-active { background: var(--sl-preto); }

/* Banner responsivo */
.sl-banner { display: block; overflow: hidden; border-radius: 12px; line-height: 0; }
.sl-banner img { transition: transform .4s ease; }
a.sl-banner:hover img { transform: scale(1.02); }

/* Placa ------------------------------------------------------------------- */
.sl-plate {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 12px; border: 0; border-radius: 6px;
	background: #484848; color: #fff; text-align: left; min-height: 64px;
	transition: filter .2s ease;
}
.sl-plate:hover { filter: brightness(1.12); }
.sl-plate__tag {
	display: flex; flex-direction: column; width: 96px; height: 48px;
	border-radius: 6px; overflow: hidden; background: #D1D5DC;
	border: 1.5px solid #6A7282; flex: none;
}
.sl-plate__uf {
	display: block; background: #4A5565; color: #fff;
	font-size: 8px; font-weight: 700; line-height: 14px; text-align: center; letter-spacing: .2px;
}
.sl-plate__num {
	flex: 1; display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; color: #4A5565; letter-spacing: .5px;
}
.sl-plate__text { display: flex; flex-direction: column; line-height: 1.35; }
.sl-plate__title { font-size: 13px; font-weight: 500; }
.sl-plate__sub { font-size: 11px; opacity: .9; }

/* Minha Garagem ----------------------------------------------------------- */
.sl-garage {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
	min-height: 48px; border: 0; border-radius: 8px; background: transparent; color: #fff;
	text-align: left; transition: background-color .2s ease;
}
.sl-garage__icon { display: flex; }
.sl-garage__text { display: flex; flex-direction: column; line-height: 1.3; }
.sl-garage__title { font-size: 14px; }
.sl-garage__sub { font-size: 12px; opacity: .8; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Busca por veículo ------------------------------------------------------- */
.sl-finder { --sl-finder-accent: var(--sl-laranja); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sl-finder__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 28px; text-align: center; color: #000; }
.sl-finder__tabs {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
	width: 100%; max-width: 770px; padding: 0;
	border: 3px solid rgba(156, 160, 174, .4); border-radius: 20px;
}
.sl-finder__tab {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	height: 36px; padding: 8px 16px; border: 0; border-radius: 24px;
	background: transparent; color: #000; font-size: 16px; font-weight: 700;
	transition: background-color .2s ease, color .2s ease;
}
.sl-finder__tab:hover { background: rgba(156, 160, 174, .15); }
.sl-finder__tab.is-active { background: var(--sl-finder-accent); color: #fff; }
.sl-finder__toggle { display: none; }
.sl-finder__panels { width: 100%; }
.sl-finder__panel {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 16px;
	width: 100%; max-width: 960px; margin: 0 auto;
}
.sl-finder__panel[hidden] { display: none; }
.sl-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; min-width: 0; }
.sl-field__label { font-size: 14px; font-weight: 600; color: var(--sl-titulo); }
.sl-field select,
.sl-field input {
	width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--sl-borda-2);
	border-radius: 8px; background-color: #fff; color: #000; font-size: 16px;
}
.sl-field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; }
.sl-field select:disabled { background-color: #F3F4F6; color: var(--sl-muted); cursor: not-allowed; }
.sl-field select.is-loading { background-image: none; }
.sl-finder__submit, .sl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 48px; padding: 0 32px; border: 0; border-radius: 8px;
	background: var(--sl-preto); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none;
	transition: background-color .2s ease;
}
.sl-finder__submit { background: var(--sl-finder-accent); flex: 0 0 auto; }
.sl-finder__submit:hover, .sl-btn:hover { background: var(--sl-grafite); }
.sl-btn--accent { background: var(--sl-laranja); }
.sl-btn--dark { background: var(--sl-preto); }

/* Modal de veículo -------------------------------------------------------- */
.sl-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sl-modal[hidden] { display: none; }
.sl-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.sl-modal__box {
	position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; border-radius: 12px; padding: 28px 24px 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.sl-modal__close { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; padding: 6px; color: #000; }
.sl-modal__title { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.sl-modal__current { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-bottom: 16px; padding: 12px; border-radius: 8px; background: var(--sl-verde-bg); font-size: 14px; }
.sl-modal__current[hidden] { display: none; }
.sl-modal__plate, .sl-modal__fipe { display: grid; gap: 12px; }
.sl-modal__plate { grid-template-columns: 1fr auto; align-items: end; }
.sl-modal__plate input { text-transform: uppercase; letter-spacing: 1px; }
.sl-modal__msg { grid-column: 1 / -1; margin: 0; min-height: 1em; font-size: 14px; color: var(--sl-laranja); }
.sl-modal__or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--sl-muted); font-size: 14px; }
.sl-modal__or::before, .sl-modal__or::after { content: ""; flex: 1; height: 1px; background: var(--sl-borda); }
.sl-link { border: 0; background: none; padding: 0; color: var(--sl-laranja); text-decoration: underline; font-size: 14px; }
.sl-modal-open { overflow: hidden; }

/* Preço PIX ---------------------------------------------------------------- */
.sl-price { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sl-price p { margin: 0; }
.sl-price__old { font-size: 14px; line-height: 20px; color: var(--sl-muted); text-decoration: line-through; }
.sl-price__pix { line-height: 28px; }
.sl-price__value { font-size: 20px; font-weight: 700; color: var(--sl-titulo); }
.sl-price__label { font-size: 12px; font-weight: 700; color: rgba(0, 0, 0, .7); }
.sl-price__inst { font-size: 13px; line-height: 18px; color: var(--sl-texto); }
.sl-price__badge {
	display: inline-block; margin-top: 6px; padding: 4px 8px; border-radius: 6px;
	background: var(--sl-verde-bg); color: var(--sl-verde); font-size: 14px; font-weight: 600; line-height: 20px;
}

/* Botão Adicionar --------------------------------------------------------- */
.sl-atc {
	display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
	min-height: 48px; padding: 0 12px; border: 1px solid var(--sl-preto); border-radius: 8px;
	background: var(--sl-preto); color: #fff; font-size: 16px; font-weight: 600; line-height: 1;
	text-decoration: none; transition: background-color .2s ease, border-color .2s ease;
}
.sl-atc:hover, .sl-atc:focus-visible { background: var(--sl-grafite); border-color: var(--sl-grafite); color: #fff; }
.sl-atc.loading { opacity: .7; pointer-events: none; }
.sl-atc.added::after { content: "✓"; margin-left: 4px; }
.e-loop-item .added_to_cart { display: block; margin-top: 6px; font-size: 13px; text-align: center; color: var(--sl-laranja); }

/* Formulário Clube de Ofertas (Elementor Pro Form) ---------------------- */
.sl-club .elementor-field-group .elementor-select-wrapper select:disabled { background-color: #F3F4F6; }
.sl-club .elementor-field-type-acceptance { justify-content: flex-start; }

/* Header: busca do Pro (Search Form) ------------------------------------- */
.sl-search .elementor-search-form__container { border-radius: 8px; overflow: hidden; }
.sl-search .elementor-search-form__submit { background: #fff !important; color: #000 !important; }

/* Menu principal: espaçamento igual ao original ------------------------- */
.sl-nav .elementor-nav-menu--main .elementor-nav-menu > li { flex: 1 1 auto; }
.sl-nav .elementor-nav-menu--main .elementor-nav-menu > li > a { justify-content: center; }
.sl-nav .elementor-nav-menu--main .elementor-nav-menu { width: 100%; justify-content: space-between; }

/* Ícones dos itens "TODOS" e "Ofertas" (classes CSS do item de menu) */
.sl-mi-todos > a::before,
.sl-mi-ofertas > a::before {
	content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; flex: none;
	background: currentColor; -webkit-mask: var(--sl-mi-icon) center / contain no-repeat; mask: var(--sl-mi-icon) center / contain no-repeat;
}
.sl-mi-todos > a { --sl-mi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h12M4 18h16'/%3E%3C/svg%3E"); }
.sl-mi-ofertas > a { --sl-mi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 15l6-6'/%3E%3Ccircle cx='9.5' cy='9.5' r='.8'/%3E%3Ccircle cx='14.5' cy='14.5' r='.8'/%3E%3C/svg%3E"); }
.sl-nav .elementor-nav-menu--main .sl-mi-todos > a { text-transform: uppercase; }

/* Voltar ao topo: ícone em círculo branco */
html { scroll-behavior: smooth; }
.sl-backtop .elementor-button { width: 100%; min-height: 58px; }
.sl-backtop .elementor-button-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--sl-grafite); fill: var(--sl-grafite);
}
.sl-backtop .elementor-button-icon svg { width: 14px; height: 14px; fill: currentColor; }
.sl-backtop .elementor-button-content-wrapper { justify-content: center; align-items: center; }

/* Páginas padrão (blog, busca, arquivos) --------------------------------- */
.sl-page { padding-top: 32px; padding-bottom: 48px; }
.sl-entry__title { margin: 0 0 16px; font-size: 28px; line-height: 1.25; }
.sl-entry__meta { color: var(--sl-muted); font-size: 14px; margin: 0 0 16px; }
.sl-entry__thumb { border-radius: 8px; margin-bottom: 24px; width: 100%; }
.sl-entry__content { font-size: 16px; line-height: 1.7; }
.sl-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.sl-card-post { background: #fff; border-radius: 8px; overflow: hidden; }
.sl-card-post__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sl-card-post__body { padding: 16px; }
.sl-card-post__title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; color: var(--sl-grafite); }
.sl-card-post__title a { text-decoration: none; }
.sl-woo .button, .woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt {
	background: var(--sl-preto); color: #fff; border-radius: 8px;
}
.woocommerce span.onsale { background: var(--sl-laranja); }

/* Header/rodapé provisórios (antes da importação) ----------------------- */
.sl-fb-header { background: var(--sl-grafite); color: #fff; padding: 16px 0; }
.sl-fb-header__row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sl-fb-logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; font-size: 26px; font-weight: 900; }
.sl-fb-logo__b { color: var(--sl-laranja); }
.sl-fb-logo small { font-size: 13px; font-weight: 400; margin-left: 8px; }
.sl-fb-nav ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 12px auto 0; padding: 0; }
.sl-fb-nav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.sl-fb-notice { text-align: center; margin: 12px 0 0; font-size: 13px; }
.sl-fb-notice a { color: #fcb700; }
.sl-fb-footer { background: #fff; padding: 24px 0; font-size: 14px; }

/* Tablet ------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.sl-posts { grid-template-columns: repeat(2, 1fr); }
	.sl-hero__arrow { display: none; }
}

/* Mobile ------------------------------------------------------------------- */
@media (max-width: 767px) {
	.sl-finder__title { font-size: 16px; line-height: 24px; }
	.sl-finder__tabs { grid-template-columns: repeat(2, 1fr); border-radius: 16px; padding: 4px; }
	.sl-finder__tab { font-size: 14px; }
	.sl-finder__toggle {
		display: inline-flex; align-items: center; gap: 6px; border: 0; background: none;
		font-size: 14px; color: var(--sl-texto); padding: 4px 8px;
	}
	.sl-finder.is-open .sl-finder__toggle svg { transform: rotate(180deg); }
	.sl-finder__panels { display: none; }
	.sl-finder.is-open .sl-finder__panels { display: block; }
	.sl-field { flex-basis: 100%; }
	.sl-finder__submit { width: 100%; }
	.sl-hero__dots { gap: 6px; }
	.sl-hero__dot { width: 10px; height: 10px; }
	.sl-plate { min-height: 56px; }
	.sl-posts { grid-template-columns: 1fr; }
	.sl-price__value { font-size: 18px; }
	.sl-atc { font-size: 15px; min-height: 44px; }
	.sl-carousel .elementor-swiper-button { top: -42px !important; width: 28px; height: 28px; }
	.sl-carousel .elementor-swiper-button-prev { right: 36px !important; }
	.sl-carousel--sides .elementor-swiper-button { display: none; }
	.sl-modal__plate { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
