.product-detail-page {
  padding: 138px 54px 80px;
  background: #f4f4f1;
  color: var(--color-black);
}

.product-detail-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(420px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 18px;
  position: sticky;
  top: 128px;
}

.gallery-main {
  height: 720px;
  overflow: hidden;
  border-radius: 10px;
  background: #ddd;
}

.gallery-main .product-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.gallery-main .product-image span {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.product-image-dark {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #202020, #050505);
  color: rgba(255, 255, 255, 0.64);
}

.product-image-light {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.85), transparent 34%),
    linear-gradient(135deg, #eee9df, #cfc8ba);
  color: rgba(0, 0, 0, 0.42);
}

.product-image-hoodie {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #151515, #000000);
  color: rgba(255, 255, 255, 0.52);
}

.product-image-cap {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #242424, #101010);
  color: rgba(255, 255, 255, 0.58);
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thumb {
  height: 92px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #e2e2df;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #555;
}

.thumb.active {
  border-color: #111;
  background: #fff;
  color: #111;
}

.product-summary {
  padding: 12px 0 0;
}

.product-breadcrumb {
  margin-bottom: 28px;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.product-label {
  margin-bottom: 14px;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-summary h1 {
  max-width: 620px;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
}

.summary-favorite {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.summary-prices {
  margin-top: 34px;
}

.summary-prices p {
  font-size: 1.55rem;
  font-weight: 900;
  color: #111;
}

.summary-prices span {
  display: block;
  margin-top: 6px;
  color: #444;
  font-size: 1rem;
}

.summary-block {
  margin-top: 34px;
}

.summary-block-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.summary-block h3,
.shipping-box h3 {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.summary-block-header a {
  font-size: 0.85rem;
  color: #555;
  text-decoration: underline;
}

.size-options {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-options button {
  min-width: 58px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.size-options button:hover {
  background: #111;
  color: #fff;
}

.quantity-control {
  width: 142px;
  height: 46px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.quantity-control button {
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
}

.quantity-control span {
  text-align: center;
  font-weight: 800;
}

.add-to-cart-button {
  width: 100%;
  height: 62px;
  margin-top: 34px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.add-to-cart-button span {
  transition: transform 0.25s ease;
}

.add-to-cart-button:hover span {
  transform: translateX(5px);
}

.shipping-box {
  margin-top: 26px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 18px;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.shipping-box p {
  margin-top: 8px;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}

.shipping-box form {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 48px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.shipping-box input {
  border: none;
  outline: none;
  padding: 0 14px;
}

.shipping-box button {
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.product-benefits-mini {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-benefits-mini div {
  padding: 18px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-benefits-mini strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-benefits-mini span {
  color: #555;
  font-size: 0.86rem;
  line-height: 1.5;
}

.product-story {
  padding: 90px 54px;
  background: #050505;
  color: #fff;
}

.product-story-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: stretch;
}

.section-kicker {
  margin-bottom: 18px;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.story-main,
.story-card {
  padding: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-main h2 {
  max-width: 760px;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-main p:not(.section-kicker),
.story-card p:not(.section-kicker) {
  margin-top: 24px;
  color: var(--color-gray-200);
  font-size: 1rem;
  line-height: 1.9;
}

.story-card h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-specs-section {
  padding: 80px 54px 110px;
  background: #f4f4f1;
  color: #111;
}

.product-specs-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
}

.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.specs-list div {
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.specs-list span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #777;
  text-transform: uppercase;
}

.specs-list strong {
  font-size: 1rem;
}

.visual-ratings {
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.rating-item + .rating-item {
  margin-top: 22px;
}

.rating-item > div:first-child {
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
}

.rating-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e1de;
}

.rating-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #111;
}

@media (max-width: 1100px) {
  .product-detail-container,
  .product-story-container,
  .product-specs-container {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }
}

@media (max-width: 720px) {
  .product-detail-page {
    padding: 150px 22px 60px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    height: 460px;
  }

  .gallery-thumbs {
    flex-direction: row;
  }

  .thumb {
    width: 92px;
  }

  .shipping-box,
  .product-benefits-mini,
  .product-story-container,
  .product-specs-container,
  .specs-list {
    grid-template-columns: 1fr;
  }

  .product-story,
  .product-specs-section {
    padding: 70px 22px;
  }

  .story-main,
  .story-card {
    padding: 28px;
  }
}

.product-details-button-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.product-action-area {
  width: 100%;
  max-width: 100px;
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.product-details-button {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.product-details-button:hover {
  transform: translateY(-2px);
  background: #000;
}

.product-details-button-disabled {
  background: #d8d8d8;
  color: #555;
  cursor: not-allowed;
  opacity: 1;
}

.product-details-button-disabled:hover {
  transform: none;
  background: #d8d8d8;
}

.product-drop-label {
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #777;
}

.size-options button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.add-to-cart-form {
  width: 100%;
}

.product-unavailable-box {
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7f5ef 0%, #efede7 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.product-unavailable-label {
  width: max-content;
  margin-bottom: 16px;
  padding: 8px 13px;
  display: inline-flex;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-unavailable-box h3 {
  max-width: 520px;
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-unavailable-box p {
  max-width: 560px;
  color: #666;
  line-height: 1.7;
}

.interest-form {
  width: 100%;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.interest-form label {
  width: 100%;
  display: grid;
  gap: 8px;
  color: #555;
  font-size: 0.86rem;
}

.interest-form input,
.interest-form select {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  outline: none;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.interest-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 54px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px;
  cursor: pointer;
}

.interest-form button {
  width: max-content;
  min-width: 220px;
  height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}

.interest-form button:hover {
  transform: translateY(-2px);
  background: #000;
}

.interest-success {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #dff7e8;
  color: #116331;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .interest-form {
    grid-template-columns: 1fr;
  }

  .interest-form button {
    width: 100%;
  }
}
/* Correção final — formulário de interesse mais largo */
.product-summary .product-action-area {
  width: 100% !important;
  max-width: 620px !important;
  justify-self: stretch;
}

.product-summary .product-unavailable-box {
  width: 100% !important;
  max-width: 620px !important;
  padding: 30px !important;
}

.product-summary .interest-form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-summary .interest-form label {
  width: 100%;
}

.product-summary .interest-form input,
.product-summary .interest-form select {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
}

.product-summary .interest-form button {
  width: 100%;
  max-width: 300px;
}

/* Ajuste final — bloco de compra */
.product-summary .product-action-area {
  width: 100% !important;
  max-width: 620px !important;
  margin-top: 16px !important;
  display: grid;
  gap: 8px;
}

.product-summary .product-buy-form {
  width: 100%;
  margin: 0;
}

.product-summary .add-to-cart-button {
  margin-top: 0 !important;
}

.product-summary .product-drop-label {
  margin: 6px 0 0 !important;
}

/* Fase 9.7.4 — acabamento das imagens reais na página de detalhes */
.product-detail-real-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.98), transparent 42%),
    linear-gradient(180deg, #f8f8f5 0%, #e5e5df 100%);
  overflow: hidden;
}

.product-detail-real-image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.product-detail-real-image img.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.gallery-thumbs .thumb {
  overflow: hidden;
  padding: 8px;
  display: grid;
  place-items: center;
}

.gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.gallery-thumbs .thumb.active {
  border-color: #111;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
  .product-detail-real-image {
    padding: 26px;
  }
}

/* Fase 9.7.4 — padrão definitivo para imagens verticais nos detalhes */
.gallery-main {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.98), transparent 42%),
    linear-gradient(180deg, #f8f8f5 0%, #e7e7e1 100%);
  border-radius: 32px;
  overflow: hidden;
}

.product-detail-real-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  overflow: hidden;
}

.product-detail-real-image img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.product-detail-real-image img.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.gallery-thumbs .thumb {
  width: 92px;
  height: 92px;
  padding: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #f8f8f5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-thumbs .thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumbs .thumb.active {
  border-color: #111;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 720px) {
  .product-detail-real-image {
    padding: 26px;
  }

  .gallery-thumbs .thumb {
    width: 86px;
    height: 86px;
  }
}

/* Fase 10.2.6/10.2.7 — seletor visual de cores com estrela de 4 pontas */
.product-color-summary-block {
  margin-top: 28px;
  margin-bottom: 30px;
}

.product-color-summary-block .summary-block-header {
  margin-bottom: 12px;
}

.product-color-summary-block .summary-block-header span {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-color-options {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.product-color-option,
.product-color-star-option {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.13);
  background: rgba(255, 255, 255, 0.68);
  color: #111;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.product-color-star-option:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.product-color-star-option.active {
  border-color: #111;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(17, 17, 17, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.1);
}

.product-color-four-star {
  width: 27px;
  height: 33px;
  display: block;
  background: #d9d9d9;

  -webkit-mask-image: url("/images/logo/seletor-estrela-4-pontas.svg");
  mask-image: url("/images/logo/seletor-estrela-4-pontas.svg");

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

.product-color-star-option.active .product-color-four-star {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.14));
}

.product-color-star-option:not(.active) .product-color-four-star {
  opacity: 0.82;
}

.product-color-star,
.product-color-swatch,
.product-color-option strong,
.product-color-pictogram {
  display: none !important;
}

@media (max-width: 640px) {
  .product-color-options {
    gap: 8px;
  }

  .product-color-option,
  .product-color-star-option {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .product-color-four-star {
    width: 28px;
    height: 34px;
  }
}

.product-color-selector{
    margin-top:35px;
}

.product-option-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.product-option-header span{
    font-size:12px;
    font-weight:700;
    letter-spacing:3px;
}

.product-option-header strong{
    font-size:14px;
    font-weight:500;
}

.product-color-options{
    display:flex;
    gap:14px;
}

.product-color-option{
    width:42px;
    height:42px;
    border-radius:50%;
    border:1px solid #ddd;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.product-color-option.active{
    border-color:#111;
}

.product-color-star{
    width:24px;
    height:24px;
    clip-path:polygon(
        50% 0%,
        60% 40%,
        100% 50%,
        60% 60%,
        50% 100%,
        40% 60%,
        0% 50%,
        40% 40%
    );
}


/* ================================================================
   SELETOR DE COR — Fase 10.5.17

   O seletor deixou de ser <button> e virou <a>: cada cor e' um link
   para a URL daquele colorway. Isso da endereco proprio a cada cor --
   favoritavel no navegador, mandavel no WhatsApp, indexavel pelo
   Google.

   As regras visuais de .product-color-star-option ja' existiam e
   continuam valendo, porque sao por classe. O que muda aqui e' o que
   um link traz de brinde: sublinhado e cor de link herdada.
================================================================ */

a.product-color-star-option{
    text-decoration:none;
    color:inherit;
}

a.product-color-star-option:visited{
    color:inherit;
}

/*
   A estrela de duas camadas substitui a antiga .product-color-four-star,
   que era uma camada so'. A regra de tamanho vem daqui; a forma e as
   cores vem do global.css, porque o mesmo componente aparece no
   catalogo e nos favoritos.
*/
.product-color-star-option .wisc-star-ring{
    width:27px;
    height:33px;
    transition:transform .18s ease;
}

.product-color-star-option.active .wisc-star-ring{
    transform:scale(1.08);
    filter:drop-shadow(0 8px 15px rgba(0,0,0,.14));
}

.product-color-star-option:not(.active) .wisc-star-ring{
    opacity:.82;
}

.product-color-star-option:hover .wisc-star-ring{
    opacity:1;
}

/*
   Espaco extra em cima da fileira: o tooltip abre para cima e sem isso
   ele encostaria no rotulo "Cor".
*/
.product-color-options{
    padding-top:6px;
}

/*
   O coracao da pagina do produto usava um caractere "♡" e agora usa o
   mesmo SVG do catalogo, para acender igual.
*/
.summary-favorite .favorite-icon{
    width:20px;
    height:20px;
}

.summary-favorite.active .favorite-icon{
    fill:currentColor;
}


/* ================================================================
   CORACAO DA PAGINA DO PRODUTO — Fase 10.5.17

   O botao nasceu para o caractere "♡", que ocupa a caixa de texto
   inteira. Agora ele carrega um SVG de 22px, e a caixa nao
   acompanhou: em 390px e 430px o circulo ficava maior que o desenho
   e o conjunto escapava da linha do titulo.

   Tamanho fixo mais grid centralizado prendem o icone no meio, em
   qualquer largura.
================================================================ */

.summary-favorite{
    flex-shrink:0;

    width:44px;
    height:44px;

    display:grid;
    place-items:center;

    padding:0;
    line-height:0;

    border-radius:999px;
    border:1px solid rgba(0,0,0,.12);
    background:#fff;
    box-shadow:0 4px 14px rgba(0,0,0,.06);

    cursor:pointer;
    transition:transform .2s ease, border-color .2s ease;
}

.summary-favorite:hover{
    transform:scale(1.06);
    border-color:rgba(0,0,0,.28);
}

/*
   O titulo em 390px ocupa duas linhas. Sem alinhar no topo, o botao
   estica junto e o circulo vira ovalado.
*/
.product-title-row{
    align-items:flex-start;
    gap:14px;
}

@media (max-width:430px){

    /* ------------------------------------------------------------
       O TITULO EMPURRAVA A PAGINA — 03/09/2026

       Em 390px a pagina inteira rolava de lado, e o modal do provador
       aparecia cortado a' esquerda. Pareciam dois bugs; era um so'.

       O titulo usa clamp(2.4rem, 4vw, 4.6rem). Em telas grandes quem
       manda e' o 4vw. Em 390px, 4vw da' 15,6px -- abaixo do piso --
       entao vale o PISO de 2,4rem, que nao encolhe mais. "PROCLAMAMOS."
       nesse tamanho, com espacamento de 0,06em, passa dos 350px
       disponiveis. Palavra unica nao quebra sozinha: ela estica a
       largura de rolagem da pagina.

       E ai' o modal, que e' position:fixed, some do lugar. Fixed se
       ancora na viewport de layout, que continua em zero enquanto o
       documento rola para a direita -- entao o modal fica parado e o
       que se move e' a janela. Na tela le como "o modal esta' cortado".

       A correcao e' no piso: 7,6vw acompanha a largura em vez de
       travar. O overflow-wrap e' rede de seguranca para um nome de
       produto ainda mais longo no futuro -- palavra quebrada e' feio,
       pagina rolando de lado e' quebrado.
    ------------------------------------------------------------ */
    .product-summary h1{
        font-size:clamp(1.75rem, 7.6vw, 2.4rem);
        overflow-wrap:anywhere;
    }

    .summary-favorite{
        width:40px;
        height:40px;
    }

    .summary-favorite .favorite-icon{
        width:19px;
        height:19px;
    }

}


/* ================================================================
   ZOOM DA FOTO — Fase 10.5.17

   O transform e' aplicado pelo JavaScript; o CSS cuida da transicao,
   do corte e do cursor.

   overflow:hidden na moldura e' o que faz a foto ampliar "por dentro"
   em vez de transbordar por cima do resto da pagina.
================================================================ */

.gallery-main .product-detail-real-image{
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden;
    cursor:zoom-in;
    touch-action:pan-y;
}

.gallery-main .product-detail-real-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;

    transition:transform .32s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
}

.gallery-main .product-detail-real-image.com-zoom{
    cursor:zoom-out;
}

/*
   Com o zoom ligado a transicao fica curta: ela existe para a entrada
   e a saida serem suaves, mas se continuasse longa a imagem
   perseguiria o cursor com atraso, e o movimento pareceria travado.
*/
.gallery-main .product-detail-real-image.com-zoom img{
    transition:transform .08s linear;
}

/*
   Dica discreta, so' onde existe cursor. No toque ela nao aparece
   porque o gesto e' outro -- e um aviso fixo por cima da peca
   atrapalharia mais do que ajudaria.
*/
@media (hover:hover) and (pointer:fine){

    .gallery-main .product-detail-real-image::after{
        content:"Passe o mouse para ampliar";

        position:absolute;
        left:50%;

        /*
           A moldura tem 42px de respiro em volta da foto. A pilha tem
           uns 25px de altura, entao 9px do fundo a deixa centralizada
           nessa faixa cinza -- e nao colada na borda de baixo da foto
           branca, como ficava com 16px.
        */
        bottom:9px;
        transform:translateX(-50%);

        padding:7px 14px;
        border-radius:999px;

        background:rgba(5,5,5,.72);
        color:#fff;

        font-family:var(--font-title);
        font-size:.6rem;
        font-weight:900;
        letter-spacing:.12em;
        text-transform:uppercase;
        white-space:nowrap;

        opacity:.9;
        pointer-events:none;
        transition:opacity .2s ease;
    }

    .gallery-main .product-detail-real-image.com-zoom::after{
        opacity:0;
    }

}


/* ================================================================
   RESULTADO DO CEP — Fase 10.5.17

   Regra em pe': ES tem frete gratis. Os outros estados ainda estao
   sendo estudados, entao a mensagem e' honesta -- diz que existe
   envio e que o valor sai no fechamento, sem prometer numero.
================================================================ */

.shipping-cep-resultado{
    margin-top:14px;
    padding:14px 18px;

    display:grid;
    gap:5px;

    border-radius:18px;
    border:1px solid rgba(0,0,0,.10);
    background:#f6f6f3;

    line-height:1.5;
}

.shipping-cep-resultado strong{
    font-family:var(--font-title);
    font-size:.72rem;
    font-weight:900;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.shipping-cep-resultado span{
    font-size:.86rem;
    color:#555;
}

/*
   O verde e' o unico lugar da loja com cor de "conseguiu". Fica
   reservado para isso: frete gratis e' a boa noticia da tela.
*/
.shipping-cep-gratis{
    border-color:rgba(30,110,60,.24);
    background:#f0f7f1;
}

.shipping-cep-gratis strong{
    color:#1e6e3c;
}

.shipping-cep-pendente{
    border-color:rgba(0,0,0,.12);
    background:#f6f6f3;
}

.shipping-cep-pendente strong{
    color:#111;
}

.shipping-cep-erro{
    border-color:rgba(138,17,17,.18);
    background:#fff3f3;
}

.shipping-cep-erro strong{
    color:#8a1111;
}

.shipping-cep-carregando strong{
    color:#666;
}

@media (max-width:430px){

    .shipping-cep-resultado{
        padding:13px 15px;
    }

    .shipping-cep-resultado span{
        font-size:.82rem;
    }

}


/* ================================================================
   BOTAO OK DO FRETE — Fase 10.5.17

   No desktop o botao sumia; em 390px e 430px aparecia. Inversao
   esquisita, e a explicacao e' geometrica.

   .shipping-box e' uma grade de duas colunas, e o formulario ocupa a
   de 190px. Dentro dele:

       grid-template-columns: 1fr 48px;    input | botao

   "1fr" significa "uma fracao do que sobrar", mas o minimo dele e'
   auto -- e o minimo automatico de um <input> e' a largura do
   atributo size, que por padrao da' uns 177px. Somando o botao:
   177 + 48 = 225px numa caixa de 190px. O que passou foi cortado pelo
   overflow:hidden do formulario, e o cortado era o botao.

   Em tela pequena a caixa vira uma coluna so', com a largura inteira
   disponivel: sobrava espaco e o botao aparecia.

   min-width:0 libera o input a encolher de verdade. Mesma armadilha
   do campo "ID variacao Bling" na matriz de estoque do admin.
================================================================ */

.shipping-box input{
    min-width:0;
}

.shipping-box button{
    /* A coluna tem 48px fixos; sem isto o texto "OK" ainda poderia
       empurrar a largura minima do botao para alem dela. */
    min-width:0;
    padding:0;

    font-family:var(--font-title);
    font-size:.72rem;
    letter-spacing:.1em;
    text-transform:uppercase;

    transition:background .2s ease;
}

.shipping-box button:hover{
    background:#000;
}

/* ================================================================
   A FITA DE MINIATURAS NÃO EMPURRA MAIS A PÁGINA
   07/09/2026

   ----------------------------------------------------------------
   O QUE ACONTECIA
   ----------------------------------------------------------------

   Em 360px de largura, medido no proprio site:

       4 miniaturas x 86px  +  3 espacos x 14px  =  386px
       container disponivel                      =  316px

   A fita e' flex com "nowrap" e overflow visivel. Sem nada que a
   segure, ela nao encolhe nem quebra: ela ESTICA o pai. E como o pai
   estica, a pagina inteira ganha 70px de rolagem horizontal.

   O efeito na tela nao parecia ser isso. O que se via era o "Preta",
   o "Guia de medidas" e o coracao de favorito cortados na borda
   direita -- eles estavam no lugar certo; era a tela que tinha ficado
   pequena demais para o documento.

   ----------------------------------------------------------------
   POR QUE SO' APARECEU AGORA
   ----------------------------------------------------------------

   Ate' 07/09 cada cor tinha DUAS fotos (frente e costas):

       2 x 86 + 14 = 186px    cabia com folga

   As fotos de campanha trouxeram QUATRO. O bug nao foi criado pela
   troca das fotos -- ele ja' estava aqui, esperando a quarta foto.
   A fita nunca soube o que fazer quando nao coubesse.

   ----------------------------------------------------------------
   A CORREÇÃO
   ----------------------------------------------------------------

   A fita passa a rolar DENTRO DELA MESMA. Cinco fotos, dez fotos,
   nao importa: a pagina nunca mais estica.

   O min-width:0 nos pais e' o que torna isso possivel. Item de grid e
   de flex tem largura minima "auto" por padrao, que significa "o
   tamanho do meu conteudo" -- e' esse padrao que deixa um filho
   grande demais esticar o pai em vez de ser cortado. Sem o min-width:0,
   o overflow-x abaixo nao teria efeito nenhum.
================================================================ */

@media (max-width: 720px) {

  /* Deixa os pais poderem ser mais estreitos que o conteudo. */
  .product-detail-container,
  .product-gallery {
    min-width: 0;
  }

  .gallery-thumbs {
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    /* rolagem com inercia no iOS */
    -webkit-overflow-scrolling: touch;

    /* cada miniatura para alinhada na borda, em vez de meio cortada */
    scroll-snap-type: x proximity;

    /* respiro nas pontas, para a primeira e a ultima nao colarem */
    padding-bottom: 4px;

    /* a barra de rolagem apareceria por cima das fotos e sujaria o
       visual; o gesto continua funcionando sem ela */
    scrollbar-width: none;
  }

  .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumbs .thumb {
    /* nao encolhe e nao cresce: mantem o tamanho e rola */
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* ================================================================
   COM O ZOOM LIGADO, O DEDO PASSEIA — NAO ROLA
   07/09/2026

   A moldura tem touch-action:pan-y, que autoriza o navegador a rolar
   a pagina na vertical. E' o que a gente QUER com o zoom desligado --
   e' assim que a pagina desce quando o dedo passa por cima da foto.

   Com o zoom LIGADO a intencao e' outra: arrastar move o ponto
   observado, inclusive para cima e para baixo. E ai' o pan-y atrapalha,
   porque o navegador comeca a rolar antes de o JavaScript pedir para
   nao rolar -- e depois que a rolagem comeca, preventDefault e'
   ignorado. O passeio ficaria preso na horizontal.

   touch-action:none enquanto ampliado devolve o gesto inteiro ao
   JavaScript. Sai junto com a classe, no toque que desliga o zoom.
================================================================ */

.gallery-main .product-detail-real-image.com-zoom {
  touch-action: none;
}


/* ================================================================
   SETAS DA GALERIA — 08/09/2026
   Ideia do amigo do Guilherme, item 4

   No computador so' havia um jeito de trocar de foto: clicar na
   miniatura la' embaixo. Seta e' o gesto que todo mundo espera de
   uma galeria, e quem nao repara nela nao perde nada -- as
   miniaturas continuam funcionando igual.

   ----------------------------------------------------------------
   POR QUE ELAS APARECEM SO' NO HOVER (no computador)
   ----------------------------------------------------------------

   A foto da peca e' o produto. Controle permanente por cima dela
   compete com a roupa pela atencao. Aparecendo na aproximacao do
   mouse, o controle existe quando a pessoa procura por ele e some
   quando ela esta' so' olhando.

   No celular nao ha' hover, entao elas ficam sempre visiveis --
   la' o custo de esconder e' nao existir.
================================================================ */

.gallery-main {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;

  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  /* Fundo escuro semitransparente com desfoque: legivel tanto sobre
     tecido claro quanto escuro, sem virar um bloco solido. E' a
     mesma solucao do badge "NOVO". */
  background: rgba(5, 5, 5, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);

  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
}

.gallery-arrow svg {
  width: 22px;
  height: 22px;
}

.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }

.gallery-main:hover .gallery-arrow,
.gallery-arrow:focus-visible {
  opacity: 1;
}

.gallery-arrow:hover {
  background: rgba(5, 5, 5, 0.78);
}

/* O contorno de foco precisa vencer o fundo escuro do botao. */
.gallery-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/*
 * Sem hover -- celular e tablet -- elas ficam sempre visiveis, um
 * pouco mais discretas. A media query pergunta pelo PONTEIRO, e nao
 * pela largura da tela: o que decide se o hover existe e' o aparelho,
 * nao o tamanho da janela.
 */
@media (hover: none) {

  .gallery-arrow {
    opacity: 0.82;
    width: 40px;
    height: 40px;
  }
}

/*
 * Quem pediu menos movimento no sistema nao ganha o esmaecer.
 * A seta simplesmente esta' la'.
 */
@media (prefers-reduced-motion: reduce) {

  .gallery-arrow {
    opacity: 1;
    transition: none;
  }
}

/* ================================================================
   QUEM MANDA EM CADA DIRECAO — 08/09/2026

   Sem zoom, a foto declara "pan-y": a rolagem VERTICAL e' do
   navegador, e o horizontal fica para o nosso swipe de troca.

   Isso nao e' enfeite. Sem a declaracao, o navegador decide sozinho
   assim que o dedo anda, e o touchmove passa a chegar com
   cancelable=false -- o preventDefault vira aviso no console e o
   swipe simplesmente nao acontece. Foi exatamente esse o defeito de
   07/09, e a linha abaixo e' a versao preventiva dele.

   Com zoom ligado continua "none": ali o dedo passeia pela peca e
   nenhuma rolagem deve competir. Essa regra ja' existe acima.
================================================================ */

.gallery-main .product-detail-real-image {
  touch-action: pan-y;
}
