/* ============================================================
   OUTIS — página da lista de cotação  [outis_lista_cotacao]
   Usa os tokens --o-* do outis-base (.outis-v2).
   ============================================================ */

/* o título da página do tema repete o nosso — esconder só aqui */
body:has(.olc) .page-header,
body:has(.olc) .entry-header,
body:has(.olc) h1.entry-title { display: none; }

/* o modelo de página do tema (Hello) limita a largura — aqui ocupa tudo.
   html body… para ganhar a body:not([class*="elementor-page-"]) .site-main */
html body:has(.olc) main.site-main,
html body .page-content:has(> .olc) {
	max-width: none; width: 100%; margin: 0; padding: 0;
}
/* o tema sublinha as ligações em .page-content */
.olc.outis-v2 a { text-decoration: none; }

.outis-v2.olc {
	background: var(--o-fundo);
	padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}
.olc h1, .olc h2, .olc p, .olc ul, .olc ol { margin: 0; }
.olc ul, .olc ol { padding: 0; list-style: none; }

/* ---------- cabeçalho ---------- */
.olc-cab {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px;
	flex-wrap: wrap; margin-bottom: 36px;
}
.olc-cab .o-h2 { font-size: clamp(30px, 3.6vw, 44px); }
.olc-cab .o-lede { margin-top: 12px; max-width: 520px; }

.olc-passos { display: flex; gap: 8px; counter-reset: none; }
.olc-passos li {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 16px 9px 9px; border-radius: 999px;
	background: var(--o-branco); border: 1px solid var(--o-linha);
	font: 600 13px/1 var(--o-f); color: var(--o-texto-2); white-space: nowrap;
}
.olc-passos span {
	width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	background: var(--o-fundo-2); color: var(--o-texto-2); font-size: 12px; font-weight: 700;
}
.olc-passos .is-feito span { background: var(--o-navy-900); color: #fff; }
.olc-passos .is-actual { border-color: var(--o-laranja); color: var(--o-texto); box-shadow: 0 0 0 3px var(--o-laranja-bg); }
.olc-passos .is-actual span { background: var(--o-laranja); color: #fff; }

/* ---------- grelha ---------- */
.olc-grid {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 28px; align-items: start;
}
.olc-cartao {
	background: var(--o-branco); border: 1px solid var(--o-linha);
	border-radius: var(--o-r); box-shadow: var(--o-sombra); overflow: hidden;
}
.olc-cartao-cab {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 28px; border-bottom: 1px solid var(--o-linha);
}
.olc-cartao-cab h2 {
	display: flex; align-items: center; gap: 10px;
	font: 700 18px/1.2 var(--o-f); letter-spacing: -.015em; color: var(--o-texto);
}
.olc-n {
	min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
	display: inline-grid; place-items: center;
	background: var(--o-laranja-bg); color: var(--o-laranja-h); font-size: 12.5px; font-weight: 700;
}

/* ---------- produtos ---------- */
.olc-item {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto;
	align-items: center; gap: 18px; padding: 18px 28px;
	border-bottom: 1px solid var(--o-linha); transition: background .2s;
}
.olc-item:hover { background: #FAFBFC; }
.olc-thumb {
	width: 64px; height: 64px; border-radius: var(--o-r-s);
	background: var(--o-fundo); display: grid; place-items: center; overflow: hidden;
}
.olc-thumb img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; margin: 0; border: 0; }
.olc-nome {
	display: block; font: 600 15.5px/1.35 var(--o-f); color: var(--o-texto); text-decoration: none;
}
.olc-nome:hover { color: var(--o-laranja-h); }
.olc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.olc-tag {
	padding: 4px 8px; border-radius: 4px; background: var(--o-fundo);
	font: 600 11px/1.2 var(--o-f); letter-spacing: .02em; color: var(--o-texto-2);
}
.olc-tag.is-opc { background: var(--o-laranja-bg); color: var(--o-laranja-h); }

/* quantidade */
.olc .olc-qtd {
	display: inline-flex; align-items: center; height: 40px;
	border: 1px solid var(--o-linha); border-radius: 999px; background: var(--o-branco); overflow: hidden;
}
.olc .olc-qtd button {
	width: 38px; height: 100%; padding: 0; margin: 0; border: 0; border-radius: 0;
	background: none; box-shadow: none; cursor: pointer;
	font: 500 18px/1 var(--o-f); color: var(--o-texto-2); transition: background .15s, color .15s;
}
.olc .olc-qtd button:hover { background: var(--o-fundo); color: var(--o-texto); }
.olc .olc-qtd input {
	width: 42px; height: 100%; padding: 0; margin: 0; border: 0; border-radius: 0;
	background: none; box-shadow: none; text-align: center;
	font: 700 14px/1 var(--o-f); color: var(--o-texto); -moz-appearance: textfield;
}
.olc .olc-qtd input:focus { outline: none; background: var(--o-laranja-bg); }
.olc .olc-qtd input::-webkit-outer-spin-button,
.olc .olc-qtd input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.olc .olc-remover {
	width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: none; box-shadow: none;
	color: var(--o-texto-2); cursor: pointer; transition: background .15s, color .15s;
}
.olc .olc-remover svg { width: 16px; height: 16px; }
.olc .olc-remover:hover { background: #FDECEA; color: #C0392B; }

/* garantias */
.olc .olc-garantias {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
	padding: 20px 28px; background: var(--o-navy-900);
}
.olc-garantias li {
	display: flex; align-items: center; gap: 10px;
	font: 500 13px/1.35 var(--o-f); color: var(--o-texto-cl);
}
.olc-garantias .o-ico { width: 20px; height: 20px; color: var(--o-laranja-lt); }

/* ---------- formulário ---------- */
.olc-dados { position: sticky; top: 110px; }
.olc-form { padding: 24px 28px 28px; display: grid; gap: 16px; }
.olc-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.olc-campo { display: grid; gap: 7px; margin: 0; }
.olc-campo > span { font: 600 13px/1.2 var(--o-f); color: var(--o-texto); }
.olc-campo em { font-style: normal; color: var(--o-laranja); }
.olc .olc-campo input,
.olc .olc-campo textarea {
	width: 100%; margin: 0; padding: 12px 14px; min-height: 46px;
	background: var(--o-fundo); border: 1px solid transparent; border-radius: var(--o-r-s);
	box-shadow: none; font: 400 15px/1.4 var(--o-f); color: var(--o-texto);
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.olc .olc-campo textarea { min-height: 112px; resize: vertical; }
.olc .olc-campo input::placeholder,
.olc .olc-campo textarea::placeholder { color: #98A3AF; }
.olc .olc-campo input:hover,
.olc .olc-campo textarea:hover { border-color: var(--o-linha); }
.olc .olc-campo input:focus,
.olc .olc-campo textarea:focus {
	outline: none; background: var(--o-branco);
	border-color: var(--o-laranja); box-shadow: 0 0 0 3px var(--o-laranja-bg);
}
.olc .olc-enviar { width: 100%; margin-top: 6px; min-height: 52px; font-size: 15.5px; }
.olc-nota { font-size: 12.5px; line-height: 1.5; color: var(--o-texto-2); text-align: center; }

/* ---------- estados: vazia / enviado ---------- */
.olc-estado {
	max-width: 620px; margin: 0 auto; padding: 56px 40px; text-align: center;
	background: var(--o-branco); border: 1px solid var(--o-linha);
	border-radius: var(--o-r); box-shadow: var(--o-sombra);
}
.olc-estado-ico {
	width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
	display: grid; place-items: center; background: var(--o-laranja-bg); color: var(--o-laranja);
}
.olc-estado-ico svg { width: 28px; height: 28px; }
.olc-ok .olc-estado-ico { background: #E6F4EE; color: #17804F; }
.olc-estado .o-lede { margin: 14px auto 28px; max-width: 460px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
	.olc .olc-garantias { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 960px) {
	.olc-grid { grid-template-columns: 1fr; }
	.olc-dados { position: static; }
}
@media (max-width: 680px) {
	.olc-passos { width: 100%; }
	.olc-passos li { flex: 1; justify-content: center; padding: 8px; font-size: 0; gap: 0; }
	.olc-passos li.is-actual { font-size: 12.5px; gap: 8px; flex: 2; }
	.olc-cartao-cab, .olc-form, .olc .olc-garantias { padding-left: 18px; padding-right: 18px; }
	.olc-item {
		grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px 14px; padding: 16px 18px;
	}
	.olc-thumb { width: 56px; height: 56px; grid-row: span 2; }
	.olc-qtd { grid-column: 2; justify-self: start; }
	.olc-remover { grid-column: 3; grid-row: 1; }
	.olc-linha { grid-template-columns: 1fr; }
	.olc-estado { padding: 40px 22px; }
}
