/* ==========================================================================
   Cerâmica Prado — Design System (base compartilhada)
   Escopo: páginas com <body class="ds-body">
   Uso: carregar SEMPRE antes do CSS específico da página.
   Base: template Mizzle (Bootstrap 5) + identidade laranja #FF6300.
   Contém apenas tokens e componentes reutilizáveis (o que é exclusivo de uma
   página fica no CSS dela).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
.ds-body {
	--ds-orange: #FF6300;
	--ds-orange-hover: #e85a00;
	--ds-orange-soft: #ffe3d1;
	--ds-ink: #1c1611;
	--ds-ink-soft: #5b5147;
	--ds-sand: #f6efe6;
	--ds-cream: #fbf8f4;
	--ds-line: #ece2d5;
	--ds-terra: #b9603a;
	--ds-radius: 18px;
	--ds-radius-lg: 28px;
	--ds-shadow: 0 30px 60px -40px rgba(28, 22, 17, .55);
	--ds-font-display: "Instrument Sans", sans-serif;
	--ds-font-body: "Inter", sans-serif;
	color: var(--ds-ink);
	background: #fff;
}

.ds-body h1,
.ds-body h2,
.ds-body h3,
.ds-body h4 {
	font-family: var(--ds-font-display);
	letter-spacing: -.02em;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.ds-btn {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-weight: 600;
	font-size: .98rem;
	padding: .95rem 1.5rem;
	border-radius: 999px;
	border: 1px solid transparent;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.ds-btn i { font-size: .95em; transition: transform .18s ease; }
.ds-btn:hover { transform: translateY(-2px); }
.ds-btn:hover i { transform: translateX(3px); }
.ds-btn--primary { background: var(--ds-orange); color: #fff; }
.ds-btn--primary:hover { background: var(--ds-orange-hover); color: #fff; }
.ds-btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.ds-btn--glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.ds-btn--dark { background: var(--ds-ink); color: #fff; }
.ds-btn--dark:hover { background: #000; color: #fff; }
.ds-btn--light { background: #fff; color: var(--ds-ink); border-color: var(--ds-line); }
.ds-btn--light:hover { color: var(--ds-orange); border-color: var(--ds-orange); }
.ds-btn--sm { padding: .7rem 1.15rem; font-size: .9rem; }
.ds-btn--block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   Eyebrow / título de seção
   -------------------------------------------------------------------------- */
.ds-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ds-terra);
}
.ds-eyebrow::before {
	content: "";
	width: 30px;
	height: 2px;
	border-radius: 2px;
	background: var(--ds-orange);
}
.ds-eyebrow--light { color: #ffd7bf; }
.ds-eyebrow--center { justify-content: center; }

.ds-section { padding-top: clamp(3.5rem, 7vw, 6.5rem); }

.ds-head { max-width: 660px; }
.ds-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ds-head h2 {
	font-size: clamp(1.8rem, 3.4vw, 2.8rem);
	font-weight: 600;
	line-height: 1.08;
	margin: 1rem 0 .9rem;
}
.ds-head p { color: var(--ds-ink-soft); margin: 0; font-size: 1.02rem; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Hero full-bleed (cabeçalho de página)
   -------------------------------------------------------------------------- */
.ds-hero {
	position: relative;
	display: flex;
	align-items: stretch;
	padding: 0;
	min-height: clamp(430px, 56vh, 560px);
	overflow: hidden;
	isolation: isolate;
	background: #1a1511;
	color: #fff;
}
.ds-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	transform: scale(1.03);
}
.ds-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(16, 12, 9, .95) 0%, rgba(16, 12, 9, .74) 44%, rgba(16, 12, 9, .25) 100%),
		linear-gradient(0deg, rgba(16, 12, 9, .9) 0%, rgba(16, 12, 9, 0) 55%);
}
.ds-hero-inner {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 12.5rem;
	padding-bottom: clamp(2rem, 4vw, 3rem);
}
.ds-hero-content { max-width: 820px; }
.ds-hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	font-weight: 600;
	line-height: 1.02;
	margin: 1rem 0 1.1rem;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.ds-hero .ds-lead {
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .85);
	max-width: 640px;
	margin-bottom: 0;
}
.ds-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* Breadcrumb (sobre fundo escuro) */
.ds-crumbs { margin-bottom: 1.25rem; }
.ds-crumbs .breadcrumb { font-size: .85rem; margin: 0; }
.ds-crumbs .breadcrumb-item,
.ds-crumbs .breadcrumb-item a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.ds-crumbs .breadcrumb-item a:hover { color: #fff; }
.ds-crumbs .breadcrumb-item.active { color: #fff; font-weight: 600; }
.ds-crumbs .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }

/* --------------------------------------------------------------------------
   Faixa sobreposta (números, etc.)
   -------------------------------------------------------------------------- */
.ds-band {
	position: relative;
	z-index: 3;
	margin-top: -70px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--ds-shadow);
}
.ds-band-item { padding: 1.5rem 1.75rem; border-right: 1px solid var(--ds-line); }
.ds-band-item:last-child { border-right: 0; }
.ds-band-item strong {
	display: block;
	font-family: var(--ds-font-display);
	font-size: clamp(1.5rem, 2.4vw, 2.2rem);
	font-weight: 600;
	line-height: 1;
	color: var(--ds-ink);
}
.ds-band-item strong span { color: var(--ds-orange); }
.ds-band-item small { display: block; margin-top: .45rem; font-size: .84rem; color: var(--ds-ink-soft); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.ds-card {
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius);
	padding: 1.7rem 1.55rem;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ds-card--hover:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 99, 0, .35);
	box-shadow: 0 22px 40px -28px rgba(28, 22, 17, .5);
}
.ds-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: .45rem; }
.ds-card p { font-size: .92rem; line-height: 1.6; color: var(--ds-ink-soft); margin: 0; }

.ds-icon-box {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ds-orange-soft);
	color: var(--ds-orange);
	font-size: 1.4rem;
	margin-bottom: 1.1rem;
}

/* Card de produto (listagens) */
.ds-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius);
	overflow: hidden;
	height: 100%;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ds-product-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 99, 0, .35);
	box-shadow: 0 26px 44px -30px rgba(28, 22, 17, .55);
}
.ds-product-media {
	position: relative;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .92), transparent 55%),
		linear-gradient(150deg, #fdf7f0 0%, #f2e6d8 100%);
	overflow: hidden;
}
.ds-product-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(185, 96, 58, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(185, 96, 58, .06) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
	mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
	pointer-events: none;
}
.ds-product-media a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.ds-product-media img {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 22px 22px rgba(120, 60, 25, .2));
	transition: transform .45s ease;
}
.ds-product-card:hover .ds-product-media img { transform: translateY(-6px) scale(1.03); }
/* Cards de linha/categoria (grade de /produtos): aproxima a peça das bordas do card
   recortando o vazio transparente superior da imagem (sem alterar os arquivos). */
.ds-product-card--line .ds-product-media img {
	width: 100%;
	height: 115%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	align-self: flex-end;
}
.ds-product-body { padding: 0.9rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ds-product-title {
	font-family: var(--ds-font-display);
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 .5rem;
	color: var(--ds-ink);
}
.ds-product-title a { color: inherit; text-decoration: none; }
.ds-product-card:hover .ds-product-title a { color: var(--ds-orange); }
.ds-product-dims { font-size: .9rem; color: var(--ds-ink-soft); margin: 0 0 .75rem; }
.ds-product-specs { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .3rem; }
.ds-product-specs li {
	position: relative;
	padding-left: 1.25rem;
	font-size: .88rem;
	line-height: 1.4;
	color: var(--ds-ink-soft);
}
.ds-product-specs li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .52em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ds-orange);
}
.ds-product-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
}

/* Botão de orçamento — só ícone, alinhado à direita do card (sem círculo, maior e em destaque) */
.ds-quote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: .2rem;
	border: 0;
	background: transparent;
	color: var(--ds-orange);
	font-size: 1.85rem;
	line-height: 1;
	text-decoration: none;
	transition: color .18s ease, transform .18s ease;
}
.ds-quote-btn:hover { color: var(--ds-orange-hover); transform: translateY(-2px) scale(1.06); }
.ds-quote-btn.is-added { animation: cp-quote-pop .45s ease; }
@keyframes cp-quote-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.28); }
	100% { transform: scale(1); }
}

/* Badges */
.ds-badge {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .4rem .75rem;
	border-radius: 999px;
	background: var(--ds-ink);
	color: #fff;
}
.ds-badge--soft { background: var(--ds-orange-soft); color: var(--ds-terra); }
.ds-badge--outline { background: transparent; color: var(--ds-terra); border: 1px solid var(--ds-line); }
.ds-media-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

/* --------------------------------------------------------------------------
   Painéis institucionais (claro + escuro)
   -------------------------------------------------------------------------- */
.ds-panel {
	position: relative;
	border-radius: var(--ds-radius-lg);
	padding: clamp(1.9rem, 3.4vw, 3rem);
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	isolation: isolate;
}
.ds-panel--light {
	background:
		radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .9), transparent 55%),
		linear-gradient(150deg, #fdf7f0 0%, #f2e6d8 100%);
	border: 1px solid var(--ds-line);
	color: var(--ds-ink);
}
.ds-panel--dark { background: var(--ds-ink); color: #fff; }
.ds-panel--dark::after {
	content: "";
	position: absolute;
	right: -110px;
	top: -110px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 99, 0, .45), transparent 65%);
	z-index: -1;
}
.ds-panel h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.12; margin: 0 0 .7rem; }
.ds-panel p { margin: 0; font-size: .98rem; line-height: 1.65; }
.ds-panel--light p { color: var(--ds-ink-soft); }
.ds-panel--dark p { color: rgba(255, 255, 255, .74); }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.ds-cta {
	position: relative;
	border-radius: var(--ds-radius-lg);
	overflow: hidden;
	background: var(--ds-ink);
	color: #fff;
	padding: clamp(2rem, 4.5vw, 3.75rem);
	isolation: isolate;
}
.ds-cta::after {
	content: "";
	position: absolute;
	left: -140px;
	bottom: -160px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 99, 0, .5), transparent 65%);
	z-index: -1;
}
.ds-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.1; margin: .9rem 0 .9rem; }
.ds-cta p { color: rgba(255, 255, 255, .72); font-size: 1.03rem; line-height: 1.6; margin-bottom: 1.6rem; max-width: 560px; }
.ds-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --------------------------------------------------------------------------
   Texto rico / listas
   -------------------------------------------------------------------------- */
.ds-prose { color: var(--ds-ink-soft); font-size: 1.02rem; line-height: 1.75; }
.ds-prose h2, .ds-prose h3 { color: var(--ds-ink); font-weight: 600; }
.ds-prose h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.25; margin: 2.2rem 0 .75rem; }
.ds-prose h3 { font-size: clamp(1.08rem, 1.6vw, 1.2rem); line-height: 1.3; margin: 1.6rem 0 .5rem; }
.ds-prose p { margin-bottom: 1rem; }
.ds-prose img { max-width: 100%; height: auto; border-radius: var(--ds-radius); }
.ds-prose ul, .ds-prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.ds-prose li { margin-bottom: .35rem; }

.ds-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ds-list li { position: relative; padding-left: 1.6rem; line-height: 1.5; color: var(--ds-ink-soft); }
.ds-list li::before {
	content: "\F26A"; /* bootstrap-icons: check-lg */
	font-family: "bootstrap-icons";
	position: absolute;
	left: 0;
	color: var(--ds-orange);
}

/* --------------------------------------------------------------------------
   Formulários (filtros / contato)
   -------------------------------------------------------------------------- */
.ds-form-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-terra); margin-bottom: .5rem; display: block; }
.ds-input,
.ds-select {
	width: 100%;
	border: 1px solid var(--ds-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ds-ink);
	padding: .8rem 1rem;
	font-size: .96rem;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.ds-input:focus,
.ds-select:focus { outline: none; border-color: var(--ds-orange); box-shadow: 0 0 0 3px rgba(255, 99, 0, .14); }

.ds-check { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; cursor: pointer; }
.ds-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--ds-orange); flex: none; }
.ds-check span { font-size: .93rem; color: var(--ds-ink); }

/* --------------------------------------------------------------------------
   Paginação
   -------------------------------------------------------------------------- */
.ds-pagination { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ds-pagination a,
.ds-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 .85rem;
	border-radius: 12px;
	border: 1px solid var(--ds-line);
	color: var(--ds-ink);
	text-decoration: none;
	font-size: .93rem;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.ds-pagination a:hover { border-color: var(--ds-orange); color: var(--ds-orange); }
.ds-pagination .is-active span { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; }
.ds-pagination .is-disabled span { opacity: .45; }

/* --------------------------------------------------------------------------
   Estado vazio
   -------------------------------------------------------------------------- */
.ds-empty {
	background: var(--ds-cream);
	border: 1px dashed var(--ds-line);
	border-radius: var(--ds-radius);
	padding: clamp(1.75rem, 4vw, 3rem);
	text-align: center;
	color: var(--ds-ink-soft);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
	.ds-hero { min-height: clamp(400px, 60vh, 560px); }
	.ds-hero::after {
		background:
			linear-gradient(0deg, rgba(16, 12, 9, .94) 0%, rgba(16, 12, 9, .6) 55%, rgba(16, 12, 9, .28) 100%);
	}
	.ds-band { margin-top: 1rem; grid-template-columns: repeat(2, 1fr); }
	.ds-band-item { border-bottom: 1px solid var(--ds-line); }
	.ds-band-item:nth-child(2n) { border-right: 0; }
	.ds-band-item:nth-child(n+3) { border-bottom: 0; }
}

@media (max-width: 575.98px) {
	.ds-hero { min-height: auto; align-items: stretch; }
	.ds-hero-inner { padding-top: 12.5rem; padding-bottom: 2.75rem; }
	.ds-actions .ds-btn { flex: 1 1 100%; justify-content: center; }
	.ds-band { grid-template-columns: 1fr; }
	.ds-band-item { border-right: 0; border-bottom: 1px solid var(--ds-line); }
	.ds-band-item:last-child { border-bottom: 0; }
	.ds-panel, .ds-cta, .ds-card, .ds-product-card, .ds-empty { border-radius: 16px; }
	.ds-cta-actions .ds-btn { flex: 1 1 100%; justify-content: center; }
}
