/* =========================================================
   Pagina de produto - estilos exclusivos desta pagina.
   Tudo escopado em .product-page para nao afetar
   header, menu, footer ou outras paginas da loja.
   ========================================================= */

.product-page {
	margin-top: 10px;
}

.product-page .product-content {
	max-width: 1280px;
	margin: 0 auto;
	padding: 30px 20px 50px;
	width: 100%;
}

.product-page .product-content *,
.product-page .product-content *::before,
.product-page .product-content *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------
   Faixa do cupom
   --------------------------------------------------------- */

.product-coupon-bar {
	background: #111;
	color: #fff;
	border-radius: 10px;
	padding: 14px 20px;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .3px;
	line-height: 1.4;
}

/* ---------------------------------------------------------
   Titulo do produto
   --------------------------------------------------------- */

.product-title {
	font-size: 26px;
	font-weight: 700;
	color: #111;
	margin-top: 22px;
	margin-bottom: 22px;
	line-height: 1.3;
}

/* ---------------------------------------------------------
   Estrutura principal em duas colunas
   --------------------------------------------------------- */

.product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(380px, .95fr);
	grid-template-areas:
		"gallery purchase"
		"share purchase";
	gap: 30px;
	align-items: start;
}

.product-gallery-col { grid-area: gallery; min-width: 0; }
.product-purchase-card { grid-area: purchase; }
.product-share-card { grid-area: share; }

/* ---------------------------------------------------------
   Galeria de imagens
   --------------------------------------------------------- */

.product-main-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f7f7f7;
	border: 1px solid #ececec;
	border-radius: 12px;
	overflow: hidden;
}

.product-main-image .product-main-link {
	display: none;
	width: 100%;
	height: 100%;
}

.product-main-image .product-main-link.active {
	display: block;
}

.product-main-image img.ppm {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	background: #f7f7f7;
}

.product-main-image img.ppm[style*="semimagem"] {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.product-image-counter {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	background: rgba(255,255,255,.92);
	color: #111;
	border-radius: 6px;
	padding: 5px 9px;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.product-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255,255,255,.94);
	border: none;
	cursor: pointer;
	font-size: 26px;
	line-height: 40px;
	text-align: center;
	color: #111;
	padding: 0;
	box-shadow: 0 3px 12px rgba(0,0,0,.12);
	transition: background .2s ease;
}

.product-gallery-arrow:hover {
	background: #fff;
}

.product-gallery-prev { left: 12px; }
.product-gallery-next { right: 12px; }

.product-thumbnails {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	margin-top: 14px;
	overflow-x: auto;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.product-thumb {
	flex: 0 0 auto;
	width: 100px;
	height: 90px;
	border-radius: 9px;
	border: 1px solid #e5e5e5;
	background: #fff;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
	transition: border-color .15s ease;
}

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

.product-thumb.active {
	border: 2px solid #111;
}

.product-thumb:hover {
	border-color: #999;
}

.product-gabaritos {
	margin-top: 18px;
	text-align: center;
}

.product-gabaritos a {
	display: inline-block;
	margin: 8px;
	font-size: 12px;
	color: #000;
	text-decoration: none;
}

.product-gabaritos a img {
	max-width: 150px;
	display: block;
	margin: 0 auto;
}

.product-gabaritos a span {
	display: inline-block;
	color: #000;
	padding-top: 8px;
	padding-bottom: 8px;
	text-align: center;
	font-weight: bold;
}

/* ---------------------------------------------------------
   Card de compra (coluna direita)
   --------------------------------------------------------- */

.product-purchase-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 5px 22px rgba(0,0,0,.055);
	min-width: 0;
}

.product-code {
	font-size: 14px;
	font-weight: 600;
	color: #555;
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 1px solid #ededed;
}

.product-meta-line {
	font-size: 14px;
	color: #666;
	padding-bottom: 4px;
	padding-top: 4px;
}

.product-meta-line strong {
	color: #333;
}

.product-field {
	margin-bottom: 14px;
}

.product-field-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.product-purchase-card select {
	width: 100%;
	height: 46px;
	border: 1px solid #dcdcdc;
	border-radius: 7px;
	padding: 0 14px;
	background: #fff;
	font-size: 14px;
	color: #333;
	outline: none;
	transition: border-color .15s ease;
}

.product-purchase-card select:focus {
	border-color: #111;
}

.product-measures-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.product-measures-row input[type="text"] {
	width: 100%;
	height: 46px;
	border: 1px solid #dcdcdc;
	border-radius: 7px;
	padding: 0 14px;
	font-size: 14px;
	color: #333;
	box-shadow: none;
}

.product-price {
	margin-top: 18px;
}

.price-label {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	color: #333;
	font-weight: 500;
	letter-spacing: .4px;
}

.price {
	display: block;
	font-size: 38px;
	line-height: 1.1;
	font-weight: 800;
	color: #080808;
	margin-top: 4px;
}

.product-price-fretegratis {
	display: inline-block;
	font-size: 14px;
	color: #129e3c;
	font-weight: 600;
	margin-top: 4px;
}

#valorartevisual {
	font-size: 14px;
	color: #333;
	margin-top: 4px;
}

.product-price-consult {
	font-weight: 700;
	color: #c60202;
	font-size: 20px;
	margin-top: 18px;
}

.product-buy-area {
	margin-top: 16px;
}

.product-buy-area button.cart,
.product-buy-area .cart {
	width: 100% !important;
	min-height: 48px;
	background: #282828 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 7px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background .2s ease, transform .2s ease;
}

.product-buy-area button.cart:hover,
.product-buy-area .cart:hover {
	background: #111 !important;
	transform: translateY(-1px);
	color: #fff;
}

.product-buy-area div {
	font-size: 13px;
	color: #555;
}

.product-buy-area .indisponivel {
	color: #c60202;
}

.product-whatsapp-btn {
	width: 100%;
	min-height: 48px;
	background: #16b946;
	color: #fff;
	border-radius: 7px;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	margin-top: 16px;
	transition: background .2s ease, transform .2s ease;
}

.product-whatsapp-btn i {
	font-size: 19px;
}

.product-whatsapp-btn:hover {
	background: #129e3c;
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}

/* ---------------------------------------------------------
   Divisores e beneficios
   --------------------------------------------------------- */

.product-divider {
	border-top: 1px solid #ececec;
	margin: 24px 0;
}

.product-benefits {
	display: block;
}

.product-benefit {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 7px 0;
}

.product-benefit-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #f5f5f5;
	color: #282828;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
}

.product-benefit-shipping .product-benefit-icon {
	background: #eaf8ef;
	color: #129e3c;
}

.product-benefit-text {
	font-size: 13.5px;
	color: #444;
	line-height: 1.45;
	padding-top: 1px;
}

.product-benefit-text strong {
	color: #222;
}

.shipping-preview-loading {
	color: #888;
	font-style: italic;
	margin: 0;
}

.custom-address,
.shipping-estimated {
	display: block;
	margin: 0;
	color: #444;
}

.custom-address font b,
.custom-address font {
	font-weight: 600;
}

.product-balcoes {
	margin-top: 12px;
	font-size: 12.5px;
	color: #666;
}

.product-balcoes a {
	color: #111;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

/* ---------------------------------------------------------
   Formas de pagamento
   --------------------------------------------------------- */

.payment-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #111;
	margin-bottom: 14px;
}

.payment-title i {
	color: #282828;
}

.logo_pagamento {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 7px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
}

.logo_pagamento img {
	max-width: 100%;
	height: auto;
	max-height: 90px;
	object-fit: contain;
}

/* ---------------------------------------------------------
   Compartilhamento
   --------------------------------------------------------- */

.product-share-card {
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 12px;
	padding: 18px 20px;
	box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

.share-title {
	font-size: 14px;
	font-weight: 700;
	color: #111;
	margin-bottom: 12px;
}

.share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.share-btn {
	height: 40px;
	padding: 0 15px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	transition: .2s ease;
}

.share-btn i {
	font-size: 15px;
}

.share-btn:hover {
	transform: translateY(-1px);
	filter: brightness(.95);
	color: #fff;
	text-decoration: none;
}

.share-whatsapp { background: #16b946; }
.share-facebook { background: #1877F2; }
.share-x { background: #111; }
.share-x .x-mark {
	font-weight: 800;
	font-family: Arial, sans-serif;
	font-size: 14px;
	line-height: 1;
}
.share-linkedin { background: #0A66C2; }
.share-email { background: #6B7280; }

/* ---------------------------------------------------------
   Card de descricao do produto
   --------------------------------------------------------- */

.product-description-card {
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 14px;
	padding: 24px 26px;
	box-shadow: 0 4px 18px rgba(0,0,0,.04);
	margin-top: 30px;
}

.description-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 17px;
	font-weight: 700;
	color: #111;
	margin-top: 0;
	margin-bottom: 14px;
}

.description-text {
	font-size: 14px;
	line-height: 1.65;
	color: #333;
}

.description-text p {
	margin: 0 0 12px;
}

.description-text img {
	max-width: 100%;
	height: auto;
}

.description-text table {
	max-width: 100%;
}

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

@media (max-width: 1200px) {

	.product-page .product-content {
		padding: 24px 16px 40px;
	}

	.product-layout {
		gap: 22px;
		grid-template-columns: minmax(0, 1.15fr) minmax(340px, .95fr);
	}

	.product-purchase-card {
		padding: 22px;
	}

	.price {
		font-size: 34px;
	}
}

/* ---------------------------------------------------------
   Responsivo - tablet (uma coluna)
   --------------------------------------------------------- */

@media (max-width: 900px) {

	.product-layout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"gallery"
			"purchase"
			"share";
		gap: 24px;
	}

	.product-title {
		font-size: 23px;
		margin-top: 18px;
		margin-bottom: 18px;
	}
}

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

@media (max-width: 576px) {

	.product-page .product-content {
		padding-left: 14px;
		padding-right: 14px;
	}

	.product-coupon-bar {
		font-size: 13px;
		padding: 12px 14px;
	}

	.product-title {
		font-size: 21px;
	}

	.product-main-image {
		aspect-ratio: 1 / 1;
	}

	.product-gallery-arrow {
		width: 36px;
		height: 36px;
		font-size: 22px;
		line-height: 34px;
	}

	.product-thumb {
		width: 84px;
		height: 76px;
	}

	.product-thumbnails {
		overflow-x: auto;
		gap: 8px;
	}

	.product-purchase-card {
		padding: 18px;
	}

	.price {
		font-size: 32px;
	}

	.product-whatsapp-btn {
		width: 100%;
	}

	.share-buttons {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.share-btn {
		flex: 1 1 calc(50% - 8px);
	}

	.product-description-card {
		padding: 18px;
	}
}
