/* Loja própria — Thunder Linhas (Tema Thunder Monster – dark + laranja) */
* {
	box-sizing: border-box
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	min-height: 100%;
}

img {
	max-width: 100%;
	display: block;
	border-radius: 12px;
}

/* Galeria de produtos: tamanho natural, sem cortes */
.pg-main, #pGallery .pg-main {
	aspect-ratio: auto !important;
	height: auto !important;
	overflow: visible !important;
}

.pg-main img, .pg-main video, #pGallery img, #pGallery video {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: none !important;
	object-fit: contain !important;
}

/* ========================= Paleta / Tokens de Design ========================= */
:root {
	--brand: #7c3aed;
	--brand2: #a78bfa;
	--ink: #0f172a;
	--muted: #64748b;
	--line: rgba(100, 116, 139, 0.20);
	--surface: #ffffff;
	--bg: #f5f7fb;
	--r: 16px;
	--shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
}

.container {
	width: min(1100px, 92vw);
	margin-inline: auto
}

/* ======= Header ======= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #ffffff;
	box-shadow: 0 5px 20px rgba(15, 23, 42, 0.08);
	border-bottom: 1px solid var(--line);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	width: min(1100px, 94vw);
	margin-inline: auto;
}

.brand {
	font-weight: 900;
	text-decoration: none;
	color: var(--brand);
	display: flex;
	gap: 0.5rem;
	align-items: center;
	font-size: 1.35rem;
}

.menu a {
	color: #334155;
	text-decoration: none;
	margin-left: 18px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.menu a:hover {
	color: var(--brand);
}

/* espaço maior entre "Termos de Uso" e o carrinho */
.menu #cartBtn {
	margin-left: 36px;
}

/* ======= Botões ======= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	padding: 12px 18px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	transition: all 0.2s ease;
}

.btn--primary {
	background: linear-gradient(135deg, var(--brand), var(--brand2));
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 12px 24px rgba(0, 86, 214, .20);
}

.btn--primary:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.btn--ghost {
	background: transparent;
	color: var(--brand);
	border: 1px solid var(--brand);
}

.btn--ghost:hover {
	background: rgba(0, 86, 214, .1);
}

.btn--block {
	display: block;
	width: 100%;
}

.icon-btn {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	border-radius: 10px;
	padding: 6px 10px;
	cursor: pointer
}

/* ======= Hero ======= */
.hero {
	background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
	border-radius: 20px;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.hero__wrap {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 2rem;
	padding: 60px 0;
	align-items: center;
}

.hero h1 {
	font-size: clamp(30px, 5vw, 52px);
	margin: 0 0 10px;
	color: var(--ink);
}

.hero p {
	color: #475569;
	max-width: 52ch;
}


.blob {
  width: min(420px, 70%);
  aspect-ratio: 1/1;
  border-radius: 42% 58% 37% 63% / 44% 41% 59% 56%;
  background: conic-gradient(from 0deg, #cfe3ff, #e2e8f0, #f8fafc, #f8fafc);
  animation: float 6s ease-in-out infinite;
  display: grid;
  place-items: center;
}

.blob img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  /* sombra que respeita a transparência da logo */
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}



@keyframes float {
	50% {
		transform: translateY(-8px) rotate(2deg)
	}
}

/* ======= Grid ======= */
h2 {
	font-size: clamp(22px, 3vw, 28px);
	margin: 30px 0 12px;
	color: #0f172a;
}

.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	padding-bottom: 30px;
}

@media (max-width: 900px) {
	.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.products {
		grid-template-columns: 1fr;
	}
}


/* ======= Cards de Produto (novo) ======= */
.card {
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 16px;
	background: #ffffff;
	box-shadow: var(--shadow);
	transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 86, 214, .35);
	box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
}


/* Thumb: visual mais clean, card branco moderno */
.product-card__thumb {
	width: 100%;
	aspect-ratio: 1/1;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 12px;
	position: relative;
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .1), 0 10px 20px rgba(15, 23, 42, .08);
}

/* leve vinheta/realce sem cor âmbar */
.product-card__thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 60% at 50% 35%, rgba(255, 255, 255, .06), transparent 60%), radial-gradient(80% 80% at 50% 120%, rgba(0, 0, 0, .35), transparent 60%);
	pointer-events: none;
}

.product-card__thumb img.thumb {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	transform: translateZ(0);
	/* suaviza */
	transition: transform .25s ease, filter .2s ease;
	filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35));
}

.product-card__thumb:hover img.thumb {
	transform: scale(1.03);
}

/* Textos do card */
.product-card__title {
	margin: 6px 0 6px;
	font-size: 1.05rem;
	color: #0f172a;
	text-align: center;
}

.product-card__meta {
	margin: 0 0 12px;
	color: #64748b;
	font-size: .92rem;
	text-align: center;
	min-height: 2.4em;
}

.product-card__desc {
	text-align: justify;
	text-align-last: left;
	line-height: 1.55;
	min-height: auto;
}

.product-card__desc p {
	margin: 0 0 10px;
}

.product-card__desc p:last-child {
	margin-bottom: 0;
}

.texture-pills {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
}

.texture-pill {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .01em;
	background: rgba(124, 58, 237, .10);
	color: #5b21b6;
	border: 1px solid rgba(124, 58, 237, .16);
}

.topline-pill {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .01em;
	background: linear-gradient(135deg, rgba(250, 204, 21, .24), rgba(124, 58, 237, .16));
	color: #5b21b6;
	border: 1px solid rgba(217, 119, 6, .34);
	box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .16), 0 8px 18px rgba(217, 119, 6, .20);
}

.product--topline {
	border-color: rgba(202, 138, 4, .45);
	background: linear-gradient(165deg, rgba(254, 243, 199, .96), rgba(255, 255, 255, .94));
	box-shadow: 0 18px 38px rgba(202, 138, 4, .22), inset 0 0 0 1px rgba(124, 58, 237, .12);
}

.product--topline .product-card__thumb {
	border-color: rgba(124, 58, 237, .24);
	box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .18), 0 10px 24px rgba(124, 58, 237, .16);
}

.texture-note {
	margin: 0 0 10px;
	font-size: .78rem;
	line-height: 1.4;
	text-align: center;
	color: #64748b;
}

.product-card__buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.price {
	font-weight: 800;
	color: var(--brand);
}

/* botão menor mais moderno */
.btn--small {
	padding: 10px 14px;
	border-radius: 12px;
	font-weight: 700;
}

/* ======= Footer ======= */
.site-footer {
	background: #ffffff;
	color: #334155;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 22px;
	max-width: 1100px;
	margin-inline: auto;
}

.brand--footer {
	color: #0f172a;
	font-weight: 800;
	margin-bottom: 6px;
}

.links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.links a {
	color: #475569;
	text-decoration: none;
}

.links a:hover {
	color: #0f172a;
}

.copyright {
	border-top: 1px solid rgba(148, 163, 184, .2);
	padding: 12px 0 24px;
	margin-top: 16px;
	text-align: center
}

.center {
	min-height: 100svh;
	display: grid;
	place-items: center;
	background: var(--surface)
}

/* ======= Cart Drawer ======= */
.cart {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 1000
}

.cart.open {
	display: block
}

.cart__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, .55);
	border: none;
	z-index: 1000;
	pointer-events: auto;
	cursor: pointer
}

.cart__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(420px, 92vw);
	background: #ffffff;
	border-left: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	z-index: 1001;
	pointer-events: auto;
	box-shadow: -24px 0 60px rgba(15, 23, 42, .12);
	animation: slideIn .25s ease-out;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: .6
	}

	to {
		transform: translateX(0);
		opacity: 1
	}
}

.cart__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	color: #0f172a;
	font-weight: 600
}

.cart__items {
	flex: 1;
	overflow-y: auto;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px
}

.cart-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 12px;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 8px;
	background: #0b1220;
	color: #0f172a;
	pointer-events: auto;
}

.cart-item .cart-thumb {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff
}

.cart-item .cart-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block
}

.qty {
	display: flex;
	align-items: center;
	gap: 6px
}

.qty button {
	padding: 4px 8px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	border-radius: 8px;
	cursor: pointer
}

.cart__footer {
	border-top: 1px solid var(--line);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px
}

.cart__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #fff;
	font-weight: 600
}

/* Botão finalizar */
#checkoutBtn {
	background: linear-gradient(135deg, var(--brand), var(--brand2));
	color: #0b0f19;
	border: none;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: filter .2s;
}

#checkoutBtn:hover {
	filter: brightness(1.1)
}

/* Imagem hero */
.hero__art {
	display: flex;
	align-items: center;
	justify-content: center
}

.hero__image {
	max-width: 450px;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 0 40px rgba(255, 140, 0, .2);
	animation: float 6s ease-in-out infinite;
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0)
	}

	50% {
		transform: translateY(-10px)
	}
}

.products__header {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px
}


.catalog-filter__intro {
	margin: 8px 0 0;
	max-width: 70ch;
	color: var(--muted);
	line-height: 1.6;
}


.catalog-note {
	margin: 18px 0 22px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(124, 58, 237, .16);
	background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(255, 255, 255, .92));
	box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
	color: #312e81;
}

.products__controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px
}

#sortSelect,
#textureFilterSelect {
	background: #0f1115;
	color: #fff;
	border: 1px solid #2a2f3a;
	border-radius: 10px;
	padding: 8px 10px
}

@media (max-width: 640px) {
	.products__header {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* === FEATURES === */
.features {
	margin-top: 22px
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px
}

.feature-card {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #0b0d10;
	border: 1px solid #1f2430;
	padding: 14px 16px;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 140, 0, .05);
}

.feature-card::before,
.feature-card::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	pointer-events: none
}

.feature-card::before {
	background: radial-gradient(220px 140px at 8% 0%, rgba(255, 170, 40, .22), transparent 60%), radial-gradient(240px 160px at 100% 100%, rgba(255, 130, 0, .16), transparent 60%);
	mix-blend-mode: screen;
}

.feature-card::after {
	box-shadow: inset 0 0 38px rgba(255, 150, 0, .10)
}

.feature-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 153, 0, .35);
	box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 22px rgba(255, 153, 0, .18), inset 0 0 0 1px rgba(255, 153, 0, .10);
}

.feature-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 12px
}

.feature-icon {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	font-size: 20px;
	border-radius: 12px;
	color: #ffd27a;
	background: radial-gradient(60% 60% at 30% 30%, rgba(255, 190, 80, .35), rgba(255, 140, 0, .12) 60%, rgba(255, 140, 0, .06) 100%);
	border: 1px solid rgba(255, 153, 0, .25);
	box-shadow: inset 0 0 10px rgba(255, 170, 40, .35), 0 0 10px rgba(255, 170, 40, .18);
}

.feature-title {
	color: #0f172a;
	font-weight: 600;
	letter-spacing: .2px
}

/* === FAQ === */
.faq {
	margin-top: 28px
}

.faq h2 {
	margin-bottom: 14px
}

.faq-list {
	display: grid;
	gap: 18px
}

.faq-item {
	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 16px;
	background: #ffffff;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-item::before,
.faq-item::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
}

.faq-item::before,
.faq-item::after {
	background: none;
	box-shadow: none;
}

.faq-item:hover {
	transform: translateY(-2px);
	border-color: var(--brand);
	box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
}

.faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	user-select: none;
	outline: none
}

.faq-item summary::-webkit-details-marker {
	display: none
}

.faq-q {
	color: #0f172a;
	font-weight: 600;
	letter-spacing: .2px
}

.faq-item summary::after {
	content: "▾";
	margin-left: auto;
	color: var(--brand);
	opacity: .9;
	transform: rotate(0deg);
	transition: transform .2s ease;
	font-size: 18px;
	line-height: 1
}

.faq-content {
	color: #334155;
}
.faq-item[open] summary::after {
	transform: rotate(180deg)
}

.faq-content {
	padding: 0 18px 0;
	color: #334155;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-6px);
	transition: max-height .35s ease, opacity .25s ease, transform .25s ease
}

.faq-item[open] .faq-content {
	padding-bottom: 16px;
	max-height: 320px;
	opacity: 1;
	transform: translateY(0)
}

.faq-item summary:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 153, 0, .35) inset;
	border-radius: 16px
}

/* ======= Responsivo ======= */
@media (max-width:900px) {
	.hero__wrap {
		grid-template-columns: 1fr
	}

	.products {
		grid-template-columns: 1fr 1fr
	}

	.footer__grid {
		grid-template-columns: 1fr
	}
}

@media (max-width:560px) {
	.menu {
		display: none
	}

	.products {
		grid-template-columns: 1fr
	}
}

/* ===== Estoque (badge) ===== */
.product-card__badges {
	display: flex;
	justify-content: center;
	margin: 6px 0 8px;
}

.stock-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .82rem;
	font-weight: 700;
	color: #0f172a;
	border: 1px solid rgba(100, 116, 139, .25);
	background: #f8fafc;
	border-radius: 999px;
	padding: 4px 10px;
}

.stock-pill::before {
	color: var(--brand);
}

.stock-pill.--low,
.stock-pill.--out {
	color: #0f172a;
	border-color: rgba(100, 116, 139, .25);
	background: #f8fafc;
}

.stock-pill.--low::before,
.stock-pill.--out::before {
	color: var(--brand);
}

.stock-pill::before {
	content: "●";
	font-size: 10px;
	line-height: 1;
	opacity: .9;
}

/* baixo estoque */
.stock-pill.--low {
	color: #ffd27a;
	border-color: rgba(255, 153, 0, .35);
	box-shadow: inset 0 0 0 1px rgba(255, 153, 0, .08);
}

.stock-pill.--low::before {
	color: #ffb347;
}

/* esgotado */
.stock-pill.--out {
	color: #fca5a5;
	border-color: rgba(239, 68, 68, .35);
	background: #1a0f12;
}

.stock-pill.--out::before {
	color: #ef4444;
}

/* ======== Menu mobile ======== */
.hamburger {
	display: none;
	margin-left: 10px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	border-radius: 10px;
	padding: 8px 12px;
	font-weight: 700;
	cursor: pointer;
}

.mobile-menu {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 1200;
}

.mobile-menu.open {
	display: block;
}

.mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.55);
	border: none;
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: min(88vw, 360px);
	background: #0f172a;
	border-right: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	padding: 16px;
	gap: 12px;
}

.mobile-menu__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--line);
	padding-bottom: 12px;
}

.mobile-menu__links {
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mobile-menu__links a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
}

.mobile-menu__links a:hover {
	color: var(--brand);
}

/* mostra o botão hambúrguer no mobile */
@media (max-width: 768px) {
	.hamburger {
		display: inline-block;
	}

	.menu {
		display: none;
	}
}

/* ===== Header layout fix (cart à direita) ===== */
.site-header .nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Desktop: menu depois da brand, carrinho no extremo direito, sem hambúrguer */
@media (min-width:561px) {
	.menu {
		order: 1;
		margin-left: 24px;
	}

	/* menu encosta na brand */
	#cartBtn {
		order: 2;
		margin-left: auto;
	}

	/* empurra o carrinho pro canto direito */
	#menuToggle {
		display: none;
	}

	/* esconde o hambúrguer no desktop */
}

/* Mobile: esconde o menu de links e mostra o hambúrguer; carrinho continua visível */
@media (max-width:560px) {
	.menu {
		display: none;
	}

	#menuToggle {
		display: inline-flex;
		margin-left: auto;
	}

	#cartBtn {
		margin-left: 12px;
	}

	/* fica antes do hambúrguer, como você queria */
}

/* ==== Corrige menu mobile bloqueado ==== */
@media (max-width: 768px) {
	.menu {
		position: fixed;
		top: 60px;
		left: 0;
		width: 100%;
		background: #ffffff;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 16px;
		z-index: 9999;
		/* 🔥 garante que o menu fique acima de tudo */
		display: none;
	}

	.menu.open {
		display: flex;
	}

	.menu a {
		color: #334155;
		width: 100%;
		padding: 8px 0;
	}

	/* botão hamburguer visível no mobile */
	.hamburger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		width: 24px;
		height: 24px;
		cursor: pointer;
	}

	.hamburger span {
		background: #0f172a;
		height: 3px;
		width: 100%;
		border-radius: 2px;
	}
}

#checkoutBtn[aria-busy="true"] {
	position: relative;
}

#checkoutBtn[aria-busy="true"]::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-top-color: transparent;
	animation: spin .7s linear infinite;
}

@keyframes spin {
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

/* ===== CATÁLOGO EM LISTA HORIZONTAL (um do lado do outro) ===== */
#grid {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 6px 2px 14px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

/* barra de rolagem mais discreta */
#grid::-webkit-scrollbar {
	height: 10px;
}

#grid::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, .25);
	border-radius: 999px;
}

#grid::-webkit-scrollbar-track {
	background: transparent;
}

/* cada card vira “slide” */
#grid .card {
	flex: 0 0 320px;
	/* largura do card (ajuste: 280~360) */
	max-width: 320px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
}

/* thumb com altura fixa para não ficar gigante */
#grid .product-card__thumb {
	height: 220px;
	/* ajuste: 180~260 */
	aspect-ratio: auto;
background: transparent; /* Deixe transparente se a imagem já tiver fundo */
    border: none; /* Remove a bordinha interna se preferir o estilo limpo */
}

/* imagem inteira (logo circular não corta) */
#grid .product-card__thumb img.thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* empurra preço pro fim e evita card crescendo demais */
#grid .product-card__buy {
	margin-top: auto;
}

/* no mobile deixa os cards um pouco menores */
@media (max-width:560px) {
	#grid .card {
		flex-basis: 78vw;
		max-width: 78vw;
	}

	#grid .product-card__thumb {
		height: 250px;
	}
}

/* ===== PATCH: cards mais compactos e grade correta ===== */
/* garante que o container de produtos use auto-fit e não fique gigante */
#productsGrid.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

/* 3 colunas no notebook/tablet */
@media (max-width: 1100px) {
	#productsGrid.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* 2 colunas no mobile grande */
@media (max-width: 820px) {
	#productsGrid.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 1 coluna no celular */
@media (max-width: 520px) {
	#productsGrid.products {
		grid-template-columns: 1fr;
	}
}

/* reduz padding e tipografia (sem quebrar seu tema) */
.product--compact.card {
	padding: 10px;
}

.product--compact .product-card__thumb {
	border-radius: 12px;
	margin-bottom: 10px;
}

.product--compact .product-card__title {
	font-size: 0.98rem;
	margin: 6px 0 6px;
}

.product--compact .product-card__meta {
	font-size: 0.86rem;
	margin: 0 0 10px;
	min-height: 0;
}

.product--compact .price {
	font-size: 0.95rem;
}

/* ===== Product Page (Premium) + Animations ===== */
/* container principal da página do produto */
.product-page {
	width: min(1100px, 92vw);
	margin: 22px auto 50px;
}

/* layout: imagem + info */
.product-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: start;
}

@media (max-width: 900px) {
	.product-hero {
		grid-template-columns: 1fr;
	}
}

/* card da imagem */
.product-media {
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(11, 15, 25, .86));
	box-shadow: 0 18px 46px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .03);
	overflow: hidden;
	position: relative;
}

.product-media::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 60% at 50% 20%, rgba(255, 255, 255, .06), transparent 60%), radial-gradient(70% 70% at 70% 120%, rgba(245, 158, 11, .12), transparent 60%);
	pointer-events: none;
}

.product-media img {
	width: 100%;
	height: min(560px, 62vh);
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
	transform: translateZ(0);
}

/* card de informações */
.product-info {
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(11, 15, 25, .86));
	box-shadow: 0 18px 46px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .03);
	padding: 16px 16px 18px;
}

.product-title {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(22px, 2.6vw, 34px);
	line-height: 1.1;
	letter-spacing: .2px;
}

.product-desc {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.55;
}

.product-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 12px 0 14px;
}

.product-price {
	font-weight: 900;
	color: #fde68a;
	font-size: 1.35rem;
}

.product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.btn-add {
	flex: 1 1 220px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 14px;
	padding: 14px 16px;
	font-weight: 900;
	cursor: pointer;
	color: #0b0f19;
	background: linear-gradient(135deg, var(--brand), var(--brand2));
	box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
	transition: transform .12s ease, filter .2s ease;
}

.btn-add:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.btn-add:active {
	transform: translateY(0px) scale(.99);
}

.btn-add[disabled] {
	opacity: .55;
	cursor: not-allowed;
	filter: none;
	transform: none;
}

.btn-secondary {
	flex: 1 1 220px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px 16px;
	font-weight: 800;
	cursor: pointer;
	color: var(--ink);
	background: rgba(2, 6, 23, .22);
	transition: transform .12s ease, border-color .2s ease;
}

.btn-secondary:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 153, 0, .35);
}

/* Pulse do botão ao adicionar */
@keyframes addPulse {
	0% {
		box-shadow: 0 0 0 rgba(255, 153, 0, 0);
	}

	30% {
		box-shadow: 0 0 0 10px rgba(255, 153, 0, .15);
	}

	70% {
		box-shadow: 0 0 0 18px rgba(255, 153, 0, .06);
	}

	100% {
		box-shadow: 0 0 0 rgba(255, 153, 0, 0);
	}
}

.btn-add.is-added {
	animation: addPulse .55s ease-out;
}

/* Toast */
.toast {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	background: rgba(15, 23, 42, .92);
	border: 1px solid rgba(148, 163, 184, .24);
	color: #e5e7eb;
	padding: 10px 14px;
	border-radius: 999px;
	box-shadow: 0 14px 44px rgba(0, 0, 0, .55);
	display: flex;
	gap: 10px;
	align-items: center;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(-4px);
}

.toast .dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

/* Fly-to-cart (clone da imagem) */
.fly-img {
	position: fixed;
	z-index: 99998;
	pointer-events: none;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 18px 46px rgba(0, 0, 0, .55);
	transform: translateZ(0);
}

/* ===== TL Animations (add-to-cart) ===== */
.tl-toast {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	background: rgba(15, 23, 42, .92);
	border: 1px solid rgba(148, 163, 184, .24);
	color: #e5e7eb;
	padding: 10px 14px;
	border-radius: 999px;
	box-shadow: 0 14px 44px rgba(0, 0, 0, .55);
	display: flex;
	gap: 10px;
	align-items: center;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
}

.tl-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(-4px);
}

.tl-toast .dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.tl-fly {
	position: fixed;
	z-index: 99998;
	pointer-events: none;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 18px 46px rgba(0, 0, 0, .55);
}

@keyframes tlPulse {
	0% {
		box-shadow: 0 0 0 rgba(255, 153, 0, 0);
		transform: translateY(0);
	}

	30% {
		box-shadow: 0 0 0 10px rgba(255, 153, 0, .15);
		transform: translateY(-1px);
	}

	70% {
		box-shadow: 0 0 0 18px rgba(255, 153, 0, .06);
	}

	100% {
		box-shadow: 0 0 0 rgba(255, 153, 0, 0);
		transform: translateY(0);
	}
}

#btnAdd.tl-added {
	animation: tlPulse .55s ease-out;
}

/* ===== Carrossel "Você pode gostar" (product page) ===== */
.recos {
	margin-top: 22px;
	padding-bottom: 28px;
}

.recos__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
}

.recos__title {
	margin: 0;
	color: #fff;
	font-size: clamp(18px, 2.4vw, 22px);
	letter-spacing: .2px;
}

.recos__actions {
	display: flex;
	gap: 8px;
}

.recos__btn {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	font-size: 20px;
	line-height: 1;
}

.recos__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(230px, 260px);
	gap: 14px;
	overflow-x: auto;
	padding: 8px 4px 14px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.recos__track::-webkit-scrollbar {
	height: 10px;
}

.recos__track::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, .25);
	border-radius: 999px;
}

.recos__track::-webkit-scrollbar-track {
	background: rgba(15, 23, 42, .45);
	border-radius: 999px;
}

.reco-card {
	scroll-snap-align: start;
	cursor: pointer;
	user-select: none;
}

.reco-card .product-card__thumb {
	aspect-ratio: 1/1;
}

.reco-card .product-card__title {
	font-size: 1rem;
}

.reco-card .product-card__meta {
	font-size: .9rem;
	min-height: 2.2em;
}

/* responsivo */
@media (max-width: 560px) {
	.recos__track {
		grid-auto-columns: minmax(200px, 78vw);
	}
}

/* toast */
.toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	background: #0f172a;
	border: 1px solid rgba(148, 163, 184, .25);
	color: #e5e7eb;
	padding: 10px 12px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 9999;
}

.toast .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f59e0b;
	box-shadow: 0 0 12px rgba(245, 158, 11, .4)
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(-6px)
}

/* pulse no botão do carrinho */
.cart-pulse {
	animation: cartPulse .35s ease
}

@keyframes cartPulse {
	0% {
		transform: scale(1)
	}

	50% {
		transform: scale(1.08)
	}

	100% {
		transform: scale(1)
	}
}

/* imagem voando */
.fly-img {
	position: fixed;
	z-index: 9998;
	pointer-events: none;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 18px 46px rgba(0, 0, 0, .55);
}

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

/* carrossel */
.reco {
	margin-top: 26px
}

.reco__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px
}

.reco__track {
	display: flex;
	gap: 14px;
	overflow: auto;
	scrollbar-width: none;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
}

.reco__track::-webkit-scrollbar {
	display: none
}

.reco-card {
	min-width: 260px;
	max-width: 260px;
	scroll-snap-align: start
}

/* ===== ThunderLinhas: Toast + Fly-to-cart + Carrossel "Você pode gostar" ===== */
.tl-toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%) translateY(10px);
	background: rgba(15, 23, 42, .92);
	border: 1px solid rgba(148, 163, 184, .22);
	color: #fff;
	padding: 10px 12px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 99999;
}

.tl-toast .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brand), var(--brand2));
	box-shadow: 0 0 16px rgba(245, 158, 11, .35);
}

.tl-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.tl-fly {
	position: fixed;
	z-index: 99998;
	border-radius: 16px;
	overflow: hidden;
	pointer-events: none;
	box-shadow: 0 18px 46px rgba(0, 0, 0, .55), 0 0 24px rgba(255, 153, 0, .12);
}

.tl-fly img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Carrossel */
.reco-wrap {
	margin-top: 18px;
}

.reco-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 8px 0 10px;
}

.reco-actions {
	display: flex;
	gap: 8px;
}

.reco-actions button {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, .22);
	background: rgba(15, 23, 42, .65);
	color: #fff;
	cursor: pointer;
}

.reco-actions button:hover {
	border-color: rgba(255, 153, 0, .35);
}

.reco-track {
	display: flex;
	gap: 14px;
	overflow: auto;
	scroll-snap-type: x mandatory;
	padding: 6px 2px 12px;
}

.reco-track::-webkit-scrollbar {
	height: 10px;
}

.reco-track::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, .18);
	border-radius: 999px;
}

.reco-card {
	min-width: 220px;
	max-width: 220px;
	scroll-snap-align: start;
	border: 1px solid rgba(100, 116, 139, .25);
	background: #ffffff;
	border-radius: 16px;
	padding: 12px;
	text-decoration: none;
	color: #0f172a;
	transition: transform .16s ease, border-color .18s ease;
}

.reco-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 153, 0, .22);
}

.reco-thumb {
	width: 100%;
	aspect-ratio: 1/1;
	border-radius: 14px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid rgba(100, 116, 139, .20);
	display: flex;
	align-items: center;
	justify-content: center;
}

.reco-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.reco-thumb .ph {
	color: var(--muted);
	font-weight: 600;
}

.reco-body {
	padding-top: 10px;
	display: grid;
	gap: 6px;
}

.reco-name {
	font-weight: 700;
	font-size: .98rem;
	line-height: 1.15;
}

.reco-price {
	font-weight: 800;
	color: #fde68a;
}

/* ===== Carrossel "Você pode gostar" ===== */
.reco {
	margin-top: 28px;
}

.reco__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 12px;
}

.reco__title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 800;
	/* color: #fff; */ /* REMOVIDO - estava sobrescrevendo */
}

.reco__nav {
	display: flex;
	gap: 8px;
}

.reco__btn {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .04);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.reco__btn:hover {
	background: rgba(255, 255, 255, .08);
}

.reco__viewport {
	overflow: hidden;
	/* isso evita a “lista gigante” */
	border-radius: 16px;
}

.reco__track {
	display: flex;
	/* horizontal */
	gap: 14px;
	overflow-x: auto;
	/* scroll horizontal */
	scroll-behavior: smooth;
	padding: 6px 2px 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* firefox */
}

.reco__track::-webkit-scrollbar {
	display: none;
}

.reco__card {
	flex: 0 0 220px;
	/* largura fixa do card */
	cursor: pointer;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, .10);
	background: linear-gradient(180deg, rgba(12, 18, 33, .9), rgba(8, 12, 20, .9));
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	overflow: hidden;
}

.reco__media {
	width: 100%;
	aspect-ratio: 1 / 1;
	/* trava altura proporcional */
	background: rgba(255, 255, 255, .03);
	display: grid;
	place-items: center;
}

.reco__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* não estoura a página */
	display: block;
}

.reco__body {
	padding: 10px 12px 12px;
}

.reco__name {
	margin: 0;
	font-weight: 800;
	/* color: #fff; */ /* REMOVIDO - estava sobrescrevendo */
	font-size: 0.98rem;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.4em;
}

.reco__meta {
	margin-top: 6px;
	color: rgba(255, 255, 255, .65);
	font-size: 0.88rem;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.reco__price {
	font-weight: 800;
	color: #ffd27a;
}

@media (max-width: 768px) {
	.reco__card {
		flex-basis: 180px;
	}

	.reco__title {
		font-size: 1.35rem;
	}
}

/* =============== CARROSSEL "VOCÊ PODE GOSTAR" =============== */
.reco {
	margin-top: 28px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 16px 24px;
}

.reco__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 12px;
}

.reco__title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 800;
	/* color: #fff; */ /* REMOVIDO - estava sobrescrevendo */
	letter-spacing: -.02em;
}

.reco__nav {
	display: flex;
	gap: 8px;
}

.reco__btn {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .05);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.reco__btn:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .22);
	transform: translateY(-1px);
}

.reco__btn:active {
	transform: translateY(0px) scale(.98);
}

.reco__viewport {
	overflow: hidden;
	border-radius: 18px;
}

.reco__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 6px 2px 14px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
}

.reco__track::-webkit-scrollbar {
	display: none;
}

.reco__card {
	flex: 0 0 230px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, .10);
	background: linear-gradient(180deg, rgba(14, 22, 39, .92), rgba(8, 12, 20, .92));
	box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
	overflow: hidden;
	cursor: pointer;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
	scroll-snap-align: start;
}

.reco__card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, .18);
	background: linear-gradient(180deg, rgba(18, 29, 53, .92), rgba(10, 15, 25, .92));
}

.reco__media {
	width: 100%;
	aspect-ratio: 1/1;
	background: rgba(255, 255, 255, .03);
	display: grid;
	place-items: center;
}

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

.reco__body {
	padding: 10px 12px 12px;
}

.reco__name {
	margin: 0;
	font-weight: 800;
	/* color: #fff; */ /* REMOVIDO - estava sobrescrevendo */
	font-size: .98rem;
	line-height: 1.15;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.3em;
}

.reco__meta {
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: rgba(255, 255, 255, .70);
	font-size: .88rem;
}

.reco__price {
	font-weight: 900;
	color: #ffd27a;
}

.reco__pill {
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .05);
	font-weight: 700;
	font-size: .80rem;
}

@media (max-width: 900px) {
	.reco__card {
		flex-basis: 200px;
	}

	.reco__title {
		font-size: 1.35rem;
	}
}

@media (max-width: 520px) {
	.reco__card {
		flex-basis: 170px;
	}
}

/* ===== FIX: espaçamento entre Termos e botão Checkout ===== */
.cart__footer .agree {
	margin: 14px 0 18px !important;
	/* espaço abaixo dos termos */
	padding-top: 6px !important;
}

.cart__footer #checkoutBtn {
	margin-top: 10px !important;
	/* garante respiro */
	display: block !important;
	width: 100% !important;
}

/* melhora a leitura do bloco de termos */
.cart__footer .agree label {
	line-height: 1.35 !important;
}

/* alinha checkbox com o texto */
.cart__footer .agree input[type="checkbox"] {
	margin-top: 3px !important;
}

/* ===== Checkout: ajustar botão "Remover" do item ===== */
/* linha do item do carrinho no checkout */
.checkout .cart-item,
#checkoutPage .cart-item,
.cart--checkout .cart-item {
	display: grid !important;
	grid-template-columns: 52px 1fr auto !important;
	/* thumb | infos | total */
	gap: 12px !important;
	align-items: center !important;
}

/* bloco de infos (nome + controles) */
.checkout .cart-item>div:nth-child(2),
#checkoutPage .cart-item>div:nth-child(2),
.cart--checkout .cart-item>div:nth-child(2) {
	min-width: 0 !important;
}

/* linha meta (preço + remover) */
.checkout .cart-item .product-card__meta,
#checkoutPage .cart-item .product-card__meta,
.cart--checkout .cart-item .product-card__meta {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-wrap: wrap !important;
}

/* botão remover bonito */
.checkout .cart-item .icon-btn[data-r],
#checkoutPage .cart-item .icon-btn[data-r],
.cart--checkout .cart-item .icon-btn[data-r] {
	appearance: none !important;
	border: 1px solid var(--line) !important;
	background: rgba(255, 255, 255, .04) !important;
	color: #e6edf3 !important;
	padding: 6px 10px !important;
	border-radius: 999px !important;
	font-size: 12px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	text-decoration: none !important;
}

.checkout .cart-item .icon-btn[data-r]:hover,
#checkoutPage .cart-item .icon-btn[data-r]:hover,
.cart--checkout .cart-item .icon-btn[data-r]:hover {
	background: rgba(255, 255, 255, .08) !important;
	border-color: rgba(255, 255, 255, .18) !important;
}

/* total da direita não quebra */
.checkout .cart-item>div:last-child,
#checkoutPage .cart-item>div:last-child,
.cart--checkout .cart-item>div:last-child {
	white-space: nowrap !important;
	text-align: right !important;
}

.cart-row .item-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap
}

.cart-row .item-name {
	font-weight: 800;
	color: #e6edf3;
	margin: 0;
	line-height: 1.2
}

.cart-row .item-price {
	color: var(--muted);
	font-size: .95rem;
	margin: 0
}

.cart-row .item-total {
	text-align: right;
	white-space: nowrap;
	font-weight: 800
}

.cart-row .remove-btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .05);
	color: #e6edf3;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}

.cart-row .remove-btn:hover {
	background: rgba(255, 255, 255, .10);
	border-color: rgba(255, 255, 255, .22);
}

.cart-row .remove-btn,
.cart-row .remove-btn:visited {
	text-decoration: none;
}

/* ========================================================= CHECKOUT FIX (FINAL OVERRIDE) — botão REMOVER + layout Cole no FINAL do styles.css ========================================================= */
/* garante que o container do item não “bagunce” o botão */
#cartItems .cart-row {
	display: grid !important;
	grid-template-columns: 56px 1fr auto !important;
	gap: 12px !important;
	align-items: center !important;
}

/* deixa o miolo respirável e previsível */
#cartItems .cart-row>div {
	min-width: 0 !important;
}

/* o bug do "texto fora do desenho" geralmente vem de estilos globais em button + pseudo-elementos. Este bloco BLINDA o botão. */
#cartItems .cart-row .remove-btn {
	all: unset !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 6px 10px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, .14) !important;
	background: rgba(255, 255, 255, .05) !important;
	color: #e6edf3 !important;
	font: 700 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
	letter-spacing: .2px !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	user-select: none !important;
	text-decoration: none !important;
}

/* mata “capsulas” desenhadas por ::before/::after (comum em temas) */
#cartItems .cart-row .remove-btn::before,
#cartItems .cart-row .remove-btn::after {
	content: none !important;
	display: none !important;
}

#cartItems .cart-row .remove-btn:hover {
	background: rgba(255, 255, 255, .10) !important;
	border-color: rgba(255, 255, 255, .22) !important;
}

#cartItems .cart-row .remove-btn:active {
	transform: translateY(1px) !important;
}

/* ================================ CHECKOUT — FIX DEFINITIVO REMOVER (não conflita com drawer do index/product) ================================ */
/* Container geral do checkout (opcional, se você tiver) */
#checkoutPage,
.checkout-page,
.checkout {
	width: min(1100px, 92vw);
	margin: 20px auto;
}

/* Lista do carrinho no checkout */
#checkoutItems,
.checkout-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Item do carrinho no checkout */
.cart-row {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 12px;
	align-items: center;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .03);
	border-radius: 16px;
	padding: 12px;
}

/* thumb */
.cart-row img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 12px;
	background: #0b1220;
	border: 1px solid var(--line);
}

/* bloco do meio */
.cart-row .item-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cart-row .item-name {
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cart-row .item-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 0.92rem;
}

/* pill remover */
.cart-row .remove-btn {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(255, 255, 255, .18);
	background: rgba(255, 255, 255, .06);
	color: #e6edf3;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.cart-row .remove-btn:hover {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .30);
}

.cart-row .remove-btn:focus,
.cart-row .remove-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 210, 122, .25);
	border-color: rgba(255, 210, 122, .35);
}

/* total à direita */
.cart-row .item-total {
	font-weight: 900;
	white-space: nowrap;
	text-align: right;
	color: #fff;
}

/* responsivo */
@media (max-width: 520px) {
	.cart-row {
		grid-template-columns: 52px 1fr;
		grid-template-areas: "img info""total total";
	}

	.cart-row img {
		grid-area: img;
	}

	.cart-row .item-info {
		grid-area: info;
	}

	.cart-row .item-total {
		grid-area: total;
		text-align: left;
		padding-top: 6px;
	}
}

/* ============================================== IMPORTANTE: impede conflito do botão roxo/links (somente dentro do checkout) ============================================== */
#checkoutPage a,
#checkoutPage a:visited,
#checkoutPage a:hover,
#checkoutPage a:active {
	color: inherit !important;
	text-decoration: none !important;
}

/* ===== AÇÕES DO CHECKOUT (BOTÕES) ===== */
.actions {
	margin-top: 16px;
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* Base comum dos dois botões */
.btn--action {
	flex: 1 1 240px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: .3px;
	border-radius: 999px;
	text-align: center;
	text-decoration: none;
	transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
}

/* Botão secundário */
.btn--ghost.btn--action {
	background: rgba(255, 255, 255, .04);
	color: #e6edf3;
	border: 1px solid rgba(255, 255, 255, .14);
}

.btn--ghost.btn--action:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .22);
	transform: translateY(-1px);
}

/* Botão principal */
.btn--primary.btn--action {
	background: linear-gradient(135deg, #f59e0b, #f97316);
	color: #0b0f19;
	border: none;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.btn--primary.btn--action:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.btn--primary.btn--action:active {
	transform: translateY(0) scale(.99);
}

/* Estado desabilitado */
.btn--primary.btn--action:disabled {
	opacity: .55;
	cursor: not-allowed;
	filter: none;
	transform: none;
}

/* Mobile: botões empilhados */
@media (max-width: 560px) {
	.actions {
		flex-direction: column;
	}

	.btn--action {
		width: 100%;
	}
}

a.btn.btn--ghost {
	background-color: #25D366;
	/* verde WhatsApp */
	color: #ffffff !important;
	/* texto branco */
	border: none;
	border-radius: 999px;
	/* deixa bem arredondado */
	padding: 12px 22px;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: filter 0.2s ease, transform 0.1s ease;
}

a.btn.btn--ghost:hover {
	filter: brightness(0.9);
	transform: translateY(-1px);
}
/* =========================================
   CHECKOUT MOBILE – CORREÇÃO DE BOTÕES
   ========================================= */
@media (max-width: 768px) {

  /* Container do checkout (garante escopo) */
  .checkout,
  .checkout-container {
    --btn-h: 42px;
  }

  /* APENAS os botões do checkout */
  .checkout button,
  .checkout-container button {
    height: var(--btn-h) !important;
    min-height: var(--btn-h) !important;
    max-height: var(--btn-h) !important;

    border-radius: 10px !important;
    padding: 0 14px !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  /* Botão FINALIZAR (laranja) */
  .checkout .btn-primary,
  .checkout-container .btn-primary,
  .checkout button[type="submit"] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0b0b0b !important;
  }

  /* Botão CONTINUAR COMPRANDO (secundário) */
  .checkout .btn-secondary,
  .checkout-container .btn-secondary {
    background: #111827 !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255,255,255,.15) !important;
  }

  /* Remove qualquer ovalização herdada */
  .checkout button::before,
  .checkout button::after {
    display: none !important;
  }
}

/* =========================================
   CHECKOUT MOBILE – NORMALIZAR LINKS/BOTÕES (Continuar comprando)
   ========================================= */
@media (max-width: 768px) {

  /* pega botões E links dentro do checkout */
  .checkout :is(a, button, input[type="button"], input[type="submit"]),
  .checkout-container :is(a, button, input[type="button"], input[type="submit"]) {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    width: 100% !important;
    max-width: 320px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 14px !important;
    border-radius: 10px !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-decoration: none !important;
  }

  /* se tiver algum wrapper que centraliza os botões */
  .checkout .actions,
  .checkout-container .actions,
  .checkout .checkout-actions,
  .checkout-container .checkout-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }
}

/* =========================================
   CHECKOUT – ARRUMAR TEXTO "Li e concordo..."
   (evita centralizar/quebrar feio)
   ========================================= */

/* linha do checkbox + texto */
.checkout .terms,
.checkout .terms-row,
.checkout .agree,
.checkout .consent,
.checkout label[for*="terms"],
.checkout label[for*="agree"],
.checkout-container .terms,
.checkout-container .terms-row,
.checkout-container .agree,
.checkout-container .consent,
.checkout-container label[for*="terms"],
.checkout-container label[for*="agree"]{
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  text-align: left !important;
  justify-content: flex-start !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* garante que o texto não fique "em colunas" e centralizado */
.checkout .terms :is(span, p, small, div),
.checkout-container .terms :is(span, p, small, div){
  text-align: left !important;
  max-width: 100% !important;
}

/* links dentro do texto (Termos / Política) */
.checkout .terms a,
.checkout .agree a,
.checkout .consent a,
.checkout-container .terms a,
.checkout-container .agree a,
.checkout-container .consent a{
  color: #ffb86b !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important; /* evita quebrar "Termos de Uso" no meio */
}

.checkout .terms a:hover,
.checkout .agree a:hover,
.checkout .consent a:hover,
.checkout-container .terms a:hover,
.checkout-container .agree a:hover,
.checkout-container .consent a:hover{
  text-decoration: underline !important;
}

/* checkbox alinhado e sem “pular” */
.checkout .terms input[type="checkbox"],
.checkout .agree input[type="checkbox"],
.checkout .consent input[type="checkbox"],
.checkout-container .terms input[type="checkbox"],
.checkout-container .agree input[type="checkbox"],
.checkout-container .consent input[type="checkbox"]{
  margin-top: 3px !important;
  flex: 0 0 auto !important;
}

/* AAAAAAAAAAAAAAAAAAAAAAAAAA */


/* ==============================
   FIX: cards com altura consistente
   + descrição com limite
   + preço/estoque alinhados embaixo
   ============================== */

/* 1) Grid: fazer cada item esticar igual */
.grid, .products, .product-grid, .cards, #productsGrid, .catalog-grid {
  align-items: stretch;
}

/* 2) Card como coluna */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 3) Imagem fica no topo (não estoura) */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box) img {
  width: 100%;
  height: auto;
}

/* 4) Título sempre com no máximo 2 linhas (evita card "crescer" por título) */
:is(.product-title, .title, h3, h2)
{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5) Descrição: corta em 5 linhas (ajuste 4~7) */
:is(.product-desc, .desc, .description, .product-description, .texto, .details, p)
{
  display: -webkit-box;
  -webkit-line-clamp: 5;          /* <<< ajuste aqui */
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 6) Garantir um “miolo” mínimo igual (evita cards muito baixos) */
:is(.product-desc, .desc, .description, .product-description, .texto, .details, p)
{
  min-height: calc(1.4em * 5);    /* 5 linhas * line-height ~ 1.4 */
}

/* 7) Empurrar preço/estoque/botões pra base do card
   (se existir um container de ações, ele vai descer) */
:is(.product-actions, .actions, .footer, .bottom, .buy-row, .buyArea, .cta, .card-footer) {
  margin-top: auto;
}

/* 8) Se seu preço/estoque estiverem "soltos" dentro do card,
   tenta alinhar os elementos típicos ao final */
:is(.price, .product-price, .preco, .valor, .stock, .estoque, .btn, button, .add-to-cart, .buy, .checkout-btn)
{
  margin-top: 0;
}

/* 9) Preço fixo sempre no final (quando ele estiver dentro do card) */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box) :is(.price, .product-price, .preco, .valor) {
  margin-top: auto;               /* <<< esse é o truque quando preço não está num footer */
  padding-top: 10px;
}

/* 10) Botão: manter abaixo do preço e com espaçamento */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box) :is(.btn, button, .add-to-cart, .buy) {
  margin-top: 10px;
}

/* ==========================================
   FIX FINAL: preço alinhado mesmo com imagens diferentes
   - imagem com altura fixa (padroniza)
   - card em flex coluna
   - preço colado no rodapé
   ========================================== */

/* 1) Card vira coluna */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box){
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* 2) Cria uma "caixa" fixa para a imagem
   (funciona se sua imagem estiver dentro do card) */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box) :is(.img-wrap, .image-wrap, .media, .thumb, .photo, .cover, .product-image){
  height: 220px;                 /* <<< ajuste: 200~260 */
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04); /* evita “buraco” enquanto carrega */
}

/* 3) Se você não tem wrapper, força a própria IMG a se comportar como thumbnail fixa */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box) img{
  width: 100% !important;
  height: 220px !important;      /* <<< mesmo valor do wrapper */
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  border-radius: 14px;
}

/* 4) Limita a descrição (pra não crescer card) */
:is(.product-desc, .desc, .description, .product-description, p){
  display: -webkit-box;
  -webkit-line-clamp: 4;         /* <<< 3~6 */
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 4);
}

/* 5) Preço sempre no rodapé do card */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box) :is(.price, .product-price, .preco, .valor){
  margin-top: auto !important;
  padding-top: 10px;
}

/* 6) Se estoque/botão vem antes do preço, mantém eles juntos também */
:is(.product-card, .card, .product, .item, .catalog-item, .produto, .box) :is(.actions, .product-actions, .footer, .bottom, .cta){
  margin-top: auto !important;
}

/* ===== Product Gallery ===== */
.tl-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.tl-gallery__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.tl-gallery__viewport::-webkit-scrollbar { height: 8px; }
.tl-gallery__viewport::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }

.tl-gallery__img {
  flex: 0 0 100%;
  width: 100%;
  height: 520px;           /* ajuste 420~620 conforme sua página */
  object-fit: cover;
  scroll-snap-align: center;
  display: block;
}

.tl-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
}

.tl-gallery__nav:hover { background: rgba(0,0,0,.5); }
.tl-gallery__nav--prev { left: 12px; }
.tl-gallery__nav--next { right: 12px; }

.tl-dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tl-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.18);
}
.tl-dot.is-active { background: rgba(255,196,0,.95); }

/* ===== "Você pode gostar" carousel ===== */
.tl-reco {
  margin-top: 24px;
}

.tl-reco__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.tl-reco__track > * {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

/* ===== GALERIA PRODUTO ===== */
.pg-main{
  background:#0b1220;
  border-radius:16px;
  overflow:visible;
  width: 100%;
  height: auto;
}
.pg-main img{
  width:100%;
  height:auto;
  object-fit:contain;
  display: block;
}
.pg-thumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow-x:auto;
}
.pg-thumb{
  border:1px solid rgba(255,255,255,.1);
  background:#0b1220;
  border-radius:10px;
  padding:4px;
  cursor:pointer;
}
.pg-thumb.active{
  border-color:#ffb000;
}
.pg-thumb img{
  width:60px;
  height:60px;
  object-fit:cover;
}

/* ===== RELACIONADOS ===== */
.rel-track{
  display:flex;
  gap:14px;
  overflow-x:auto;
}
.rel-track .product-card{
  flex:0 0 240px;
  background:#0b1220;
  border-radius:14px;
  padding:10px;
}
.product-card img{
  width:100%;
  border-radius:10px;
}
.pc-title{color:#fff;font-weight:700;margin-top:8px}
.pc-price{color:#ffb000;font-weight:900}

/* ===== GALERIA (1 foto grande + setas invisíveis + thumbs elegantes) ===== */
#pGallery { width: 100%; }

.pg-main{
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 18px;
  overflow: visible;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.pg-main img{
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.pg-nav{
  position:absolute;
  top:0;
  bottom:0;
  width: 26%;
  border:0;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.pg-nav--l{ left:0; }
.pg-nav--r{ right:0; }

/* hover sutil (invisível mas dá feedback) */
.pg-nav--l:hover{ background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0)); }
.pg-nav--r:hover{ background: linear-gradient(270deg, rgba(0,0,0,.25), rgba(0,0,0,0)); }

.pg-thumbs{
  display:flex;
  gap:10px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x:auto;
  scrollbar-width: thin;
}

.pg-thumb{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding: 4px;
  cursor: pointer;
  flex: 0 0 auto;
}

.pg-thumb img{
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  display:block;
}

.pg-thumb.active{
  border-color: rgba(255,176,0,.9);
  box-shadow: 0 0 0 2px rgba(255,176,0,.18);
}

/* ===== RELACIONADOS (carrossel bonito, sem “visualização horrível”) ===== */
.rel-controls{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin: 10px 0 10px;
}

#relPrev, #relNext{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: #fff;
  cursor: pointer;
}

.rel-track{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
}

.rel-card{
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.rel-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(0,0,0,.2);
}

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

.rel-body{
  padding: 10px 12px 12px;
}

.rel-title{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  color: #fff;
  height: 34px;
  overflow: hidden;
}

.rel-price{
  margin-top: 6px;
  font-weight: 900;
  color: #ffb000;
}

#pDesc{
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;

  /* se você estiver usando line-clamp */
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

#pMsg{
  display: block;
  margin-top: 10px;
  max-width: 100%;
  pointer-events: none;     /* ✅ não bloqueia botões */
  user-select: none;
}

/* Se você usa overlay no card, ele NÃO pode capturar clique */
.p-card::before,
.p-card::after{
  pointer-events: none;
}

/* Garantir que os botões ficam acima */
.p-actions{
  position: relative;
  z-index: 5;
}

/* =========================================================
   Fixar área de compra (preço + botões) sempre no "rodapé"
   Funciona no catálogo (cards) e na página do produto (.p-card)
   ========================================================= */

/* ---------- CATÁLOGO (cards do grid) ---------- */
#productsGrid .card.product--compact{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* empurra o bloco de compra pro final do card */
#productsGrid .card.product--compact .product-card__buy{
  margin-top: auto;
}

/* (opcional) se você adicionar botões dentro do card no futuro */
#productsGrid .card.product--compact .product-card__actions{
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

/* ---------- PÁGINA DO PRODUTO (p-card) ---------- */
.p-card{
  display: flex;
  flex-direction: column;
  min-height: 520px; /* ajuste se quiser mais/menos altura no painel */
}

/* empurra tudo que vem depois (preço/ações) pro final */
.p-card .p-actions{
  margin-top: auto;
}

/* garante layout bonito dos botões */
.p-card .p-actions{
  display: flex;
  gap: 12px;
  align-items: center;
}

/* botões com mesma altura e alinhados */
.p-card .p-actions .btn{
  flex: 1;
  height: 45px;
  border-radius: 999px;
}

/* Descrição da página de produto: sem limite de altura, sem scroll */
.p-card #pDesc{
  overflow: visible;
  max-height: none;
  padding-right: 0;
  padding-bottom: 32px;
}

/* ===== GALERIA: thumbs embaixo (horizontal) ===== */

/* garante layout em coluna dentro do pGallery */
#pGallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Definições de galeria movidas para product.css */

/* tamanho das thumbs */
#pGallery .pg-thumb{
  flex: 0 0 auto !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,.03) !important;
}

#pGallery .pg-thumb img,
#pGallery .pg-thumb video{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}


/* ===== THUMBS: imagem grande e SEM corte (PC + celular) ===== */
.product-card__thumb{
  width: 100%;
  height: 260px;              /* aumenta o espaço da imagem */
  overflow: hidden;
  display: block;
  border-radius: 14px;
  background: rgba(255,255,255,.03); /* fundo pra quando sobrar espaço */
}

.product-card__thumb img.thumb{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;        /* SEM corte */
  object-position: center;
}

/* Mobile: deixa ainda maior */
@media (max-width: 768px){
  .product-card__thumb{ height: 300px; }
}

/* Desktop grande: deixa mais "premium" */
@media (min-width: 1024px){
  .product-card__thumb{ height: 280px; }
}

/* ===== FIX DEFINITIVO MOBILE: thumb grande e sem corte ===== */
@media (max-width: 768px) {

  /* aumenta especificidade pra vencer regras antigas */
  #productsGrid .product-card__thumb,
  .products #productsGrid .product-card__thumb,
  .products .product-card__thumb,
  .product-card__thumb {
    height: 320px !important;   /* deixe 300-360 conforme seu gosto */
    width: 100% !important;
    overflow: hidden !important;
    display: block !important;
    background: rgba(255,255,255,.03) !important;
    border-radius: 14px !important;
  }

  #productsGrid .product-card__thumb img.thumb,
  .products #productsGrid .product-card__thumb img.thumb,
  .products .product-card__thumb img.thumb,
  .product-card__thumb img.thumb {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;  /* sem corte */
    object-position: center !important;
  }
}

/* ===== FIX ULTRA FORTE: IMG = TAMANHO EXATO DO QUADRADO ===== */

/* o quadrado */
#productsGrid .product-card__thumb{
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.03) !important;
  display: block !important;
}

/* a imagem precisa preencher o quadrado */
#productsGrid .product-card__thumb > img.thumb{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;

  /* MUITO IMPORTANTE: remove limites que deixam 344x220 */
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;

  display: block !important;
  object-fit: cover !important;     /* preenche o quadrado */
  object-position: center !important;
}

/* se você NÃO quiser corte, troque cover por contain:
   object-fit: contain !important;
*/
/* =========================================================
   THUNDER FINAL — THUMB DO CATÁLOGO (PC + MOBILE)
   Objetivo: imagem preencher o quadrado (sem ficar pequena)
   ========================================================= */

/* 1) container da imagem vira um quadrado real */
#productsGrid .product-card__thumb{
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;

  display: block !important;          /* mata flex que centraliza e "encolhe" */
  padding: 0 !important;
  margin: 0 0 12px !important;

  overflow: hidden !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.03) !important;
}

/* 2) imagem ocupa 100% do quadrado */
#productsGrid .product-card__thumb img.thumb{
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;         /* evita render 344x220 */
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;

  display: block !important;
  object-fit: cover !important;       /* PREENCHE O QUADRADO */
  object-position: center !important;

  filter: none !important;            /* drop-shadow pode dar sensação de "menor" */
  transform: none !important;
}
 @media (max-width: 768px) {
  .cart-fab .count {
    color: #ffffff !important;
  }
}


@media (max-width: 768px){
  .hero__art{
    margin: 18px auto 0;
    display:flex;
    justify-content:center;
  }
  .hero__art img.hero__image{
    width: min(320px, 86vw);
    height: auto;
  }
}

/* ===== Fix sombra quadrada na logo da Hero ===== */
.hero__art{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.hero__image{
  display: block;
  width: min(420px, 70%);
  height: auto;
  object-fit: contain;

  /* sombra que respeita a transparência do PNG */
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}

/* =========================================================
   THUNDER REBRAND 2026 - Clean (override light)
   ========================================================= */
:root{
  --brand: #8b5cf6;
  --brand2: #d8b4fe;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(100, 116, 139, 0.20);
  --surface: #ffffff;
  --bg: #f5f7fb;
  --shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
}

html, body{
  color: var(--ink);
  background: var(--bg);
}

.site-header{
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, .20);
  box-shadow: 0 5px 20px rgba(15, 23, 42, .08);
}

.brand, .site-header .brand span{ color: var(--brand); }
.menu a{ color: #334155; }
.menu a:hover{ color: var(--brand); }

.hero{
  background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}

.blob{
  background: conic-gradient(from 35deg, #cfe3ff, #e2e8f0, #f8fafc);
  box-shadow: 0 18px 30px rgba(15, 23, 42, .16);
}

.btn{
  border: 1px solid rgba(100, 116, 139, .20);
  transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease, filter .2s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn--primary, #checkoutBtn{
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 86, 214, .20);
}
.btn--primary:hover, #checkoutBtn:hover{
  filter: brightness(1.07);
  box-shadow: 0 14px 36px rgba(0, 86, 214, .24);
}

.btn--ghost{
  background: rgba(2, 132, 199, .1);
  color: var(--brand);
}

/* ===== Carrossel "Você pode gostar" - FIX DEFINITIVO PARA LINKS ===== */

/* Remove qualquer estilo de link padrão */
.reco a,
.reco a:link,
.reco a:visited,
.reco a:hover,
.reco a:active,
.reco a:focus {
  color: inherit !important;
  text-decoration: none !important;
  outline: none !important;
}

/* Container principal */
.reco {
  background: #ffffff !important;
  border-radius: 18px;
  padding: 24px 20px 28px;
  border: 1px solid rgba(148, 163, 184, .15);
  box-shadow: 0 8px 32px rgba(15, 23, 42, .06);
}

/* Título */
.reco .reco__title,
.reco__title {
  color: #0f172a !important;
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

/* Navegação */
.reco .reco__nav,
.reco__nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.reco .reco__nav .reco__btn,
.reco__nav .reco__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(100, 116, 139, .25) !important;
  background: #ffffff !important;
  color: #475569 !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  font-size: 18px;
  font-weight: 600;
}

.reco .reco__nav .reco__btn:hover,
.reco__nav .reco__btn:hover {
  border-color: var(--brand) !important;
  background: rgba(124, 58, 237, .05) !important;
  color: var(--brand) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, .15);
}

/* Cards */
.reco .reco__card,
.reco__card {
  color: inherit !important;
  text-decoration: none !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, .20) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08) !important;
  transition: all 0.25s ease;
  overflow: hidden;
  display: block !important;
}

.reco .reco__card:hover,
.reco__card:hover {
  border-color: var(--brand) !important;
  box-shadow: 0 8px 32px rgba(124, 58, 237, .12) !important;
  transform: translateY(-2px);
}

/* Nome do produto */
.reco .reco__card .reco__name,
.reco__card .reco__name,
.reco .reco__name,
.reco__name {
  color: #0f172a !important;
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  display: block !important;
}

/* Meta informações */
.reco .reco__card .reco__meta,
.reco__card .reco__meta,
.reco .reco__meta,
.reco__meta {
  color: #64748b !important;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .9rem;
}

/* Preço */
.reco .reco__card .reco__price,
.reco__card .reco__price,
.reco .reco__price,
.reco__price {
  color: var(--brand) !important;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Badge de estoque */
.reco .reco__card .reco__pill,
.reco__card .reco__pill,
.reco .reco__pill,
.reco__pill {
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, .30) !important;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block !important;
}

.card,
.product-media,
.product-info,
.feature-card,
.faq-item,
.reco__card{
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* UV Topline override: keep purple + gold even with later global card overrides */
#productsGrid .card.product--topline {
	border: 1px solid rgba(202, 138, 4, .55) !important;
	background: linear-gradient(160deg, #fff4c2 0%, #fff8df 38%, #f6f0ff 100%) !important;
	box-shadow: 0 20px 42px rgba(202, 138, 4, .24), inset 0 0 0 1px rgba(124, 58, 237, .22) !important;
}

#productsGrid .card.product--topline .topline-pill {
	background: linear-gradient(135deg, #ffd84d 0%, #e3b534 42%, #9d4edd 100%) !important;
	color: #2e1065 !important;
	border: 1px solid rgba(124, 58, 237, .45) !important;
	box-shadow: 0 8px 18px rgba(124, 58, 237, .24), inset 0 0 0 1px rgba(255, 255, 255, .25) !important;
}

#productsGrid .card.product--topline .product-card__thumb {
	border: 1px solid rgba(124, 58, 237, .32) !important;
	box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .24), 0 10px 24px rgba(124, 58, 237, .18) !important;
}

.card:hover,
.feature-card:hover,
.faq-item:hover,
.reco__card:hover{
  border-color: rgba(0, 86, 214, .35);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
}

.product-card__thumb{
  background: #f8fafc;
  border: 1px solid var(--line);
}

.price,
.product-price,
.reco__price{
  color: var(--brand);
  text-shadow: none;
}

.site-footer{
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, .20);
}

.cart__panel{
  background: #ffffff;
  border-left: 1px solid var(--line);
}
.cart-item{
  background: #f8fafc;
  border: 1px solid var(--line);
}

.stock-pill{
  background: #eff6ff;
  border-color: rgba(2, 132, 199, .25);
  color: #0f172a;
}
.stock-pill.--low{
  color: #003981;
  border-color: rgba(0, 86, 214, .38);
}

.toast, .tl-toast{
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, .2);
}

/* Forçar clareza em antigos componentes escuros */
.product-title, .product-desc, .product-price, .p-title, .p-desc, .p-price {
  color: initial !important;
}
.product-title { color: #0f172a !important; }
.product-desc, .p-desc { color: #64748b !important; }
.product-price, .p-price { color: var(--brand) !important; }
.btn-add, .p-actions .btn { color: #0f172a !important; }
.p-card, .p-img { background: #ffffff !important; border-color: rgba(100,116,139,.20) !important; }
.p-back, .p-opt, .p-opt input, .p-opt select { background: #f8fafc !important; color: #0f172a !important; }
.btn--action, .btn--ghost.btn--action { background: #f3f7ff !important; color: #0f172a !important; border: 1px solid var(--line) !important; }
.btn--primary.btn--action { background: linear-gradient(135deg, var(--brand), var(--brand2)) !important; color: #ffffff !important; box-shadow: 0 12px 24px rgba(0,86,214,.20) !important; }

/* ==============================
	 FINAL FIX: texto dos anuncios
	 Evita qualquer corte por clamp/overflow
	 ============================== */

/* Catalogo: titulo completo e descricao completa */
#productsGrid .card.product--compact .product-card__title,
#productsGrid .card.product--compact .product-card__desc,
#productsGrid .card.product--compact .product-card__desc p {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
	max-height: none !important;
}

#productsGrid .card.product--compact .product-card__title {
	line-height: 1.28 !important;
	margin-bottom: 8px !important;
}

#productsGrid .card.product--compact .product-card__desc {
	line-height: 1.58 !important;
	text-align: justify !important;
	text-align-last: left !important;
}

#productsGrid .card.product--compact .product-card__desc p {
	margin: 0 0 10px !important;
	min-height: 0 !important;
}

#productsGrid .card.product--compact .product-card__desc p:last-child {
	margin-bottom: 0 !important;
}

/* Pagina de produto: sem scroll interno nem corte no bloco de descricao */
.p-card #pDesc,
#pDesc {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
	max-height: none !important;
	height: auto !important;
	padding-bottom: 32px !important;
}

.p-card #pDesc p,
#pDesc p {
	display: block !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
	max-height: none !important;
	min-height: 0 !important;
	margin: 0 0 12px !important;
	line-height: 1.72 !important;
}

.p-card #pDesc p:last-child,
#pDesc p:last-child {
	margin-bottom: 0 !important;
}