/* TAON — página de produto */
.p { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; min-height: 70vh; font-family: var(--tx-body); }
.p button { font: inherit; color: inherit; cursor: pointer; }
.p-media { position: relative; min-width: 0; border-right: 1px solid var(--tx-line); }
.p-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-shot { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: #fff; cursor: zoom-in !important; }
.p-shot:first-child, .p-shot:nth-child(2):last-child { grid-column: 1 / -1; aspect-ratio: 1 / .86; }
.p-shot img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--tx-out); }
.p-shot.is-zoom { cursor: zoom-out !important; }
.p-shot.is-zoom img { transform: scale(2.2); }
.p-dots { display: none; }
.p-info { position: sticky; top: var(--tx-head); display: grid; gap: 20px; padding: 32px clamp(20px, 3.2vw, 64px) 56px; }
.p-crumbs { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-muted); }
.p-crumbs a { color: inherit; }
.p-name { margin: 0; font: 900 clamp(36px, 3.8vw, 72px)/.92 var(--tx-display); text-transform: uppercase; }
.p-price { margin: 0; font-size: 24px; font-weight: 700; }
.p-label { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.p-label button { padding: 0; border: 0; background: none; text-decoration: underline; color: var(--tx-muted); }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chips button { min-width: 54px; height: 48px; padding: 0 12px; border: 1px solid #ccc; background: #fff; font-size: 13px; font-weight: 700; transition: background .25s, color .25s, border-color .25s; }
.p-chips button:hover { border-color: #000; }
.p-chips button[aria-pressed="true"] { background: #000; border-color: #000; color: #fff; }
.p-chips button:disabled { color: #bbb; text-decoration: line-through; cursor: not-allowed; }
.p-option.is-error .p-chips { animation: p-shake .45s; }
.p-option.is-error .p-chips button { border-color: var(--tx-orange); }
@keyframes p-shake { 25%, 75% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.p-note { margin: 0; color: #c22f00; font-size: 13px; }
.p-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.p .p-buy .tx-btn { color: #fff; }
.p-qty { display: flex; align-items: center; border: 1px solid #000; }
.p-qty button { width: 42px; height: 52px; border: 0; background: none; }
.p-qty output { min-width: 26px; text-align: center; font-weight: 700; }
.p .p-now { width: 100%; margin-top: -10px; color: #fff; }
.p-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--tx-muted); }
.p-perks li::before { content: '✓ '; color: var(--tx-orange); font-weight: 700; }
.p-acc details { border-top: 1px solid var(--tx-line); }
.p-acc details:last-child { border-bottom: 1px solid var(--tx-line); }
.p-acc summary { display: flex; justify-content: space-between; padding: 16px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.p-acc summary::-webkit-details-marker { display: none; }
.p-acc summary::after { content: '+'; font-size: 18px; transition: transform .3s; }
.p-acc details[open] summary::after { transform: rotate(45deg); }
.p-acc p, .p-desc { margin: 0 0 12px; font-size: 13px; line-height: 1.65; color: #444; }
.p-acc a { color: inherit; text-decoration: underline; }
.p-table { max-width: 100%; overflow-x: auto; margin-bottom: 16px; }
.p-table table { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 11px; }
.p-table td, .p-table th { padding: 7px 8px; border: 1px solid #e2e2e2; text-align: center; white-space: nowrap; }
.p-table td:first-child { position: sticky; left: 0; background: var(--tx-soft); text-align: left; font-weight: 700; }
.p-missing { grid-column: 1 / -1; display: grid; place-content: center; justify-items: center; gap: 22px; min-height: 60vh; padding: 24px; text-align: center; }
.p-related { border-top: 1px solid var(--tx-line); }
.p-related h2 { margin: 0; padding: 36px var(--tx-pad) 18px; font: 900 clamp(28px, 3vw, 54px)/1 var(--tx-display); text-transform: uppercase; }
.p-bar { display: none; }

@media (max-width: 900px) {
  .p { grid-template-columns: minmax(0, 1fr); }
  .p-media { border-right: 0; }
  .p-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .p-gallery::-webkit-scrollbar { display: none; }
  .p-shot, .p-shot:first-child, .p-shot:nth-child(2):last-child { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; cursor: default !important; }
  .p-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
  .p-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ccc; }
  .p-dots i.is-on { background: var(--tx-orange); }
  .p-info { position: static; padding: 22px 16px 36px; }
  body:has(.p-bar:not([hidden])) { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .p-bar:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 84;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px 7px 14px;
    background: #fff; border-top: 1px solid var(--tx-line); font-family: var(--tx-body); font-size: 12px;
  }
  .p-bar b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-transform: uppercase; }
  .p-bar .tx-btn { min-height: 48px; max-width: 54vw; padding: 0 14px; font-size: 12px; }
}
