:root {
  --navy: #071f48;
  --navy-soft: #102a56;
  --pink: #f5278c;
  --pink-hover: #df1779;
  --pink-tint: #fce6f0;
  --surface-light: #f3f5f8;
  --border-subtle: #d5dce6;
  --divider: #dfe4ee;
  --text-navy: #071f48;
  --text-body: #2b3952;
  --text-muted: #5b6b84;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--text-navy);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #f56aad;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pdp-container {
  width: min(92%, 1160px);
  margin-inline: auto;
}

/* Cabeçalho principal */
.pdp-header {
  background: var(--navy);
  color: #ffffff;
}

.pdp-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 10px;
}

.pdp-mobile-menu-btn {
  display: none;
  color: #ffffff;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.pdp-logo {
  flex: none;
  width: 210px;
  display: block;
}

.pdp-logo img {
  width: 100%;
  height: auto;
}

.pdp-search-form {
  flex: 1;
  max-width: 520px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 999px;
  height: 44px;
  padding: 0 18px;
}

.pdp-search-icon {
  color: var(--text-navy);
  width: 18px;
  height: 18px;
  flex: none;
}

.pdp-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-navy);
  font-size: 13.5px;
}

.pdp-search-form input::placeholder {
  color: #7c8aa0;
}

.pdp-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.pdp-header-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 8px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.pdp-header-action:hover {
  opacity: 0.85;
}

.pdp-header-action svg {
  width: 22px;
  height: 22px;
}

.pdp-header-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.22);
}

.pdp-cart-badge {
  position: absolute;
  top: -2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--pink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding-inline: 4px;
}

.pdp-cart-badge[data-count='0'] {
  display: none;
}

/* Barra de navegação branca */
.pdp-nav {
  background: #ffffff;
  border-bottom: 1px solid #e9edf4;
  box-shadow: 0 2px 10px rgba(7, 31, 72, 0.05);
  position: relative;
  z-index: 10;
}

.pdp-nav-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 68px);
}

.pdp-nav-inner a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-navy);
  white-space: nowrap;
  padding: 8px 4px;
  transition: color 0.18s ease;
}

.pdp-nav-inner a:hover {
  color: var(--pink);
}

.pdp-nav-inner a.pdp-nav-offers {
  color: var(--pink);
}

.pdp-nav-inner a.pdp-nav-offers:hover {
  color: var(--pink-hover);
}

.pdp-mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 14px 28px rgba(7, 31, 72, 0.12);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 25;
}

.pdp-mobile-nav[hidden] {
  display: none;
}

.pdp-mobile-nav a {
  padding: 11px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-navy);
  border-bottom: 1px solid #f0f3f8;
}

.pdp-mobile-nav a:last-child {
  border-bottom: 0;
}

/* Conteúdo principal */
.pdp-main {
  padding: 22px 0 54px;
}

/* Breadcrumb */
.pdp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.pdp-breadcrumb a:hover {
  color: var(--pink);
  text-decoration: underline;
}

.pdp-breadcrumb .sep {
  color: #9aa6ba;
  user-select: none;
}

.pdp-breadcrumb .current {
  color: var(--text-body);
  font-weight: 500;
}

/* Área principal em 2 colunas */
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: start;
}

/* Galeria esquerda */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp-main-photo {
  background: var(--surface-light);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.pdp-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.pdp-photo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}

.pdp-main-photo.is-broken img {
  display: none;
}

.pdp-main-photo.is-broken .pdp-photo-fallback {
  display: flex;
}

.pdp-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.pdp-thumbs[hidden] {
  display: none;
}

.pdp-thumb {
  width: 112px;
  height: 78px;
  border-radius: 11px;
  background: var(--surface-light);
  border: 2px solid transparent;
  padding: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.pdp-thumb:hover {
  transform: translateY(-1px);
  border-color: #f79ac6;
}

.pdp-thumb.active {
  border-color: var(--pink);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

/* Coluna direita - Informações e Pedido */
.pdp-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}

.pdp-category-pill {
  display: inline-block;
  background: var(--pink-tint);
  color: var(--pink);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 999px;
}

.pdp-title {
  margin: 12px 0 6px;
  font-size: clamp(25px, 2.5vw, 33px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-navy);
}

.pdp-subtitle {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.45;
  color: #3e4d67;
  font-weight: 400;
}

.pdp-meta-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.pdp-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-navy);
}

.pdp-meta-line svg {
  width: 21px;
  height: 21px;
  color: var(--text-navy);
  flex: none;
}

.pdp-meta-line strong {
  font-weight: 700;
}

.pdp-price-block {
  margin-bottom: 22px;
}

.pdp-demo-pill {
  display: inline-block;
  background: #edf0f5;
  color: #52627a;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.pdp-price {
  font-size: clamp(28px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-navy);
  font-variant-numeric: tabular-nums;
}

.pdp-price-note {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.pdp-stock-note {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0e6f3d;
}

.pdp-stock-note.out {
  color: #a92848;
}

/* Seletores de Tamanho e Quantidade */
.pdp-controls-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 18px;
  margin-bottom: 18px;
}

.pdp-controls-row.no-variants {
  grid-template-columns: 142px;
}

.pdp-field label,
.pdp-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 7px;
}

.pdp-select-wrap {
  position: relative;
}

.pdp-select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-navy);
  font-size: 14.5px;
  font-weight: 500;
  padding: 0 38px 0 14px;
  appearance: none;
  cursor: pointer;
}

.pdp-select-chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-navy);
  pointer-events: none;
}

.pdp-qty-box {
  height: 46px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  overflow: hidden;
}

.pdp-qty-btn {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-navy);
  transition: background-color 0.15s ease;
}

.pdp-qty-btn:hover:not(:disabled) {
  background: #f3f5f8;
}

.pdp-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdp-qty-value {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-navy);
  font-variant-numeric: tabular-nums;
}

/* Botão principal Comprar pelo WhatsApp */
.pdp-wa-btn {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  background: var(--pink);
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  box-shadow: 0 6px 16px rgba(245, 39, 140, 0.22);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pdp-wa-btn:hover {
  background: var(--pink-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 39, 140, 0.28);
}

.pdp-wa-btn svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.pdp-wa-warning {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #9e2a4b;
  background: #fdf1f4;
  border: 1px solid #f5ccd8;
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
}

.pdp-wa-warning[hidden] {
  display: none;
}

.pdp-shipping {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-navy);
}

.pdp-shipping svg {
  width: 22px;
  height: 22px;
  color: var(--text-navy);
  flex: none;
}

/* Dois blocos inferiores lado a lado */
.pdp-bottom-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.pdp-info-card {
  background: var(--surface-light);
  border-radius: 16px;
  padding: 26px 28px;
}

.pdp-info-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pdp-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink-tint);
  color: var(--pink);
  display: grid;
  place-items: center;
  flex: none;
}

.pdp-info-icon svg {
  width: 22px;
  height: 22px;
}

.pdp-info-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-navy);
  letter-spacing: -0.01em;
}

.pdp-about-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.pdp-specs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdp-specs li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--text-body);
  border-bottom: 1px solid var(--divider);
}

.pdp-specs li:first-child {
  padding-top: 2px;
}

.pdp-specs li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pdp-specs strong {
  color: var(--text-navy);
  font-weight: 700;
}

/* Estado vazio / não encontrado */
.pdp-not-found {
  background: var(--surface-light);
  border-radius: 16px;
  padding: 44px 28px;
  text-align: center;
  margin-top: 16px;
}

.pdp-not-found h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.pdp-not-found p {
  margin: 0 0 20px;
  color: var(--text-body);
}

.pdp-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #ffffff;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
}

/* Drawer do carrinho compartilhado */
.pdp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 21, 44, 0.55);
  z-index: 40;
}

.pdp-backdrop[hidden] {
  display: none;
}

.pdp-cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: #ffffff;
  z-index: 45;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(6, 21, 44, 0.2);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.pdp-cart-panel.open {
  transform: translateX(0);
}

.pdp-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 14px;
}

.pdp-cart-head h2 {
  margin: 0;
  font-size: 20px;
}

.pdp-cart-items {
  flex: 1;
  overflow-y: auto;
}

.pdp-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eef1f6;
  font-size: 13px;
}

.pdp-cart-item img {
  width: 68px;
  height: 56px;
  object-fit: contain;
  background: var(--surface-light);
  border-radius: 8px;
  padding: 4px;
}

.pdp-cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pdp-cart-qty button {
  background: #f1f3f8;
  border-radius: 5px;
  padding: 3px 9px;
  font-weight: 600;
}

.pdp-cart-foot {
  border-top: 1px solid var(--divider);
  padding-top: 14px;
}

.pdp-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pdp-cart-go-store {
  height: 46px;
  font-size: 14px;
}

.pdp-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 24px);
  opacity: 0;
  background: var(--navy);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13.5px;
  z-index: 60;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pdp-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsivo */
@media (max-width: 960px) {
  .pdp-grid {
    gap: 28px;
  }

  .pdp-nav-inner {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .pdp-header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .pdp-mobile-menu-btn {
    display: inline-flex;
  }

  .pdp-logo {
    width: 170px;
    margin-right: auto;
  }

  .pdp-header-actions {
    gap: 10px;
  }

  .pdp-header-action span:not(.pdp-cart-badge) {
    display: none;
  }

  .pdp-header-divider {
    display: none;
  }

  .pdp-search-form {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    height: 42px;
  }

  .pdp-nav-inner {
    display: none;
  }

  .pdp-main {
    padding: 16px 0 38px;
  }

  .pdp-breadcrumb {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pdp-main-photo {
    padding: 14px;
  }

  .pdp-thumbs {
    gap: 10px;
  }

  .pdp-thumb {
    width: 90px;
    height: 66px;
  }

  .pdp-controls-row {
    grid-template-columns: 1fr 132px;
    gap: 12px;
  }

  .pdp-bottom-blocks {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .pdp-info-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .pdp-controls-row {
    grid-template-columns: 1fr;
  }

  .pdp-qty-box {
    max-width: 160px;
  }
}

/* Rodapé oficial da loja */
.pdp-footer {
  background: var(--navy);
  color: #ffffff;
  padding: 28px 0 0;
}

.pdp-footer-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr;
  gap: 36px;
  padding-bottom: 24px;
  align-items: start;
}

.pdp-footer-logo {
  width: 230px;
  align-self: center;
  display: block;
}

.pdp-footer-main h3 {
  font-size: 13.5px;
  margin: 0 0 8px;
  font-weight: 700;
}

.pdp-footer-main button,
.pdp-footer-admin-link {
  display: block;
  color: #ffffff;
  font-size: 12px;
  padding: 2px 0;
  text-align: left;
  transition: color 0.16s ease;
}

.pdp-footer-main button:hover,
.pdp-footer-admin-link:hover {
  color: #f56aad;
}

.pdp-footer-main p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.pdp-contact-placeholder {
  margin-top: 10px !important;
  color: #c8d1e0;
}

.pdp-footer-bottom {
  border-top: 1px solid rgba(179, 190, 208, 0.45);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11.5px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.pdp-footer-bottom .pdp-security {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pdp-dialog {
  border: 0;
  border-radius: 16px;
  padding: 26px;
  width: min(520px, 92vw);
  color: var(--text-navy);
  box-shadow: 0 20px 60px rgba(0, 17, 44, 0.35);
}

.pdp-dialog::backdrop {
  background: rgba(6, 21, 44, 0.65);
}

.pdp-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pdp-dialog-head h2 {
  margin: 0;
  font-size: 20px;
}

.pdp-dialog-close {
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
}

@media (max-width: 820px) {
  .pdp-footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .pdp-footer-logo {
    grid-column: 1 / -1;
  }
}

.pdp-footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 7px;
  margin-right: 12px;
  transition: color 0.16s ease;
}

.pdp-footer-social-link:hover {
  color: #f56aad;
}

.pdp-footer-social-link svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.floating-wa-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.floating-wa-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(7, 31, 72, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-wa-circle svg {
  width: 28px;
  height: 28px;
}

.floating-wa-tooltip {
  background: var(--navy);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(7, 31, 72, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.floating-wa-btn:hover .floating-wa-tooltip,
.floating-wa-btn:focus-visible .floating-wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.floating-wa-btn:hover .floating-wa-circle,
.floating-wa-btn:focus-visible .floating-wa-circle {
  background: #1ebe5b;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 26px rgba(7, 31, 72, 0.34);
}

@media (max-width: 650px) {
  .floating-wa-btn {
    right: 16px;
    bottom: 16px;
  }

  .floating-wa-circle {
    width: 50px;
    height: 50px;
  }

  .floating-wa-circle svg {
    width: 25px;
    height: 25px;
  }
}
