/**
 * Mansão Maromba - Estilos dos Componentes
 * Menu lateral, Carrinho sidebar, Busca, Notificações
 */

/* ==================== VARIÁVEIS ==================== */

:root {
    --color-primary: #000000;
    --color-secondary: #E74C3C;
    --color-accent: #27AE60;
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-bg: #F8F9FA;
    --color-text: #2C3E50;
    --color-text-light: #64748B;
    --color-border: #E2E8F0;
    --color-white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition: all 0.3s ease;
}

.mm-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #000000;
    box-shadow: var(--shadow-sm);
}

.mm-topbar::after {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #f0007a 0%, #ff7a18 100%);
}

.mm-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (min-width: 768px) {
    .mm-topbar-inner {
        height: 80px;
        padding: 0 32px;
    }
}

.mm-topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.mm-topbar-logo {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.mm-topbar-logo img {
    height: 34px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .mm-topbar-logo img {
        height: 38px;
    }
}

.mm-best-sellers {
    background: #ffffff;
    padding-top: 36px;
}

.mm-best-sellers-head {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.mm-best-sellers-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: center;
    color: #000000;
}

.mm-best-sellers-body {
    padding-top: 0;
    padding-bottom: 8px;
}

.mm-carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 6px 4px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.mm-carousel .product-card {
    flex: 0 0 220px;
    scroll-snap-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.mm-carousel .product-card:hover {
    box-shadow: none;
    transform: none;
}

.mm-carousel .product-card-image {
    background: transparent;
    aspect-ratio: 3 / 4;
}

.mm-carousel .product-card-image img {
    padding: 0;
    object-fit: contain;
}

.mm-carousel .product-card-info {
    display: block;
    padding: 0.6rem 0.25rem 0;
    text-align: center;
}

.mm-carousel .product-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 0;
    margin-bottom: 0.25rem;
    color: #000000;
}

.mm-carousel .product-card-meta,
.mm-carousel .product-card-price-old,
.mm-carousel .product-card-installments,
.mm-carousel .product-card-pix,
.mm-carousel .product-card-actions {
    display: none;
}

.mm-carousel .product-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #000000;
}

.mm-launch-carousel-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.mm-launch-carousel {
    scroll-behavior: smooth;
}

.mm-launch-nav {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mm-launch-nav:disabled {
    opacity: 0.35;
}

@media (max-width: 768px) {
    .mm-carousel .product-card {
        flex-basis: 180px;
    }
    .mm-launch-carousel-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .mm-launch-nav {
        display: none;
    }
}

.mm-topbar-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #ffffff;
    transition: var(--transition);
}

.mm-topbar-menu:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mm-topbar-nav {
    display: none;
    align-items: center;
    gap: 22px;
    color: #ffffff;
    font-weight: 600;
}

.mm-topbar-nav a {
    opacity: 0.9;
    transition: var(--transition);
}

.mm-topbar-nav a:hover {
    opacity: 1;
}

.mm-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-topbar-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
}

.mm-topbar-icon:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mm-topbar-icon svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 900px) {
    .mm-topbar-nav {
        display: inline-flex;
    }
    .mm-topbar-menu {
        display: none;
    }
}

/* ==================== OVERLAY ==================== */

.menu-overlay,
.cart-overlay,
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.open,
.cart-overlay.open,
.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==================== MENU SIDEBAR ==================== */

.menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.menu-sidebar.open {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.menu-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.menu-close {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.menu-close:hover {
    background: var(--color-bg);
}

.menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.menu-item:hover {
    background: var(--color-bg);
}

.menu-item.active {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.menu-item svg {
    flex-shrink: 0;
}

.menu-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.menu-category {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.menu-category:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.menu-category.active {
    color: var(--color-primary);
    font-weight: 600;
}

.menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.menu-contact {
    margin-bottom: 1rem;
}

.menu-contact p {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.menu-contact a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.menu-contact a:hover {
    color: var(--color-primary);
}

.menu-social {
    display: flex;
    gap: 1rem;
}

.menu-social a {
    color: var(--color-text-light);
    transition: var(--transition);
}

.menu-social a:hover {
    color: var(--color-primary);
}

/* ==================== CART SIDEBAR ==================== */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 430px;
    max-width: 90vw;
    height: 100vh;
    height: var(--mm-vh, 100dvh);
    max-height: var(--mm-vh, 100dvh);
    background: var(--color-white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

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

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: sticky;
    top: 0;
    z-index: 2;
}

.cart-header-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.cart-close {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.cart-close:hover {
    background: var(--color-bg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.9rem;
    background: #f6f8fb;
}

#cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
}

#cart-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

#cart-empty p {
    margin-bottom: 1rem;
}

#cart-empty a {
    color: var(--color-primary);
    font-weight: 600;
}

.cart-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 0.65rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.cart-item-image {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cart-item-info {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.cart-item-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    align-items: start;
}

.cart-item-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.cart-item-price {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    font-weight: 700;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    padding: 2px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    color: #334155;
}

.qty-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.qty-value {
    min-width: 18px;
    text-align: center;
    font-weight: 900;
    color: #0f172a;
    font-size: 0.92rem;
}

.cart-item-line-total {
    font-weight: 900;
    color: #0f172a;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.cart-item-remove {
    width: 30px;
    height: 30px;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    cursor: pointer;
    color: #64748b;
    transition: var(--transition);
    display: grid;
    place-items: center;
}

.cart-item-remove:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff1f2;
}

.cart-footer {
    padding: 0.95rem 1rem;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
    position: sticky;
    bottom: 0;
    z-index: 2;
}

/* Mobile: keep checkout button above gesture bar */

@media (max-width: 768px) {
    .cart-footer {
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom) + var(--mm-vv-bottom-offset, 0px));
    }
    .cart-checkout-btn {
        margin-bottom: 0.35rem;
    }
}

/* ==================== TERMS POPUP (FIRST VISIT) ==================== */

.mm-terms-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: radial-gradient(900px 420px at 50% 20%, rgba(34, 197, 94, 0.18), rgba(0, 0, 0, 0) 60%), rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(8px);
}

.mm-terms-overlay.open {
    display: flex;
}

.mm-terms {
    width: min(560px, 92vw);
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46), 0 14px 30px rgba(0, 0, 0, 0.22);
    animation: mmTermsIn 220ms ease-out forwards;
}

@keyframes mmTermsIn {
    from {
        transform: translateY(14px) scale(0.985);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.mm-terms-banner {
    position: relative;
    background: #0b0b0b;
}

.mm-terms-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.mm-terms-body {
    padding: 18px 18px 16px 18px;
}

.mm-terms-kicker {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #166534;
}

.mm-terms-title {
    margin: 10px 0 6px;
    font-weight: 950;
    font-size: 1.3rem;
    color: #0f172a;
}

.mm-terms-sub {
    margin: 0 0 14px;
    color: rgba(15, 23, 42, 0.78);
    font-weight: 650;
    line-height: 1.35;
}

.mm-terms-age {
    margin: 10px 0 8px;
    font-weight: 900;
    color: #7f1d1d;
}

.mm-terms-link {
    color: #0f172a;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mm-terms-actions {
    display: grid;
    gap: 10px;
}

.mm-terms-accept {
    width: 100%;
    height: 52px;
    border-radius: 18px;
    border: 0;
    cursor: pointer;
    font-weight: 950;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
    box-shadow: 0 18px 34px rgba(22, 163, 74, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: var(--transition);
}

.mm-terms-accept:hover {
    transform: translateY(-1px);
    filter: saturate(1.05) brightness(1.02);
}

.mm-terms-accept:active {
    transform: translateY(0px);
}

.mm-terms-accept:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 3px;
}

.mm-terms-decline {
    width: 100%;
    height: 48px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    transition: var(--transition);
}

.mm-terms-decline:hover {
    background: rgba(15, 23, 42, 0.05);
}

.mm-terms-decline:focus-visible {
    outline: 3px solid rgba(15, 23, 42, 0.4);
    outline-offset: 3px;
}

.mm-age-warning {
    width: 100%;
    background: #7f1d1d;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 8px 16px;
    font-size: 0.75rem;
}

.mm-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    background: #111827;
    color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

.mm-cookie-text {
    font-size: 0.92rem;
    line-height: 1.4;
}

.mm-cookie-link {
    text-decoration: underline;
    font-weight: 700;
}

.mm-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mm-cookie-btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    border: 1px solid transparent;
}

.mm-cookie-accept {
    background: #22c55e;
    color: #0b1220;
}

.mm-cookie-reject {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.mm-cookie-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.6);
    outline-offset: 2px;
}

.cart-totals {
    margin-bottom: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.65rem 0.8rem;
    background: #f8fafc;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.cart-total-row.subtotal {
    color: var(--color-text-light);
}

.cart-total-row.discount {
    color: var(--color-success);
}

.cart-total-row.total {
    border-top: 1px solid var(--color-border);
    padding-top: 0.7rem;
    margin-top: 0.25rem;
    font-weight: 900;
    font-size: 1.25rem;
    color: #0f172a;
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.92rem 0.95rem;
    background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
    color: var(--color-white);
    border: none;
    border-radius: 18px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    box-shadow: 0 18px 34px rgba(22, 163, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    min-height: 66px;
}

.cart-checkout-btn:hover {
    filter: saturate(1.05) brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(22, 163, 74, 0.30);
}

.cart-checkout-btn:active {
    transform: translateY(0px);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.22);
}

.cart-checkout-btn:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 3px;
}

.cart-checkout-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: center;
}

.cart-checkout-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    flex: 0 0 auto;
    position: static;
}

.cart-checkout-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cart-checkout-title {
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.cart-checkout-sub {
    display: none;
}

.cart-checkout-amount {
    display: none;
}

.cart-continue {
    display: block;
    text-align: center;
    margin-top: 0.7rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.cart-continue:hover {
    color: var(--color-primary);
}

/* Cart Counter Badge */

.cart-counter,
[data-cart-counter] {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #22c55e;
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    display: none;
    align-items: center;
    justify-content: center;
}

@keyframes cartVibrate {
    0% {
        transform: translateZ(0) rotate(0deg) scale(1);
    }
    20% {
        transform: translateZ(0) rotate(-8deg) scale(1.03);
    }
    40% {
        transform: translateZ(0) rotate(8deg) scale(1.05);
    }
    60% {
        transform: translateZ(0) rotate(-6deg) scale(1.03);
    }
    80% {
        transform: translateZ(0) rotate(6deg) scale(1.02);
    }
    100% {
        transform: translateZ(0) rotate(0deg) scale(1);
    }
}

.cart-vibrate {
    animation: cartVibrate 0.6s ease;
    transform-origin: center;
}

/* ==================== SEARCH MODAL ==================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-modal.open {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 600px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal.open .search-container {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.search-header svg {
    color: var(--color-text-light);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-close-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    border-radius: var(--radius-md);
}

.search-close-btn:hover {
    background: var(--color-bg);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--color-bg);
}

.search-result-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.search-result-meta {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.search-result-price {
    font-weight: 600;
    color: var(--color-primary);
}

.search-result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.search-result-actions .product-card-btn {
    width: 140px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
}

.search-result-actions .product-card-btn svg {
    width: 14px;
    height: 14px;
}

.search-result-actions .product-card-btn-secondary svg {
    width: 12px;
    height: 12px;
}

.search-result-item {
    cursor: pointer;
}

.search-empty {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
}

/* ==================== TOAST NOTIFICATIONS ==================== */

.cart-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-toast-success {
    background: var(--color-success);
}

.cart-toast-warning {
    background: var(--color-warning);
}

.cart-toast-error {
    background: var(--color-error);
}

/* ==================== PRODUCT GRID ==================== */

.products-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.products-header {
    margin-bottom: 2rem;
}

.products-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.products-subtitle {
    color: var(--color-text-light);
}

.products-tools {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.products-filter-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.products-filter {
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    font-weight: 600;
    color: #111111;
}

.products-count {
    margin-left: auto;
    font-weight: 700;
    color: #111111;
}

.products-empty,
.products-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-text-light);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    background: #ffffff;
}

.products-empty strong,
.products-loading strong {
    display: block;
    font-size: 1rem;
    color: #111111;
    margin-bottom: 0.35rem;
}

.cart-toast-inline {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 84px;
    bottom: auto;
    z-index: 4;
}

.page-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0.75rem;
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.page-back:hover {
    color: var(--color-primary);
}

.page-title {
    margin: 0.5rem 0 0.25rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.page-count {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Product page: recommendations section */

.recommended {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.recommended-title {
    margin: 0;
    font-weight: 900;
    font-size: 22px;
    line-height: 1.2;
    color: #000000;
}

.recommended-controls {
    display: none;
    gap: 8px;
}

@media (min-width: 860px) {
    .recommended-controls {
        display: flex;
    }
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    cursor: pointer;
    font-weight: 900;
    color: rgba(17, 17, 17, 0.85);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.recommended-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.recommended-carousel::-webkit-scrollbar {
    height: 10px;
}

.recommended-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

.recommended-carousel .product-card {
    scroll-snap-align: start;
    flex: 0 0 78%;
}

@media (min-width: 540px) {
    .recommended-carousel .product-card {
        flex-basis: 46%;
    }
}

@media (min-width: 860px) {
    .recommended-carousel .product-card {
        flex-basis: 320px;
    }
}

/* =========================
   Hero Banner Carousel
   ========================= */

.mm-hero {
    position: relative;
    background: #000;
}

.mm-hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mm-hero-track::-webkit-scrollbar {
    height: 0;
}

.mm-hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    position: relative;
}

.mm-hero-slide picture,
.mm-hero-slide img {
    display: block;
    width: 100%;
}

.mm-hero-img {
    height: auto;
    object-fit: contain;
    background: #000;
    max-height: 520px;
}

.mm-hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mm-hero-btn:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
}

.mm-hero-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.mm-hero-btn.prev {
    left: 10px;
}

.mm-hero-btn.next {
    right: 10px;
}

.mm-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    padding: 0 12px;
}

.mm-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    padding: 0;
}

.mm-hero-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
    .mm-hero-img {
        max-height: 360px;
    }
    .mm-hero-btn {
        width: 40px;
        height: 40px;
    }
}

/* ==================== PRODUCT PAGE ==================== */

.mm-product .container {
    max-width: 1200px;
}

.mm-product .panel {
    position: relative;
}

.mm-product .btnPrimary {
    background: #22C55E;
    border-color: #22C55E;
    color: #ffffff;
}

.mm-product .btnPrimary:hover {
    filter: brightness(0.95);
}

.mm-product .btnSecondary {
    background: #ffffff;
    border-color: #111111;
    color: #111111;
}

.mm-product .btnSecondary:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ==================== HOME ==================== */

.mm-home-banner {
    background: #000000;
}

.mm-home-banner-link {
    display: block;
}

.mm-home-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Mantem o impacto visual do banner no mobile (evita ficar "achatado"). */

@media (max-width: 900px) {
    .mm-home-banner-link {
        min-height: 190px;
    }
    .mm-home-banner img {
        width: 100%;
        min-height: 190px;
        object-fit: cover;
        object-position: center;
    }
}

.mm-home-section {
    padding: 28px 16px;
}

@media (min-width: 1024px) {
    .mm-home-section {
        padding: 44px 32px;
    }
}

.mm-home-section .products-container {
    padding: 20px 0 0;
}

.mm-home-section-head {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.mm-home-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #111111;
}

.mm-home-section-link {
    color: rgba(17, 17, 17, 0.8);
    font-weight: 700;
    text-decoration: none;
}

.mm-home-section-link:hover {
    color: rgba(17, 17, 17, 1);
    text-decoration: underline;
}

.mm-category-cards {
    background: #ffffff;
}

.mm-category-cards-head {
    max-width: 1280px;
    margin: 0 auto 20px;
    text-align: center;
}

.mm-category-cards-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #111111;
}

.mm-category-cards-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.mm-category-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #f6f7f8;
    transition: var(--transition);
}

.mm-category-card img {
    width: 100%;
    height: auto;
    display: block;
}

.mm-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .mm-category-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .mm-category-cards-title {
        font-size: 1.5rem;
    }
}

/* ==================== CHECKOUT: SHIPPING + MODAL ==================== */

.mm-ship-methods {
    display: grid;
    gap: 12px;
}

.mm-ship-method {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    padding: 14px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
}

.mm-ship-method-selected {
    border-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9) inset;
}

.mm-ship-radio {
    margin-top: 6px;
}

.mm-ship-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mm-ship-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111111;
}

.mm-ship-icon {
    width: 22px;
    display: inline-flex;
    justify-content: center;
}

.mm-ship-price {
    font-weight: 900;
    color: rgba(17, 17, 17, 0.9);
}

.mm-ship-free {
    color: #16a34a;
}

.mm-ship-sub {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(17, 17, 17, 0.7);
    font-size: 13px;
}

.mm-ship-pill {
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
}

.mm-ship-pill-ok {
    background: #ecfdf5;
    border-color: rgba(22, 163, 74, 0.25);
    color: #16a34a;
}

.mm-ship-link {
    border: none;
    background: transparent;
    padding: 0;
    font-weight: 800;
    color: rgba(17, 17, 17, 0.9);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mm-ship-link:hover {
    color: #000000;
}

.mm-ship-result {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}

@media (max-width: 640px) {
    .mm-ship-title-row {
        align-items: flex-start;
        gap: 8px;
    }
    .mm-ship-title {
        flex-wrap: wrap;
        min-width: 0;
    }
    .mm-ship-sub {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.mm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.mm-modal-overlay.open {
    display: flex;
}

.mm-modal {
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.mm-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 0;
}

.mm-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #111111;
}

.mm-modal-sub {
    margin: 6px 0 0;
    color: rgba(17, 17, 17, 0.7);
    font-size: 13px;
}

.mm-modal-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: rgba(17, 17, 17, 0.7);
    padding: 6px 8px;
}

.mm-modal-close:hover {
    color: rgba(17, 17, 17, 1);
}

.mm-modal-body {
    padding: 16px;
}

.mm-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .mm-modal-grid {
        grid-template-columns: 1fr;
    }
}

.mm-field {
    display: grid;
    gap: 6px;
}

.mm-label {
    font-size: 13px;
    font-weight: 800;
    color: rgba(17, 17, 17, 0.85);
}

.mm-input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    font-size: 14px;
    box-sizing: border-box;
}

.mm-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.mm-help {
    font-size: 12px;
    color: rgba(17, 17, 17, 0.6);
}

.mm-modal-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.mm-btn {
    border-radius: 12px;
    border: 2px solid #111111;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
}

.mm-btn-primary {
    background: #111111;
    color: #ffffff;
}

.mm-btn-primary:hover {
    filter: brightness(0.95);
}

.mm-btn-secondary {
    background: #ffffff;
    color: #111111;
}

.mm-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mm-modal-result {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #16a34a;
    min-height: 18px;
}

/* Checkout: Aviso PIX (Carnaval) */

.mm-carnaval-note {
    margin: 12px 0 14px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(234, 88, 12, 0.25);
    background: rgba(234, 88, 12, 0.08);
    color: rgba(124, 45, 18, 0.95);
    display: grid;
    gap: 4px;
    font-size: 13px;
}

.mm-carnaval-note strong {
    font-weight: 900;
    letter-spacing: 0.01em;
}

.pixBox {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.10);
    color: #14532d;
}

.pixBox-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pixBox-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #22C55E;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pixBox-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.pixBox-price {
    font-weight: 900;
    font-size: 14px;
    line-height: 1.1;
}

.pixBox-sub {
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.9;
}

.qtyRow {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qtyLabel {
    font-size: 13px;
    color: rgba(17, 17, 17, 0.75);
    font-weight: 600;
}

.qtyStepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.qtyStepBtn {
    width: 40px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.qtyStepBtn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.qtyInput {
    width: 54px;
    height: 36px;
    border: 0;
    text-align: center;
    font-weight: 800;
    outline: none;
}

.qtyTotal {
    font-size: 13px;
    color: rgba(17, 17, 17, 0.8);
}

.payRow {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payLabel {
    font-size: 12px;
    font-weight: 700;
    color: rgba(17, 17, 17, 0.65);
}

.payIcons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.payLogoItem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    padding: 2px 6px;
}

.payLogoImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.payPill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    font-size: 11px;
    font-weight: 800;
    color: rgba(17, 17, 17, 0.8);
}

.shipBox {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

/* Product pages: shipping calculator removed permanently. */

.mm-product .shipBox {
    display: none !important;
}

.shipTitle {
    font-weight: 900;
    color: #111111;
}

.shipSub {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(17, 17, 17, 0.65);
}

.shipLabel {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(17, 17, 17, 0.7);
}

.shipRow {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.shipInput {
    flex: 1;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0 12px;
    outline: none;
}

.shipInput:focus {
    border-color: rgba(0, 0, 0, 0.35);
}

.shipBtn {
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.shipBtn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.shipResult {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(17, 17, 17, 0.75);
}

.trustRow {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 680px) {
    .trustRow {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trustItem {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 12px;
    font-weight: 700;
    color: rgba(17, 17, 17, 0.75);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: #ffffff;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.product-card-image img.is-loaded {
    opacity: 1;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #22c55e;
    color: #ffffff;
    border: 1px solid #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-bottom-right-radius: var(--radius-lg);
}

.product-card-info {
    padding: 1rem;
}

.product-card-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--color-primary);
}

.product-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.product-card-price-old {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
}

.product-card-installments {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.product-card-pix {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #DCFCE7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.5rem;
}

.product-card-pix::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22C55E;
    border-radius: 50%;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.product-card-btn-primary {
    background: #000000;
    color: #ffffff;
    border: none;
}

.product-card-btn-primary:hover {
    background: #111111;
}

.product-card-btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #111111;
}

.product-card-btn-secondary:hover {
    background: #f6f7f8;
    color: #000000;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-width: none;
        height: 100vh;
        height: var(--mm-vh, 100dvh);
        max-height: var(--mm-vh, 100dvh);
    }
    .cart-header,
    .cart-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .cart-content {
        padding: 0.75rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom) + var(--mm-vv-bottom-offset, 0px));
    }
    .cart-item {
        grid-template-columns: 64px 1fr;
        padding: 0.7rem;
        gap: 0.65rem;
    }
    .cart-item-image {
        width: 64px;
        height: 64px;
    }
    .cart-item-title {
        font-size: 0.86rem;
    }
    .cart-item-line-total {
        font-size: 1rem;
    }
    .cart-checkout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        padding: 0.75rem;
        min-height: 64px;
    }
    .cart-checkout-left {
        justify-content: center;
        padding: 0;
        gap: 0.5rem;
    }
    .cart-checkout-icon {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    .cart-checkout-text {
        align-items: center;
        text-align: center;
    }
    .cart-checkout-title {
        white-space: normal;
        font-size: 0.82rem;
        line-height: 1.12;
    }
    .cart-checkout-sub {
        display: none;
    }
    .cart-checkout-amount {
        display: none;
    }
    .menu-sidebar {
        width: 100%;
        max-width: none;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-card-info {
        padding: 0.75rem;
    }
    .product-card-title {
        font-size: 0.875rem;
        min-height: 40px;
    }
    .product-card-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }
    .cart-toast {
        left: 20px;
        right: 20px;
        bottom: 80px;
    }
    .cart-toast-inline {
        left: 10px;
        right: 10px;
        top: 76px;
    }
}

@media (max-width: 480px) {
    .cart-footer {
        padding-bottom: calc(1.1rem + env(safe-area-inset-bottom) + var(--mm-vv-bottom-offset, 0px) + 12px);
    }
    .cart-checkout-btn {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .product-card-price {
        font-size: 1rem;
    }
}

/* Defensive mobile menu layer to avoid style overrides from utility CSS bundles. */

.menu-overlay {
    background: rgba(0, 0, 0, 0.48) !important;
    z-index: 1000 !important;
}

.menu-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 88vw !important;
    background: #ffffff !important;
    color: #0f172a !important;
    z-index: 1001 !important;
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.22) !important;
    transform: translateX(-100%);
}

.menu-sidebar.open {
    transform: translateX(0) !important;
}

@media (max-width: 768px) {
    .menu-sidebar {
        width: 86vw !important;
        max-width: 360px !important;
    }
}

.mm-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 24px 16px;
}

.mm-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.mm-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
}

.mm-footer-nav a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mm-footer-nav a:hover {
    opacity: 0.8;
}

.mm-footer-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.mm-footer-badges {
    display: flex;
    justify-content: center;
}

.mm-footer-badges img {
    width: min(980px, 100%);
    height: auto;
}

.mm-footer-badge {
    background: #ffffff;
    color: #111827;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mm-footer-platform {
    font-size: 0.7rem;
    opacity: 0.75;
}

.mm-footer-platform strong {
    font-weight: 700;
}

.mm-footer-copy {
    font-size: 0.7rem;
    opacity: 0.75;
}

.mm-checkout-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 1024px) {
    .mm-checkout-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }
}

.mm-checkout-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.mm-checkout-card + .mm-checkout-card {
    margin-top: 20px;
}

.mm-checkout-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mm-checkout-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.mm-checkout-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.mm-checkout-items {
    display: grid;
    gap: 16px;
}

.mm-checkout-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}

.mm-checkout-item-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #ffffff;
}

.mm-checkout-item-info {
    flex: 1;
}

.mm-checkout-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mm-checkout-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.mm-checkout-item-remove {
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 4px;
}

.mm-checkout-item-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin: 4px 0 10px;
}

.mm-checkout-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mm-checkout-item-total {
    font-weight: 700;
    color: #0f172a;
}

.mm-checkout-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 10px;
}

.mm-checkout-qty-btn {
    border: 0;
    background: transparent;
    color: #0f172a;
    padding: 4px;
}

.mm-checkout-qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

.mm-checkout-empty {
    display: grid;
    gap: 8px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
}

.mm-checkout-empty-title {
    font-weight: 800;
    color: #0f172a;
}

.mm-checkout-empty-subtitle {
    font-size: 0.9rem;
    color: #64748b;
}

.mm-checkout-empty-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
}

.mm-checkout-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: #0f172a;
}

.mm-checkout-shipping-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.mm-checkout-fields {
    display: grid;
    gap: 12px;
}

.mm-checkout-fields[data-mode="pickup"] {
    opacity: 0.6;
    pointer-events: none;
}

@media (min-width: 768px) {
    .mm-checkout-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mm-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.mm-field input {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: #ffffff;
    color: #0f172a;
}

.mm-field input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.mm-field-error {
    min-height: 16px;
    font-size: 0.75rem;
    color: #b91c1c;
}

.mm-field-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.mm-checkout-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.mm-checkout-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0f172a;
}

.mm-checkout-radio input {
    accent-color: #16a34a;
}

.mm-checkout-payment {
    display: grid;
    gap: 10px;
}

.mm-checkout-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}

.mm-checkout-payment-name {
    font-weight: 700;
    color: #0f172a;
}

.mm-checkout-badge {
    margin-left: auto;
    background: #111827;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mm-checkout-payment-note {
    font-size: 0.85rem;
    color: #64748b;
}

.mm-checkout-summary {
    position: sticky;
    top: 16px;
}

.mm-checkout-summary-items {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.mm-checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #334155;
}

.mm-checkout-summary-empty {
    font-size: 0.85rem;
    color: #64748b;
}

.mm-checkout-summary-totals {
    display: grid;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    margin-bottom: 16px;
}

.mm-checkout-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #0f172a;
}

.mm-checkout-row.total {
    font-size: 1.05rem;
    font-weight: 800;
}

.mm-checkout-errors {
    display: none;
    font-size: 0.85rem;
    color: #b91c1c;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.mm-checkout-errors.show {
    display: block;
}

.mm-checkout-errors.success {
    color: #065f46;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
}

.mm-checkout-submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 800;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    color: #0b1220;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mm-checkout-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mm-checkout-disclaimer {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 640px) {
    .mm-checkout-item {
        flex-direction: column;
    }
    .mm-checkout-item-image {
        width: 100%;
        height: 160px;
    }
    .mm-checkout-item-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .mm-checkout-summary {
        position: static;
    }
}

.mm-checkout-progress {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.mm-checkout-progress-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mm-checkout-steps {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
}

.mm-checkout-step {
    position: relative;
    color: #94a3b8;
    font-weight: 600;
}

.mm-checkout-step.is-active {
    color: #111111;
}

.mm-checkout-step.is-complete {
    color: #16a34a;
}

.mm-checkout-secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #111111;
    font-weight: 600;
}

.mm-checkout-secure-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

.mm-checkout-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}

.mm-checkout-layout {
    display: grid;
    gap: 28px;
}

@media (min-width: 1024px) {
    .mm-checkout-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
        align-items: start;
    }
}

.mm-checkout-main h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    margin: 0 0 12px;
}

.mm-checkout-form {
    display: grid;
    gap: 22px;
}

.mm-checkout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mm-checkout-grid-2 {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.mm-checkout-grid-3 {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.mm-checkout-checkbox {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
    color: #111111;
}

.mm-checkout-checkbox-inline {
    margin-top: 24px;
}

.mm-checkout-link {
    font-size: 0.8rem;
    color: #111111;
    text-decoration: underline;
}

.mm-checkout-primary {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    background: #22c55e;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mm-checkout-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mm-checkout-shipping-options {
    display: grid;
    gap: 10px;
}

.mm-checkout-shipping-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.mm-checkout-shipping-option.is-selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.mm-checkout-shipping-option input {
    accent-color: #22c55e;
}

.mm-checkout-shipping-option strong {
    display: block;
    font-size: 0.9rem;
    color: #111111;
}

.mm-checkout-shipping-option span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
}

.mm-checkout-shipping-price {
    font-weight: 700;
    color: #111111;
}

.mm-checkout-payment-pix {
    display: grid;
    gap: 10px;
}

.mm-checkout-payment-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mm-checkout-payment-data {
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
}

.mm-checkout-link-button {
    border: 0;
    background: transparent;
    color: #111111;
    text-decoration: underline;
    font-weight: 600;
    padding: 0;
    width: fit-content;
}

.mm-checkout-success {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f9ff 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.mm-checkout-open-pix {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #0f172a;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    width: 100%;
    min-height: 42px;
}

.mm-checkout-success-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mm-checkout-success-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.mm-checkout-success-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
}

.mm-checkout-success-description {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
}

.mm-checkout-success-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mm-checkout-success-box {
    border: 1px solid #d7e6f7;
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    font-size: 0.8rem;
    color: #475569;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.mm-checkout-qr {
    display: grid;
    place-items: center;
    gap: 8px;
}

.mm-checkout-qr-caption {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.mm-checkout-qr img {
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    padding: 10px;
    background: #ffffff;
}

.mm-checkout-copy {
    display: grid;
    gap: 10px;
    text-align: left;
}

.mm-checkout-copy label {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}

.mm-checkout-copy textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #0f172a;
    background: #ffffff;
    word-break: break-all;
}

.mm-checkout-copy button {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    width: 100%;
    min-height: 42px;
    transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.mm-checkout-copy button:hover {
    background: #1e293b;
}

.mm-checkout-copy button:active {
    transform: translateY(1px);
}

.mm-checkout-copy button.is-copied {
    background: #15803d;
}

.mm-checkout-copy button.is-error {
    background: #b91c1c;
}

.mm-checkout-copy-feedback {
    min-height: 18px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #166534;
}

.mm-checkout-copy-feedback.is-error {
    color: #b91c1c;
}

.mm-checkout-success-status {
    font-size: 0.78rem;
    color: #1e293b;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 7px 12px;
    line-height: 1;
    align-self: flex-start;
}

.mm-checkout-success-status.is-pending {
    color: #92400e;
    border-color: #fcd34d;
    background: #fffbeb;
}

.mm-checkout-success-status.is-processing {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.mm-checkout-success-status.is-paid {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
}

.mm-checkout-success-status.is-failed,
.mm-checkout-success-status.is-expired,
.mm-checkout-success-status.is-error {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.mm-pix-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mm-pix-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mm-pix-modal-dialog {
    position: relative;
    width: min(760px, 96vw);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    border-radius: 18px;
}

.mm-pix-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mm-checkout-success-modal {
    margin-top: 0;
}

.mm-pix-modal-meta {
    display: grid;
    gap: 10px;
}

.mm-pix-modal-total {
    display: grid;
    gap: 4px;
    text-align: center;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
}

.mm-pix-modal-total span {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

.mm-pix-modal-total strong {
    font-size: 1.24rem;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.mm-pix-modal-timer {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 8px 12px;
    text-align: center;
}

.mm-pix-modal-timer.is-expired {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.mm-pix-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mm-pix-modal-dismiss,
.mm-pix-modal-keep {
    border: 0;
    min-height: 44px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 10px 14px;
}

.mm-pix-modal-dismiss {
    background: #e2e8f0;
    color: #0f172a;
}

.mm-pix-modal-keep {
    background: #0f172a;
    color: #ffffff;
}

body.mm-pix-modal-open {
    overflow: hidden;
}

.mm-checkout-summary {
    position: sticky;
    top: 16px;
}

.mm-checkout-summary-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: grid;
    gap: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mm-checkout-summary-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
}

.mm-checkout-summary-items {
    display: grid;
    gap: 14px;
}

.mm-checkout-summary-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: start;
}

.mm-checkout-summary-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f5f9;
}

.mm-checkout-summary-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111111;
}

.mm-checkout-summary-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.mm-checkout-summary-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111;
}

.mm-checkout-summary-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.mm-summary-qty {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.mm-summary-remove {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.75rem;
    text-decoration: underline;
}

.mm-checkout-coupon {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #111111;
    text-align: left;
}

.mm-checkout-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #111111;
}

.mm-checkout-row.total {
    font-size: 1rem;
    font-weight: 700;
}

.mm-checkout-empty {
    display: grid;
    gap: 8px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
}

.mm-checkout-empty-title {
    font-weight: 700;
    color: #111111;
}

.mm-checkout-empty-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

.mm-checkout-empty-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    font-size: 0.8rem;
    text-decoration: none;
}

@media (max-width: 768px) {
    .mm-checkout-progress-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .mm-checkout-summary {
        position: static;
    }
    .mm-checkout-summary-item {
        grid-template-columns: 48px 1fr;
    }
    .mm-checkout-success {
        padding: 14px;
        gap: 12px;
    }
    .mm-checkout-success-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .mm-checkout-success-grid {
        grid-template-columns: 1fr;
    }
    .mm-checkout-qr img {
        width: min(100%, 210px);
    }
    .mm-checkout-copy textarea {
        min-height: 106px;
        font-size: 0.82rem;
    }
    .mm-checkout-copy button {
        min-height: 46px;
    }
    .mm-pix-modal {
        padding: 8px;
        align-items: flex-end;
    }
    .mm-pix-modal-dialog {
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: calc(100dvh - 8px);
    }
    .mm-pix-modal-close {
        top: 8px;
        right: 8px;
    }
    .mm-pix-modal-actions {
        grid-template-columns: 1fr;
    }
    .mm-pix-modal-dismiss,
    .mm-pix-modal-keep {
        min-height: 46px;
    }
}

.mm-product-page {
    padding: 28px 16px 60px;
    background: #f5f5f5;
}

.mm-product-container {
    max-width: 1100px;
    margin: 0 auto;
}

.mm-product-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
    color: #111111;
    margin-bottom: 18px;
}

.mm-product-breadcrumbs a {
    color: #111111;
    text-decoration: none;
}

.mm-product-grid {
    display: grid;
    gap: 40px;
    align-items: start;
}

@media (min-width: 1024px) {
    .mm-product-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.mm-product-media {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 10px 0 0;
}

.mm-product-image {
    width: 100%;
    max-width: 360px;
    height: 520px;
    object-fit: contain;
    background: transparent;
}

.mm-product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mm-product-thumb {
    border: 1px solid #d9d9d9;
    background: #ffffff;
    border-radius: 6px;
    padding: 4px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mm-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-product-social {
    display: flex;
    gap: 14px;
    color: #111111;
    justify-content: center;
}

.mm-product-social a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.mm-product-social svg {
    width: 18px;
    height: 18px;
}

.mm-product-info {
    display: grid;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.mm-product-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.2;
}

.mm-product-price {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-top: 2px;
}

.mm-product-compare {
    font-size: 0.9rem;
    color: #777777;
    text-decoration: line-through;
}

.mm-product-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
}

.mm-product-installments {
    color: #111111;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.mm-product-more {
    font-size: 0.8rem;
    color: #111111;
    text-decoration: none;
}

.mm-product-purchase {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.mm-product-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cfcfcf;
    padding: 6px 10px;
    background: #ffffff;
}

.mm-qty-btn {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mm-qty-btn svg {
    width: 14px;
    height: 14px;
}

.mm-qty-value {
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.mm-product-buy {
    min-width: 220px;
    border: 0;
    padding: 10px 18px;
    background: #3bb54a;
    color: #ffffff;
    font-weight: 700;
}

.mm-product-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mm-product-shipping {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
}

.mm-product-shipping-title {
    font-weight: 700;
    color: #111111;
}

.mm-product-shipping-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    max-width: 320px;
}

.mm-product-shipping-form input {
    border: 1px solid #cfcfcf;
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.mm-product-shipping-form button {
    border: 1px solid #cfcfcf;
    padding: 8px 12px;
    background: #ffffff;
    color: #111111;
    font-weight: 600;
    border-radius: 8px;
}

.mm-product-shipping-link a {
    font-size: 0.8rem;
    color: #111111;
    text-decoration: underline;
}

.mm-product-shipping-feedback {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f766e;
    min-height: 18px;
}

.mm-product-shipping-feedback.is-error {
    color: #b91c1c;
}

.mm-product-shipping-options {
    display: grid;
    gap: 8px;
}

.mm-shipping-option-card {
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mm-shipping-option-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.mm-shipping-option-head h4 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.mm-shipping-option-head strong {
    font-size: 0.9rem;
    color: #111111;
}

.mm-shipping-option-card p {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #475569;
}

.mm-product-shipping-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111111;
}

.mm-product-short {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
    margin-top: 10px;
}

.mm-product-description {
    font-size: 0.9rem;
    color: #111111;
    line-height: 1.6;
}

.mm-product-similar {
    margin-top: 56px;
    text-align: center;
}

.mm-product-similar h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 30px;
}

.mm-similar-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.mm-similar-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mm-similar-arrow:disabled {
    opacity: 0.4;
}

.mm-similar-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.mm-similar-track::-webkit-scrollbar {
    display: none;
}

.mm-similar-card {
    flex: 0 0 auto;
    width: calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
    scroll-snap-align: start;
}

.mm-similar-image {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 240px;
}

.mm-similar-image img {
    max-width: 170px;
    max-height: 230px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mm-similar-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111111;
}

.mm-similar-price {
    font-size: 0.85rem;
    color: #111111;
}

.mm-similar-buy {
    border: 0;
    background: transparent;
    font-size: 0.85rem;
    color: #111111;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.mm-footer-reference {
    background: #000000;
}

.mm-footer-reference .mm-footer-inner {
    align-items: center;
    gap: 18px;
}

.mm-footer-reference .mm-footer-nav {
    justify-content: center;
    gap: 18px;
}

.mm-footer-reference .mm-footer-nav a {
    font-weight: 600;
    color: #ffffff;
}

.mm-footer-reference .mm-footer-payments {
    justify-content: center;
}

.mm-footer-reference .mm-footer-badges {
    display: flex;
    justify-content: center;
}

.mm-footer-reference .mm-footer-badges img {
    width: min(980px, 100%);
    height: auto;
}

.mm-footer-reference .mm-footer-platform {
    color: #ffffff;
    font-size: 0.75rem;
    opacity: 0.8;
}

.mm-footer-reference .mm-footer-copy {
    color: #ffffff;
    font-size: 0.75rem;
    opacity: 0.8;
    text-align: center;
}

@media (max-width: 768px) {
    .mm-product-page {
        padding: 24px 14px 50px;
    }
    .mm-product-grid {
        gap: 26px;
    }
    .mm-product-image {
        height: 380px;
    }
    .mm-product-buy {
        width: 100%;
    }
    .mm-product-purchase {
        flex-direction: column;
        align-items: flex-start;
    }
    .mm-similar-slider {
        grid-template-columns: 1fr;
    }
    .mm-similar-arrow {
        display: none;
    }
    .mm-similar-card {
        width: calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 540px) {
    .mm-similar-card {
        width: 80%;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .mm-topbar-inner {
        height: 60px;
        gap: 12px;
        padding: 0 12px;
    }
    .mm-topbar-left {
        gap: 10px;
    }
    .mm-topbar-logo img {
        height: 30px;
    }
    .mm-topbar-actions {
        gap: 6px;
    }
    .mm-topbar-menu,
    .mm-topbar-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .mm-topbar-icon svg {
        width: 20px;
        height: 20px;
    }
    .cart-counter {
        min-width: 18px;
        height: 18px;
        right: 4px;
        top: 4px;
    }
    .mm-home-section {
        padding: 22px 14px;
    }
    .mm-best-sellers {
        padding-top: 24px;
    }
    .mm-best-sellers-title {
        font-size: 1.18rem;
    }
    .mm-category-cards-title {
        font-size: 1.12rem;
        letter-spacing: 0.03em;
    }
    .mm-carousel {
        gap: 14px;
        padding-bottom: 10px;
    }
    .products-container {
        padding: 1.1rem 0.8rem 1.4rem;
    }
    .products-header {
        margin-bottom: 1.2rem;
    }
    .products-tools {
        gap: 10px;
    }
    .products-filter-label,
    .products-count {
        width: 100%;
        margin-left: 0;
    }
    .products-filter {
        width: 100%;
        min-height: 44px;
        font-size: 0.92rem;
    }
    .page-top {
        padding: 1rem 0.8rem 0.6rem;
    }
    .page-title {
        font-size: 1.45rem;
    }
    .page-count {
        font-size: 0.86rem;
    }
    .product-card-title {
        min-height: 44px;
    }
    .product-card-actions {
        gap: 8px;
    }
    .product-card-btn {
        min-height: 44px;
    }
    .cart-item-bottom {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .cart-item-quantity {
        padding: 3px;
    }
    .qty-btn,
    .cart-item-remove {
        width: 36px;
        height: 36px;
    }
    .mm-product-title {
        font-size: 1.36rem;
    }
    .mm-product-current {
        font-size: 1.34rem;
    }
    .mm-product-image {
        max-width: 320px;
        height: 320px;
    }
    .mm-product-qty {
        padding: 8px 10px;
        gap: 10px;
    }
    .mm-qty-btn {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: 1px solid #d4d4d8;
        background: #ffffff;
    }
    .mm-product-buy {
        min-height: 48px;
        border-radius: 10px;
    }
    .mm-product-description {
        font-size: 0.94rem;
        line-height: 1.65;
    }
    .mm-checkout-progress-inner {
        gap: 10px;
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    .mm-checkout-steps {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.76rem;
    }
    .mm-checkout-secure {
        font-size: 0.76rem;
    }
    .mm-checkout-page {
        padding: 18px 12px 42px;
    }
    .mm-checkout-layout {
        gap: 16px;
    }
    .mm-checkout-card {
        padding: 14px;
        border-radius: 14px;
    }
    .mm-field label {
        font-size: 0.82rem;
    }
    .mm-field input,
    .mm-checkout-copy textarea {
        min-height: 44px;
    }
    .mm-checkout-shipping-option {
        grid-template-columns: auto 1fr;
        row-gap: 6px;
        align-items: start;
    }
    .mm-checkout-shipping-price {
        grid-column: 2;
    }
    .mm-checkout-link-button {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
    }
    .mm-checkout-primary {
        width: 100%;
        min-height: 48px;
    }
    .mm-checkout-summary-row,
    .mm-checkout-row {
        font-size: 0.88rem;
    }
    .mm-footer {
        padding: 22px 14px calc(22px + env(safe-area-inset-bottom));
    }
    .mm-footer-nav {
        width: 100%;
        justify-content: center;
        gap: 12px 20px;
    }
    .mm-footer-nav a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
    }
    .mm-footer-badges img {
        width: 100%;
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .mm-similar-card {
        width: 86%;
        max-width: 86%;
    }
    .mm-product-shipping-form {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .mm-product-shipping-form button {
        min-height: 44px;
        width: 100%;
    }
    .mm-shipping-option-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
    .mm-shipping-option-head strong {
        font-size: 0.96rem;
    }
    .mm-shipping-option-card p {
        font-size: 0.82rem;
    }
}

@media (max-width: 420px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card-btn {
        width: 100%;
    }
    .mm-checkout-steps {
        gap: 6px;
        font-size: 0.72rem;
    }
}
