/* Product page (templates/single-product.html, inc/product-page.php). Mobile first. */
.an-product { padding-bottom: 72px; }
.an-product .an-crumbs { padding-top: 16px; }
.an-mono { font-family: var(--wp--preset--font-family--mono); font-size: 13.5px; }
.an-note { color: var(--wp--preset--color--muted); font-size: 14px; margin: 12px 0 0; }

/* Layout: gallery + buy box */
.an-pdp { display: grid; gap: 22px; align-items: start; }
.an-pdp > * { margin: 0 !important; min-width: 0; }
.an-pdp__gallery { align-self: start; background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 10px; }
.an-pdp__gallery .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.an-pdp__gallery .woocommerce-product-gallery__image img { aspect-ratio: 4/3; object-fit: contain; background: #fff; }
.an-pdp__gallery .flex-control-thumbs { display: flex; gap: 8px; margin: 10px 0 0 !important; padding: 0; overflow-x: auto; }
.an-pdp__gallery .flex-control-thumbs li { flex: 0 0 64px; list-style: none; width: 64px !important; }
.an-pdp__gallery .flex-control-thumbs img { border-radius: var(--wp--custom--radius--tile); box-shadow: var(--wp--preset--shadow--ring); opacity: .7; cursor: pointer; aspect-ratio: 1; object-fit: cover; }
.an-pdp__gallery .flex-control-thumbs img.flex-active, .an-pdp__gallery .flex-control-thumbs img:hover { opacity: 1; box-shadow: 0 0 0 2px var(--wp--preset--color--brand); }
.an-pdp__gallery .woocommerce-product-gallery__trigger { top: 14px !important; right: 14px !important; background: #fff; border-radius: 50%; box-shadow: var(--wp--preset--shadow--ring); }

.an-pdp__buy { display: flex; flex-direction: column; gap: 14px; }
.an-pdp__buy > * { margin: 0 !important; }
.an-pdp__buy .an-card__top { justify-content: flex-start; gap: 10px; }
.an-pdp__buy .an-card__model { font-size: 14px; }
.an-pdp__title { font-size: clamp(24px, 2.6vw, 32px) !important; letter-spacing: -.02em; line-height: 1.12 !important; }
.an-pdp__lede { color: var(--wp--preset--color--muted); font-size: 16.5px; line-height: 1.5; margin: 0; }
.an-pdp__buy .an-card__params { display: flex; }

.an-pdp__pricebox { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.an-pdp__pricebox > * { margin: 0 !important; }
.an-pdp__price { font-size: clamp(28px, 3vw, 36px) !important; font-weight: 590 !important; letter-spacing: -.02em; line-height: 1.05; }
.an-pdp__paynote { color: var(--wp--preset--color--muted); margin: 0; font-size: 15px; }
/* Lead time line from mu-plugins/acquanativa-store.php */
.an-pdp__pricebox .acquanativa-prazo { order: 3; margin: 4px 0 0 !important; padding: 10px 12px; border-radius: var(--wp--custom--radius--tile); background: var(--wp--preset--color--bg); font-size: 14.5px; }
.an-pdp__pricebox .acquanativa-prazo strong { font-weight: 590; }

.an-pdp__options { padding: 12px 14px; border-radius: var(--wp--custom--radius--tile); background: var(--wp--preset--color--tint); font-size: 14.5px; }
.an-pdp__options p { margin: 0; }
.an-pdp__options ul { margin: 6px 0 8px; padding-left: 18px; }
.an-pdp__consult { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.an-pdp__consult b { font-size: 18px; font-weight: 590; }
.an-pdp__consult p { margin: 0; color: var(--wp--preset--color--muted); }

/* Add to cart form (classic) */
.an-pdp__cart form.cart { display: flex; gap: 10px; align-items: stretch; margin: 0; }
.an-pdp__cart .quantity { display: flex; }
.an-pdp__cart .quantity input.qty { width: 74px; min-height: 52px; text-align: center; font-size: 16px; font-weight: 590; border-radius: var(--wp--custom--radius--control); }
.an-pdp__cart .single_add_to_cart_button { flex: 1; min-height: 52px; border-radius: var(--wp--custom--radius--control) !important; background: var(--wp--preset--color--action) !important; color: #fff !important; font-size: 17px !important; font-weight: 590; border: 0; }
.an-pdp__cart .single_add_to_cart_button:hover { background: var(--wp--preset--color--action-hover) !important; }
.an-pdp__cart .stock { margin: 0 0 8px; font-size: 14px; color: var(--wp--preset--color--muted); }
/* Quote + WhatsApp from mu-plugins/acquanativa-store.php (printed after the add-to-cart block) */
.an-pdp__buy .an-ctas { display: grid !important; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 0 !important; }
.an-pdp__buy .an-cta { min-height: 44px; border-radius: var(--wp--custom--radius--control); font-weight: 590; font-size: 15px; }
.an-pdp__buy .an-cta--outline { background: #fff; color: var(--wp--preset--color--text); border-color: var(--wp--preset--color--border-strong); }
.an-pdp__buy .an-cta--outline:hover { background: #F2F4F6; }
.an-pdp__buy .an-cta--whatsapp { background: #fff; color: #1F6B45; border-color: var(--wp--preset--color--border-strong); }
.an-pdp__buy .an-cta--whatsapp:hover { background: #F2F4F6; }
.an-pdp__buy .an-ctas__note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--wp--preset--color--muted); }

/* CEP shipping */
.an-ship { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.an-ship__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 590; }
.an-ship__form { display: flex; gap: 8px; margin: 0; }
.an-ship__input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font-size: 16px; font-variant-numeric: tabular-nums; }
.an-ship__out { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.an-ship__opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--wp--custom--radius--tile); background: var(--wp--preset--color--bg); }
.an-ship__opt small { display: block; color: var(--wp--preset--color--muted); font-size: 13px; }
.an-ship__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-ship__err { color: var(--wp--preset--color--err); margin: 0; }
.an-ship__wait, .an-ship__cep { color: var(--wp--preset--color--muted); margin: 0; font-size: 13.5px; }
.an-ship__help { font-size: 14px; }
.an-linkbtn { background: none; border: 0; padding: 0; color: var(--wp--preset--color--brand); text-decoration: underline; cursor: pointer; font: inherit; }

.an-pdp__highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px 18px; font-size: 14.5px; }
.an-pdp__highlights li { display: flex; gap: 8px; align-items: flex-start; }
.an-pdp__highlights .an-icon { color: var(--wp--preset--color--brand); width: 18px; height: 18px; margin-top: 2px; }

/* Monte o sistema */
.an-bundle { margin-top: 36px; }
.an-bundle__card { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 18px 16px; }
.an-bundle__head h2 { font-size: 20px !important; letter-spacing: -.01em; margin: 6px 0 0; }
.an-bundle__head p:not(.an-eyebrow) { margin: 6px 0 18px; color: var(--wp--preset--color--muted); }
.an-bundle__row { display: grid; gap: 14px; align-items: center; }
.an-bundle__item { display: flex; gap: 14px; align-items: center; }
.an-bundle__item img { width: 104px; height: 78px; object-fit: contain; background: #fff; border-radius: var(--wp--custom--radius--tile); box-shadow: var(--wp--preset--shadow--ring); padding: 4px; flex: none; }
.an-bundle__item b { display: block; font-weight: 510; line-height: 1.3; }
.an-bundle__p { font-weight: 590; font-variant-numeric: tabular-nums; }
.an-bundle__plus { font-size: 28px; color: var(--wp--preset--color--muted); font-weight: 300; text-align: center; line-height: 1; }
.an-bundle__choices { display: flex; flex-direction: column; gap: 10px; }
.an-radio { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--wp--custom--radius--control); box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-strong); cursor: pointer; background: #fff; }
.an-radio.is-on { box-shadow: inset 0 0 0 2px var(--wp--preset--color--brand); background: #FBFDFD; }
.an-radio input { width: 18px; height: 18px; min-height: 0; accent-color: var(--wp--preset--color--action); margin: 0; flex: none; }
.an-radio__img { width: 52px; height: 40px; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: var(--wp--preset--shadow--ring); flex: none; }
.an-radio__t { flex: 1; min-width: 0; }
.an-radio__t b { display: block; font-family: var(--wp--preset--font-family--mono); font-size: 13.5px; font-weight: 500; color: var(--wp--preset--color--brand); }
.an-radio__t small { color: var(--wp--preset--color--muted); font-size: 13px; }
.an-radio__price { font-weight: 590; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-bundle__total { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--wp--preset--color--border); }
.an-bundle__total .an-btn { white-space: nowrap; font-size: 14.5px; padding: 0 14px; }
.an-bundle__total > span { font-size: 13.5px; color: var(--wp--preset--color--muted); }
.an-bundle__total b { font-size: 24px; font-weight: 590; font-variant-numeric: tabular-nums; }
.an-bundle__msg { margin: 0; font-size: 14px; color: var(--wp--preset--color--ok); }
.an-bundle__msg:empty { display: none; }
.an-bundle__more { font-size: 14px; }

/* Tabs */
.an-tabs { margin-top: 44px; }
.an-tabs__list { display: none; }
.an-tabs.is-js .an-tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--wp--preset--color--border); overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.an-tabs__list button { flex: none; height: 48px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font: inherit; font-size: 16px; font-weight: 510; color: var(--wp--preset--color--muted); cursor: pointer; white-space: nowrap; }
.an-tabs__list button[aria-selected="true"] { color: var(--wp--preset--color--text); border-bottom-color: var(--wp--preset--color--brand); font-weight: 590; }
.an-tabs__panel { padding: 24px 0 8px; }
.an-tabs.is-js .an-tabs__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.an-tabs__h { font-size: 22px !important; margin: 0 0 14px; }
.an-tabs h3 { font-size: 17px !important; letter-spacing: 0; margin: 0 0 12px; }
.an-prose { max-width: 780px; font-size: 16.5px; line-height: 1.65; }
.an-prose p { margin: 0 0 14px; }
.an-prose h3 { margin-top: 22px !important; }
.an-prose ul { padding-left: 20px; }
.an-shot--light { margin: 22px 0 0; max-width: 860px; background: var(--wp--preset--color--slate); border-radius: var(--wp--custom--radius--card); overflow: hidden; }
.an-shot--light img { width: 100%; height: auto; display: block; }
.an-shot--light figcaption { padding: 14px 18px; font-size: 14.5px; color: #AEB8C2; }
.an-shot--light figcaption b { color: #fff; }

.an-specs { width: 100%; max-width: 860px; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); overflow: hidden; }
.an-specs th, .an-specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--wp--preset--color--border); vertical-align: top; }
.an-specs tr:last-child th, .an-specs tr:last-child td { border-bottom: 0; }
.an-specs tbody th { width: 40%; font-weight: 510; color: var(--wp--preset--color--muted); }
.an-specs thead th { background: var(--wp--preset--color--bg); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--wp--preset--color--muted); }
.an-regs td:first-child { white-space: nowrap; }
.an-pins { margin-top: 18px; }
.an-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.an-cols { display: grid; gap: 28px; }
.an-cols > div { min-width: 0; }
.an-checklist, .an-rules { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.an-checklist li { display: flex; gap: 8px; align-items: center; }
.an-checklist .an-icon { color: var(--wp--preset--color--ok); width: 18px; height: 18px; }
.an-rules li { padding-left: 16px; position: relative; }
.an-rules li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--brand); }
.an-needs { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 15px; }
.an-needs dt { font-weight: 590; }
.an-needs dd { margin: 0 0 10px; color: var(--wp--preset--color--muted); }
.an-steps { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.an-wiring-wrap { overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; }
.an-wiring { width: 100%; min-width: 640px; height: auto; background: var(--wp--preset--color--bg); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); }
.an-dls { display: grid; gap: 12px; }
.an-dl { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); color: var(--wp--preset--color--text) !important; text-decoration: none !important; }
.an-dl:hover { box-shadow: 0 0 0 1px var(--wp--preset--color--brand); }
.an-dl__ic, .an-acc-item__ic { width: 44px; height: 44px; border-radius: var(--wp--custom--radius--tile); background: var(--wp--preset--color--tint); color: var(--wp--preset--color--brand); display: grid; place-items: center; flex: none; }
.an-dl b { display: block; font-weight: 590; }
.an-dl span span { font-size: 13.5px; color: var(--wp--preset--color--muted); }
.an-accs { display: grid; gap: 12px; margin-top: 12px; }
.an-acc-item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); color: var(--wp--preset--color--text) !important; text-decoration: none !important; }
.an-acc-item:hover { box-shadow: 0 0 0 1px var(--wp--preset--color--brand); }
.an-acc-item b { display: block; font-weight: 510; margin-bottom: 4px; }

.an-related { margin-top: 44px; }
.an-related__title { font-size: var(--wp--preset--font-size--x-large) !important; letter-spacing: -.02em; margin: 0 0 18px; }

/* Phone buy bar */
.an-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--wp--preset--color--border); box-shadow: 0 -8px 20px -12px rgba(0,0,0,.25); }
.an-sticky-buy[hidden] { display: none; }
.an-sticky-buy__p { flex: 1; line-height: 1.2; }
.an-sticky-buy__p b { display: block; font-size: 18px; font-weight: 590; font-variant-numeric: tabular-nums; }
.an-sticky-buy__p small { color: var(--wp--preset--color--muted); font-size: 12.5px; }
body:has(.an-sticky-buy:not([hidden])) .an-wa-float { bottom: 84px; }

@media (min-width: 901px) {
	.an-pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; }
	.an-pdp__gallery { padding: 14px; }
	.an-pdp__buy .an-ctas { grid-template-columns: 1fr 1fr; }
	.an-pdp__highlights { grid-template-columns: 1fr 1fr; }
	.an-bundle__card { padding: 22px 24px; }
	.an-bundle__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) 270px; gap: 18px; }
	.an-bundle__total { padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--wp--preset--color--border); }
	.an-tabs.is-js .an-tabs__list { margin: 0; padding: 0; }
	.an-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 36px; }
	.an-needs { grid-template-columns: auto 1fr; gap: 10px 18px; }
	.an-needs dd { margin: 0; }
	.an-wiring-wrap { margin: 0 0 18px; padding: 0; }
	.an-wiring { min-width: 0; }
	.an-dls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.an-accs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.an-sticky-buy { display: none !important; }
}
