/* Cards de produto, página de produto e sacola. */
.btn-outline { background: #fff; color: var(--ink); min-height: 44px; padding: 0 20px; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; }
@media (hover: hover) { .btn-outline:hover { background: var(--ink); color: #fff; } }
.btn-wide { width: 100%; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
@media (hover: hover) { .card:hover { border-color: #D9CED3; box-shadow: 0 10px 28px rgba(30, 19, 32, .08); } }
.card-img { position: relative; display: block; aspect-ratio: 1; background: #F7EFF1; }
.card-img svg { width: 100%; height: 100%; transition: transform .5s var(--ease); }
@media (hover: hover) { .card:hover .card-img svg { transform: scale(1.03); } }
.badge { position: absolute; left: 12px; top: 12px; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .04em; color: #fff; text-transform: uppercase;
  clip-path: polygon(50% 0, 61% 12%, 77% 8%, 80% 24%, 95% 30%, 88% 45%, 98% 59%, 84% 66%, 84% 82%, 68% 82%, 59% 96%, 46% 86%, 32% 96%, 25% 82%, 9% 80%, 13% 64%, 1% 52%, 12% 41%, 5% 26%, 21% 22%, 24% 6%, 39% 12%); }
.badge-new { background: var(--rose); }
.badge-sample { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 3px 8px; border-radius: 4px; background: rgba(30, 19, 32, .8); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; }
.card-rev { font-size: .82rem; color: var(--muted); }
.card-name { font-family: var(--head); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.card-name a { text-decoration: none; }
.card-dots { display: flex; align-items: center; gap: 5px; min-height: 14px; }
.dot { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.more { font-size: .78rem; color: var(--muted); margin-left: 2px; }
.card-tag { font-size: .9rem; color: #4A3F45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-buy { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 12px; }
.price { font-family: var(--head); font-weight: 700; font-size: 1.1rem; }
.empty-inline { position: static; transform: none; margin: 0 auto; box-shadow: none; border: 1px solid var(--line); }

/* página de produto */
.pdp { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 80px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 20px; }
.pdp-gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-self: start; position: sticky; top: 96px; }
.pdp-thumbs { display: grid; gap: 10px; align-content: start; }
.pdp-thumbs button { padding: 0; border: 1.5px solid transparent; border-radius: 10px; overflow: hidden; background: #F7EFF1; cursor: pointer; aspect-ratio: 1; }
.pdp-thumbs button svg { width: 100%; height: 100%; }
.pdp-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pdp-main { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #F7EFF1; }
.pdp-main [data-main-art], .pdp-main svg { width: 100%; height: 100%; }
.pdp-main .badge { width: 60px; height: 60px; left: 16px; top: 16px; }
.pdp-name { font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.pdp-rev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: .92rem; color: var(--muted); }
.pdp-rev a { color: var(--ink); }
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 15px; height: 15px; background: #E3D8DD; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars-lg i { width: 26px; height: 26px; }
.pdp-tag { margin-top: 16px; font-size: 1.08rem; }
.pdp-price { margin-top: 14px; font-family: var(--head); font-weight: 700; font-size: 1.8rem; }
.shades { border: 0; padding: 0; margin: 22px 0 0; }
.shades legend { padding: 0; margin-bottom: 12px; }
.shade-list { display: flex; flex-wrap: wrap; gap: 10px; }
.shade { position: relative; cursor: pointer; }
.shade input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.shade > span[style] { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.shade input:checked + span { outline-color: var(--ink); }
.shade input:focus-visible + span { outline-color: var(--rose); }
.pdp-buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 24px; }
.qty { display: inline-grid; grid-template-columns: 40px 34px 40px; align-items: center; height: 48px; border: 1.5px solid #CFC3C9; border-radius: 999px; }
.qty button { height: 100%; background: none; border: 0; cursor: pointer; font-size: 1.15rem; }
.qty output { text-align: center; font-weight: 600; }
.qty-sm { grid-template-columns: 30px 26px 30px; height: 34px; margin-top: 8px; }
.pdp-perks { display: grid; gap: 10px; margin: 22px 0 10px; }
.pdp-perks li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.pdp-perks .ic { width: 22px; height: 22px; color: var(--rose-deep); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.acc[open] summary::after { transform: translateY(2px) rotate(225deg); }
.acc > p { padding-bottom: 16px; color: #4A3F45; }
.acc-list { margin: -4px 0 16px; padding-left: 1.1em; list-style: disc; color: #4A3F45; display: grid; gap: 6px; }
.facts { display: grid; gap: 4px; padding-bottom: 16px; margin: -4px 0 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: #4A3F45; }
.pdp-reviews, .also { margin-top: 72px; }
.pdp-reviews h2, .also h2 { font-family: var(--head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); text-align: center; margin-bottom: 26px; }
.rev-empty { max-width: 560px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: 16px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.pdp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(30, 19, 32, .08); transform: translateY(110%); transition: transform .4s var(--ease); }
.pdp-sticky div { display: grid; line-height: 1.25; }
.pdp-sticky span { font-size: .88rem; color: var(--muted); }
.pdp-sticky.is-on { transform: none; }

/* sacola */
.bag-lines { display: grid; }
.bag-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-img { display: block; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #F7EFF1; }
.bag-img svg { width: 100%; height: 100%; }
.bag-name { font-weight: 600; text-decoration: none; }
.bag-right { display: grid; justify-items: end; align-content: start; gap: 6px; font-weight: 600; }
.bag-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.bag-foot[hidden] { display: none; }
.bag-sub { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; }
.meter i { transition: transform .5s var(--ease); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; grid-template-columns: 1fr; }
  .pdp-thumbs { grid-template-columns: repeat(4, 64px); order: 2; }
  .pdp-sticky { display: flex; }
  .shade-list { gap: 8px; }
  .shade > span[style] { width: 36px; height: 36px; }
  /* 13. a barra fixa de compra não cobre o fim do rodapé */
  body:has(.pdp-sticky) .footer-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .card-body { padding: 10px 10px 12px; }
  .card-name { font-size: .98rem; }
  .card-tag { font-size: .82rem; }
  .card-buy { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .card-buy .price { font-size: 1rem; }
  .btn-outline { min-height: 38px; padding: 0 12px; font-size: .74rem; }
  .badge { width: 42px; height: 42px; font-size: .66rem; left: 8px; top: 8px; }
}
.bag-empty[hidden], .bag-lines:empty { display: none; }
.card-img img, .pdp-main img, .pdp-thumbs img, .bag-img img, .qr-img img, .look-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.was { color: var(--muted); font-weight: 500; font-size: .85em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
