@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --ml-yellow: #fff159;
    --ml-bg: #f5f5f5;
    --ml-white: #ffffff;
    --ml-text-black: #333333;
    --ml-text-gray: #666666;
    --ml-text-light: #999999;
    --ml-blue: #3483fa;
    --ml-blue-light: #e3f2fd;
    --ml-green: #00a650;
    --ml-orange: #ff7733;
    --ml-border: #e6e6e6;
    --font-proxima: 'Inter', -apple-system, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-proxima);
    background-color: var(--ml-white);
    color: var(--ml-text-black);
    line-height: 1.25;
    font-size: 11.5px;
    overflow-x: hidden;
}

/* Single-page: uma view visível por vez */
.app-view {
    display: none;
    min-height: 100vh;
}

.app-view.active {
    display: block;
}

body.checkout-bg {
    background-color: #f5f5f5;
}

/* Header & Nav */
.header {
    background-color: var(--ml-yellow);
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ml-logo img {
    height: 32px;
    display: block;
}

.search-bar {
    flex: 1;
    background: var(--ml-white);
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.search-icon {
    color: #bbb;
    font-size: 14px;
    margin-right: 10px;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--ml-text-gray);
    font-weight: 300;
}

.header-icons {
    display: flex;
    gap: 12px;
}

.icon-wrapper {
    position: relative;
    padding: 4px;
}

.badge-red {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #e60012;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 50%;
    border: 1.5px solid var(--ml-yellow);
}

.badge-none {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 10px;
    font-weight: 600;
}

/* Top Address Bar */
.address-bar {
    background-color: var(--ml-yellow);
    padding: 4px 12px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
}

/* Product Info Header */
.product-header {
    padding: 16px 16px 8px;
}

.product-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: var(--ml-text-gray);
    font-size: 12px;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ml-text-gray);
}

.rating-score {
    margin-right: 2px;
}

.stars-list {
    display: flex;
    color: var(--ml-blue);
    font-size: 9px;
    gap: 1px;
}

.product-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-mais-vendido {
    background: #ff7733;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
}

.tag-category-rank {
    font-size: 11.5px;
    color: var(--ml-blue);
    text-decoration: none;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    margin-top: 10px;
    color: rgba(0,0,0,0.8);
}

/* Photo Gallery */
.gallery {
    position: relative;
    padding: 20px 0;
}

.photo-counter {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.05);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #333;
    z-index: 10;
}

.main-photo-container {
    width: 100%;
    height: 380px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #fff;
    scroll-behavior: smooth;
    position: relative;
}

.main-photo-container::-webkit-scrollbar {
    display: none;
}

.carousel-img {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: center;
}

.photo-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.photo-btn {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: none;
}

.photo-btn.share {
    position: absolute;
    bottom: -320px;
    right: 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ebebeb;
}

.p-dot.active {
    background: var(--ml-blue);
}

/* Variations Section */
.variations-container {
    padding: 20px 16px;
    border-top: 1px solid #eee;
}

.variation-item {
    margin-bottom: 24px;
}

.variation-value {
    font-weight: 700;
}

/* Color Selector Visual */
.color-selector-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
}

.color-card {
    flex: 0 0 100px;
    border: 1px solid var(--ml-border);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.color-card.active {
    border: 2px solid var(--ml-blue);
    padding: 7px;
}

.color-card-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.color-card-name {
    font-size: 11px;
    color: #333;
    font-weight: 400;
}

.variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.size-guide {
    color: var(--ml-blue);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.size-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-btn {
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    min-width: 60px;
    text-align: center;
}

.size-btn.active {
    border: 1.5px solid var(--ml-blue);
    background: #eef5ff;
    color: var(--ml-blue);
}

.fit-info {
    color: var(--ml-blue);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    cursor: pointer;
}

.measurement-box {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #666;
    margin: 12px 0;
    font-weight: 300;
}

#measurementValue {
    color: #666;
}

/* Trust / Logo Banner */
.trust-banner-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.trust-logo-img {
    height: 20px;
}

.trust-text {
    font-size: 13px;
    color: #333;
}

.trust-text span {
    color: var(--ml-blue);
    font-weight: 600;
}

/* Price Details */
.price-container {
    padding: 10px 16px 4px;
}

.main-price {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -1px;
}

.installment-options {
    font-size: 16px;
    margin-top: 4px;
    color: #00a650;
    font-weight: 500;
}

.cents-sup {
    font-size: 0.6em;
    font-weight: 300;
    margin-left: 2px;
    vertical-align: super;
}

/* Payment Combine Box (White Card) */
.payment-card {
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 16px 12px;
}

.payment-circles {
    display: flex;
    align-items: center;
}

.p-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #efefef;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.p-circle.pix {
    margin-left: -12px;
    z-index: 2;
    box-shadow: 0 0 0 2px white;
}

.p-card-body {
    flex: 1;
}

.p-card-title {
    font-size: 15px;
    font-weight: 400;
}

.p-card-desc {
    font-size: 12px;
    color: var(--ml-text-gray);
    margin-top: 2px;
    line-height: 1.2;
}

.p-card-arrow {
    color: var(--ml-blue);
    font-size: 16px;
}

/* Links and Info */
.link-padding {
    padding: 0 16px;
    margin-bottom: 24px;
}

.blue-link {
    color: var(--ml-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.shipping-info-box {
    padding: 0 16px 20px;
}

.tag-frete-gratis {
    background: var(--ml-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 15px;
}

.ship-item {
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ship-subtext {
    font-size: 13px;
    color: var(--ml-text-gray);
    margin-top: 4px;
}

.text-green {
    color: var(--ml-green);
    font-weight: 500;
}

.text-orange-time {
    color: #ff7733;
}

.full-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--ml-text-gray);
}

.full-logo {
    color: var(--ml-green);
    font-weight: 800;
    font-style: italic;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.stock-status {
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
}

/* Action Buttons */
.cta-container {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary-ml {
    background: var(--ml-blue);
    color: white;
    height: 48px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary-ml:active {
    background: #2968c8;
}

.btn-secondary-ml {
    background: var(--ml-blue-light);
    color: var(--ml-blue);
    height: 48px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary-ml:active {
    background: #d4e7f7;
}

/* Seller and Trust */
.seller-row {
    padding: 24px 16px 16px;
    font-size: 14px;
}

.trust-list {
    padding: 0 16px 40px;
    font-size: 13px;
    line-height: 1.5;
}

.trust-row {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.trust-ico {
    color: #999;
    font-size: 13px;
    min-width: 20px;
    text-align: center;
    margin-top: 2px;
}

.trust-txt span, .trust-txt a {
    color: var(--ml-blue);
    text-decoration: none;
}

.interaction-row {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.interaction-btn {
    background: none;
    border: none;
    color: var(--ml-blue);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Features Table */
.features-section {
    padding: 0 16px;
}

.features-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 25px;
}

.features-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.table-container {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.table-row:last-child {
    border-bottom: none;
}

.table-label {
    width: 35%;
    background: #f5f5f5;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.table-value {
    width: 65%;
    padding: 12px 16px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.registry-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.toggle-characteristics {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ml-blue);
    font-size: 15px;
    background: white;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Hidden container for additional characteristics */
.hidden-features {
    display: none;
}

.hidden-features.show {
    display: block;
}

/* Product Details */
.product-details {
    padding: 0 16px 40px;
}

.details-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 25px;
}

.details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.detail-caption {
    font-size: 10px;
    color: #333;
    font-weight: 600;
    margin-top: -8px;
    margin-bottom: 15px;
}

.details-row-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Description and Payments */
.description-section {
    padding: 30px 16px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.description-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
}

.description-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    font-weight: 300;
}

.legal-notice {
    margin-top: 25px;
}

.legal-title {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-bottom: 8px;
}

.legal-bullet {
    font-size: 16px;
    color: #666;
    font-weight: 300;
}

.payment-methods-section {
    padding: 30px 16px 60px;
    border-top: 1px solid #eee;
}

.payment-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
}

.payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.payment-logo-box {
    width: calc(16.66% - 8px); /* 6 per row */
    min-width: 40px;
    height: 28px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.payment-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CEP & Address Pages */
.cep-container {
    padding: 20px 24px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.back-btn {
    border: none;
    background: none;
    color: var(--ml-blue);
    font-size: 24px;
    margin-bottom: 30px;
    width: fit-content;
    cursor: pointer;
}

.page-title-big {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 40px;
}

.form-field {
    margin-bottom: 24px;
}

.field-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.input-ml {
    width: 100%;
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
}

.input-ml::placeholder {
    color: #bbb;
}

.btn-blue-solid {
    width: 100%;
    height: 48px;
    background: var(--ml-blue);
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    margin-top: 10px;
    cursor: pointer;
}

/* Size Guide View Styles */
.size-guide-header {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #eee;
    background: white;
}

.back-btn-simple {
    background: none;
    border: none;
    color: #3483fa;
    font-size: 18px;
    padding: 8px;
    margin-right: 16px;
}

.size-guide-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.size-guide-content {
    background: white;
    padding: 20px 16px;
    min-height: calc(100vh - 56px);
}

.sg-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.sg-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 300;
}

.sg-table-wrapper {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.sg-table {
    width: 100%;
    border-collapse: collapse;
}

.sg-table th {
    background: #f5f5f5;
    padding: 12px;
    font-size: 12px;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sg-table td {
    padding: 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.sg-table tr td:first-child, .sg-table tr th:first-child {
    background-color: #e3f2fd;
    width: 35%;
}

.sg-table tr:last-child td {
    border-bottom: none;
}

.sg-how-to {
    margin-top: 20px;
}

.sg-step {
    display: flex;
    gap: 16px;
}

.sg-step-num {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sg-step-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.sg-step-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    font-weight: 300;
}

.sg-step-img {
    margin-left: auto;
}

/* Links and Info */

/* Address Form Page Specific */
.address-header {
    background: var(--ml-yellow);
    padding: 10px 16px;
}

.address-main {
    padding: 20px 16px;
}

.address-title {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 24px;
}

.contact-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 4px;
}

.contact-sub {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: -45px;
    margin-bottom: 25px;
    padding-right: 16px;
    font-size: 14px;
}

.footer-yellow-banner {
    background: #ffdb15;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.footer-yellow-banner img {
    height: 40px;
}

.footer-yellow-banner p {
    font-size: 14px;
    font-weight: 600;
}

.footer-links-container {
    padding: 30px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.footer-link-item {
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.footer-user-row {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright-box {
    padding: 0 16px 40px;
    font-size: 10px;
    color: #999;
    line-height: 1.4;
}

.footer-copyright-box a {
    color: #999;
    text-decoration: none;
}

/* Checkout Flow Extension */
.checkout-container {
    padding: 20px 16px;
    background: #f5f5f5;
    min-height: 100vh;
}

.checkout-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
    padding: 0 8px;
}

.white-card-ml {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.pulse-card-ml {
    animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
    50% { transform: scale(1.01); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    100% { transform: scale(1); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
}

.card-row-ml {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-title-ml {
    font-weight: 600;
    font-size: 16px;
}

.card-text-ml {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
}

.card-subtext-ml {
    font-size: 13px;
    color: #999;
}

/* Delivery Selection */
.delivery-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.radio-ml {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-ml.selected {
    border-color: #3483fa;
}

.radio-dot-ml {
    width: 10px;
    height: 10px;
    background: #3483fa;
    border-radius: 50%;
}

.price-ml {
    margin-left: auto;
    font-size: 15px;
}

.price-ml.free {
    color: var(--ml-green);
    font-weight: 500;
}

/* Payment Selection */
.payment-item-ml {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.payment-item-ml:last-child {
    border-bottom: none;
}

.payment-icon-ml {
    width: 36px;
    height: 36px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-info-ml {
    flex: 1;
}

.payment-name {
    font-size: 15px;
}

.payment-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Summary Bar */
.summary-bar-ml {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.summary-row-ml {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
}

.summary-total {
    font-weight: 600;
}

/* Toggle Switch */
.switch-ml {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-ml input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-ml {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider-ml:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-ml {
    background-color: #3483fa;
}

input:checked + .slider-ml:before {
    transform: translateX(20px);
}

.cents-ml {
    font-size: 0.6em;
    vertical-align: super;
}

/* Address Page Reorganization Styles */
.header-logo-sm {
    height: 28px;
}

.icon-ml {
    font-size: 18px;
    color: #333;
}

.form-section {
    margin-bottom: 30px;
}

.input-relative {
    position: relative;
}

.field-link-top {
    position: absolute;
    right: 0;
    top: -22px;
    color: var(--ml-blue);
    font-size: 12px;
    text-decoration: none;
}

.row-split {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.flex-2 { flex: 2; }
.flex-1 { flex: 1; }

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    justify-content: flex-end;
}

.checkbox-label {
    font-size: 13px;
    color: #666;
}

.checkbox-ml {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.app-promo-banner {
    background: #fff159;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.app-promo-banner img {
    height: 40px;
}

.app-promo-banner span {
    font-size: 14px;
    font-weight: 600;
}

.footer-nav {
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-links-grid {
    padding: 30px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.footer-links-grid a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.footer-user-auth {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #eee;
}

.footer-user-auth i {
    font-size: 24px;
    color: #999;
}

.footer-user-auth span {
    font-size: 14px;
    font-weight: 600;
}

.footer-legal {
    padding: 30px 16px 40px;
    background: #fff;
    border-top: 1px solid #eee;
}

.legal-links {
    margin-bottom: 20px;
    line-height: 2;
}

.legal-links a {
    color: #999;
    text-decoration: none;
    font-size: 11px;
    margin-right: 10px;
}

.legal-links i {
    color: #999;
    font-size: 11px;
}

.footer-legal .copyright {
    font-size: 10px;
    color: #999;
    margin-bottom: 5px;
}

.footer-legal .address-text {
    font-size: 10px;
    color: #999;
    line-height: 1.4;
}

/* Loading Popup */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.spinner-ml {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--ml-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Review Page */
.review-summary-box {
    padding: 0 8px;
    margin-bottom: 30px;
}

.summary-item-ml {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-item-ml.total {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
}

.strikethrough-ml {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 300;
    margin-right: 5px;
}

.economy-msg {
    color: var(--ml-green);
    font-size: 13px;
    text-align: right;
    margin-top: 2px;
}

.section-title-sm {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 25px 8px 10px;
}

.info-card-ml {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.info-icon-ml {
    font-size: 18px;
    color: #333;
    width: 38px;
    height: 38px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content-ml {
    flex: 1;
}

.info-main-ml {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-sub-ml {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.info-link-ml {
    border-top: 1px dotted #eee;
    padding-top: 12px;
    margin-top: 15px;
}

.product-review-ml {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.product-review-thumb {
    width: 48px;
    height: 48px;
    border: 1px solid #eee;
    border-radius: 4px;
    object-fit: contain;
}

.review-payment-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

/* Cookie Footer */
.cookie-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 10000;
}

.cookie-msg {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 16px;
}

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

.cookie-btns {
    display: flex;
    gap: 10px;
}

.c-btn {
    flex: 1;
    height: 44px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: var(--ml-blue-light);
    color: var(--ml-blue);
}
/* Banner Mattel */
.mattel-banner {
    width: calc(100% - 32px);
    margin: 20px 16px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.mattel-banner img {
    width: 100%;
    display: block;
}

/* Questions Section */
.questions-section {
    padding: 30px 16px;
    border-top: 1px solid #eee;
}

.section-title-md {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
}

.btn-ask-ml {
    background: #3483fa;
    color: white;
    width: 100%;
    height: 48px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    cursor: pointer;
}

.link-box-ml {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ml-blue);
    font-size: 13px;
    text-decoration: none;
    margin-top: 20px;
}

/* Reviews Section */
.reviews-section {
    padding: 30px 16px;
    border-top: 1px solid #eee;
}

.reviews-rating-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.score-num {
    font-size: 44px;
    color: var(--ml-blue);
    font-weight: 500;
}

.score-stars {
    display: flex;
    color: var(--ml-blue);
    gap: 2px;
    font-size: 18px;
}

.score-count {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.rating-bars {
    flex: 1;
}

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

.bar-bg {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
}

.bar-fill {
    height: 100%;
    background: #666;
    border-radius: 2px;
}

.bar-num {
    font-size: 11px;
    color: #999;
    min-width: 8px;
}

.bar-star {
    font-size: 9px;
    color: #ccc;
}
/* Opinions with Photos */
.opinions-photos-section {
    padding: 20px 0 30px 16px;
    border-top: 1px solid #eee;
}

.photo-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}

.opinion-photo-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.opinion-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.star-badge-ml {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

/* Featured Opinions */
.featured-opinions-section {
    padding: 30px 16px;
    border-top: 1px solid #eee;
}

.opinions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sub-label-ml {
    font-size: 12px;
    color: #999;
}

.btn-filter-ml {
    background: #e3edfb;
    color: #3483fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-review-card {
    margin-bottom: 40px;
}

.review-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-stars-sm {
    display: flex;
    gap: 2px;
    color: var(--ml-blue);
    font-size: 11px;
}

.review-info-sm {
    font-size: 11px;
    color: #999;
}

.user-review-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    margin-bottom: 15px;
    object-fit: cover;
}

.review-body-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 12px;
}

.review-translate-row {
    font-size: 12px;
    margin-bottom: 15px;
}

.text-gray-sm {
    color: #999;
}

.btn-useful-ml {
    background: white;
    border: 1px solid #eee;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Breadcrumbs Footer */
.breadcrumbs-footer {
    padding: 30px 16px;
    background: #fff;
    border-top: 1px solid #eee;
}

.breadcrumb-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

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

.breadcrumb-path i {
    color: #999;
    font-size: 10px;
}

/* App Promo */
.yellow-promo-bar {
    background: #fff159;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.handshake-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handshake-icon img {
    width: 32px;
}

.promo-text-ml {
    font-size: 16px;
    font-weight: 500;
}

/* Grid Footer */
.grid-footer {
    padding: 40px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.grid-footer a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

/* Legal Bottom */
.legal-footer-bottom {
    padding: 30px 16px 50px;
    border-top: 1px solid #eee;
    background: #fff;
}

.user-row-ml {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.user-row-ml i {
    font-size: 24px;
    color: #999;
}

.legal-text-ml {
    font-size: 11px;
    color: #999;
    line-height: 1.8;
}

.legal-links-row {
    margin-bottom: 15px;
}

.legal-links-row a {
    color: #666;
    text-decoration: none;
    margin-right: 8px;
}

.copyright-text-ml {
    margin-top: 15px;
    line-height: 1.4;
}

/* Entry Loader (Yellow) */
.entry-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff159; /* Mercado Livre Yellow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.entry-loader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner-ml-dark {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(0,0,0,0.05);
    border-top: 3px solid #3366cc; /* Azul ML para destacar no amarelo */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Pix Promo Notice */
.pix-promo-notice-ml {
    background: #e3edfb;
    color: #3483fa;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.pix-promo-notice-ml i {
    font-size: 16px;
}

/* Sticky Confirm Header (Yellow) */
.sticky-yellow-header {
    position: fixed;
    top: -60px; /* Hidden above */
    left: 0;
    width: 100%;
    height: 56px;
    background: #fff159;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: top 0.3s ease-out;
}

.sticky-yellow-header.visible {
    top: 0;
}

.back-btn-header {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    margin-right: 15px;
}

.header-title-ml {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* Sticky Confirm Footer */
.sticky-confirm-footer {
    position: fixed;
    bottom: -150px; /* Hidden below */
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 16px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    border-top: 1px solid #eee;
    transition: bottom 0.3s ease-out;
}

.sticky-confirm-footer.visible {
    bottom: 0;
}

.footer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.total-label {
    font-size: 18px;
    font-weight: 500;
}

.total-amount-col {
    text-align: right;
}

.strikethrough-footer {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}

.main-total-footer {
    font-size: 22px;
    font-weight: 500;
}

.economy-footer {
    font-size: 11px;
    color: #00a650;
    margin-top: 2px;
}

.btn-blue-solid-footer {
    width: 100%;
    height: 48px;
    background: #3483fa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Oferta Relâmpago Progress Bar */
.flash-sale-box-ml {
    margin-top: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    animation: flash-pulse 4s ease-in-out infinite;
}

@keyframes flash-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(191, 8, 17, 0); }
    50% { transform: scale(1.01); box-shadow: 0 4px 15px rgba(191, 8, 17, 0.1); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(191, 8, 17, 0); }
}

.flash-sale-info-ml {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.flash-tag-ml {
    background: #bf0811;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

.flash-tag-ml i {
    margin-right: 3px;
}

.flash-units-ml {
    color: #bf0811;
    font-weight: 600;
}

.flash-progress-bg-ml {
    width: 100%;
    height: 8px;
    background: #ffebeb;
    border-radius: 4px;
    overflow: hidden;
}

.flash-progress-fill-ml {
    width: 90%; /* Start almost full */
    height: 100%;
    background: linear-gradient(90deg, #e52d3d, #bf0811);
    border-radius: 4px;
    transition: width 2s ease-in-out;
}

/* Order Bump Styles - Minimalist ML Style */
.order-bump-container {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 16px;
    margin: 15px 0;
    position: relative;
}

.order-bump-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-bump-badge {
    color: #00a650;
    font-size: 12px;
    font-weight: 600;
}

.order-bump-timer {
    font-size: 12px;
    color: #666;
}

.order-bump-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.order-bump-checkbox-wrapper {
    margin-top: 4px;
}

.order-bump-checkbox-wrapper input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3483fa;
}

.order-bump-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.order-bump-info {
    flex: 1;
}

.order-bump-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
    font-weight: 500;
}

.order-bump-price {
    display: flex;
    gap: 6px;
    align-items: center;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.price-new {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.order-bump-size {
    margin-top: 8px;
}

.size-select {
    width: 100%;
    max-width: 150px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 13px;
    background: #fff;
}

.order-bump-footer {
    margin-top: 10px;
    font-size: 12px;
    color: #3483fa;
    font-weight: 500;
    cursor: pointer;
}
