/* Explain: Styles for UI components, header, location bar, and product cards. */
/* ===== Surfaces ===== */
.ml-panel {
    background: var(--surface-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.ml-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
}

.ml-page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.ml-link {
    color: var(--ml-blue);
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.ml-link:hover {
    color: var(--ml-blue-dark);
}

/* ===== Header ===== */
.ml-header {
    background: var(--ml-yellow);
    position: sticky;
    top: 0;
    z-index: 40;
}

.ml-subheader {
    background: var(--ml-yellow-dark);
}

.ml-logo {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.02em;
    color: #2d2d2d;
    white-space: nowrap;
}

.ml-logo i {
    font-size: 1.15rem;
    color: #2d2d2d;
}

.ml-logo:hover {
    color: #000;
}

.ml-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 30px;
    border-radius: 999px;
    border: 2px solid #2d2d2d;
    background: #fff;
    flex: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.ml-logo:hover .ml-logo-mark {
    border-color: #000;
}

.ml-logo-mark i {
    font-size: .95rem;
    color: var(--ml-blue);
}

.ml-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.ml-logo-text strong {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: -.01em;
    color: #2d2d2d;
}

.ml-logo-img {
    height: 44px;
    width: auto;
    flex: none;
}

.ml-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.ml-search-icon {
    position: absolute;
    left: .75rem;
    color: #999;
    font-size: .85rem;
    pointer-events: none;
}

.ml-search-input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    padding: .62rem .75rem .62rem 2.15rem;
    font-size: .9rem;
    border-radius: 6px;
    color: var(--text-color);
}

.ml-search-input::placeholder {
    color: #999;
}

.ml-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 38px;
    border-radius: 6px;
    color: #2d2d2d;
    font-size: 1.25rem;
    flex: none;
}

.ml-cart:hover {
    background: rgba(0, 0, 0, .07);
    color: #000;
}

.ml-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ml-blue);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-nav-link {
    font-size: .85rem;
    color: #4a4a4a;
    transition: color .2s;
    white-space: nowrap;
}

.ml-nav-link:hover {
    color: #000;
}

.ml-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: #2d2d2d;
    font-size: 1.1rem;
    cursor: pointer;
}

.ml-icon-btn:hover {
    background: rgba(0, 0, 0, .07);
}

/* ===== Mobile drawer ===== */
.ml-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    visibility: hidden;
}

.ml-drawer.is-open {
    visibility: visible;
}

.ml-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity .25s;
    border: 0;
    width: 100%;
    cursor: pointer;
}

.ml-drawer.is-open .ml-drawer-backdrop {
    opacity: 1;
}

.ml-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 84%;
    max-width: 320px;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .25s ease;
    overflow-y: auto;
}

.ml-drawer.is-open .ml-drawer-panel {
    transform: translateX(0);
}

.ml-drawer-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    font-size: .95rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.ml-drawer-link:hover {
    background: var(--surface-color);
}

.ml-drawer-link i {
    width: 1.1rem;
    text-align: center;
    color: var(--ml-blue);
}

/* ===== Product card ===== */
.ml-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

@media (min-width: 640px) {
    .ml-grid-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .ml-grid-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .ml-grid-cards {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ml-card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.ml-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
    transform: translateY(-2px);
}

.ml-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: .5rem;
    background: #fff;
}

.ml-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-badge-off {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: var(--ml-green);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .12rem .42rem;
    border-radius: 4px;
}

.ml-card-body {
    padding: .5rem .75rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .18rem;
    flex: 1;
}

.ml-card-cat {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    align-self: flex-start;
    max-width: 100%;
    background: var(--ml-blue-light);
    color: var(--ml-blue);
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .16rem .45rem;
    border-radius: 4px;
    margin-bottom: .3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background .2s;
}

.ml-card-cat:hover {
    background: #d6e6ff;
}

.ml-card-condition {
    font-size: .7rem;
    color: var(--text-muted);
}

.ml-card-title {
    font-size: .85rem;
    color: var(--text-color);
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}

.ml-card-title:hover {
    color: var(--ml-blue);
}

.ml-card-oldprice {
    font-size: .72rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.ml-card-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
}

.ml-card-installments {
    font-size: .75rem;
    color: var(--ml-green);
}

.ml-card-shipping {
    font-size: .75rem;
    color: var(--ml-green);
    font-weight: 600;
}

.ml-badge-full {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: var(--ml-green);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .12rem .42rem;
    border-radius: 4px;
    white-space: nowrap;
}

.ml-badge-full i {
    font-size: .62rem;
}

.ml-card-delivery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--ml-green);
}

.ml-card-pix {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    font-size: .74rem;
    font-weight: 600;
    color: var(--ml-green);
}

.ml-badge-pix {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
    background: var(--ml-green);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .12rem .42rem;
    border-radius: 4px;
    white-space: nowrap;
}

.ml-badge-pix i {
    font-size: .6rem;
}

/* ===== Buttons ===== */
.ml-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--ml-blue);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .7rem 1rem;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}

.ml-btn-primary:hover {
    background: var(--ml-blue-dark);
    color: #fff;
}

.ml-btn-primary:disabled {
    opacity: .6;
    cursor: default;
}

.ml-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--ml-blue-light);
    color: var(--ml-blue);
    font-weight: 600;
    font-size: .9rem;
    padding: .7rem 1rem;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}

.ml-btn-secondary:hover {
    background: #d6e6ff;
}

.ml-btn-add {
    width: 100%;
    margin-top: auto;
    padding-top: .55rem;
    background: var(--ml-blue-light);
    color: var(--ml-blue);
    font-weight: 600;
    font-size: .8rem;
    padding: .5rem .6rem;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    transition: background .2s;
}

.ml-btn-add:hover {
    background: #d6e6ff;
}

.ml-btn-add:disabled {
    opacity: .6;
    cursor: default;
}

/* ===== Hero carousel ===== */
.ml-hero-swiper {
    border-radius: var(--radius-card);
    overflow: hidden;
}

.ml-slide {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .ml-slide {
        min-height: 340px;
    }
}

.ml-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .48) 55%, rgba(0, 0, 0, .12) 100%);
}

.ml-slide-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    max-width: 540px;
    color: #fff;
}

@media (min-width: 768px) {
    .ml-slide-content {
        padding: 2.5rem;
    }
}

.ml-slide-eyebrow {
    display: inline-block;
    background: var(--ml-yellow);
    color: #333;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .18rem .55rem;
    border-radius: 4px;
}

.ml-slide-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: .6rem;
}

@media (min-width: 768px) {
    .ml-slide-title {
        font-size: 2rem;
    }
}

.ml-slide-text {
    font-size: .9rem;
    color: rgba(255, 255, 255, .9);
    margin-top: .5rem;
}

.ml-hero-swiper .swiper-pagination-bullet-active {
    background: var(--ml-yellow);
}

.ml-hero-swiper .swiper-button-next,
.ml-hero-swiper .swiper-button-prev {
    color: #fff;
}

/* ===== Hero side promos ===== */
.ml-promo {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 150px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
    transition: transform .2s, box-shadow .2s;
}

.ml-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

.ml-promo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .78) 100%);
}

.ml-promo-content {
    position: relative;
    z-index: 1;
    display: block;
    padding: 1rem;
    color: #fff;
}

.ml-promo-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}

.ml-promo-text {
    display: block;
    font-size: .8rem;
    color: rgba(255, 255, 255, .9);
    margin-top: .15rem;
}

@media (min-width: 1024px) {
    .ml-promo {
        flex: 1;
    }
}

/* ===== Offers countdown + carousel ===== */
.ml-countdown {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--ml-blue-light);
    color: var(--ml-blue);
    font-weight: 700;
    font-size: .82rem;
    padding: .25rem .6rem;
    border-radius: 6px;
}

.ml-countdown i {
    font-size: .8rem;
}

.ml-offers-swiper {
    overflow: hidden;
}

.ml-offers-swiper .swiper-slide {
    height: auto;
}

.ml-offers-swiper .ml-card {
    height: 100%;
}

.ml-offers-swiper .swiper-pagination {
    position: static;
    margin-top: 1rem;
}

.ml-offers-swiper .swiper-pagination-bullet-active {
    background: var(--ml-blue);
}

/* ===== Categories ===== */
.ml-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
}

.ml-cat-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--ml-blue);
    box-shadow: var(--shadow-card);
    transition: transform .2s, box-shadow .2s;
}

.ml-cat:hover .ml-cat-icon {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}

.ml-cat span {
    font-size: .8rem;
    color: var(--text-color);
    line-height: 1.2;
}

/* ===== Benefits ===== */
.ml-benefit {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.ml-benefit i {
    font-size: 1.35rem;
    color: var(--ml-blue);
    margin-top: .1rem;
}

.ml-benefit h3 {
    font-size: .92rem;
    font-weight: 600;
    color: var(--text-color);
}

.ml-benefit p {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .15rem;
}

/* ===== Filters ===== */
.ml-filter-chip {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: .45rem .55rem;
    border-radius: 6px;
    font-size: .85rem;
    color: var(--text-color);
    transition: background .2s, color .2s;
}

.ml-filter-chip:hover {
    background: var(--surface-color);
    color: var(--ml-blue);
}

.ml-filter-chip.is-active {
    background: var(--ml-blue-light);
    color: var(--ml-blue);
    font-weight: 600;
}

/* ===== Forms ===== */
.ml-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: .3rem;
}

.ml-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: .65rem .75rem;
    font-size: .9rem;
    background: #fff;
    color: var(--text-color);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.ml-input:focus {
    border-color: var(--ml-blue);
    box-shadow: 0 0 0 3px rgba(52, 131, 250, .15);
}

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

/* ===== Cart ===== */
.ml-cart-thumb {
    width: 72px;
    height: 72px;
    flex: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: .25rem;
}

.ml-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-cart-thumb i {
    color: var(--text-muted);
    font-size: 1.4rem;
}

.ml-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.ml-qty button {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 0;
    cursor: pointer;
    color: var(--ml-blue);
    font-size: .9rem;
}

.ml-qty button:hover {
    background: var(--ml-blue-light);
}

.ml-qty button:disabled {
    color: #ccc;
    cursor: default;
}

.ml-qty span {
    min-width: 42px;
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
}

.ml-remove {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-size: .9rem;
    padding: .35rem;
    border-radius: 6px;
}

.ml-remove:hover {
    color: var(--ml-red);
    background: var(--surface-color);
}

/* ===== Breadcrumb ===== */
.ml-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--text-muted);
}

.ml-breadcrumb a:hover {
    color: var(--ml-blue);
}

/* ===== Product detail ===== */
.ml-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    aspect-ratio: 1 / 1;
}

.ml-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-detail-desc p {
    margin-bottom: .8rem;
    font-size: .92rem;
    line-height: 1.65;
    color: var(--text-color);
}

.ml-detail-desc ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin-bottom: .8rem;
    font-size: .92rem;
    line-height: 1.6;
}

/* ===== Footer ===== */
.ml-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.ml-footer h3 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: .5rem;
}

.ml-footer a {
    font-size: .85rem;
    color: var(--text-muted);
    transition: color .2s;
}

.ml-footer a:hover {
    color: var(--ml-blue);
}

.ml-footer-bottom {
    border-top: 1px solid var(--border-color);
    font-size: .8rem;
    color: var(--text-muted);
}

/* ===== Toasts ===== */
.ml-toast-wrap {
    position: fixed;
    z-index: 80;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: calc(100vw - 2rem);
}

.ml-toast {
    background: #fff;
    border-left: 4px solid var(--ml-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    border-radius: 6px;
    padding: .75rem 1rem;
    font-size: .85rem;
    color: var(--text-color);
    animation: mlToastIn .25s ease;
}

.ml-toast.is-error {
    border-left-color: var(--ml-red);
}

.ml-toast.is-success {
    border-left-color: var(--ml-green);
}

@keyframes mlToastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Top promo banner (Mercado Livre style) ===== */
.ml-topbanner {
    background: linear-gradient(90deg, var(--ml-yellow) 0%, #FFD400 50%, var(--ml-yellow) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.ml-topbanner-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--ml-blue);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .18rem .5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.ml-topbanner-text {
    font-size: .82rem;
    font-weight: 600;
    color: #333;
}

.ml-topbanner-cta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ml-blue-dark);
    white-space: nowrap;
    transition: color .2s;
}

.ml-topbanner-cta:hover {
    color: #1c4a94;
    text-decoration: underline;
}

/* ===== Pix copy code ===== */
.ml-pix-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    max-width: 340px;
    margin-top: .65rem;
    padding: .72rem 1rem;
    border: 0;
    border-radius: 6px;
    background: var(--ml-blue-light);
    color: var(--ml-blue);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.ml-pix-copy:hover {
    background: #d6e6ff;
}

.ml-pix-copy.is-copied {
    background: var(--ml-green);
    color: #fff;
}

/* ===== WhatsApp floating button ===== */
.ml-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 56;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .85rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
    transition: background .2s, transform .2s;
}

.ml-whatsapp:hover {
    background: #1EBE5A;
    color: #fff;
    transform: translateY(-2px);
}

.ml-whatsapp i {
    font-size: 1.3rem;
}

@media (max-width: 480px) {
    .ml-whatsapp {
        padding: .9rem;
    }

    .ml-whatsapp-text {
        display: none;
    }
}

.ml-pix-float {
    position: fixed;
    right: 1rem;
    bottom: 5.5rem;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--ml-blue);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .8rem 1.1rem;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.ml-pix-float[hidden] {
    display: none;
}

.ml-pix-float:hover {
    background: var(--ml-blue-dark);
}

.ml-pix-float.is-copied {
    background: var(--ml-green);
}

@media (max-width: 480px) {
    .ml-pix-float {
        left: 1rem;
        right: 1rem;
        justify-content: center;
    }
}

/* ===== Pix payment page ===== */
.ml-badge-pending {
    display: inline-flex;
    align-items: center;
    background: #FFF4D6;
    color: #8A5A12;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .2rem .5rem;
    border-radius: 4px;
}

.ml-qr-frame {
    width: 220px;
    height: 220px;
    padding: .6rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-pix-total {
    font-size: 1rem;
    color: var(--text-color);
}

.ml-pix-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8rem;
    line-height: 1.5;
    word-break: break-all;
    resize: vertical;
}

.ml-btn-primary.is-copied,
.ml-btn-primary.is-copied:hover {
    background: var(--ml-green);
}

/* ===== Pix payment page (Mercado Livre style) ===== */
.ml-order-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: var(--surface-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: .85rem 1rem;
}

.ml-pix-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 1rem 1.5rem;
    background: #E9F7F5;
    border-bottom: 1px solid var(--border-color);
}

.ml-pix-word {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.03em;
    color: #159a8c;
    line-height: 1;
}

.ml-steps {
    counter-reset: ml-step;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ml-steps li {
    position: relative;
    counter-increment: ml-step;
    padding-left: 2.35rem;
    font-size: .88rem;
    color: var(--text-color);
    line-height: 1.45;
}

.ml-steps li::before {
    content: counter(ml-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--ml-blue-light);
    color: var(--ml-blue);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-safe-note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.ml-safe-note i {
    color: var(--ml-green);
    margin-top: .1rem;
}

/* ===== Account shortcut in the header ===== */
.ml-account-area {
    display: inline-flex;
    align-items: center;
    gap: .1rem;
    flex: none;
}

.ml-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 40px;
    min-width: 40px;
    padding: 0 .45rem;
    border-radius: 6px;
    color: #2d2d2d;
    font-size: .85rem;
    font-weight: 500;
}

.ml-account:hover {
    background: rgba(0, 0, 0, .07);
    color: #000;
}

.ml-account i {
    font-size: 1rem;
}

.ml-account-text {
    display: none;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .ml-account-text {
        display: inline;
    }
}

button.ml-drawer-link {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .95rem;
    color: var(--text-color);
    text-align: left;
}

/* ===== Login page (marketplace style) ===== */
.ml-login-shell {
    background: var(--surface-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.ml-login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .65rem;
    padding: 1.75rem 1.35rem;
    background: linear-gradient(140deg, #2968C8 0%, #3483FA 55%, #1C4A94 100%);
    color: #fff;
}

@media (min-width: 1024px) {
    .ml-login-brand {
        padding: 3rem 2.5rem;
    }
}

.ml-login-logo {
    width: 132px;
    height: auto;
    object-fit: contain;
}

.ml-login-brand-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

@media (min-width: 768px) {
    .ml-login-brand-title {
        font-size: 1.85rem;
    }
}

.ml-login-brand-text {
    font-size: .92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
    max-width: 46ch;
}

.ml-login-benefits {
    display: grid;
    gap: .6rem;
    margin-top: .4rem;
}

.ml-login-benefits li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .95);
}

.ml-login-benefits i {
    color: var(--ml-yellow);
    margin-top: .18rem;
}

.ml-login-panel {
    padding: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
    .ml-login-panel {
        padding: 2rem 2.25rem;
    }
}

.ml-input-code {
    letter-spacing: .4em;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* ===== Location bar (Mercado Livre style) ===== */
.ml-locbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.ml-locbar-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .15rem .35rem;
    border-radius: 4px;
    color: var(--text-color);
    font-size: .82rem;
    font-family: inherit;
}

.ml-locbar-btn:hover {
    background: var(--ml-blue-light);
}

.ml-locbar-btn .fa-location-dot {
    color: var(--ml-blue);
}

.ml-locbar-label {
    color: var(--text-muted);
}

.ml-locbar-city {
    font-weight: 700;
    white-space: nowrap;
}

.ml-locbar-caret {
    font-size: .65rem;
    color: var(--text-muted);
    transition: transform .2s;
}

.ml-locbar.is-open .ml-locbar-caret {
    transform: rotate(180deg);
}

.ml-locbar-note {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: var(--ml-green);
    font-weight: 600;
}

.ml-locbar-cta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ml-blue);
    white-space: nowrap;
}

.ml-locbar-cta:hover {
    color: var(--ml-blue-dark);
}

.ml-locbar-panel {
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
    padding-top: .75rem;
}

.ml-locbar-panel[hidden] {
    display: none;
}

.ml-locbar-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-color);
}

.ml-locbar-title i {
    color: var(--ml-blue);
}

/* ===== Avaliações ===== */
.ml-review-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--ml-star);
    font-size: .95rem;
}

.ml-review {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: .9rem 1rem;
    background: #fff;
}