/* ==========================================================================
   Página de produto (PDP) — Tropical
   Galeria, resumo comercial em blocos coesos, detalhes e relacionados.
   ========================================================================== */

/* Layout ------------------------------------------------------------------ */
.t-single { max-width: 1240px; padding-top: 14px; padding-bottom: 56px; }
.t-single .t-breadcrumb { padding: 10px 0 16px; font-size: 12px; }
.pdp-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 26px; align-items: start; margin-top: 6px; }
.pdp-gallery, .pdp-summary { min-width: 0; }

/* No desktop o resumo (preço + compra) acompanha a rolagem. */
@media (min-width: 901px) {
	.pdp-summary { position: sticky; top: 88px; }
	body.admin-bar .pdp-summary { top: 120px; }
}

/* Galeria ----------------------------------------------------------------- */
.pdp-gallery__frame { position: relative; background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }
.pdp-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.pdp-gallery__track::-webkit-scrollbar { display: none; }
.pdp-gallery__slide { display: flex; flex: 0 0 100%; min-width: 0; aspect-ratio: 1; align-items: center; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; padding: 12px; cursor: zoom-in; }
.pdp-gallery__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e3e8f0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--t-navy); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 27, 51, .08); transition: border-color .15s ease, background .15s ease; }
.pdp-gallery__arrow:hover { background: #fff; border-color: #cfd6e4; }
.pdp-gallery__arrow--prev { left: 12px; }
.pdp-gallery__arrow--next { right: 12px; }
.pdp-gallery__arrow:disabled { opacity: .3; cursor: default; box-shadow: none; }
.pdp-gallery__counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(13, 25, 48, .62); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.pdp-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: thin; }
.pdp-gallery__thumb { flex: 0 0 62px; height: 62px; padding: 4px; border: 1px solid #dbe2ec; border-radius: 9px; background: #fff; cursor: pointer; transition: border-color .15s ease; }
.pdp-gallery__thumb:hover { border-color: #b9c4d6; }
.pdp-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery__thumb[aria-pressed="true"] { border-color: var(--t-navy); box-shadow: 0 0 0 1px var(--t-navy); }
.pdp-gallery__thumb:focus-visible, .pdp-seller:focus-visible { outline: 2px solid var(--t-blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pdp-gallery__track { scroll-behavior: auto; } }

/* Lightbox ---------------------------------------------------------------- */
.pdp-lightbox { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 60px 24px 24px; border: 0; background: rgba(10, 18, 30, .96); }
.pdp-lightbox::backdrop { background: rgba(10, 18, 30, .85); }
.pdp-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.pdp-lightbox__image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pdp-lightbox__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #14273f; font-size: 28px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.pdp-lightbox__close:hover { background: #fff; }

/* Resumo (card de compra) -------------------------------------------------- */
.pdp-summary { background: #fff; border: 1px solid #e4e8ef; border-radius: 14px; padding: 26px 28px 24px; box-shadow: 0 1px 2px rgba(15, 27, 51, .04); }

/* Cabeçalho: categorias + título + referência */
.pdp-head { padding-bottom: 18px; border-bottom: 1px solid #eef1f6; }
.pdp-summary .t-single-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pdp-summary .t-single-cats a { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #f1f4f9; color: #44506b; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; transition: background .15s ease, color .15s ease; }
.pdp-summary .t-single-cats a:hover { background: #e6edf8; color: var(--t-navy); }
.pdp-title { font-size: clamp(21px, 1.9vw, 27px); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; color: #0f1b33; margin: 0 0 6px; overflow-wrap: anywhere; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 12px; color: #77808f; }
.pdp-meta strong { font-weight: 600; color: #3c4657; font-variant-numeric: tabular-nums; }

/* Preço em destaque */
.pdp-pricebox { margin-top: 18px; padding: 14px 18px 16px; background: #f7f9fc; border: 1px solid #e3e9f4; border-left: 3px solid var(--t-navy); border-radius: 10px; }
.pdp-pricebox__label { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #5a6b86; }
.pdp-pricebox p.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: #12274a; font-size: clamp(24px, 2vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.pdp-pricebox del { font-size: 14px; font-weight: 500; color: #97a1b4; }
.pdp-pricebox ins { background: none; text-decoration: none; }
.pdp-pricebox .woocommerce-price-suffix { display: block; width: 100%; font-size: 11.5px; font-weight: 500; color: #77808f; }

/* Formas de pagamento: lista compacta, rótulo à esquerda e valor à direita */
.pdp-summary .t-paybox { margin: 14px 0 0; padding: 12px 16px 2px; border: 1px solid #eef1f6; border-radius: 10px; background: #fff; box-shadow: none; }
.pdp-summary .t-paybox__title { display: flex; align-items: center; gap: 8px; padding: 0 0 10px; margin: 0; border-bottom: 1px solid #eef1f6; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #44506b; }
.pdp-summary .t-paybox__title::before { content: none; }
.pdp-summary .t-paybox__list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.pdp-summary .t-paybox__item,
.pdp-summary .t-paybox__item:last-child { display: flex; align-items: center; gap: 11px; flex: 1 1 auto; min-width: 0; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid #eef1f6; border-radius: 0; }
.pdp-summary .t-paybox__item:last-child { border-bottom: 0; }
.pdp-summary .t-paybox__icon { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; background: #f3f6fa; color: #44506b; border-radius: 8px; }
.pdp-summary .t-paybox__icon .t-icon { width: 16px; height: 16px; }
.pdp-summary .t-paybox__item--pix .t-paybox__icon { background: #e9f5ee; color: #157347; }
.pdp-summary .t-paybox__info { flex: 1; display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.pdp-summary .t-paybox__row { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; }
.pdp-summary .t-paybox__name { font-size: 12.5px; font-weight: 600; color: #232d40; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-summary .t-paybox__val { font-size: 12px; color: #77808f; text-align: right; white-space: nowrap; }
.pdp-summary .t-paybox__val strong { display: inline; font-size: 13px; font-weight: 700; color: var(--t-navy); line-height: inherit; }
.pdp-summary .t-paybox__item--pix .t-paybox__val strong { color: #0d6b3a; }
.pdp-summary .t-paybox__pill { padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.pdp-summary .t-paybox__pill--off { background: #e2f3e9; color: #0a6b37; }
.pdp-summary .t-paybox__pill--on { background: #f3e8dc; color: #8a5218; }

/* Ações: quantidade + carrinho | WhatsApp */
.pdp-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; margin-top: 18px; }
.pdp-cart { min-width: 0; }
.pdp-cart form.cart { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 0; padding: 0; }
/* Vendido individualmente (sem .quantity): o botão ocupa a linha inteira. */
.pdp-cart form.cart:has(> .single_add_to_cart_button:only-child) { grid-template-columns: 1fr; }
.pdp-cart .quantity { float: none; margin: 0; }
.pdp-cart .quantity input.qty { box-sizing: border-box; width: 56px; min-height: 42px; margin: 0; padding: 0 4px; border: 1px solid #d3dae6; border-radius: 10px; background: #fff; color: #232d40; font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.pdp-cart .quantity input.qty:focus { outline: none; border-color: var(--t-blue); box-shadow: 0 0 0 3px rgba(31, 111, 229, .12); }
/* `.cart` no seletor para vencer o `.woocommerce button.button` global. */
.pdp-cart .cart button.single_add_to_cart_button { float: none; width: 100%; min-height: 42px; margin: 0; padding: 9px 16px; background: var(--t-navy); color: #fff; border: 0; border-radius: 10px; font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1.3; transition: background .15s ease; }
.pdp-cart .cart button.single_add_to_cart_button:hover { background: var(--t-navy-2); color: #fff; }
.pdp-cart .cart button.single_add_to_cart_button:active { transform: translateY(1px); }
.pdp-seller { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px; border: 1px solid #cbe5d5; border-radius: 10px; background: #fff; color: #14713d; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.pdp-seller .t-icon { flex-shrink: 0; }
.pdp-seller:hover { background: #f0faf4; border-color: #a9d8bd; color: #0e5a30; }

/* Variações / agrupados */
.pdp-actions:has(.variations_form), .pdp-actions:has(.grouped_form) { grid-template-columns: 1fr; }
.pdp-cart form.variations_form, .pdp-cart form.grouped_form { display: block; }
.pdp-cart .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
.pdp-cart .variations { width: 100%; margin: 0 0 14px; border-spacing: 0; }
.pdp-cart .variations th.label { padding: 0 0 6px; font-size: 12px; font-weight: 600; color: #44506b; text-align: left; }
.pdp-cart .variations td { padding: 0 0 10px; }
.pdp-cart .variations select { width: 100%; min-height: 42px; padding: 8px 34px 8px 12px; border: 1px solid #d3dae6; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b2a5b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font-size: 13.5px; font-weight: 600; color: #232d40; cursor: pointer; }
.pdp-cart .woocommerce-variation-description { margin: 0 0 12px; font-size: 13px; color: #77808f; }
.pdp-cart .reset_variations { font-size: 12px; }

/* Preço bloqueado (visitantes) */
.pdp-summary .t-single-locked { margin-top: 18px; padding: 20px 22px; background: #f7f9fc; border: 1px solid #e3e9f4; border-left: 3px solid var(--t-navy); border-radius: 10px; }
.pdp-summary .t-single-locked .t-price-locked__label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #12274a; }
.pdp-summary .t-single-locked p { margin: 8px 0 16px; font-size: 13px; line-height: 1.6; color: #667085; }
.pdp-summary .t-single-locked__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-summary .t-single-locked__actions .t-btn { min-height: 44px; }

/* Voltar ao catálogo */
.pdp-summary .t-single-back { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #eef1f6; font-size: 12px; font-weight: 600; }
.pdp-summary .t-single-back a { display: inline-flex; align-items: center; gap: 6px; color: #77808f; transition: color .15s ease; }
.pdp-summary .t-single-back a:hover { color: var(--t-blue); }

/* Detalhes: descrição + ficha técnica lado a lado ------------------------- */
.t-single-details { margin-top: 44px; }
.t-single-details__head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.t-single-details__head .t-h2 { margin: 0; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.015em; }
.t-single-details__head::after { content: ""; flex: 1; height: 1px; margin-bottom: 7px; background: linear-gradient(90deg, var(--t-border), rgba(228, 231, 238, 0)); }
.pdp-details { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pdp-details > .t-single-codes:only-child { grid-column: 1 / -1; max-width: 560px; }
.t-single-details .t-prose { max-width: none; font-size: 14.5px; line-height: 1.75; color: #333d55; }
.t-single-details .t-prose > *:last-child { margin-bottom: 0; }
.t-single-details .t-prose img { border-radius: 10px; }

/* Ficha técnica */
.t-single-codes { background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; padding: 20px 22px; }
.t-single-codes h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid #eef1f6; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-navy); }
.t-single-codes h3::before { content: ""; flex: none; width: 3px; height: 13px; border-radius: 2px; background: var(--t-navy); }
.t-single-codes ul { list-style: none; margin: 0; padding: 0; }
.t-single-codes ul li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.t-single-codes ul li:last-child { border-bottom: 0; }
.t-single-codes ul span { color: #77808f; }
.t-single-codes ul strong { color: #232d40; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Tabela de atributos do WooCommerce dentro da ficha técnica */
.t-single-codes table.shop_attributes { width: 100%; margin: 0; border: 0; border-spacing: 0; }
.t-single-codes table.shop_attributes tr:nth-child(odd) th,
.t-single-codes table.shop_attributes tr:nth-child(odd) td,
.t-single-codes table.shop_attributes tr:nth-child(even) th,
.t-single-codes table.shop_attributes tr:nth-child(even) td { background: #fff; }
.t-single-codes table.shop_attributes th,
.t-single-codes table.shop_attributes td { padding: 10px 0; border: 0; border-bottom: 1px solid #eef1f6; font-size: 13px; line-height: 1.5; }
.t-single-codes table.shop_attributes th { width: 46%; text-align: left; font-weight: 500; color: #77808f; }
.t-single-codes table.shop_attributes td { text-align: right; font-weight: 600; color: #232d40; }
.t-single-codes table.shop_attributes tr:last-child th,
.t-single-codes table.shop_attributes tr:last-child td { border-bottom: 0; }
.t-single-codes table.shop_attributes p { margin: 0; }
.t-single-codes ul + table.shop_attributes { margin-top: 4px; }
.t-single-codes ul + table.shop_attributes tr:first-child th,
.t-single-codes ul + table.shop_attributes tr:first-child td { border-top: 1px solid #eef1f6; }

/* Relacionados -------------------------------------------------------------- */
.t-single .related.products { margin: 48px 0 0; padding-top: 30px; border-top: 1px solid var(--t-border); }
.t-single .related.products > h2 { margin: 0 0 20px; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.015em; color: var(--t-navy); }

/* Responsivo --------------------------------------------------------------- */
@media (min-width: 901px) and (max-width: 1100px) {
	.pdp-summary { padding: 22px; }
}
@media (max-width: 900px) {
	.pdp-layout { grid-template-columns: 1fr; gap: 20px; }
	.pdp-gallery { max-width: 620px; width: 100%; margin: 0 auto; }
	.pdp-summary { position: static; padding: 22px 20px; }
	.pdp-details { grid-template-columns: 1fr; gap: 20px; }
	.t-single-details { margin-top: 36px; }
}
@media (max-width: 540px) {
	.t-single { padding: 12px 16px 40px; }
	.pdp-summary { padding: 20px 16px; }
	.pdp-title { font-size: 21px; }
	.pdp-pricebox { padding: 12px 14px 14px; }
	.pdp-pricebox p.price { font-size: 24px; }
	.pdp-actions { grid-template-columns: 1fr; }
	.pdp-seller { width: 100%; }
	.pdp-gallery__thumb { flex-basis: 54px; height: 54px; }
	.t-single-details { margin-top: 30px; }
	.t-single-details__head { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
	.pdp-details { gap: 18px; }
	.t-single-codes { padding: 16px; }
	.t-single .related.products { margin-top: 36px; padding-top: 24px; }
}