  :root {
    --yellow: #ffe600;
    --blue: #3483fa;
    --text: #333;
    --muted: #666;
    --border: #e3e3e3;
    --bg: #f5f5f5;
    --card-bg: #fff;
    --radius: 10px;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px; /* espaço barra fixa */
  }

  /* HEADER ----------------------------------------------------- */

  .ml-header {
    background: var(--yellow);
    padding: 8px 10px 10px;
  }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    height: 2px;
    width: 18px;
    background: #333;
    border-radius: 999px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff;
  }

  .logo-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .logo-text {
    font-weight: 700;
    font-size: 14px;
  }

  .logo-badge {
    font-size: 10px;
    color: var(--muted);
  }

  /* Busca */

  .search-bar {
    width: 100%;
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
  }

  .search-bar input {
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 14px;
  }

  .search-bar input:focus {
    outline: none;
  }

  .search-bar button {
    border: none;
    background: #fff;
    padding: 0 12px;
    cursor: pointer;
  }

  /* Ícones direita */

  .right-icons {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .icon-button {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

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

  .cart-badge {
    position: absolute;
    top: -3px;
    right: -1px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ff3b3b;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Login */

  .user-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .user-label {
    font-size: 11px;
    color: #333;
  }

  .login-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 230px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    padding: 10px 12px 12px;
    z-index: 20;
  }

  .login-dropdown.show {
    display: block;
  }

  .login-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
  }

  .login-label {
    display: block;
    font-size: 11px;
    margin-top: 6px;
  }

  .login-label input {
    width: 100%;
    padding: 6px 7px;
    margin-top: 2px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 12px;
  }

  .login-label input:focus {
    outline: 1px solid var(--blue);
    border-color: var(--blue);
  }

  .login-submit {
    margin-top: 10px;
    width: 100%;
    padding: 7px 0;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
  }

  /* MAIN ----------------------------------------------------- */

  .product-page {
    max-width: 1100px;
    margin: 10px auto 40px;
    padding: 0 10px;
  }

  /* Hero (galeria + info) */

  .product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }

  /* Galeria */

  .gallery-main {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px 10px 12px;
    text-align: center;
    position: relative;
  }

  .gallery-main img#mainImage {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto 10px;
    transition: transform 0.2s ease;
    cursor: zoom-in;
  }

  .gallery-main.zoomed img#mainImage {
    transform: scale(1.25);
    cursor: zoom-out;
  }

  .brand-logo-large {
    width: 220px;
    display: block;
    margin: 0 auto 6px;
  }

  .size-label {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 8px;
  }

  .zoom-tip {
    font-size: 13px;
    color: var(--muted);
  }

  /* Thumbs */

  .thumb-row {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .thumb {
    border-radius: 4px;
    border: 2px solid transparent;
    padding: 4px;
    background: #fff;
    cursor: pointer;
  }

  .thumb img {
    width: 50px;
    height: auto;
    display: block;
  }

  .thumb.selected {
    border-color: var(--blue);
  }

  /* INFO LATERAL */

  .product-info {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 14px 14px 16px;
  }

  .product-tagline {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .product-title-main {
    font-size: 20px;
    margin: 4px 0 10px;
  }

  /* Avaliação */

  .rating-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .rating-line .stars {
    color: #ffb400 !important; /* dourado Mercado Livre */
    font-weight: bold;
  }

  .rating-count {
    font-size: 12px;
    color: var(--muted);
  }

  /* Badge Frete grátis */

  .badge-free {
    display: inline-block;
    background: #ff6f3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  /* Preço */

  .price-block {
    margin-top: 6px;
    margin-bottom: 10px;
  }

  .price-main {
    font-size: 26px;
    font-weight: 700;
  }

  .price-installments {
    font-size: 13px;
  }

  .price-installments span {
    color: #00a650;
    font-weight: 500;
  }

  .link-payment {
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    color: var(--blue);
    font-size: 13px;
    cursor: pointer;
  }

  /* Frete */

  .shipping-line {
    margin: 10px 0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .shipping-green {
    color: #00a650;
    font-weight: 500;
  }

  .shipping-date strong {
    font-weight: 500;
  }

  /* Garantias */

  .guarantee-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px;
    font-size: 13px;
    color: var(--muted);
  }

  .guarantee-list li + li {
    margin-top: 3px;
  }

  /* Botão principal */

  .btn-buy-main {
    width: 100%;
    padding: 10px 0;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-bottom: 14px;
  }

  /* Seller card */

  .seller-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 10px;
    font-size: 12px;
  }

  .seller-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .seller-logo {
    background: #e6f1fb;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    text-transform: uppercase;
  }

  .seller-info {
    display: flex;
    flex-direction: column;
  }

  .seller-title {
    font-weight: 600;
  }

  .seller-sub {
    color: var(--muted);
    font-size: 11px;
  }

  .seller-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-item {
    text-align: center;
  }

  .metric-number {
    font-size: 16px;
    font-weight: 700;
  }

  .metric-label {
    font-size: 11px;
    color: var(--muted);
  }

  .metric-icon {
    font-size: 16px;
  }

  /* Compartilhar */

  .share-section {
    margin-bottom: 10px;
    text-align: center;
  }

  .share-title {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .share-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  /* Descrição */

  .description-section {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 14px;
    margin-bottom: 14px;
  }

  .description-section h2 {
    margin-top: 0;
    margin-bottom: 8px;
  }

  /* Recomendações */

  .recommend-section {
    background: #f0f0f0;
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
    padding: 14px;
    margin-bottom: 20px;
  }

  .recommend-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .recommend-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .loader {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top-color: var(--muted);
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* Rodapé */

  .page-footer {
    border-top: 1px solid var(--border);
    padding: 20px 14px 80px;
    background: #fff;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }

  .footer-brand {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
  }

  /* Barra fixa */

  .bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    display: flex;
    justify-content: center;
    z-index: 30;
  }

  .bottom-buy {
    width: 100%;
    max-width: 480px;
    padding: 10px 0;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
  }

  /* Responsivo */

  @media (max-width: 900px) {
    .product-hero {
      grid-template-columns: 1fr;
    }

    .seller-metrics {
      grid-template-columns: 1fr;
    }

    .user-label {
      display: none;
    }
  }
  /* ===== ZOOM ===== */
  #zoomArea {
    cursor: zoom-in;
    transition: transform 0.3s ease;
  }

  #zoomArea.zoomed {
    transform: scale(1.6);
    cursor: zoom-out;
  }
  /* ===== BLOCO MODERNO MERCADO LÍDER ===== */

  .seller-card-modern {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 3px 18px rgba(0,0,0,0.06);
    border: 1px solid #e6e6e6;
    margin-top: 25px;
    transition: 0.2s ease;
  }

  .seller-card-modern:hover {
    transform: translateY(-3px);
  }

  .seller-top {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .seller-logo-modern img {
    width: 70px;
    filter: brightness(1.05);
  }

  .seller-info-modern {
    display: flex;
    flex-direction: column;
  }

  .seller-title-modern {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
  }

  .seller-sub-modern {
    font-size: 0.9rem;
    color: #777;
    margin-top: 2px;
  }

  .seller-divider {
    width: 100%;
    height: 1px;
    background: #ececec;
    margin: 15px 0;
  }

  .seller-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
  }

  .stat-icon {
    font-size: 1.3rem;
    background: #34c759;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .stat-label {
    font-size: 0.95rem;
    color: #555;
  }
  /* ===== BLOCO ULTRA PREMIUM ===== */

  .seller-card-ultra {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 22px rgba(0,0,0,0.07);
    transition: 0.25s ease;
    margin-top: 30px;
  }

  .seller-card-ultra:hover {
    transform: translateY(-4px);
  }

  /* TOPO */
  .seller-header-ultra {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .mp-logo-ultra {
    width: 70px;
    filter: brightness(1.05);
  }

  .seller-ultra-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
  }

  .seller-ultra-sub {
    font-size: 0.95rem;
    color: #777;
  }

  /* BARRAS DE REPUTAÇÃO */
  .seller-reputation-bars {
    display: flex;
    height: 10px;
    gap: 4px;
    margin: 18px 0;
  }

  .rep-bar {
    flex: 1;
    background: #e1e1e1;
    border-radius: 4px;
  }

  .rep-bar.active {
    background: #2ecc71;
  }

  .bar1 { opacity: 0.35; }
  .bar2 { opacity: 0.45; }
  .bar3 { opacity: 0.6; }
  .bar4 { opacity: 0.75; }
  .bar5 { opacity: 1; }

  /* ESTATÍSTICAS */
  .seller-stats-ultra {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .stat-ultra {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .stat-ultra-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
  }

  .stat-ultra-label {
    font-size: 1rem;
    color: #555;
  }

  /* ÍCONES PREMIUM */
  .stat-ultra-icon {
    width: 28px;
    height: 28px;
    background: #2ecc71;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .stat-ultra-icon svg {
    width: 18px;
    height: 18px;
  }
  /* ========================== */
  /* AVALIAÇÕES - PREMIUM       */
  /* ========================== */

  .reviews-section {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }

  .reviews-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
  }

  .reviews-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }

  .rating-left {
    text-align: left;
  }

  .rating-score {
    font-size: 3.2rem;
    font-weight: 700;
    color: #3478f6;
  }

  .rating-stars {
    font-size: 1.6rem;
    color: #3478f6;
  }

  .rating-total {
    color: #666;
    font-size: .9rem;
  }

  .rating-bars {
    width: 55%;
  }

  .bar-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .bar {
    height: 8px;
    background: #e9e9e9;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
  }

  .bar span {
    display: block;
    height: 100%;
    background: #555;
    border-radius: 4px;
  }

  .bar-number {
    color: #777;
    font-size: .9rem;
  }

  /* CRITÉRIOS */
  .review-criteria {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
  }

  .criteria-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .criteria-stars {
    color: #3478f6;
  }

  /* COMENTÁRIOS */
  .review-comment {
    margin-top: 30px;
    padding: 18px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
  }

  .review-header {
    display: flex;
    justify-content: space-between;
    color: #444;
    margin-bottom: 10px;
  }

  .review-stars {
    color: #3478f6;
    font-size: 1.2rem;
  }

  .review-images {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }

  .review-images img {
    width: 70px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
  }

  .review-text {
    font-size: .95rem;
    color: #333;
    margin-bottom: 12px;
  }

  .review-helpful {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #dcdcdc;
    border-radius: 50px;
    font-size: .95rem;
    color: #444;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
  }
  .review-helpful span {
    font-weight: bold;
  }
  .logo {
    width: 100%;
    display: flex;
    justify-content: center !important;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  /* HEADER REALIGNADO – CORRETO */
  .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .top-left,
  .top-center,
  .top-right {
    flex: 1;
    display: flex;
    align-items: center;
  }

  /* esquerda = hamburguer */
  .top-left {
    justify-content: flex-start;
  }

  /* centro = logo */
  .top-center {
    justify-content: center;
  }

  .logo-img {
    width: 140px;
    height: auto;
  }

  /* direita = login + carrinho */
  .top-right {
    justify-content: flex-end;
    gap: 16px;
  }
  .mp-logo-link {
    display: inline-block;
    cursor: pointer;
  }

  .mp-logo-ultra {
    pointer-events: auto !important;
  }
  .seller-header-ultra {
    position: relative;
    z-index: 20;
  }

  .mp-logo-ultra {
    position: relative;
    z-index: 30;
  }
  /* LOGO CLICÁVEL NO BLOCO MERCADO LÍDER */
.mp-logo-link {
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 50 !important;
}

.mp-logo-ultra {
  pointer-events: auto !important;
  position: relative;
  z-index: 60 !important;
}

/* Garantir que nada cubra a logo */
.seller-header-ultra {
  position: relative;
  z-index: 40 !important;
}

.seller-card-ultra {
  position: relative;
  z-index: 1;
}

/* —— BLOCO ISOLADO —— */

.ml-seller-box {
  font-family: "Roboto", sans-serif;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 22px;
  max-width: 100%;
  color: #111;
}

/* TOPO */
.ml-seller-top {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.ml-seller-logo {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  border: 1px solid #eee;
  object-fit: contain;
}

.ml-seller-name {
  font-size: 1.35rem;
  font-weight: 700;
}

.ml-seller-meta {
  color: #6b7280;
  font-size: 0.9rem;
}

.ml-follow-btn {
  background: #eaf1ff;
  border: none;
  font-size: 0.85rem;
  color: #4a6dff;
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* BADGE */
.ml-seller-badge {
  margin-top: 18px;
}

.ml-badge-icon {
  font-size: 1.1rem;
}

.ml-badge-title {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.15rem;
  margin-left: 6px;
}

.ml-badge-sub {
  color: #6b7280;
  margin-top: 3px;
  font-size: 0.9rem;
}

/* REPUTAÇÃO */
.ml-rep-bar {
  display: flex;
  gap: 4px;
  margin: 20px 0;
}

.ml-rep-bar span {
  height: 9px;
  flex: 1;
  background: #ececec;
  border-radius: 4px;
}

.ml-rep-bar .active {
  background: #22c55e;
}

/* ESTATÍSTICAS */
.ml-stats-row {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 10px;
}

.ml-stat {
  flex: 1;
}

.ml-stat-strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.ml-stat-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.ml-stat-label {
  color: #374151;
  font-size: 0.95rem;
}
