/* Sãdhana v4: página de produto (produto.html?s=<id>) no mesmo visual limpo da home */
.pd { padding-top: 24px; padding-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--cinza); margin-bottom: 22px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs b { color: var(--tinta); font-weight: 600; }

.pd-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }

/* Galeria */
.pd-gallery { position: sticky; top: 96px; min-width: 0; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); scrollbar-width: none; background: var(--creme); }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: none; width: 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pd-dots { display: none; justify-content: center; gap: 6px; margin-top: 12px; }
.pd-dots span { width: 7px; height: 7px; border-radius: 4px; background: var(--linha); transition: width .3s var(--ease), background .3s; }
.pd-dots span.is-on { width: 18px; background: var(--salvia-esc); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button { width: 68px; height: 84px; border-radius: 10px; overflow: hidden; border: 1.5px solid transparent; opacity: .7; transition: border-color .3s, opacity .3s; }
.pd-thumbs button.is-on { border-color: var(--tinta); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Compra */
.pd-flags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.flag { font-size: .7rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--salvia-claro); color: var(--salvia-esc); }
.flag-novo { background: var(--tinta); color: #fff; }
.flag[hidden] { display: none; }
.pd-buy h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 8px; }
.pd-buy h1 em { font-size: .75em; }
.pd-sub { color: var(--cinza); font-size: .9rem; margin-bottom: 20px; }
.pd-price { font-size: 1.7rem; font-weight: 700; margin-bottom: 22px; min-height: 1em; padding-bottom: 22px; border-bottom: 1px solid var(--linha); }
.pd-pontos { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.pd-pontos li { position: relative; padding-left: 26px; font-size: .92rem; line-height: 1.45; }
.pd-pontos li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 1.6px solid var(--salvia-esc); border-bottom: 1.6px solid var(--salvia-esc); transform: rotate(-45deg); }
.pd-qty { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 600; font-size: .86rem; }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--linha); border-radius: 999px; padding: 3px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; }
.qty button:not(:disabled):hover { background: var(--creme); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.pd-add { width: 100%; min-height: 54px; }
.pd-agora { width: 100%; min-height: 52px; margin-top: 10px; border-radius: 999px; border: 1px solid var(--tinta); font-weight: 600; font-size: .92rem; transition: background .3s, color .3s; }
.pd-agora:hover { background: var(--tinta); color: #fff; }
.pd-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pd-social .sbtn { font-size: .86rem; }
.pd-encomenda { margin: 0 0 16px; font-size: .84rem; line-height: 1.6; color: var(--cinza); background: var(--creme); border-radius: 14px; padding: 14px 16px; }
.pd-encomenda b { color: var(--tinta); }

/* Descrição e ficha */
.pd-info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(70px, 8vw, 110px); }
.pd-info h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 20px; }
.pd-desc p { font-size: .98rem; line-height: 1.7; color: var(--cinza); margin-bottom: 14px; max-width: 540px; }
.pd-desc p:first-of-type { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--tinta); }
.pd-kids { display: inline-block; background: var(--salvia-claro); color: var(--salvia-esc) !important; font-weight: 600; font-size: .86rem !important; border-radius: 12px; padding: 10px 14px; }
.pd-ficha dl { border-top: 1px solid var(--linha); }
.pd-ficha dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 13px 2px; font-size: .9rem; line-height: 1.45; border-bottom: 1px solid var(--linha); }
.pd-ficha dt { font-weight: 600; }
.pd-ficha dd { color: var(--cinza); }

/* Combina com */
.pd-mesa { margin-top: clamp(70px, 8vw, 110px); padding: clamp(44px, 5vw, 70px) clamp(16px, 4vw, 50px); border-radius: var(--r); background: var(--creme); }
.pd-mesa .sec-head { margin-bottom: 30px; }
.pd-mesa-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px 18px; max-width: 1000px; margin: 0 auto; }
.pm-item { text-align: center; }
.pm-img { width: 76%; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; background: #fff; border-radius: 50%; overflow: hidden; padding: 12%; }
.pm-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(60, 40, 10, .18)); }
.pm-item.is-foto .pm-img { padding: 0; }
.pm-item.is-foto .pm-img img { object-fit: cover; }
.pm-item figcaption { margin-top: 10px; font-size: .86rem; font-weight: 500; }
.pd-mesa-mais { text-align: center; margin-top: 26px; color: var(--cinza); font-size: .88rem; }

/* Outros sabores */
.pd-outros { margin-top: clamp(70px, 8vw, 110px); }
.pd-outros-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.pd-outros-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-outros-row::-webkit-scrollbar { display: none; }
.mini { scroll-snap-align: start; }
.mini-jar { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; margin-bottom: 10px; background: var(--creme); }
.mini-jar img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mini:hover .mini-jar img { transform: scale(1.04); }
.mini b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.mini span { font-size: .86rem; color: var(--cinza); }

/* Barra fixa (celular) */
.pd-bar { display: none; }

@media (max-width: 860px) {
  .pd { padding-top: 14px; }
  .pd-top { grid-template-columns: 1fr; gap: 22px; }
  .pd-gallery { position: relative; top: 0; margin-inline: -16px; }
  .pd-track { border-radius: 0; }
  .pd-thumbs { display: none; }
  .pd-dots { display: flex; }
  .pd-info { grid-template-columns: 1fr; gap: 50px; }
  .pd-ficha dl > div { grid-template-columns: 104px 1fr; }
  .pd-mesa-row { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .pd-outros-head .arrows { display: none; }
  .pd-outros-row { grid-auto-columns: 44%; gap: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }

  .pd-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--linha); transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .pd-bar b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.2; }
  .pd-bar span { font-size: .86rem; color: var(--cinza); }
  .pd-bar .btn { min-width: 130px; }
  .bar-on .pd-bar { transform: none; }
  .bar-on .float-wa { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .cart-open .pd-bar { transform: translateY(110%); }
}
