
    /* ==========================================================================
       DESIGN TOKENS & SYSTEM VARIABLES (Andes UI Mobile Pattern)
       ========================================================================== */
    :root {
      --ml-yellow: #fff159;
      --ml-blue: #3483fa;
      --ml-blue-hover: #2968c8;
      --ml-blue-active: #1f4e96;
      --ml-blue-tint: rgba(65, 137, 230, 0.15);
      --ml-green: #00a650;
      --ml-green-tint: rgba(0, 166, 80, 0.1);
      --ml-orange: #ff7733;
      
      --text-main: rgba(0, 0, 0, 0.9);
      --text-secondary: rgba(0, 0, 0, 0.55);
      --text-muted: rgba(0, 0, 0, 0.35);
      --text-light: #ffffff;
      
      --bg-page: #ffffff;
      --bg-card: #ffffff;
      --bg-neutral-light: #f5f5f5;
      --bg-divider: #ededed;
      --border-color: #e6e6e6;
      
      --radius-sm: 4px;
      --radius-md: 6px;
      --radius-lg: 8px;
      --radius-pill: 9999px;
      
      --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: var(--font-family);
      background-color: #f0f0f0;
      color: var(--text-main);
      font-size: 14px;
      line-height: 1.35;
      padding-bottom: 76px;
      display: flex;
      justify-content: center;
    }

    .mobile-app-wrapper {
      width: 100%;
      max-width: 480px;
      background: var(--bg-page);
      min-height: 100vh;
      box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
      position: relative;
    }

    a {
      color: var(--ml-blue);
      text-decoration: none;
    }

    button {
      font-family: inherit;
      border: none;
      outline: none;
      background: transparent;
      cursor: pointer;
    }

    /* ==========================================================================
       HEADER MOBILE (Amarelo + Logo da Loja 512x512 compactada + Busca)
       ========================================================================== */
    .mobile-header {
      background-color: var(--ml-yellow);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    .header-top-row {
      display: flex;
      align-items: center;
      padding: 8px 10px;
      gap: 8px;
    }

    .btn-header-back {
      display: flex;
      align-items: center;
      justify-content: center;
      color: #333;
      padding: 2px;
      flex-shrink: 0;
    }

    /* FOTO DA LOGO PEQUENA AO LADO DA BARRA DE PESQUISA (TAM 512x512 RENDERIZADA EM 36x36) */
    .header-store-logo-wrapper {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: #ffffff;
      overflow: hidden;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
      border: 1px solid rgba(0, 0, 0, 0.08);
    }
    .header-store-logo-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .mobile-search-box {
      flex: 1;
      height: 36px;
      background: #ffffff;
      border-radius: var(--radius-pill);
      display: flex;
      align-items: center;
      padding: 0 12px;
      gap: 6px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
      min-width: 0;
    }
    .mobile-search-box svg {
      color: #777;
      flex-shrink: 0;
    }
    .mobile-search-box input {
      border: none;
      outline: none;
      width: 100%;
      font-size: 13px;
      color: var(--text-main);
      background: transparent;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .header-icons {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }
    .btn-header-icon {
      position: relative;
      color: #333;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cart-count {
      position: absolute;
      top: -5px;
      right: -6px;
      background: var(--ml-blue);
      color: #fff;
      font-size: 9px;
      font-weight: 700;
      padding: 1px 4px;
      border-radius: var(--radius-pill);
    }

    /* Linha do CEP / Localização */
    .header-cep-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 12px 7px;
      font-size: 12px;
      color: var(--text-secondary);
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      cursor: pointer;
    }
    .header-cep-left {
      display: flex;
      align-items: center;
      gap: 5px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      flex: 1;
    }
    .header-cep-left strong {
      color: var(--text-main);
    }

    /* ==========================================================================
       TOPO DO PRODUTO: STATUS & TÍTULO
       ========================================================================== */
    .product-top-status { display: none; }

    .product-mobile-title {
      padding: 4px 16px 8px;
      font-size: 17px;
      font-weight: 600;
      line-height: 1.3;
      color: var(--text-main);
    }

    .mobile-rating-row {
      padding: 0 16px 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
    }
    .stars-mini {
      color: var(--ml-blue);
      display: flex;
      gap: 1px;
    }
    .rating-num {
      font-weight: 600;
      color: var(--text-secondary);
    }
    .rating-reviews-qty {
      color: var(--text-muted);
    }

    /* ==========================================================================
       CARROSSEL TOUCH / SWIPE DE FOTOS (ANTI-GLITCH / ZERO LAYOUT SHIFT)
       ========================================================================== */
    .mobile-carousel-container {
      position: relative;
      width: 100%;
      height: 350px;
      min-height: 350px;
      background: #ffffff;
      overflow: hidden;
      touch-action: pan-y;
      display: flex;
      flex-direction: column;
    }

    .carousel-counter-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: rgba(0, 0, 0, 0.65);
      color: #ffffff;
      font-size: 11px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: var(--radius-pill);
      z-index: 10;
      backdrop-filter: blur(2px);
    }

    .carousel-floating-actions {
      position: absolute;
      top: 10px;
      right: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 10;
    }
    .btn-floating-circle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #ffffff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--ml-blue);
      transition: transform 0.15s, background 0.15s;
    }
    .btn-floating-circle:active {
      transform: scale(0.92);
      background: #f8f8f8;
    }

    .carousel-track {
      display: flex;
      width: 100%;
      height: 310px;
      flex: 1;
      transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
      cursor: grab;
      will-change: transform;
    }
    .carousel-track.dragging {
      transition: none !important;
    }
    .carousel-slide {
      flex: 0 0 100%;
      min-width: 100%;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px 16px;
      background: #ffffff;
      box-sizing: border-box;
    }
    .carousel-slide img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      user-select: none;
      -webkit-user-drag: none;
      display: block;
    }

    .carousel-dots {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      height: 30px;
      padding-bottom: 6px;
    }
    .carousel-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.18);
      transition: all 0.2s ease;
    }
    .carousel-dot.active {
      background: var(--ml-blue);
      width: 14px;
      border-radius: 3px;
    }

    /* ==========================================================================
       BLOCO DE PREÇO & OFERTAS
       ========================================================================== */
    .mobile-price-section {
      padding: 0 16px 14px;
    }

    .badge-event-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #000000;
      color: #ffffff;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
      padding: 2px 7px;
      border-radius: 3px;
      margin-bottom: 6px;
    }

    .old-price-row {
      font-size: 13px;
      color: var(--text-muted);
      text-decoration: line-through;
    }

    .main-price-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin-top: 2px;
    }
    .price-symbol {
      font-size: 18px;
      font-weight: 300;
      color: var(--text-main);
    }
    .price-integer {
      font-size: 32px;
      font-weight: 300;
      color: var(--text-main);
      line-height: 1;
    }
    .price-cents {
      font-size: 16px;
      font-weight: 300;
      color: var(--text-main);
    }
    .discount-percent {
      font-size: 14px;
      font-weight: 600;
      color: var(--ml-green);
    }

    .installments-row {
      margin-top: 4px;
      font-size: 14px;
      color: var(--ml-green);
    }
    .installments-row strong {
      font-weight: 600;
    }

    .payment-methods-link {
      display: inline-block;
      margin-top: 6px;
      font-size: 13px;
    }

    .mobile-divider {
      height: 8px;
      background: var(--bg-neutral-light);
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
    }

    /* ==========================================================================
       SEÇÃO DE FRETE, BRASIL API & TRANSPORTADORA J&T EXPRESS (MANAUS)
       ========================================================================== */
    .mobile-shipping-section {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .origin-manaus-badge { display: none; }

    .shipping-card-row {
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }
    .shipping-icon-wrapper {
      color: var(--ml-green);
      flex-shrink: 0;
      margin-top: 2px;
    }
    .shipping-info-main {
      flex: 1;
    }
    .shipping-highlight {
      color: var(--ml-green);
      font-weight: 600;
      font-size: 14px;
      line-height: 1.35;
    }
    .shipping-carrier-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 4px;
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 400;
    }
    .shipping-carrier-tag strong {
      color: var(--text-main);
      font-weight: 600;
    }

    .shipping-subtext {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 6px;
    }
    .shipping-subtext a {
      color: var(--ml-blue);
      font-weight: 500;
    }

    /* WIDGET CALCULADOR DE CEP COM BRASIL API */
    .shipping-calc-box {
      background: #fafafa;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 12px;
      margin-top: 8px;
      transition: all 0.2s ease;
    }
    .shipping-calc-input-row {
      display: flex;
      gap: 8px;
    }
    .shipping-cep-field {
      flex: 1;
      height: 40px;
      padding: 0 12px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      font-size: 14px;
      outline: none;
      background: #ffffff;
      font-family: inherit;
    }
    .shipping-cep-field:focus {
      border-color: var(--ml-blue);
    }
    .btn-calc-cep {
      height: 40px;
      padding: 0 16px;
      background: var(--ml-blue);
      color: #ffffff;
      font-size: 13px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .btn-calc-cep:active {
      background: var(--ml-blue-active);
    }

    /* Card de Resultado do Endereço (BrasilAPI) */
    .shipping-result-card {
      margin-top: 10px;
      padding: 10px;
      background: #ffffff;
      border-radius: var(--radius-sm);
      border: 1px solid #d4edda;
      font-size: 12px;
      color: #333;
      display: none;
      line-height: 1.45;
    }
    .shipping-result-card.error {
      border-color: #f5c6cb;
      background: #fff8f8;
      color: #721c24;
    }
    .shipping-address-title {
      font-weight: 600;
      color: #155724;
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 4px;
    }
    .shipping-address-detail {
      color: #444;
      margin-bottom: 6px;
    }

    /* ==========================================================================
       ESTOQUE, QUANTIDADE & BOTÕES DE AÇÃO
       ========================================================================== */
    .mobile-actions-section {
      padding: 0 16px 18px;
    }

    .stock-label {
      font-size: 14px;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }
    .stock-pill-urgent {
      color: #e37222;
      font-size: 14px;
      font-weight: 400;
    }

    .mobile-quantity-btn {
      width: 100%;
      height: 44px;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 0 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 14px;
      color: var(--text-main);
      background: #ffffff;
      margin-bottom: 14px;
    }
    .mobile-quantity-btn strong {
      font-weight: 600;
    }

    /* BOTÕES DE COMPRA COM REDIRECIONAMENTO AO CHECKOUT */
    .mobile-cta-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .btn-mobile-buy {
      width: 100%;
      height: 48px;
      background: var(--ml-blue);
      color: #ffffff;
      font-size: 16px;
      font-weight: 600;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
    }
    .btn-mobile-buy:active {
      background: var(--ml-blue-active);
    }

    .btn-mobile-cart { display: none; }
    .btn-mobile-cart:active {
      background: rgba(65, 137, 230, 0.25);
    }

    /* ==========================================================================
       BENEFÍCIOS E SEGURANÇA
       ========================================================================== */
    .mobile-benefits-list {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .benefit-item {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.35;
    }
    .benefit-item svg {
      color: var(--text-muted);
      flex-shrink: 0;
      margin-top: 2px;
    }
    .benefit-item strong {
      color: var(--ml-blue);
      font-weight: 500;
    }

    /* ==========================================================================
       INFORMAÇÕES SOBRE O VENDEDOR & REPUTAÇÃO
       ========================================================================== */
    .mobile-seller-section {
      padding: 18px 16px;
    }
    .seller-title-row {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 12px;
    }
    .seller-profile-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }
    .seller-avatar-img {
      width: 50px;
      height: 50px;
      border-radius: 8px;
      object-fit: contain;
      background: #ffffff;
      border: 1px solid var(--border-color);
      flex-shrink: 0;
      padding: 2px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }